Package org.ojalgo.tensor
Class TensorFactory2D<N extends 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 Comparable<N>,T extends Mutate2D>
extends 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>> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionWill create a block diagonal tensor using the input matrices as blocks in the supplied order.boolean
function()
int
hashCode()
identity
(int dimensions) The Kronecker matrix product / matrix tensor productmake
(int nbRows, int nbCols) make
(long nbRows, long nbCols) static <N extends Comparable<N>,
T extends Mutate2D>
TensorFactory2D<N, T> Same asTensorFactoryAnyD.product(Access1D...)
but explicitly for rank 2.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
-
Field Details
-
myFactory
-
-
Constructor Details
-
TensorFactory2D
-
-
Method Details
-
of
public static <N extends Comparable<N>,T extends Mutate2D> TensorFactory2D<N,T> of(Factory2D<T> factory) -
blocks
Will create a block diagonal tensor using the input matrices as blocks in the supplied order. -
copy
-
equals
-
function
- Specified by:
function
in interfaceFactorySupplement
-
getMathType
- Specified by:
getMathType
in interfaceFactorySupplement
-
hashCode
public int hashCode() -
identity
-
kronecker
The Kronecker matrix product / matrix tensor product -
make
- Specified by:
make
in interfaceFactory2D<N extends Comparable<N>>
-
make
- Specified by:
make
in interfaceFactory2D<N extends Comparable<N>>
-
power2
-
product
Same asTensorFactoryAnyD.product(Access1D...)
but explicitly for rank 2. -
scalar
- Specified by:
scalar
in interfaceFactorySupplement
-