- 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 T
add(T u, T v)
T
combine(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)
T
multiply(T u, S a)
protected Object[]
newArray(int length)
abstract TensorSpace<V,S>
next()
abstract T
of(Object... array)
T
opposite(T v)
T
subtract(T u, T v)
abstract Object[]
toArray(T tensor)
T
zero()
-
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:
zero
in 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)
-
-