Algebra.Tensor
type dimensions = int list
Dimensions of the tensor.
type t = {
src : dimensions;
tgt : dimensions;
f : Linear.t;
}
val within : dimensions -> int list -> bool
Ensure that point x is below the dimension.
val offset : dimensions -> int list -> int
Offset of a coordinate.
val get : t -> int list -> int list -> float
Retrieve an element.