org.nd4j.linalg.jblas.complex
Class ComplexNDArray
- java.lang.Object
-
- org.nd4j.linalg.api.ndarray.BaseNDArray
-
- org.nd4j.linalg.api.complex.BaseComplexNDArray
-
- org.nd4j.linalg.jblas.complex.ComplexNDArray
-
- All Implemented Interfaces:
- java.io.Serializable, IComplexNDArray, INDArray
public class ComplexNDArray extends BaseComplexNDArray
ComplexNDArray for complex numbers. Note that the indexing scheme for a complex ndarray is 2 * length not length. The reason for this is the fact that imaginary components have to be stored alongside realComponent components.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description ComplexNDArray(DataBuffer data)ComplexNDArray(DataBuffer data, int[] shape)ComplexNDArray(DataBuffer data, int[] shape, int[] stride)ComplexNDArray(DataBuffer data, int[] shape, int[] stride, int offset)ComplexNDArray(DataBuffer data, int[] newDims, int[] newStrides, int offset, char ordering)ComplexNDArray(float[] doubles)ComplexNDArray(float[][] floats)ComplexNDArray(float[] data, java.lang.Character order)ComplexNDArray(float[] data, int[] shape)ComplexNDArray(float[] data, int[] shape, char ordering)Create this ndarray with the given data and shape and 0 offsetComplexNDArray(float[] data, int[] shape, int offset)ComplexNDArray(float[] data, int[] shape, int[] stride)Initialize with the given data,shape and strideComplexNDArray(float[] data, int[] shape, int[] stride, char ordering)ComplexNDArray(float[] data, int[] shape, int[] stride, int offset)ComplexNDArray(float[] data, int[] shape, int[] stride, int offset, char ordering)THe ordering of the ndarrayComplexNDArray(float[] data, int[] shape, int offset, char ordering)ComplexNDArray(IComplexNumber[] newData, int[] shape)Create a complex ndarray with the given complex doubles.ComplexNDArray(IComplexNumber[] newData, int[] shape, char ordering)Create a complex ndarray with the given complex doubles.ComplexNDArray(IComplexNumber[] newData, int[] shape, int[] stride)Create a complex ndarray with the given complex doubles.ComplexNDArray(IComplexNumber[] data, int[] shape, int[] stride, int offset, char ordering)ComplexNDArray(INDArray m)Construct a complex matrix from a realComponent matrix.ComplexNDArray(INDArray m, char ordering)Construct a complex matrix from a realComponent matrix.ComplexNDArray(INDArray m, int[] stride)Create with the specified ndarray as the real component and the given strideComplexNDArray(INDArray m, int[] stride, char ordering)Initialize the given ndarray as the real componentComplexNDArray(int[] shape)ComplexNDArray(int[] shape, char ordering)ComplexNDArray(int[] shape, int offset)ComplexNDArray(int[] shape, int[] stride)Create the ndarray with the specified shape and stride and an offset of 0ComplexNDArray(int[] shape, int[] stride, char ordering)Create the ndarray with the specified shape and stride and an offset of 0ComplexNDArray(int[] shape, int[] stride, int offset)Construct an ndarray of the specified shape with an empty data arrayComplexNDArray(int[] shape, int[] stride, int offset, char ordering)Construct an ndarray of the specified shape with an empty data arrayComplexNDArray(int[] shape, int offset, char ordering)ComplexNDArray(int newRows, int newColumns)Creates a new n times m ComplexDoubleMatrix.ComplexNDArray(int newRows, int newColumns, char ordering)Creates a new n times m ComplexDoubleMatrix.ComplexNDArray(java.util.List<IComplexNDArray> slices, int[] shape)Create an ndarray from the specified slices and the given shapeComplexNDArray(java.util.List<IComplexNDArray> slices, int[] shape, char ordering)Create an ndarray from the specified slices and the given shapeComplexNDArray(java.util.List<IComplexNDArray> slices, int[] shape, int[] stride)Create an ndarray from the specified slices and the given shapeComplexNDArray(java.util.List<IComplexNDArray> slices, int[] shape, int[] stride, char ordering)Create an ndarray from the specified slices and the given shape
-
Method Summary
-
Methods inherited from class org.nd4j.linalg.api.complex.BaseComplexNDArray
add, add, add, add, add, add, addColumnVector, addi, addi, addi, addi, addi, addi, addi, addiColumnVector, addiRowVector, addRowVector, assign, assign, assign, blasOffset, broadcast, checkDimensions, cond, condi, conj, conji, cumsum, cumsumi, dimShuffle, distance1, distance2, div, div, div, div, div, div, divColumnVector, divi, divi, divi, divi, divi, divi, divi, diviColumnVector, diviRowVector, divRowVector, dup, element, endsForSlices, eps, eps, eps, epsi, epsi, epsi, eq, eq, eqi, eqi, equals, get, getColumn, getColumns, getComplex, getComplex, getComplex, getComplex, getImag, getReal, getReal, getRow, getRows, getScalar, getScalar, getScalar, gt, gt, gti, gti, hermitian, imag, iterateOverDimension, linearIndex, linearView, linearViewColumnOrder, lt, lt, lti, lti, majorStride, max, max, mean, min, min, mmul, mmul, mmuli, mmuli, mul, mul, mul, mul, mul, mul, mulColumnVector, muli, muli, muli, muli, muli, muli, muli, muliColumnVector, muliRowVector, mulRowVector, multipliesWith, neg, negi, neq, neqi, norm1, norm2, normmax, permute, prod, put, put, put, put, put, put, put, put, put, put, put, putColumn, putImag, putImag, putReal, putReal, putRow, putScalar, putScalar, putScalar, putScalar, putScalar, putSlice, putSlice, ravel, rdiv, rdiv, rdiv, rdiv, rdiv, rdiv, rdivColumnVector, rdivi, rdivi, rdivi, rdivi, rdivi, rdivi, rdivi, rdiviColumnVector, rdiviRowVector, rdivRowVector, real, reduce, repmat, reshape, reshape, rsub, rsub, rsub, rsub, rsub, rsub, rsubColumnVector, rsubi, rsubi, rsubi, rsubi, rsubi, rsubi, rsubi, rsubiColumnVector, rsubiRowVector, rsubRowVector, secondaryStride, slice, slice, squaredDistance, std, sub, sub, sub, sub, sub, sub, subArray, subColumnVector, subi, subi, subi, subi, subi, subi, subi, subiColumnVector, subiRowVector, subRowVector, sum, swapAxes, toArray, toString, transpose, vectorAlongDimension, vectorForDimensionAndOffset, vectorForDimensionAndOffsetPair
-
Methods inherited from class org.nd4j.linalg.api.ndarray.BaseNDArray
add, columns, data, div, getDouble, getDouble, getDouble, getElement, getElement, getFloat, getFloat, getFloat, getIndex, getInt, index, isColumnVector, isMatrix, isRowVector, isScalar, isVector, iterateOverAllColumns, iterateOverAllRows, length, mul, offset, ordering, putScalar, putScalar, putScalar, putScalar, rdiv, rows, rsub, setData, setData, setStride, shape, size, slices, sliceVectors, stride, sub, var, vectorsAlongDimension
-
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.nd4j.linalg.api.complex.IComplexNDArray
add, div, mul, rdiv, rsub, sub
-
Methods inherited from interface org.nd4j.linalg.api.ndarray.INDArray
columns, data, getDouble, getDouble, getDouble, getElement, getElement, getFloat, getFloat, getFloat, getInt, index, isColumnVector, isMatrix, isRowVector, isScalar, isVector, iterateOverAllColumns, iterateOverAllRows, length, offset, ordering, putScalar, putScalar, putScalar, putScalar, rows, setData, setData, setStride, shape, size, slices, sliceVectors, stride, var, vectorsAlongDimension
-
-
-
-
Constructor Detail
-
ComplexNDArray
public ComplexNDArray(float[] data, int[] shape, char ordering)Create this ndarray with the given data and shape and 0 offset- Parameters:
data- the data to useshape- the shape of the ndarrayordering-
-
ComplexNDArray
public ComplexNDArray(int[] shape, int offset, char ordering)
-
ComplexNDArray
public ComplexNDArray(int[] shape)
-
ComplexNDArray
public ComplexNDArray(float[] data, int[] shape, int[] stride, char ordering)
-
ComplexNDArray
public ComplexNDArray(int[] shape, char ordering)
-
ComplexNDArray
public ComplexNDArray(INDArray m, int[] stride, char ordering)
Initialize the given ndarray as the real component- Parameters:
m- the real componentstride- the stride of the ndarrayordering- the ordering for the ndarray
-
ComplexNDArray
public ComplexNDArray(INDArray m, char ordering)
Construct a complex matrix from a realComponent matrix.- Parameters:
m-ordering-
-
ComplexNDArray
public ComplexNDArray(INDArray m)
Construct a complex matrix from a realComponent matrix.- Parameters:
m-
-
ComplexNDArray
public ComplexNDArray(INDArray m, int[] stride)
Create with the specified ndarray as the real component and the given stride- Parameters:
m- the ndarray to use as the stridestride- the stride of the ndarray
-
ComplexNDArray
public ComplexNDArray(java.util.List<IComplexNDArray> slices, int[] shape, int[] stride)
Create an ndarray from the specified slices and the given shape- Parameters:
slices- the slices of the ndarrayshape- the final shape of the ndarraystride- the stride of the ndarray
-
ComplexNDArray
public ComplexNDArray(java.util.List<IComplexNDArray> slices, int[] shape, int[] stride, char ordering)
Create an ndarray from the specified slices and the given shape- Parameters:
slices- the slices of the ndarrayshape- the final shape of the ndarraystride- the stride of the ndarrayordering- the ordering for the ndarray
-
ComplexNDArray
public ComplexNDArray(java.util.List<IComplexNDArray> slices, int[] shape, char ordering)
Create an ndarray from the specified slices and the given shape- Parameters:
slices- the slices of the ndarrayshape- the final shape of the ndarrayordering- the ordering of the ndarray
-
ComplexNDArray
public ComplexNDArray(java.util.List<IComplexNDArray> slices, int[] shape)
Create an ndarray from the specified slices and the given shape- Parameters:
slices- the slices of the ndarrayshape- the final shape of the ndarray
-
ComplexNDArray
public ComplexNDArray(IComplexNumber[] newData, int[] shape)
Create a complex ndarray with the given complex doubles. Note that this maybe an easier setup than the new float[]- Parameters:
newData- the new data for this arrayshape- the shape of the ndarray
-
ComplexNDArray
public ComplexNDArray(IComplexNumber[] newData, int[] shape, int[] stride)
Create a complex ndarray with the given complex doubles. Note that this maybe an easier setup than the new float[]- Parameters:
newData- the new data for this arrayshape- the shape of the ndarraystride-
-
ComplexNDArray
public ComplexNDArray(IComplexNumber[] newData, int[] shape, char ordering)
Create a complex ndarray with the given complex doubles. Note that this maybe an easier setup than the new float[]- Parameters:
newData- the new data for this arrayshape- the shape of the ndarrayordering- the ordering for the ndarray
-
ComplexNDArray
public ComplexNDArray(float[] data, int[] shape, int[] stride)Initialize with the given data,shape and stride- Parameters:
data- the data to useshape- the shape of the ndarraystride- the stride of the ndarray
-
ComplexNDArray
public ComplexNDArray(float[] data, int[] shape, int[] stride, int offset, char ordering)THe ordering of the ndarray- Parameters:
data- the data to useshape- the final shape of the ndarraystride- the stride of the ndarrayoffset- the offsetordering- the ordering
-
ComplexNDArray
public ComplexNDArray(float[] data, int[] shape, int[] stride, int offset)
-
ComplexNDArray
public ComplexNDArray(float[] data, int[] shape)
-
ComplexNDArray
public ComplexNDArray(float[] data, int[] shape, int offset, char ordering)
-
ComplexNDArray
public ComplexNDArray(float[] data, int[] shape, int offset)
-
ComplexNDArray
public ComplexNDArray(int[] shape, int[] stride, int offset)Construct an ndarray of the specified shape with an empty data array- Parameters:
shape- the shape of the ndarraystride- the stride of the ndarrayoffset- the desired offset
-
ComplexNDArray
public ComplexNDArray(int[] shape, int[] stride, int offset, char ordering)Construct an ndarray of the specified shape with an empty data array- Parameters:
shape- the shape of the ndarraystride- the stride of the ndarrayoffset- the desired offsetordering- the ordering for the ndarray
-
ComplexNDArray
public ComplexNDArray(int[] shape, int[] stride, char ordering)Create the ndarray with the specified shape and stride and an offset of 0- Parameters:
shape- the shape of the ndarraystride- the stride of the ndarrayordering-
-
ComplexNDArray
public ComplexNDArray(int[] shape, int[] stride)Create the ndarray with the specified shape and stride and an offset of 0- Parameters:
shape- the shape of the ndarraystride- the stride of the ndarray
-
ComplexNDArray
public ComplexNDArray(int[] shape, int offset)- Parameters:
shape-offset-
-
ComplexNDArray
public ComplexNDArray(int newRows, int newColumns)Creates a new n times m ComplexDoubleMatrix.- Parameters:
newRows- the number of rows (n) of the new matrix.newColumns- the number of columns (m) of the new matrix.
-
ComplexNDArray
public ComplexNDArray(int newRows, int newColumns, char ordering)Creates a new n times m ComplexDoubleMatrix.- Parameters:
newRows- the number of rows (n) of the new matrix.newColumns- the number of columns (m) of the new matrix.ordering- the ordering of the ndarray
-
ComplexNDArray
public ComplexNDArray(float[] doubles)
-
ComplexNDArray
public ComplexNDArray(float[][] floats)
-
ComplexNDArray
public ComplexNDArray(DataBuffer data)
-
ComplexNDArray
public ComplexNDArray(DataBuffer data, int[] shape, int[] stride, int offset)
-
ComplexNDArray
public ComplexNDArray(IComplexNumber[] data, int[] shape, int[] stride, int offset, char ordering)
-
ComplexNDArray
public ComplexNDArray(DataBuffer data, int[] newDims, int[] newStrides, int offset, char ordering)
-
ComplexNDArray
public ComplexNDArray(DataBuffer data, int[] shape)
-
ComplexNDArray
public ComplexNDArray(DataBuffer data, int[] shape, int[] stride)
-
ComplexNDArray
public ComplexNDArray(float[] data, java.lang.Character order)
-
-
DMelt 3.0 © DataMelt by jWork.ORG