Package org.tensorics.core.tensor.lang
Class TensorExpressionSupport<V>
- java.lang.Object
-
- org.tensorics.core.scalar.lang.ScalarExpressionSupport<V>
-
- org.tensorics.core.iterable.lang.ScalarIterableExpressionSupport<V>
-
- org.tensorics.core.tensor.lang.TensorExpressionSupport<V>
-
- Type Parameters:
V
- the type of the elements of the tensor(ic)
public class TensorExpressionSupport<V> extends ScalarIterableExpressionSupport<V>
Extends the usage of fields by operations defined on tensors
-
-
Constructor Summary
Constructors Constructor Description TensorExpressionSupport(Environment<V> environment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OngoingDeferredTensorOperation<V>
calculateT(Expression<Tensor<V>> tensoric)
Allows to perform calculation on given tensoric.Expression<Tensor<V>>
elementInverseOf(Expression<Tensor<V>> tensor)
Expression<Tensor<V>>
elementNegativeOf(Expression<Tensor<V>> tensor)
Expression<Tensor<V>>
ones(Shape shape)
Expression<Tensor<V>>
zeros(Shape shape)
-
Methods inherited from class org.tensorics.core.iterable.lang.ScalarIterableExpressionSupport
averageOf, averageOf, rmsOf, rmsOf, sizeOf, sizeOf, stdOf, stdOf, sumOf, sumOf, sumOfSquaresOf, sumOfSquaresOf, testIfIt
-
Methods inherited from class org.tensorics.core.scalar.lang.ScalarExpressionSupport
calculate, calculate, field, inverseOf, inverseOf, negativeOf, negativeOf, one, squareOf, squareOf, squareRootOf, squareRootOf, testIf, two, zero
-
-
-
-
Constructor Detail
-
TensorExpressionSupport
public TensorExpressionSupport(Environment<V> environment)
-
-
Method Detail
-
calculateT
public final OngoingDeferredTensorOperation<V> calculateT(Expression<Tensor<V>> tensoric)
Allows to perform calculation on given tensoric.- Parameters:
tensoric
- to calculate with.- Returns:
- expression to calculate.
-
zeros
public final Expression<Tensor<V>> zeros(Shape shape)
-
ones
public final Expression<Tensor<V>> ones(Shape shape)
-
elementInverseOf
public final Expression<Tensor<V>> elementInverseOf(Expression<Tensor<V>> tensor)
- Parameters:
tensor
- to use.- Returns:
- a
Tensor
with field inverse values
-
elementNegativeOf
public final Expression<Tensor<V>> elementNegativeOf(Expression<Tensor<V>> tensor)
- Parameters:
tensor
- to use- Returns:
- a
Tensor
of negative values
-
-