Module ojalgo
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 Tblocks(Access2D<N>... matrices)Will create a block diagonal tensor using the input matrices as blocks in the supplied order.Tcopy(Access2D<N> elements)booleanequals(java.lang.Object obj)FunctionSet<N>function()MathTypegetMathType()inthashCode()Tidentity(int dimensions)Tkronecker(Access2D<N> matrix1, Access2D<N> matrix2)The Kronecker matrix product / matrix tensor productTmake(int nbRows, int nbCols)Tmake(long nbRows, long nbCols)static <N extends java.lang.Comparable<N>,T extends Mutate2D>
TensorFactory2D<N,T>of(Factory2D<T> factory)Tpower2(Access1D<N> vector)Tproduct(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:
equalsin classjava.lang.Object
-
function
public FunctionSet<N> function()
- Specified by:
functionin interfaceFactorySupplement
-
getMathType
public MathType getMathType()
- Specified by:
getMathTypein interfaceFactorySupplement
-
hashCode
public int hashCode()
- Overrides:
hashCodein 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:
scalarin interfaceFactorySupplement
-
-