Package org.ojalgo.tensor
Interface Tensor<N extends java.lang.Comparable<N>,T extends Tensor<N,T>>
-
- All Superinterfaces:
Group
,Group.Additive<T>
,NormedVectorSpace<T,N>
,Operation
,Operation.Addition<T>
,ScalarOperation
,ScalarOperation.Multiplication<T,N>
,VectorSpace<T,N>
- All Known Subinterfaces:
Scalar<N>
,SelfDeclaringScalar<S>
- All Known Implementing Classes:
Amount
,AnyTensor
,ArrayBasedTensor
,BigScalar
,ComplexNumber
,ExactDecimal
,MatrixTensor
,Money
,Price
,PrimitiveScalar
,Quadruple
,Quantity
,Quaternion
,RationalNumber
,VectorTensor
public interface Tensor<N extends java.lang.Comparable<N>,T extends Tensor<N,T>> extends NormedVectorSpace<T,N>
An n:th-rank tensor in m-dimensional space is a mathematical object that has n indices and m^n components and obeys certain transformation rules. Tensors are generalizations of scalars (that have no indices), vectors (that have exactly one index), and matrices (that have exactly two indices) to an arbitrary number of indices.If all you want is multi-dimesional arrays this interface and its implementations is NOT what you're looking for. In that case just use
ArrayAnyD
instead.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ojalgo.algebra.Group
Group.Additive<T>, Group.Multiplicative<T>
-
Nested classes/interfaces inherited from interface org.ojalgo.algebra.Operation
Operation.Addition<T>, Operation.Division<T>, Operation.Multiplication<T>, Operation.Subtraction<T>
-
Nested classes/interfaces inherited from interface org.ojalgo.algebra.ScalarOperation
ScalarOperation.Addition<T,N extends java.lang.Comparable<N>>, ScalarOperation.Division<T,N extends java.lang.Comparable<N>>, ScalarOperation.Multiplication<T,N extends java.lang.Comparable<N>>, ScalarOperation.Subtraction<T,N extends java.lang.Comparable<N>>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default long
components()
The total number of scalar componentsint
dimensions()
The range of the indices that identify the scalar components.default boolean
isSameShape(Tensor<?,?> other)
int
rank()
The total number of indices required to uniquely identify each scalar component is called the order, degree or rank of the tensor.-
Methods inherited from interface org.ojalgo.algebra.Group.Additive
negate
-
Methods inherited from interface org.ojalgo.algebra.NormedVectorSpace
isSmall, norm, signum
-
Methods inherited from interface org.ojalgo.algebra.Operation.Addition
add
-
Methods inherited from interface org.ojalgo.algebra.ScalarOperation.Multiplication
multiply, multiply, multiply
-
Methods inherited from interface org.ojalgo.algebra.VectorSpace
conjugate
-
-
-
-
Method Detail
-
components
default long components()
The total number of scalar components
-
dimensions
int dimensions()
The range of the indices that identify the scalar components. Each index of a tensor ranges over the number of dimensions.
-
isSameShape
default boolean isSameShape(Tensor<?,?> other)
-
rank
int rank()
The total number of indices required to uniquely identify each scalar component is called the order, degree or rank of the tensor.
-
-