129130131132133134135136137138
@Override public Tensor transform(Tensor tensor) { if (tensor instanceof Expression) { Expression e = (Expression) tensor; return new Expression(transform(e.left()), e.right()); } return transform(tensor, createIndexGenerator(tensor), indices); } }