java.lang.Object
swim.structure.Form<T>
swim.math.TensorForm<T>
swim.math.TensorArrayForm<T,V>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConverts a structurally typediteminto a nominally typed Java object.voidcastTensor(Item item, TensorDims vd, double[] vs, int vi) voidcastTensor(Item item, TensorDims vd, float[] vs, int vi) static <V> TensorArrayForm<V[],V> create(TensorForm<V> next) abstract TfromTensor(TensorDims vd, double[] vs, int vi) fromTensor(TensorDims vd, float[] vs, int vi) Converts a nominally typed Javaobjectinto its structurally typed equivalent.moldTensor(TensorDims vd, double[] vs, int vi) moldTensor(TensorDims vd, float[] vs, int vi) protected Object[]newArray(int length) abstract TensorForm<V>next()tag()Returns the key of the tag attribute that distinguishes structures of thisForm; returnsnullif thisFormhas no distinguishing tag attribute.abstract Object[]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
-
Constructor Details
-
TensorArrayForm
public TensorArrayForm()
-
-
Method Details
-
next
-
fromArray
-
toArray
-
newArray
-
tag
Description copied from class:FormReturns the key of the tag attribute that distinguishes structures of thisForm; returnsnullif thisFormhas no distinguishing tag attribute. Used to accelerate distrcrimination of polymorphic structural types with nominal type hints. -
mold
Description copied from class:FormConverts a nominally typed Javaobjectinto its structurally typed equivalent. The returnedItemmust never benull. -
cast
Description copied from class:FormConverts a structurally typediteminto a nominally typed Java object. The passed-initemis assumed to be non-null. -
fromTensor
- Specified by:
fromTensorin classTensorForm<T>
-
fromTensor
- Specified by:
fromTensorin classTensorForm<T>
-
toTensor
- Specified by:
toTensorin classTensorForm<T>
-
toTensor
- Specified by:
toTensorin classTensorForm<T>
-
moldTensor
- Overrides:
moldTensorin classTensorForm<T>
-
moldTensor
- Overrides:
moldTensorin classTensorForm<T>
-
castTensor
- Overrides:
castTensorin classTensorForm<T>
-
castTensor
- Overrides:
castTensorin classTensorForm<T>
-
create
-