mikera.arrayz.ISparse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vectorz Show documentation
Show all versions of vectorz Show documentation
Fast double-precision vector and matrix maths library for Java, supporting N-dimensional numeric arrays.
package mikera.arrayz;
/**
* Marker interface for sparse arrays.
*
* May be used to hint that an array can be used to drive calculations more efficiently. A sparse array
* will often use less space than the total implied by its elements, assuming a sufficient number
* of elements are zero
*
* @author Mike
*/
public interface ISparse {
/**
* Computes the density ratio of this sparse array (proportion of non-zero elements)
* @return
*/
public double density();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy