public class RealArray extends AbstractRealArray<RealArray,ComplexArray> implements Matrix<RealArray,Double>
AbstractRealArray.RealMap, AbstractRealArray.RealReduce
Array.IndexingOrder
INVALID_PARITY, parity
dims, order, strides, values
Modifier | Constructor and Description |
---|---|
|
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.
|
Modifier and Type | Method and Description |
---|---|
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
byte s. |
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
byte s. |
double |
singleton()
Gets the singleton value from this array.
|
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 forward FFT.
|
aEnt, aMax, aMean, aMin, applyKernelElementwiseOperation, applyKernelLeftElementwiseOperation, applyKernelRealAccumulatorOperation, applyKernelRealDimensionOperation, applyKernelRealIndexOperation, applyKernelRealReduceOperation, applyKernelRealToComplexOperation, applyKernelRealUnaryOperation, aProd, aSum, aVar, 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
checkInvalidParity, checkMatrixOrder, checkShape, fft, get, ifft, rifft, rifftDimensions, set, toString, transform, wrap
clone, concat, dims, map, nDims, order, physical, reshape, reverse, reverseOrder, shift, size, slice, slice, slice, slice, splice, stride, strides, subarray, tile, transpose, values
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)
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
public RealArray mDiag()
Matrix
public RealArray mTranspose()
Matrix
mTranspose
in interface Matrix<RealArray,Double>
public RealArray[] mSvd()
Matrix
public RealArray[] mEigs()
Matrix
public byte[] getBytes()
ProtoArray
byte
s.getBytes
in class ProtoArray<RealArray,double[],Double>
byte
s.public double singleton()
public static final RealArray parse(byte[] data)
byte
s.public static final RealArray eye(int size, int nDims)