removr trueVector. (#146)

Signed-off-by: Robert Altena <Rob@Ra-ai.com>
master
Robert Altena 2019-08-22 19:27:43 +09:00 committed by GitHub
parent e855e47f73
commit c523aa792f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 43 deletions

View File

@ -1259,34 +1259,6 @@ public abstract class BaseNDArrayFactory implements NDArrayFactory {
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
*

View File

@ -980,21 +980,6 @@ public interface NDArrayFactory {
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
*