- java.lang.Object
-
- swim.math.Tensor
-
- swim.math.MutableTensor
-
-
Constructor Summary
Constructors Modifier Constructor Description MutableTensor(TensorDims dims, double... array)
MutableTensor(TensorDims dims, double[] array, int offset)
MutableTensor(TensorDims dims, float... array)
MutableTensor(TensorDims dims, float[] array, int offset)
protected
MutableTensor(TensorDims dims, Object array, int offset)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Output<T>
debug(Output<T> output)
Writes a developer readable, debug-formatted string representation of this object tooutput
.static MutableTensor
of(TensorDims dims, int offset, double... array)
static MutableTensor
of(TensorDims dims, int offset, float... array)
static MutableTensor
zero(TensorDims dims)
static MutableTensor
zero(TensorDims dims, Precision prec)
-
Methods inherited from class swim.math.Tensor
add, add, add, add, add, add, add, add, add, add, add, add, cast, cast, cast, combine, combine, combine, combine, combine, combine, combine, combine, combine, combine, combine, combine, copy, copy, copy, copy, dimensions, equals, form, form, getArrayOffset, getDouble, getDoubleArray, getFloat, getFloatArray, getOffset, hashCode, minus, mold, mold, mold, multiply, multiply, multiply, multiply, multiply, multiply, multiply, multiply, multiply, multiply, multiply, multiply, multiply, multiply, multiply, multiply, multiply, multiply, multiply, multiply, multiplyMatrix, multiplyMatrix, multiplyMatrix, multiplyMatrix, multiplyMatrix, multiplyMatrix, multiplyMatrix, multiplyMatrix, multiplyMatrix, multiplyMatrix, multiplyMatrix, multiplyMatrix, multiplyMatrix, opposite, opposite, opposite, opposite, opposite, opposite, opposite, opposite, opposite, plus, precision, space, space, space, space, subtract, subtract, subtract, subtract, subtract, subtract, subtract, subtract, subtract, subtract, subtract, subtract, times, times, timesMatrix, toString
-
-
-
-
Constructor Detail
-
MutableTensor
protected MutableTensor(TensorDims dims, Object array, int offset)
-
MutableTensor
public MutableTensor(TensorDims dims, double[] array, int offset)
-
MutableTensor
public MutableTensor(TensorDims dims, float[] array, int offset)
-
MutableTensor
public MutableTensor(TensorDims dims, double... array)
-
MutableTensor
public MutableTensor(TensorDims dims, float... array)
-
-
Method Detail
-
debug
public <T> Output<T> debug(Output<T> output)
Description copied from interface:Debug
Writes a developer readable, debug-formatted string representation of this object tooutput
.
-
zero
public static MutableTensor zero(TensorDims dims, Precision prec)
-
zero
public static MutableTensor zero(TensorDims dims)
-
of
public static MutableTensor of(TensorDims dims, int offset, double... array)
-
of
public static MutableTensor of(TensorDims dims, int offset, float... array)
-
-