Java Code Examples for org.nd4j.linalg.factory.Nd4j#getComplexStrides()
The following examples show how to use
org.nd4j.linalg.factory.Nd4j#getComplexStrides() .
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(float[] data, int[] shape, long offset, char ordering) { return new JCublasComplexNDArray(data, shape, Nd4j.getComplexStrides(shape, ordering), offset, ordering); }
Example 2
Source File: CpuNDArrayFactory.java From nd4j with Apache License 2.0 | 4 votes |
@Override public IComplexNDArray createComplex(DataBuffer buffer, int[] shape, long offset, char ordering) { return new ComplexNDArray(buffer, shape, Nd4j.getComplexStrides(shape), offset, ordering); }
Example 3
Source File: CpuNDArrayFactory.java From nd4j with Apache License 2.0 | 4 votes |
@Override public IComplexNDArray createComplex(DataBuffer buffer, int[] shape, long offset) { return new ComplexNDArray(buffer, shape, Nd4j.getComplexStrides(shape), offset, Nd4j.order()); }
Example 4
Source File: BaseComplexNDArray.java From nd4j with Apache License 2.0 | 4 votes |
public BaseComplexNDArray(long[] shape) { this(Nd4j.createBuffer(ArrayUtil.prodLong(shape) * 2), shape, Nd4j.getComplexStrides(shape)); }
Example 5
Source File: BaseComplexNDArray.java From nd4j with Apache License 2.0 | 4 votes |
public BaseComplexNDArray(int[] shape, char ordering) { this(Nd4j.createBuffer(ArrayUtil.prodLong(shape) * 2), shape, Nd4j.getComplexStrides(shape, ordering), 0, ordering); }
Example 6
Source File: BaseComplexNDArray.java From nd4j with Apache License 2.0 | 4 votes |
public BaseComplexNDArray(long[] shape, char ordering) { this(Nd4j.createBuffer(ArrayUtil.prodLong(shape) * 2), shape, Nd4j.getComplexStrides(shape, ordering), 0, ordering); }
Example 7
Source File: BaseComplexNDArray.java From nd4j with Apache License 2.0 | 4 votes |
@Override protected int[] getStrides(int[] shape, char ordering) { return Nd4j.getComplexStrides(shape, ordering); }
Example 8
Source File: JCublasNDArrayFactory.java From nd4j with Apache License 2.0 | 2 votes |
/** * Create a complex ndarray from the passed in indarray * * @param data the data to wrap * @param shape * @return the complex ndarray with the specified ndarray as the * real components */ @Override public IComplexNDArray createComplex(IComplexNumber[] data, int[] shape) { return new JCublasComplexNDArray(data, shape, Nd4j.getComplexStrides(shape, Nd4j.order())); }
Example 9
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(float[] data, int[] shape, long offset, char ordering) { return new ComplexNDArray(data, shape, Nd4j.getComplexStrides(shape, ordering), offset, ordering); }
Example 10
Source File: BaseComplexNDArray.java From nd4j with Apache License 2.0 | 2 votes |
/** * Create this ndarray with the given data and shape and 0 offset * * @param data the data to use * @param shape the shape of the ndarray * @param ordering */ public BaseComplexNDArray(float[] data, int[] shape, char ordering) { this(data, shape, Nd4j.getComplexStrides(shape, ordering), 0, ordering); }
Example 11
Source File: BaseComplexNDArray.java From nd4j with Apache License 2.0 | 2 votes |
/** * * @param shape * @param offset * @param ordering */ public BaseComplexNDArray(int[] shape, long offset, char ordering) { this(Nd4j.createBuffer(ArrayUtil.prodLong(shape) * 2), shape, Nd4j.getComplexStrides(shape, ordering), offset, ordering); }
Example 12
Source File: BaseComplexNDArray.java From nd4j with Apache License 2.0 | 2 votes |
/** * * @param shape */ public BaseComplexNDArray(int[] shape) { this(Nd4j.createBuffer(ArrayUtil.prodLong(shape) * 2), shape, Nd4j.getComplexStrides(shape)); }
Example 13
Source File: BaseComplexNDArray.java From nd4j with Apache License 2.0 | 2 votes |
/** * Create an ndarray from the specified slices * and the given shape * * @param slices the slices of the ndarray * @param shape the final shape of the ndarray * @param ordering the ordering of the ndarray */ public BaseComplexNDArray(List<IComplexNDArray> slices, int[] shape, char ordering) { this(slices, shape, Nd4j.getComplexStrides(shape, ordering), ordering); }
Example 14
Source File: BaseComplexNDArray.java From nd4j with Apache License 2.0 | 2 votes |
/** * * @param data * @param shape * @param offset * @param ordering */ public BaseComplexNDArray(IComplexNumber[] data, int[] shape, long offset, char ordering) { this(data, shape, Nd4j.getComplexStrides(shape), offset, ordering); }
Example 15
Source File: BaseComplexNDArray.java From nd4j with Apache License 2.0 | 2 votes |
/** * * @param buffer * @param shape * @param offset * @param ordering */ public BaseComplexNDArray(DataBuffer buffer, int[] shape, long offset, char ordering) { this(buffer, shape, Nd4j.getComplexStrides(shape), offset, ordering); }
Example 16
Source File: BaseComplexNDArray.java From nd4j with Apache License 2.0 | 2 votes |
/** * * @param buffer * @param shape * @param offset */ public BaseComplexNDArray(DataBuffer buffer, int[] shape, long offset) { this(buffer, shape, Nd4j.getComplexStrides(shape), offset, Nd4j.order()); }