Package org.ojalgo.tensor
Class TensorFactoryAnyD<N extends Comparable<N>,T extends MutateAnyD>
java.lang.Object
org.ojalgo.tensor.TensorFactoryAnyD<N,T>
- All Implemented Interfaces:
FactoryAnyD<T>
,FactorySupplement
public final class TensorFactoryAnyD<N extends Comparable<N>,T extends MutateAnyD>
extends Object
implements FactoryAnyD<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ojalgo.structure.FactoryAnyD
FactoryAnyD.Builder<I extends StructureAnyD>, FactoryAnyD.MayBeSparse<I extends StructureAnyD,
DENSE extends FactoryAnyD.Builder<I>, SPARSE extends FactoryAnyD.Builder<I>>, FactoryAnyD.TwoStep<I extends StructureAnyD, B extends FactoryAnyD.Builder<I>> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblocks
(AccessAnyD<N>... tensors) Same asTensorFactory2D.blocks(Access2D...)
but for higher/aribitrary rank tensors.copy
(AccessAnyD<N> elements) boolean
function()
int
hashCode()
make
(int... shape) make
(long... shape) static <N extends Comparable<N>,
T extends MutateAnyD>
TensorFactoryAnyD<N, T> of
(FactoryAnyD<T> factory) scalar()
Direct sum of vectors.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ojalgo.structure.FactoryAnyD
asFactory1D, make, make
-
Field Details
-
myFactory
-
-
Constructor Details
-
TensorFactoryAnyD
TensorFactoryAnyD(FactoryAnyD<T> factory)
-
-
Method Details
-
of
public static <N extends Comparable<N>,T extends MutateAnyD> TensorFactoryAnyD<N,T> of(FactoryAnyD<T> factory) -
blocks
Same asTensorFactory2D.blocks(Access2D...)
but for higher/aribitrary rank tensors. -
copy
-
copy
-
copy
-
equals
-
function
- Specified by:
function
in interfaceFactorySupplement
-
getMathType
- Specified by:
getMathType
in interfaceFactorySupplement
-
hashCode
public int hashCode() -
make
- Specified by:
make
in interfaceFactoryAnyD<N extends Comparable<N>>
-
make
- Specified by:
make
in interfaceFactoryAnyD<N extends Comparable<N>>
-
power
-
product
-
scalar
- Specified by:
scalar
in interfaceFactorySupplement
-
sum
Direct sum of vectors. The rank of the returned object will be 1.- See Also:
-