Package org.ojalgo.tensor
Class TensorFactoryAnyD<N extends java.lang.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 java.lang.Comparable<N>,T extends MutateAnyD> extends java.lang.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 Modifier and Type Field Description private FactoryAnyD<T>
myFactory
-
Constructor Summary
Constructors Constructor Description TensorFactoryAnyD(FactoryAnyD<T> factory)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description T
blocks(AccessAnyD<N>... tensors)
Same asTensorFactory2D.blocks(Access2D...)
but for higher/aribitrary rank tensors.T
copy(Access1D<N> elements)
T
copy(Access2D<N> elements)
T
copy(AccessAnyD<N> elements)
boolean
equals(java.lang.Object obj)
FunctionSet<N>
function()
MathType
getMathType()
int
hashCode()
T
make(int... shape)
T
make(long... shape)
static <N extends java.lang.Comparable<N>,T extends MutateAnyD>
TensorFactoryAnyD<N,T>of(FactoryAnyD<T> factory)
T
power(Access1D<N> vector, int exponent)
T
product(Access1D<?>... vectors)
Scalar.Factory<N>
scalar()
T
sum(Access1D<N>... vectors)
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 Detail
-
myFactory
private final FactoryAnyD<T extends MutateAnyD> myFactory
-
-
Constructor Detail
-
TensorFactoryAnyD
TensorFactoryAnyD(FactoryAnyD<T> factory)
-
-
Method Detail
-
of
public static <N extends java.lang.Comparable<N>,T extends MutateAnyD> TensorFactoryAnyD<N,T> of(FactoryAnyD<T> factory)
-
blocks
public T blocks(AccessAnyD<N>... tensors)
Same asTensorFactory2D.blocks(Access2D...)
but for higher/aribitrary rank tensors.
-
copy
public T copy(AccessAnyD<N> elements)
-
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
-
make
public T make(int... shape)
- Specified by:
make
in interfaceFactoryAnyD<N extends java.lang.Comparable<N>>
-
make
public T make(long... shape)
- Specified by:
make
in interfaceFactoryAnyD<N extends java.lang.Comparable<N>>
-
scalar
public Scalar.Factory<N> scalar()
- Specified by:
scalar
in interfaceFactorySupplement
-
sum
public T sum(Access1D<N>... vectors)
Direct sum of vectors. The rank of the returned object will be 1.- See Also:
TensorFactory1D.sum(Access1D...)
-
-