/** * @param data * @param shape * @param offset * @return */ @Override public IComplexNDArray createComplex(double[] data, int[] shape, int offset) { return new ComplexNDArray(ArrayUtil.floatCopyOf(data), shape, offset); }
@Override public IComplexNDArray createComplex(double[] data, int[] shape, long offset, char ordering) { return new JCublasComplexNDArray(ArrayUtil.floatCopyOf(data), shape, offset, ordering); }
@Override public IComplexNDArray createComplex(double[] data, int[] shape, int[] stride, int offset, char ordering) { return new ComplexNDArray(ArrayUtil.floatCopyOf(data), shape, stride, offset, ordering); }
/** * Creates a complex ndarray with the specified shape * * @param data * @param shape the shape of the ndarray * @param stride the stride for the ndarray * @param offset the offset of the ndarray * @return the instance */ @Override public IComplexNDArray createComplex(double[] data, int[] shape, int[] stride, int offset) { return new JCublasComplexNDArray(ArrayUtil.floatCopyOf(data), shape, stride, offset); }
@Override public IComplexNDArray createComplex(double[] data, int[] shape, int offset, char ordering) { return new ComplexNDArray(ArrayUtil.floatCopyOf(data), shape, offset, ordering); }
@Override public IComplexNDArray createComplex(double[] data, int[] shape, int offset, char ordering) { return new JCublasComplexNDArray(ArrayUtil.floatCopyOf(data), shape, offset, ordering); }
/** * @param data * @param shape * @param offset * @param ordering * @return */ @Override public IComplexNDArray createComplex(double[] data, int[] shape, int offset, char ordering) { return new ComplexNDArray(ArrayUtil.floatCopyOf(data), shape, offset, ordering); }
@Override public IComplexNDArray createComplex(double[] data, int[] shape, int[] stride, int offset, char ordering) { return new JCublasComplexNDArray(ArrayUtil.floatCopyOf(data), shape, stride, offset, ordering); }
@Override public IComplexNDArray createComplex(double[] data, int[] shape, int offset) { return new JCublasComplexNDArray(ArrayUtil.floatCopyOf(data), shape, offset); }
@Override public IComplexNDArray createComplex(double[] data, int[] shape, int offset) { return new ComplexNDArray(ArrayUtil.floatCopyOf(data), shape, offset); }
@Override public IComplexNDArray createComplex(double[] data, int[] shape, int[] stride, int offset, char ordering) { return new ComplexNDArray(ArrayUtil.floatCopyOf(data), shape, stride, offset, ordering); }
/** * Creates a complex ndarray with the specified shape * * @param data * @param shape the shape of the ndarray * @param stride the stride for the ndarray * @param offset the offset of the ndarray * @return the instance */ @Override public IComplexNDArray createComplex(double[] data, int[] shape, int[] stride, long offset) { return new JCublasComplexNDArray(ArrayUtil.floatCopyOf(data), shape, stride, offset); }
@Override public IComplexNDArray createComplex(double[] data, int[] shape, int[] stride, long offset, char ordering) { return new JCublasComplexNDArray(ArrayUtil.floatCopyOf(data), shape, stride, offset, ordering); }
@Override public IComplexNDArray createComplex(double[] data, int[] shape, long offset) { return new JCublasComplexNDArray(ArrayUtil.floatCopyOf(data), shape, offset); }
@Override public IComplexNDArray createComplex(double[] data, int[] shape, int offset, char ordering) { return new ComplexNDArray(ArrayUtil.floatCopyOf(data), shape, offset, ordering); }
@Override public IComplexNDArray createComplex(double[] data, int[] shape, int offset) { return new ComplexNDArray(ArrayUtil.floatCopyOf(data), shape, offset); }
/** * Create a complex ndarray with the given data * * @param data the data to use with tne ndarray * @param shape the shape of the ndarray * @param stride the stride for the ndarray * @param offset the offset of the ndarray * @param ordering the ordering for the ndarray * @return the created complex ndarray */ @Override public IComplexNDArray createComplex(double[] data, int[] shape, int[] stride, int offset, char ordering) { return new ComplexNDArray(ArrayUtil.floatCopyOf(data), shape, stride, offset, ordering); }