pchanial/tamasis-map — Issue #8: ENH: optimise operators which preserve the input
Author: pchanial
Created: 2012-01-13 09:49:38+00:00
State: open

Currently, operators such as ReshapeOperator or SliceOperator preserve their inputs (let's call it 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 those operators.