- java.lang.Object
-
- swim.structure.Form<T>
-
- swim.math.TensorForm<T>
-
- Direct Known Subclasses:
TensorArrayForm
public abstract class TensorForm<T> extends Form<T>
-
-
Constructor Summary
Constructors Constructor Description TensorForm()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
castTensor(Item item, TensorDims dims, double[] tensor, int offset)
void
castTensor(Item item, TensorDims dims, float[] tensor, int offset)
abstract T
fromTensor(TensorDims dims, double[] tensor, int offset)
abstract T
fromTensor(TensorDims dims, float[] tensor, int offset)
Item
moldTensor(TensorDims dims, double[] tensor, int offset)
Item
moldTensor(TensorDims dims, float[] tensor, int offset)
abstract void
toTensor(T object, TensorDims dims, double[] tensor, int offset)
abstract void
toTensor(T object, TensorDims dims, float[] tensor, int offset)
-
Methods inherited from class swim.structure.Form
cast, cast, forArray, forBigInteger, forBoolean, forBuiltin, forByte, forByteBuffer, forCharacter, forClass, forClass, forCollection, forDouble, forFloat, forInteger, forItem, forList, forLong, forMap, forMap, forNumber, forSet, forShort, forString, forValue, isBuiltin, mold, mold, tag, tag, type, unit, unit
-
-
-
-
Method Detail
-
fromTensor
public abstract T fromTensor(TensorDims dims, float[] tensor, int offset)
-
fromTensor
public abstract T fromTensor(TensorDims dims, double[] tensor, int offset)
-
toTensor
public abstract void toTensor(T object, TensorDims dims, float[] tensor, int offset)
-
toTensor
public abstract void toTensor(T object, TensorDims dims, double[] tensor, int offset)
-
moldTensor
public Item moldTensor(TensorDims dims, float[] tensor, int offset)
-
moldTensor
public Item moldTensor(TensorDims dims, double[] tensor, int offset)
-
castTensor
public void castTensor(Item item, TensorDims dims, float[] tensor, int offset)
-
castTensor
public void castTensor(Item item, TensorDims dims, double[] tensor, int offset)
-
-