org.ojalgo.array
Class PrimitiveArray

java.lang.Object
  extended by 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

Field Summary
 int length
           
 
Method Summary
 double doubleValue(int anInd)
           
 boolean equals(Object anObj)
           
 Double get(int anInd)
           
 int hashCode()
           
 Iterator<N> iterator()
           
 int size()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

length

public final int length
Method Detail

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