Package hydra.lib.math
Class Mul
- java.lang.Object
-
- hydra.tools.PrimitiveFunction
-
- hydra.lib.math.Mul
-
public class Mul extends PrimitiveFunction
-
-
Constructor Summary
Constructors Constructor Description Mul()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.function.Function<java.lang.Integer,java.lang.Integer>
apply(java.lang.Integer multiplier)
static java.lang.Integer
apply(java.lang.Integer multiplier, java.lang.Integer multiplicand)
protected java.util.function.Function<java.util.List<Term>,Flow<Graph,Term>>
implementation()
A dynamic/interpreted implementation of the functionName
name()
The unique name of the primitive functionTypeScheme
type()
The datatype of the primitive function-
Methods inherited from class hydra.tools.PrimitiveFunction
term, toNative
-
-
-
-
Method Detail
-
name
public Name name()
Description copied from class:PrimitiveFunction
The unique name of the primitive function- Specified by:
name
in classPrimitiveFunction
-
type
public TypeScheme type()
Description copied from class:PrimitiveFunction
The datatype of the primitive function- Specified by:
type
in classPrimitiveFunction
-
implementation
protected java.util.function.Function<java.util.List<Term>,Flow<Graph,Term>> implementation()
Description copied from class:PrimitiveFunction
A dynamic/interpreted implementation of the function- Specified by:
implementation
in classPrimitiveFunction
-
apply
public static java.util.function.Function<java.lang.Integer,java.lang.Integer> apply(java.lang.Integer multiplier)
-
apply
public static java.lang.Integer apply(java.lang.Integer multiplier, java.lang.Integer multiplicand)
-
-