|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ojalgo.array.PrimitiveArray
public class PrimitiveArray
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.
| Field Summary | |
|---|---|
static boolean |
DEBUG
|
int |
length
|
| Method Summary | |
|---|---|
Array1D<N> |
asArray1D()
A utility facade that conveniently/consistently presents the BasicArray as a one-dimensional array. |
Array2D<N> |
asArray2D(int aRowDim,
int aColDim)
A utility facade that conveniently/consistently presents the BasicArray as a two-dimensional array. |
ArrayAnyD<N> |
asArrayAnyD(int[] aStructure)
A utility facade that conveniently/consistently presents the BasicArray as a multi-dimensional array. |
double |
doubleValue(int anInd)
|
boolean |
equals(Object anObj)
|
void |
exchange(int aFirstA,
int aFirstB,
int aStep,
int aCount)
|
void |
fill(int aFirst,
int aLimit,
double aLeftArg,
BinaryFunction<Double> aFunc,
PrimitiveArray aRightArg)
|
void |
fill(int aFirst,
int aLimit,
int aStep,
Double aNmbr)
|
void |
fill(int aFirst,
int aLimit,
PrimitiveArray aLeftArg,
BinaryFunction<Double> aFunc,
double aRightArg)
|
void |
fill(int aFirst,
int aLimit,
PrimitiveArray aLeftArg,
BinaryFunction<Double> aFunc,
PrimitiveArray aRightArg)
|
Double |
get(int anInd)
|
int |
getIndexOfLargest(int aFirst,
int aLimit,
int aStep)
|
int |
hashCode()
|
boolean |
isAbsolute(int anInd)
|
boolean |
isReal(int anInd)
|
boolean |
isZero(int anInd)
|
void |
modify(int aFirst,
int aLimit,
int aStep,
BinaryFunction<Double> aFunc,
Double aRightArg)
|
void |
modify(int aFirst,
int aLimit,
int aStep,
BinaryFunction<Double> aFunc,
PrimitiveArray aRightArg)
|
void |
modify(int aFirst,
int aLimit,
int aStep,
Double aLeftArg,
BinaryFunction<Double> aFunc)
|
void |
modify(int aFirst,
int aLimit,
int aStep,
ParameterFunction<Double> aFunc,
int aParam)
|
void |
modify(int aFirst,
int aLimit,
int aStep,
PrimitiveArray aLeftArg,
BinaryFunction<Double> aFunc)
|
void |
modify(int aFirst,
int aLimit,
int aStep,
UnaryFunction<Double> aFunc)
|
int |
searchAscending(Double aNmbr)
|
void |
set(int anInd,
double aNmbr)
|
void |
set(int anInd,
Double aNmbr)
|
int |
size()
|
void |
sortAscending()
|
Scalar<Double> |
toScalar(int anInd)
|
String |
toString()
|
void |
visit(int aFirst,
int aLimit,
int aStep,
AggregatorFunction<Double> aVisitor)
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static boolean DEBUG
public final int length
| Method Detail |
|---|
public final double doubleValue(int anInd)
public boolean equals(Object anObj)
equals in class Object
public final void exchange(int aFirstA,
int aFirstB,
int aStep,
int aCount)
public final void fill(int aFirst,
int aLimit,
double aLeftArg,
BinaryFunction<Double> aFunc,
PrimitiveArray aRightArg)
public final void fill(int aFirst,
int aLimit,
int aStep,
Double aNmbr)
public final void fill(int aFirst,
int aLimit,
PrimitiveArray aLeftArg,
BinaryFunction<Double> aFunc,
double aRightArg)
public final void fill(int aFirst,
int aLimit,
PrimitiveArray aLeftArg,
BinaryFunction<Double> aFunc,
PrimitiveArray aRightArg)
public final Double get(int anInd)
public int getIndexOfLargest(int aFirst,
int aLimit,
int aStep)
public int hashCode()
hashCode in class Objectpublic final boolean isAbsolute(int anInd)
Scalar.isAbsolute()public final boolean isReal(int anInd)
Scalar.isReal()public final boolean isZero(int anInd)
Scalar.isZero()
public final void modify(int aFirst,
int aLimit,
int aStep,
BinaryFunction<Double> aFunc,
Double aRightArg)
public final void modify(int aFirst,
int aLimit,
int aStep,
BinaryFunction<Double> aFunc,
PrimitiveArray aRightArg)
public final void modify(int aFirst,
int aLimit,
int aStep,
Double aLeftArg,
BinaryFunction<Double> aFunc)
public final void modify(int aFirst,
int aLimit,
int aStep,
ParameterFunction<Double> aFunc,
int aParam)
public final void modify(int aFirst,
int aLimit,
int aStep,
PrimitiveArray aLeftArg,
BinaryFunction<Double> aFunc)
public final void modify(int aFirst,
int aLimit,
int aStep,
UnaryFunction<Double> aFunc)
public final int searchAscending(Double aNmbr)
Arrays.binarySearch(Object[], Object),
sortAscending()
public final void set(int anInd,
double aNmbr)
public final void set(int anInd,
Double aNmbr)
public final void sortAscending()
Arrays.sort(Object[]),
searchAscending(Number)public final Scalar<Double> toScalar(int anInd)
public final void visit(int aFirst,
int aLimit,
int aStep,
AggregatorFunction<Double> aVisitor)
public final Array1D<N> asArray1D()
A utility facade that conveniently/consistently presents the BasicArray as a one-dimensional array. Note that you will modify the actual array by accessing it through this facade.
Disregards the array structure, and simply treats it as one-domensional.
public final Array2D<N> asArray2D(int aRowDim,
int aColDim)
A utility facade that conveniently/consistently presents the BasicArray as a two-dimensional array. Note that you will modify the actual array by accessing it through this facade.
If "this" has more than two dimensions then only the first plane of the first cube of the first... is used/accessed. If this only has one dimension then everything is assumed to be in the first column of the first plane of the first cube...
public final ArrayAnyD<N> asArrayAnyD(int[] aStructure)
A utility facade that conveniently/consistently presents the BasicArray as a multi-dimensional array. Note that you will modify the actual array by accessing it through this facade.
public final int size()
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||