From c523aa792fbc569b8853f232b724e0cbc6c16afe Mon Sep 17 00:00:00 2001 From: Robert Altena Date: Thu, 22 Aug 2019 19:27:43 +0900 Subject: [PATCH] removr trueVector. (#146) Signed-off-by: Robert Altena --- .../linalg/factory/BaseNDArrayFactory.java | 28 ------------------- .../nd4j/linalg/factory/NDArrayFactory.java | 15 ---------- 2 files changed, 43 deletions(-) diff --git a/nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/factory/BaseNDArrayFactory.java b/nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/factory/BaseNDArrayFactory.java index 2cb7c9eeb..487196912 100644 --- a/nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/factory/BaseNDArrayFactory.java +++ b/nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/factory/BaseNDArrayFactory.java @@ -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 * diff --git a/nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/factory/NDArrayFactory.java b/nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/factory/NDArrayFactory.java index 0cd52b1d2..3e981118b 100644 --- a/nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/factory/NDArrayFactory.java +++ b/nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/factory/NDArrayFactory.java @@ -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 *