- java.lang.Object
-
- swim.math.TensorArraySpace<T,V,S>
-
- All Implemented Interfaces:
TensorSpace<T,S>
public abstract class TensorArraySpace<T,V,S> extends Object implements TensorSpace<T,S>
-
-
Constructor Summary
Constructors Constructor Description TensorArraySpace()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Tadd(T u, T v)Tcombine(S a, T u, S b, T v)static <V,S>
TensorArraySpace<V[],V,S>create(Class<V> type, TensorSpace<V,S> next, int n)static <V,S>
TensorArraySpace<V[],V,S>create(Class<V> type, TensorSpace<V,S> next, TensorDims dims)TensorForm<T>form(TensorForm<V> next)Tmultiply(T u, S a)protected Object[]newArray(int length)abstract TensorSpace<V,S>next()abstract Tof(Object... array)Topposite(T v)Tsubtract(T u, T v)abstract Object[]toArray(T tensor)Tzero()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface swim.math.TensorSpace
dimensions, scalar
-
-
-
-
Method Detail
-
next
public abstract TensorSpace<V,S> next()
-
form
public TensorForm<T> form(TensorForm<V> next)
-
newArray
protected Object[] newArray(int length)
-
zero
public T zero()
- Specified by:
zeroin interfaceTensorSpace<T,V>
-
create
public static <V,S> TensorArraySpace<V[],V,S> create(Class<V> type, TensorSpace<V,S> next, TensorDims dims)
-
create
public static <V,S> TensorArraySpace<V[],V,S> create(Class<V> type, TensorSpace<V,S> next, int n)
-
-