- java.lang.Object
-
- swim.math.RN
-
-
Field Summary
Fields Modifier and Type Field Description protected TensorDims
dims
-
Constructor Summary
Constructors Modifier Constructor Description protected
RN(TensorDims dims)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RNVector
add(RNVector u, RNVector v)
RNVector
combine(Double a, RNVector u, Double b, RNVector v)
<T> Output<T>
debug(Output<T> output)
Writes a developer readable, debug-formatted string representation of this object tooutput
.TensorDims
dimensions()
Double
get(RNVector v, int i)
RNVector
multiply(RNVector u, Double a)
RNVector
of(double... array)
RNVector
of(Object... array)
RNVector
opposite(RNVector v)
R
scalar()
int
size()
static RN
space(int n)
static RN
space(TensorDims dims)
RNVector
subtract(RNVector u, RNVector v)
String
toString()
RNVector
zero()
-
-
-
Field Detail
-
dims
protected final TensorDims dims
-
-
Constructor Detail
-
RN
protected RN(TensorDims dims)
-
-
Method Detail
-
scalar
public final R scalar()
- Specified by:
scalar
in interfaceTensorSpace<RNVector,Double>
- Specified by:
scalar
in interfaceVectorModule<RNVector,Double>
- Specified by:
scalar
in interfaceVectorSpace<RNVector,Double>
-
dimensions
public final TensorDims dimensions()
- Specified by:
dimensions
in interfaceTensorSpace<RNVector,Double>
-
zero
public RNVector zero()
- Specified by:
zero
in interfaceTensorSpace<RNVector,Double>
- Specified by:
zero
in interfaceVectorModule<RNVector,Double>
- Specified by:
zero
in interfaceVectorSpace<RNVector,Double>
-
of
public RNVector of(double... array)
-
add
public final RNVector add(RNVector u, RNVector v)
- Specified by:
add
in interfaceTensorSpace<RNVector,Double>
- Specified by:
add
in interfaceVectorModule<RNVector,Double>
- Specified by:
add
in interfaceVectorSpace<RNVector,Double>
-
opposite
public final RNVector opposite(RNVector v)
- Specified by:
opposite
in interfaceTensorSpace<RNVector,Double>
- Specified by:
opposite
in interfaceVectorModule<RNVector,Double>
- Specified by:
opposite
in interfaceVectorSpace<RNVector,Double>
-
subtract
public final RNVector subtract(RNVector u, RNVector v)
- Specified by:
subtract
in interfaceTensorSpace<RNVector,Double>
- Specified by:
subtract
in interfaceVectorModule<RNVector,Double>
- Specified by:
subtract
in interfaceVectorSpace<RNVector,Double>
-
multiply
public final RNVector multiply(RNVector u, Double a)
- Specified by:
multiply
in interfaceTensorSpace<RNVector,Double>
- Specified by:
multiply
in interfaceVectorModule<RNVector,Double>
- Specified by:
multiply
in interfaceVectorSpace<RNVector,Double>
-
combine
public final RNVector combine(Double a, RNVector u, Double b, RNVector v)
- Specified by:
combine
in interfaceTensorSpace<RNVector,Double>
- Specified by:
combine
in interfaceVectorModule<RNVector,Double>
- Specified by:
combine
in interfaceVectorSpace<RNVector,Double>
-
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
.
-
space
public static RN space(TensorDims dims)
-
space
public static RN space(int n)
-
-