inducer / arraycontext

Choose your favorite numpy-workalike!
6 stars 11 forks source link

Broadcast array arg in binary ops if it's a valid leaf array type #51

Closed kaushikcfd closed 3 years ago

kaushikcfd commented 3 years ago

Closes #49.

alexfikl commented 3 years ago

Is the "not device scalar" case useful?

In the general case, DOFArray will have different groups with different numbers of elements and degrees of freedom, so doing DOFArray + my_cl_array is unlikely to work, right?

kaushikcfd commented 3 years ago

In the general case, DOFArray will have different groups with different numbers of elements and degrees of freedom, so doing DOFArray + my_cl_array is unlikely to work, right?

If the broadcasting for any of the leaf arrays is illegal, we would see an error, which IMO is a reasonable user experience.

inducer commented 3 years ago

Unsubscribing... @-mention or request review once it's ready for a look or needs attention.

inducer commented 3 years ago

Unsubscribing... @-mention or request review once it's ready for a look or needs attention.