Package org.tensorics.core.scalar.lang
Class ScalarExpressionSupport<V>
- java.lang.Object
-
- org.tensorics.core.scalar.lang.ScalarExpressionSupport<V>
-
- Type Parameters:
V
- the type of the scalar values (elements of the field on which all the operations are based on)
- Direct Known Subclasses:
ScalarIterableExpressionSupport
public class ScalarExpressionSupport<V> extends java.lang.Object
Provides starting methods for tensoric eDSL expressions, which create expressions of scalars.
-
-
Constructor Summary
Constructors Constructor Description ScalarExpressionSupport(ExtendedField<V> field)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OngoingDeferredBinaryOperation<V>
calculate(Expression<V> left)
OngoingDeferredBinaryOperation<V>
calculate(V left)
protected ExtendedField<V>
field()
Expression<V>
inverseOf(Expression<V> element)
Expression<V>
inverseOf(V element)
Expression<V>
negativeOf(Expression<V> element)
Expression<V>
negativeOf(V element)
V
one()
Expression<V>
squareOf(Expression<V> value)
Expression<V>
squareOf(V value)
Expression<V>
squareRootOf(Expression<V> value)
Expression<V>
squareRootOf(V value)
OngoingDeferredBinaryPredicate<V>
testIf(Expression<V> expression)
V
two()
V
zero()
-
-
-
Constructor Detail
-
ScalarExpressionSupport
public ScalarExpressionSupport(ExtendedField<V> field)
-
-
Method Detail
-
negativeOf
public final Expression<V> negativeOf(V element)
-
negativeOf
public final Expression<V> negativeOf(Expression<V> element)
-
inverseOf
public final Expression<V> inverseOf(V element)
-
inverseOf
public final Expression<V> inverseOf(Expression<V> element)
-
field
protected ExtendedField<V> field()
-
zero
public final V zero()
-
two
public final V two()
-
one
public final V one()
-
squareRootOf
public Expression<V> squareRootOf(V value)
-
squareRootOf
public Expression<V> squareRootOf(Expression<V> value)
-
squareOf
public Expression<V> squareOf(V value)
-
squareOf
public Expression<V> squareOf(Expression<V> value)
-
calculate
public OngoingDeferredBinaryOperation<V> calculate(V left)
-
calculate
public OngoingDeferredBinaryOperation<V> calculate(Expression<V> left)
-
testIf
public OngoingDeferredBinaryPredicate<V> testIf(Expression<V> expression)
-
-