paupino / rust-decimal

Decimal number implementation written in pure Rust suitable for financial and fixed-precision calculations.
https://docs.rs/rust_decimal/
MIT License
1.02k stars 183 forks source link

Enable support for scalar operations on ndarray #577

Closed lmsxyz closed 1 year ago

lmsxyz commented 1 year ago

Problem

I am currently using ndarray with rust-decimal, but some operations requires the underlying structure to implement ScalarOperation marker.

This PR

Enable such implementation under ndarray feature.

paupino commented 1 year ago

Just FYI (no pressure!): I'll look at releasing a new version of Rust Decimal later this week. If we can get a test wrapped up by then then I'll make sure this feature is included.