|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.nabla.algorithmic.forward.arithmetic.DSubTransformer1
public class DSubTransformer1
Differentiation transformer for DSUB instructions.
This transformer is used when only the first argument of DSUB is an expanded differential pair. It implements the classical differentiation rules for subtraction.
DSubTransformer12
,
DSubTransformer2
Method Summary | |
---|---|
static InstructionsTransformer |
getInstance()
Get the singleton instance. |
org.objectweb.asm.tree.InsnList |
getReplacement(org.objectweb.asm.tree.AbstractInsnNode insn,
MethodDifferentiator methodDifferentiator)
Get the replacement instructions. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static InstructionsTransformer getInstance()
We use here the Initialization on Demand Holder idiom.
public org.objectweb.asm.tree.InsnList getReplacement(org.objectweb.asm.tree.AbstractInsnNode insn, MethodDifferentiator methodDifferentiator) throws DifferentiationException
getReplacement
in interface InstructionsTransformer
insn
- original instructionmethodDifferentiator
- method differentiator driving this transformer
DifferentiationException
- if the method differentiator cannot provide
a temporary variable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |