Java Code Examples for org.nd4j.linalg.util.ArrayUtil#floatCopyOf()
The following examples show how to use
org.nd4j.linalg.util.ArrayUtil#floatCopyOf() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JCublasNDArrayFactory.java From nd4j with Apache License 2.0 | 4 votes |
@Override public IComplexNDArray createComplex(double[] data, int[] shape, int[] stride, long offset, char ordering) { return new JCublasComplexNDArray(ArrayUtil.floatCopyOf(data), shape, stride, offset, ordering); }
Example 2
Source File: JCublasNDArrayFactory.java From nd4j with Apache License 2.0 | 4 votes |
@Override public IComplexNDArray createComplex(double[] data, int[] shape, long offset, char ordering) { return new JCublasComplexNDArray(ArrayUtil.floatCopyOf(data), shape, offset, ordering); }
Example 3
Source File: JCublasNDArrayFactory.java From nd4j with Apache License 2.0 | 4 votes |
@Override public IComplexNDArray createComplex(double[] data, int[] shape, long offset) { return new JCublasComplexNDArray(ArrayUtil.floatCopyOf(data), shape, offset); }
Example 4
Source File: JCublasNDArrayFactory.java From nd4j with Apache License 2.0 | 2 votes |
/** * 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); }
Example 5
Source File: CpuNDArrayFactory.java From nd4j with Apache License 2.0 | 2 votes |
/** * 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, long offset, char ordering) { return new ComplexNDArray(ArrayUtil.floatCopyOf(data), shape, stride, offset, ordering); }
Example 6
Source File: CpuNDArrayFactory.java From nd4j with Apache License 2.0 | 2 votes |
/** * @param data * @param shape * @param offset * @param ordering * @return */ @Override public IComplexNDArray createComplex(double[] data, int[] shape, long offset, char ordering) { return new ComplexNDArray(ArrayUtil.floatCopyOf(data), shape, offset, ordering); }
Example 7
Source File: CpuNDArrayFactory.java From nd4j with Apache License 2.0 | 2 votes |
/** * @param data * @param shape * @param offset * @return */ @Override public IComplexNDArray createComplex(double[] data, int[] shape, long offset) { return new ComplexNDArray(ArrayUtil.floatCopyOf(data), shape, offset); }