org.ojalgo.access
Class ArrayAccess<N extends Number>

java.lang.Object
  extended by org.ojalgo.access.ArrayAccess<N>
All Implemented Interfaces:
Access1D<N>
Direct Known Subclasses:
ArrayAccess.Big, ArrayAccess.Complex, ArrayAccess.Primitive, ArrayAccess.Rational

Deprecated. v32 Use SimpleArray instead

@Deprecated
public abstract class ArrayAccess<N extends Number>
extends Object
implements Access1D<N>

The purpose of (use case for) this class is to provide a minimal class that implements the Access1D interface and is mutable. Further the user can assume that an ArrayAccess instance really is an ArrayAccess.Big instance (and correspondingly for Double, ComplexNumber and RationalNumber). Therefore it is safe to type cast and reference the data attribute. Further this class allows you to, with generics, mix primitive value arrays and object reference arrays.

Author:
apete

Nested Class Summary
static class ArrayAccess.Big
          Deprecated. v32 Use SimpleArray instead
static class ArrayAccess.Complex
          Deprecated. v32 Use SimpleArray instead
static class ArrayAccess.Primitive
          Deprecated. v32 Use SimpleArray instead
static class ArrayAccess.Rational
          Deprecated. v32 Use SimpleArray instead
 
Field Summary
 int length
          Deprecated.  
 
Method Summary
 double doubleValue(int anInd)
           
 N get(int anInd)
           
 Iterator<N> iterator()
          Deprecated.  
static ArrayAccess.Big makeBig(int aLength)
          Deprecated.  
static ArrayAccess.Complex makeComplex(int aLength)
          Deprecated.  
static ArrayAccess.Primitive makePrimitive(int aLength)
          Deprecated.  
static ArrayAccess.Rational makeRational(int aLength)
          Deprecated.  
abstract  void set(int anInd, double aNmbr)
          Deprecated.  
abstract  void set(int anInd, N aNmbr)
          Deprecated.  
 int size()
          Deprecated.  
static ArrayAccess.Big wrapBig(BigDecimal[] theData)
          Deprecated.  
static ArrayAccess.Complex wrapComplex(ComplexNumber[] theData)
          Deprecated.  
static ArrayAccess.Primitive wrapPrimitive(double[] theData)
          Deprecated.  
static ArrayAccess.Rational wrapRational(RationalNumber[] theData)
          Deprecated.  
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

length

public final int length
Deprecated. 
Method Detail

makeBig

public static final ArrayAccess.Big makeBig(int aLength)
Deprecated. 

makeComplex

public static final ArrayAccess.Complex makeComplex(int aLength)
Deprecated. 

makePrimitive

public static final ArrayAccess.Primitive makePrimitive(int aLength)
Deprecated. 

makeRational

public static final ArrayAccess.Rational makeRational(int aLength)
Deprecated. 

wrapBig

public static final ArrayAccess.Big wrapBig(BigDecimal[] theData)
Deprecated. 

wrapComplex

public static final ArrayAccess.Complex wrapComplex(ComplexNumber[] theData)
Deprecated. 

wrapPrimitive

public static final ArrayAccess.Primitive wrapPrimitive(double[] theData)
Deprecated. 

wrapRational

public static final ArrayAccess.Rational wrapRational(RationalNumber[] theData)
Deprecated. 

iterator

public final Iterator<N> iterator()
Deprecated. 

set

public abstract void set(int anInd,
                         double aNmbr)
Deprecated. 

set

public abstract void set(int anInd,
                         N aNmbr)
Deprecated. 

size

public int size()
Deprecated. 
Returns:
The total number of elements contained in this structure

doubleValue

public double doubleValue(int anInd)

get

public N get(int anInd)