|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectshared.array.ProtoArray<T,double[],E>
shared.array.AbstractArray<R,C,R,Double>
shared.array.AbstractRealArray<RealArray,ComplexArray>
shared.array.RealArray
public class RealArray

A multidimensional real array class.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class shared.array.AbstractRealArray |
|---|
AbstractRealArray.RealMap, AbstractRealArray.RealReduce |
| Nested classes/interfaces inherited from interface shared.array.Array |
|---|
Array.IndexingOrder |
| Field Summary |
|---|
| Fields inherited from class shared.array.AbstractArray |
|---|
INVALID_PARITY, parity |
| Fields inherited from class shared.array.ProtoArray |
|---|
dims, order, strides, values |
| Constructor Summary | |
|---|---|
|
RealArray(Array.IndexingOrder order,
int... dims)
Alternate constructor. |
protected |
RealArray(Array.IndexingOrder order,
int[] dims,
int[] strides)
Internal constructor for package use only. |
|
RealArray(double[] values,
Array.IndexingOrder order,
int... dims)
Alternate constructor. |
|
RealArray(double[] values,
int... dims)
Alternate constructor. |
|
RealArray(int... dims)
Default constructor. |
protected |
RealArray(int unused,
Array.IndexingOrder order,
int[] dims)
Internal constructor with a distinctive signature. |
protected |
RealArray(int unused,
double[] values,
Array.IndexingOrder order,
int[] dims)
Internal constructor with a distinctive signature. |
|
RealArray(RealArray array)
Alternate constructor. |
| Method Summary | |
|---|---|
static RealArray |
eye(int size,
int ndims)
Creates an array of the given size and number of dimensions, with ones for diagonals. |
byte[] |
getBytes()
Converts this array into bytes. |
RealArray |
mDiag()
Gets the diagonal of this matrix as a column vector. |
RealArray[] |
mEigs()
Gets the eigenvectors and eigenvalues of this matrix. |
RealArray |
mInvert()
Inverts this matrix. |
RealArray |
mMul(RealArray b)
Multiplies two matrices. |
RealArray[] |
mSVD()
Gets the singular value decomposition of this matrix. |
RealArray |
mTranspose()
Transposes this matrix. |
static RealArray |
parse(byte[] data)
Parses an array from bytes. |
protected RealArray |
wrap(int parity,
Array.IndexingOrder order,
int[] dims,
int[] strides)
Creates an instance of the base type. |
protected ComplexArray |
wrapUp(int parity,
Array.IndexingOrder order,
int[] dims,
int[] strides)
Creates an instance of the "up" type after a forwards FFT. |
| Methods inherited from class shared.array.AbstractRealArray |
|---|
aEnt, aMax, aMean, aMin, applyKernelElementwiseOperation, applyKernelLeftElementwiseOperation, applyKernelRealAccumulatorOperation, applyKernelRealDimensionOperation, applyKernelRealIndexOperation, applyKernelRealReduceOperation, applyKernelRealToComplexOperation, applyKernelRealUnaryOperation, aProd, aSum, aVar, dimensions, dProd, dSum, eAdd, eDiv, eMax, eMin, eMul, eSub, getComponentType, iGZero, iGZero, iLZero, iLZero, iMax, iMax, iMin, iMin, iSort, iSort, iZero, iZero, lAdd, lDiv, lMax, lMin, lMul, lSub, map, reduce, rfft, rfftDimensions, rMax, rMean, rMin, rProd, rSum, rVar, tocIm, tocRe, uAbs, uAdd, uAtan, uCos, uExp, uFill, uInv, uLog, uMul, uPow, uRnd, uShuffle, uSin, uSqr, uSqrt, wrap, wrapDown |
| Methods inherited from class shared.array.AbstractArray |
|---|
checkInvalidParity, checkMatrixOrder, checkShape, fft, get, ifft, inferDimensions, rifft, rifftDimensions, set, toString, transform, values, wrap |
| Methods inherited from class shared.array.ProtoArray |
|---|
clone, map, ndims, order, physical, reshape, reverse, reverseOrder, shift, size, slice, slice, slice, slice, splice, stride, strides, subarray, tile, transpose |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface shared.array.Array |
|---|
clone, dimensions, getComponentType, map, ndims, order, reshape, reverse, reverseOrder, shift, size, slice, slice, slice, slice, splice, stride, strides, subarray, tile, toString, transpose |
| Constructor Detail |
|---|
public RealArray(int... dims)
public RealArray(Array.IndexingOrder order,
int... dims)
protected RealArray(int unused,
Array.IndexingOrder order,
int[] dims)
public RealArray(double[] values,
int... dims)
public RealArray(double[] values,
Array.IndexingOrder order,
int... dims)
public RealArray(RealArray array)
protected RealArray(int unused,
double[] values,
Array.IndexingOrder order,
int[] dims)
protected RealArray(Array.IndexingOrder order,
int[] dims,
int[] strides)
| Method Detail |
|---|
protected RealArray wrap(int parity,
Array.IndexingOrder order,
int[] dims,
int[] strides)
AbstractArray
wrap in class AbstractArray<RealArray,ComplexArray,RealArray,Double>
protected ComplexArray wrapUp(int parity,
Array.IndexingOrder order,
int[] dims,
int[] strides)
AbstractArray
wrapUp in class AbstractArray<RealArray,ComplexArray,RealArray,Double>public RealArray mMul(RealArray b)
Matrix
mMul in interface Matrix<RealArray,Double>b - the right hand side.
public RealArray mDiag()
Matrix
mDiag in interface Matrix<RealArray,Double>public RealArray mTranspose()
Matrix
mTranspose in interface Matrix<RealArray,Double>public RealArray[] mSVD()
Matrix
mSVD in interface Matrix<RealArray,Double>public RealArray[] mEigs()
Matrix
mEigs in interface Matrix<RealArray,Double>public RealArray mInvert()
Matrix
mInvert in interface Matrix<RealArray,Double>public byte[] getBytes()
ProtoArraybytes.
getBytes in class ProtoArray<RealArray,double[],Double>bytes.public static final RealArray parse(byte[] data)
bytes.
public static final RealArray eye(int size,
int ndims)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||