public static class NumericTypeBinaryMath.Multiply<T extends NumericType<T>> extends AbstractBinaryHybridCFI<T,T> implements Ops.Math.Multiply, Contingent
SpecialOp.FlavorALIASES, NAME| Constructor and Description |
|---|
Multiply() |
| Modifier and Type | Method and Description |
|---|---|
void |
compute(T input1,
T input2,
T output)
Computes the output given two inputs.
|
boolean |
conforms()
True if the contingency holds; i.e., the current circumstances conform to
the contingency's requirements.
|
T |
createOutput(T input1,
T input2)
Create an output object given two inputs.
|
NumericTypeBinaryMath.Multiply<T> |
getIndependentInstance()
Gets a reference to an instance of this object which can be used
simultaneously from a second thread while this instance is being used from
"its" thread.
|
void |
mutate1(T arg,
T in)
Mutates the first argument in-place.
|
void |
mutate2(T in,
T arg)
Mutates the second argument in-place.
|
in1, in2, out, setInput1, setInput2, setOutputops, setEnvironmentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitops, setEnvironmentrun, runmutatecalculate, calculate, createOutputrun, runcalculate, createOutputcomputecomputesetOutputin, in1in2, setInput, setInput1, setInput2candidates, filterArity, opinitializepublic boolean conforms()
Contingentconforms in interface Contingentpublic void compute(T input1, T input2, T output)
BinaryComputerOpcompute in interface BinaryComputerOp<T extends NumericType<T>,T extends NumericType<T>,T extends NumericType<T>>input1 - first argument to the computation, which
must be non-nullinput2 - second argument to the computation, which
must be non-nulloutput - object where the computation's result will be stored, which
must be non-null and a different object than
input1 and input2public T createOutput(T input1, T input2)
BinaryOutputFactorycreateOutput in interface BinaryOutputFactory<T extends NumericType<T>,T extends NumericType<T>,T extends NumericType<T>>input1 - first input which determines how to create the outputinput2 - second input which determines how to create the outputpublic void mutate1(T arg, T in)
BinaryInplace1Opmutate1 in interface BinaryInplace1Op<T extends NumericType<T>,T extends NumericType<T>,T extends NumericType<T>>arg - First argument of the BinaryInplace1Op, which
will be mutated.in - Second argument of the BinaryInplace1Op, which will
not be mutated.public void mutate2(T in, T arg)
BinaryInplaceOpmutate2 in interface BinaryInplaceOp<T extends NumericType<T>,T extends NumericType<T>>in - First argument of the BinaryInplaceOp, which will
not be mutated.arg - Second argument of the BinaryInplaceOp, which
will be mutated.public NumericTypeBinaryMath.Multiply<T> getIndependentInstance()
ThreadableIt is expected that subclasses which override this method will narrow the return type appropriately. We do not enforce this at compile time via recursive generics due to their complexity: they introduce a host of typing difficulties.
getIndependentInstance in interface BinaryOp<T extends NumericType<T>,T extends NumericType<T>,T extends NumericType<T>>getIndependentInstance in interface BinaryComputerOp<T extends NumericType<T>,T extends NumericType<T>,T extends NumericType<T>>getIndependentInstance in interface NullaryComputerOp<T extends NumericType<T>>getIndependentInstance in interface UnaryComputerOp<T extends NumericType<T>,T extends NumericType<T>>getIndependentInstance in interface BinaryFunctionOp<T extends NumericType<T>,T extends NumericType<T>,T extends NumericType<T>>getIndependentInstance in interface NullaryFunctionOp<T extends NumericType<T>>getIndependentInstance in interface UnaryFunctionOp<T extends NumericType<T>,T extends NumericType<T>>getIndependentInstance in interface BinaryHybridCF<T extends NumericType<T>,T extends NumericType<T>,T extends NumericType<T>>getIndependentInstance in interface BinaryHybridCFI<T extends NumericType<T>,T extends NumericType<T>>getIndependentInstance in interface BinaryHybridCFI1<T extends NumericType<T>,T extends NumericType<T>,T extends NumericType<T>>getIndependentInstance in interface BinaryHybridCI<T extends NumericType<T>,T extends NumericType<T>>getIndependentInstance in interface BinaryHybridCI1<T extends NumericType<T>,T extends NumericType<T>,T extends NumericType<T>>getIndependentInstance in interface NullaryHybridCF<T extends NumericType<T>>getIndependentInstance in interface UnaryHybridCF<T extends NumericType<T>,T extends NumericType<T>>getIndependentInstance in interface UnaryHybridCFI<T extends NumericType<T>,T extends NumericType<T>>getIndependentInstance in interface UnaryHybridCI<T extends NumericType<T>,T extends NumericType<T>>getIndependentInstance in interface BinaryInplace1Op<T extends NumericType<T>,T extends NumericType<T>,T extends NumericType<T>>getIndependentInstance in interface BinaryInplaceOp<T extends NumericType<T>,T extends NumericType<T>>getIndependentInstance in interface UnaryInplaceOp<T extends NumericType<T>,T extends NumericType<T>>getIndependentInstance in interface NullaryOp<T extends NumericType<T>>getIndependentInstance in interface SpecialOpgetIndependentInstance in interface UnaryOp<T extends NumericType<T>,T extends NumericType<T>>getIndependentInstance in interface ThreadableCopyright © 2014–2022 ImageJ. All rights reserved.