parent
e855e47f73
commit
c523aa792f
|
@ -1259,34 +1259,6 @@ public abstract class BaseNDArrayFactory implements NDArrayFactory {
|
||||||
return create(new double[] {value}, new int[0], new int[0], offset);
|
return create(new double[] {value}, new int[0], new int[0], offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
public INDArray trueVector(boolean[] data) {
|
|
||||||
return create(data, new long[] {data.length}, new long[]{1}, DataType.BOOL, Nd4j.getMemoryManager().getCurrentWorkspace());
|
|
||||||
}
|
|
||||||
|
|
||||||
public INDArray trueVector(byte[] data) {
|
|
||||||
return create(data, new long[] {data.length}, new long[]{1}, DataType.BYTE, Nd4j.getMemoryManager().getCurrentWorkspace());
|
|
||||||
}
|
|
||||||
|
|
||||||
public INDArray trueVector(short[] data) {
|
|
||||||
return create(data, new long[] {data.length}, new long[]{1}, DataType.SHORT, Nd4j.getMemoryManager().getCurrentWorkspace());
|
|
||||||
}
|
|
||||||
|
|
||||||
public INDArray trueVector(int[] data) {
|
|
||||||
return create(data, new long[] {data.length}, new long[]{1}, DataType.INT, Nd4j.getMemoryManager().getCurrentWorkspace());
|
|
||||||
}
|
|
||||||
|
|
||||||
public INDArray trueVector(long[] data) {
|
|
||||||
return create(data, new long[] {data.length}, new long[]{1}, DataType.LONG, Nd4j.getMemoryManager().getCurrentWorkspace());
|
|
||||||
}
|
|
||||||
|
|
||||||
public INDArray trueVector(float[] data) {
|
|
||||||
return create(data, new long[] {data.length}, new long[]{1}, DataType.FLOAT, Nd4j.getMemoryManager().getCurrentWorkspace());
|
|
||||||
}
|
|
||||||
|
|
||||||
public INDArray trueVector(double[] data) {
|
|
||||||
return create(data, new long[] {data.length}, new long[]{1}, DataType.DOUBLE, Nd4j.getMemoryManager().getCurrentWorkspace());
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a scalar nd array with the specified value and offset
|
* Create a scalar nd array with the specified value and offset
|
||||||
*
|
*
|
||||||
|
|
|
@ -980,21 +980,6 @@ public interface NDArrayFactory {
|
||||||
|
|
||||||
INDArray empty(DataType type);
|
INDArray empty(DataType type);
|
||||||
|
|
||||||
@Deprecated
|
|
||||||
INDArray trueVector(boolean[] data);
|
|
||||||
@Deprecated
|
|
||||||
INDArray trueVector(byte[] data);
|
|
||||||
@Deprecated
|
|
||||||
INDArray trueVector(short[] data);
|
|
||||||
@Deprecated
|
|
||||||
INDArray trueVector(int[] data);
|
|
||||||
@Deprecated
|
|
||||||
INDArray trueVector(long[] data);
|
|
||||||
@Deprecated
|
|
||||||
INDArray trueVector(float[] data);
|
|
||||||
@Deprecated
|
|
||||||
INDArray trueVector(double[] data);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a scalar nd array with the specified value and offset
|
* Create a scalar nd array with the specified value and offset
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue