holoviz-topics / imagen

ImaGen: Generic Python library for 0D, 1D and 2D pattern distributions
https://imagen.holoviz.org/
BSD 3-Clause "New" or "Revised" License
31 stars 16 forks source link

PatternGenerator objects should support the usual arithmetic operators #40

Closed jbednar closed 9 years ago

jbednar commented 9 years ago

I.e., g1+g2*g3-g4 should work, where g1-g4 are PatternGenerators. See numbergen for examples; each of these maps directly onto a Composite with a different numpy ufunc. Should be very easy to implement.

jbednar commented 9 years ago

Done in v2.0.