Package org.ojalgo.tensor
Class TensorFactory2D<N extends java.lang.Comparable<N>,T extends Mutate2D>
- java.lang.Object
-
- org.ojalgo.tensor.TensorFactory2D<N,T>
-
- All Implemented Interfaces:
Factory2D<T>
,FactorySupplement
public final class TensorFactory2D<N extends java.lang.Comparable<N>,T extends Mutate2D> extends java.lang.Object implements Factory2D<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ojalgo.structure.Factory2D
Factory2D.Builder<I extends Structure2D>, Factory2D.MayBeSparse<I extends Structure2D,DENSE extends Factory2D.Builder<I>,SPARSE extends Factory2D.Builder<I>>, Factory2D.TwoStep<I extends Structure2D,B extends Factory2D.Builder<I>>
-
-
Constructor Summary
Constructors Constructor Description TensorFactory2D(Factory2D<T> factory)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description T
blocks(Access2D<N>... matrices)
Will create a block diagonal tensor using the input matrices as blocks in the supplied order.T
copy(Access2D<N> elements)
boolean
equals(java.lang.Object obj)
FunctionSet<N>
function()
MathType
getMathType()
int
hashCode()
T
identity(int dimensions)
T
kronecker(Access2D<N> matrix1, Access2D<N> matrix2)
The Kronecker matrix product / matrix tensor productT
make(int nbRows, int nbCols)
T
make(long nbRows, long nbCols)
static <N extends java.lang.Comparable<N>,T extends Mutate2D>
TensorFactory2D<N,T>of(Factory2D<T> factory)
T
power2(Access1D<N> vector)
T
product(Access1D<N> vector1, Access1D<N> vector2)
Same asTensorFactoryAnyD.product(Access1D...)
but explicitly for rank 2.Scalar.Factory<N>
scalar()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.ojalgo.structure.Factory2D
asFactory1D, make, make
-
-
-
-
Method Detail
-
of
public static <N extends java.lang.Comparable<N>,T extends Mutate2D> TensorFactory2D<N,T> of(Factory2D<T> factory)
-
blocks
public T blocks(Access2D<N>... matrices)
Will create a block diagonal tensor using the input matrices as blocks in the supplied order.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
function
public FunctionSet<N> function()
- Specified by:
function
in interfaceFactorySupplement
-
getMathType
public MathType getMathType()
- Specified by:
getMathType
in interfaceFactorySupplement
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
identity
public T identity(int dimensions)
-
kronecker
public T kronecker(Access2D<N> matrix1, Access2D<N> matrix2)
The Kronecker matrix product / matrix tensor product
-
make
public T make(int nbRows, int nbCols)
-
make
public T make(long nbRows, long nbCols)
-
product
public T product(Access1D<N> vector1, Access1D<N> vector2)
Same asTensorFactoryAnyD.product(Access1D...)
but explicitly for rank 2.
-
scalar
public Scalar.Factory<N> scalar()
- Specified by:
scalar
in interfaceFactorySupplement
-
-