inaos / iron-array

2 stars 0 forks source link

Support reductions in expressions #554

Closed FrancescAlted closed 2 years ago

FrancescAlted commented 2 years ago

We want to support reductions inside expression. E.g.:

mean(a, axis=1) * b + 1 

This would require to precompute the reduction prior to evaluate the expression.

Also, we could accept complex expressions like:

mean(a * c - 2, axis=1) * b + 1 

But that would require more work, and probably a view made of sub-expressions.

FrancescAlted commented 2 years ago

Fixed in https://github.com/inaos/iron-array-python/pull/172