- java.lang.Object
-
- swim.structure.Form<T>
-
- swim.math.TensorForm<T>
-
- swim.math.TensorArrayForm<T,V>
-
public abstract class TensorArrayForm<T,V> extends TensorForm<T>
-
-
Constructor Summary
Constructors Constructor Description TensorArrayForm()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Tcast(swim.structure.Item item)voidcastTensor(swim.structure.Item item, TensorDims vd, double[] vs, int vi)voidcastTensor(swim.structure.Item item, TensorDims vd, float[] vs, int vi)static <V> TensorArrayForm<V[],V>from(TensorForm<V> next)abstract TfromArray(Object... array)TfromTensor(TensorDims vd, double[] vs, int vi)TfromTensor(TensorDims vd, float[] vs, int vi)swim.structure.Itemmold(T tensor)swim.structure.ItemmoldTensor(TensorDims vd, double[] vs, int vi)swim.structure.ItemmoldTensor(TensorDims vd, float[] vs, int vi)protected Object[]newArray(int length)abstract TensorForm<V>next()Stringtag()abstract Object[]toArray(T tensor)voidtoTensor(T u, TensorDims vd, double[] vs, int vi)voidtoTensor(T u, TensorDims vd, float[] vs, int vi)-
Methods inherited from class swim.structure.Form
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, tag, type, unit, unit
-
-
-
-
Method Detail
-
next
public abstract TensorForm<V> next()
-
newArray
protected Object[] newArray(int length)
-
fromTensor
public T fromTensor(TensorDims vd, float[] vs, int vi)
- Specified by:
fromTensorin classTensorForm<T>
-
fromTensor
public T fromTensor(TensorDims vd, double[] vs, int vi)
- Specified by:
fromTensorin classTensorForm<T>
-
toTensor
public void toTensor(T u, TensorDims vd, float[] vs, int vi)
- Specified by:
toTensorin classTensorForm<T>
-
toTensor
public void toTensor(T u, TensorDims vd, double[] vs, int vi)
- Specified by:
toTensorin classTensorForm<T>
-
moldTensor
public swim.structure.Item moldTensor(TensorDims vd, float[] vs, int vi)
- Overrides:
moldTensorin classTensorForm<T>
-
moldTensor
public swim.structure.Item moldTensor(TensorDims vd, double[] vs, int vi)
- Overrides:
moldTensorin classTensorForm<T>
-
castTensor
public void castTensor(swim.structure.Item item, TensorDims vd, float[] vs, int vi)- Overrides:
castTensorin classTensorForm<T>
-
castTensor
public void castTensor(swim.structure.Item item, TensorDims vd, double[] vs, int vi)- Overrides:
castTensorin classTensorForm<T>
-
from
public static <V> TensorArrayForm<V[],V> from(TensorForm<V> next)
-
-