/** * @param data * @param shape * @param offset * @return */ @Override public IComplexNDArray createComplex(double[] data, int[] shape, long offset) { return createComplex(Nd4j.createBuffer(data), shape, offset); }
public static INDArray create(DataBuffer data, long[] shape) { checkShapeValues(shape); INDArray ret = INSTANCE.create(data, shape); logCreationIfNecessary(ret); return ret; }
public static INDArray create(List<INDArray> list, long[] shape) { shape = getEnsuredShape(shape); checkShapeValues(shape); INDArray ret = INSTANCE.create(list, shape); logCreationIfNecessary(ret); return ret; }
/** * * @param shape * @param value * @return */ public static IComplexNDArray complexValueOf(int[] shape, IComplexNumber value) { checkShapeValues(shape); IComplexNDArray ret = INSTANCE.complexValueOf(shape, value); logCreationIfNecessary(ret); return ret; }
/** * Create a scalar nd array with the specified value and offset * * @param value the value of the scalar * @param offset the offset of the ndarray * @return the scalar nd array */ public static INDArray scalar(float value, long offset) { INDArray ret = INSTANCE.scalar(value, offset); logCreationIfNecessary(ret); return ret; }
/** * Create a long row vector of all of the given ndarrays * @param matrices the matrices to create the flattened ndarray for * @return the flattened representation of * these ndarrays */ public static INDArray toFlattened(Collection<INDArray> matrices) { INDArray ret = INSTANCE.toFlattened(matrices); logCreationIfNecessary(ret); return ret; }
/** * Create a long row vector of all of the given ndarrays * @param flatten the matrices to create the flattened ndarray for * @return the flattened representation of * these ndarrays */ public static IComplexNDArray complexFlatten(IComplexNDArray... flatten) { IComplexNDArray ret = INSTANCE.complexFlatten(flatten); logCreationIfNecessary(ret); return ret; }
/** * Creates a row vector with the specified number of columns * * @param rows the rows of the sndarray * @param columns the columns of the ndarray * @return the created ndarray */ public static INDArray zeros(long rows, long columns) { INDArray ret = INSTANCE.zeros(rows, columns); logCreationIfNecessary(ret); return ret; }
/** * Creates an ndarray * * @param columns the number of columns in the row vector * @return ndarray */ public static IComplexNDArray complexOnes(int columns) { IComplexNDArray ret = INSTANCE.complexOnes(columns); logCreationIfNecessary(ret); return ret; }
/** * Concatenates two matrices vertically. Matrices must have identical * numbers of columns. * * @param arrs */ public static INDArray vstack(INDArray... arrs) { INDArray ret = INSTANCE.vstack(arrs); logCreationIfNecessary(ret); return ret; }
/** * Array of evenly spaced values. * * @param begin the begin of the range * @param end the end of the range * @return the range vector */ public static INDArray arange(double begin, double end) { INDArray ret = INSTANCE.arange(begin, end); logCreationIfNecessary(ret); return ret; }
/** * Creates a row vector with the data * * @param data the columns of the ndarray * @return the created ndarray */ public static INDArray create(float[] data, char order) { INDArray ret = INSTANCE.create(data, order); logCreationIfNecessary(ret); return ret; }
public static INDArray create(DataBuffer data, long[] newShape, long[] newStride, long offset, char ordering) { checkShapeValues(newShape); INDArray ret = INSTANCE.create(data, newShape, newStride, offset, ordering); logCreationIfNecessary(ret); return ret; }
public static INDArray create(long[] shape, long[] stride, char ordering) { shape = getEnsuredShape(shape); checkShapeValues(shape); INDArray ret = INSTANCE.create(shape, stride, 0, ordering); logCreationIfNecessary(ret); return ret; }
/** * Create a scalar ndarray with the specified offset * * @param value the value to initialize the scalar with * @return the created ndarray */ public static IComplexNDArray scalar(IComplexNumber value) { IComplexNDArray ret = INSTANCE.scalar(value); logCreationIfNecessary(ret); return ret; }
/** * Create a long row vector of all of the given ndarrays * @param matrices the matrices to create the flattened ndarray for * @return the flattened representation of * these ndarrays */ public static INDArray toFlattened(int length, Iterator<? extends INDArray>... matrices) { INDArray ret = INSTANCE.toFlattened(length, matrices); logCreationIfNecessary(ret); return ret; }
/** * Create a long row vector of all of the given ndarrays * @param flatten the matrices to create the flattened ndarray for * @return the flattened representation of * these ndarrays */ public static IComplexNDArray complexFlatten(List<IComplexNDArray> flatten) { IComplexNDArray ret = INSTANCE.complexFlatten(flatten); logCreationIfNecessary(ret); return ret; }
/** * * @param data * @param shape * @return */ public static INDArray create(DataBuffer data, int[] shape) { checkShapeValues(shape); INDArray ret = INSTANCE.create(data, shape); logCreationIfNecessary(ret); return ret; }
/** * Create a scalar ndarray with the specified offset * * @param value the value to initialize the scalar with * @param offset the offset of the ndarray * @return the created ndarray */ public static IComplexNDArray scalar(IComplexNumber value, long offset) { IComplexNDArray ret = INSTANCE.scalar(value, offset); logCreationIfNecessary(ret); return ret; }
public static INDArray zeros(long[] shape, char order) { checkShapeValues(shape); INDArray ret = INSTANCE.create(shape, order); logCreationIfNecessary(ret); return ret; }