org.ojalgo.array
Class PrimitiveArray
java.lang.Object
org.ojalgo.array.PrimitiveArray
- All Implemented Interfaces:
- Serializable, Access1D<Double>
- Direct Known Subclasses:
- PrimitiveDenseStore
public class PrimitiveArray
- extends Object
A one- and/or arbitrary-dimensional array of double.
You cannot instantiate a PrimitiveArray directly. You have to either
subclass it and implement instantiation code in that subclass, or use
one of the static factory methods in Array1D, Array2D
or ArrayAnyD.
- Author:
- apete
- See Also:
- Serialized Form
length
public final int length
doubleValue
public final double doubleValue(int anInd)
equals
public boolean equals(Object anObj)
- Overrides:
equals in class Object
get
public final Double get(int anInd)
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
iterator
public final Iterator<N> iterator()
size
public final int size()
- Returns:
- The total number of elements contained in this structure
toString
public String toString()
- Overrides:
toString in class Object