Module ojalgo
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 Tblocks(AccessAnyD<N>... tensors)Same asTensorFactory2D.blocks(Access2D...)but for higher/aribitrary rank tensors.Tcopy(Access1D<N> elements)Tcopy(Access2D<N> elements)Tcopy(AccessAnyD<N> elements)booleanequals(java.lang.Object obj)FunctionSet<N>function()MathTypegetMathType()inthashCode()Tmake(int... shape)Tmake(long... shape)static <N extends java.lang.Comparable<N>,T extends MutateAnyD>
TensorFactoryAnyD<N,T>of(FactoryAnyD<T> factory)Tpower(Access1D<N> vector, int exponent)Tproduct(Access1D<?>... vectors)Scalar.Factory<N>scalar()Tsum(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:
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
-
make
public T make(int... shape)
- Specified by:
makein interfaceFactoryAnyD<N extends java.lang.Comparable<N>>
-
make
public T make(long... shape)
- Specified by:
makein interfaceFactoryAnyD<N extends java.lang.Comparable<N>>
-
scalar
public Scalar.Factory<N> scalar()
- Specified by:
scalarin 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...)
-
-