org.ojalgo.access
Class ArrayAccess.Rational

java.lang.Object
  extended by org.ojalgo.access.ArrayAccess<RationalNumber>
      extended by org.ojalgo.access.ArrayAccess.Rational
All Implemented Interfaces:
Access1D<RationalNumber>
Enclosing class:
ArrayAccess<N extends Number>

Deprecated. v32 Use SimpleArray instead

@Deprecated
public static final class ArrayAccess.Rational
extends ArrayAccess<RationalNumber>

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
 
Nested classes/interfaces inherited from class org.ojalgo.access.ArrayAccess
ArrayAccess.Big, ArrayAccess.Complex, ArrayAccess.Primitive, ArrayAccess.Rational
 
Field Summary
 RationalNumber[] data
          Deprecated.  
 
Fields inherited from class org.ojalgo.access.ArrayAccess
length
 
Method Summary
 double doubleValue(int anInd)
          Deprecated.  
 RationalNumber get(int anInd)
          Deprecated.  
 void set(int anInd, double aValue)
          Deprecated.  
 void set(int anInd, RationalNumber aValue)
          Deprecated.  
 
Methods inherited from class org.ojalgo.access.ArrayAccess
iterator, makeBig, makeComplex, makePrimitive, makeRational, size, wrapBig, wrapComplex, wrapPrimitive, wrapRational
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

public final RationalNumber[] data
Deprecated. 
Method Detail

doubleValue

public double doubleValue(int anInd)
Deprecated. 

get

public RationalNumber get(int anInd)
Deprecated. 

set

public void set(int anInd,
                double aValue)
Deprecated. 
Specified by:
set in class ArrayAccess<RationalNumber>

set

public void set(int anInd,
                RationalNumber aValue)
Deprecated. 
Specified by:
set in class ArrayAccess<RationalNumber>