public class JVMDoubleTensorFactory extends java.lang.Object implements DoubleTensorFactory
Modifier and Type | Field and Description |
---|---|
static JVMDoubleTensorFactory |
INSTANCE |
Constructor and Description |
---|
JVMDoubleTensorFactory() |
Modifier and Type | Method and Description |
---|---|
JVMDoubleTensor |
arange(double start,
double end) |
JVMDoubleTensor |
arange(double start,
double end,
double stepSize) |
DoubleTensor |
concat(int dimension,
DoubleTensor... toConcat) |
DoubleTensor |
create(double[] values) |
JVMDoubleTensor |
create(double[] values,
long... shape) |
JVMDoubleTensor |
create(double value,
long... shape) |
JVMDoubleTensor |
eye(long n) |
JVMDoubleTensor |
linspace(double start,
double end,
int numberOfPoints) |
JVMDoubleTensor |
ones(long... shape) |
JVMDoubleTensor |
scalar(double scalarValue) |
JVMDoubleTensor |
zeros(long... shape) |
public static final JVMDoubleTensorFactory INSTANCE
public DoubleTensor create(double[] values)
create
in interface DoubleTensorFactory
public JVMDoubleTensor create(double[] values, long... shape)
create
in interface DoubleTensorFactory
public JVMDoubleTensor create(double value, long... shape)
create
in interface DoubleTensorFactory
public JVMDoubleTensor ones(long... shape)
ones
in interface DoubleTensorFactory
public JVMDoubleTensor zeros(long... shape)
zeros
in interface DoubleTensorFactory
public JVMDoubleTensor eye(long n)
eye
in interface DoubleTensorFactory
public JVMDoubleTensor linspace(double start, double end, int numberOfPoints)
linspace
in interface DoubleTensorFactory
public JVMDoubleTensor arange(double start, double end)
arange
in interface DoubleTensorFactory
public JVMDoubleTensor arange(double start, double end, double stepSize)
arange
in interface DoubleTensorFactory
public JVMDoubleTensor scalar(double scalarValue)
scalar
in interface DoubleTensorFactory
public DoubleTensor concat(int dimension, DoubleTensor... toConcat)
concat
in interface DoubleTensorFactory