intel / pyMIC

BSD 3-Clause "New" or "Revised" License
58 stars 16 forks source link

OffloadArray: add ndim property and refactor operands condition check #17

Closed SuperBo closed 7 years ago

SuperBo commented 7 years ago

I create two functions _check_arrays and _check_scalar to generalize the condition check using in methods such as add, sub, pow, etc.

I also add ndim property support to OffloadArray.

mjklemm commented 7 years ago

Thanks for pull request. Merged.