All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mikera.arrayz.ISparse Maven / Gradle / Ivy

Go to download

Fast double-precision vector and matrix maths library for Java, supporting N-dimensional numeric arrays.

There is a newer version: 0.67.0
Show newest version
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