pchanial/pyoperators — Issue #7: ENH: optimise operators which preserve the input
Author: pchanial
Created: 2012-01-13 10:00:10+00:00
State: open

Currently, operators such as ReshapeOperator or SliceOperator preserve their inputs (let's call such operator PRE).
When composed by an out-of-place operator OUT:

y = (OUT * PRE)(x)

the following operations take place:

tmp = PRE(x)
y = OUT(tmp)

The tmp variable should be optimised out. I suggest a 'preserve_input' decorator to flag these operators.