pub fn transpose(f: &Function, linear: &[bool]) -> Result<Function>Expand description
Transposes f, which must be linear in the inputs marked linear.
The result takes the other inputs of f, then a cotangent for each
output, and returns the cotangents of the linear inputs (zeros where they
do not depend on the outputs).
ยงErrors
Returns an error if an equation that the linear inputs reach has no transpose rule (it is not linear).