Checked multiplication of `ScalarValue` NB: operating on `ScalarValue` directly is not efficient, performance sensitive code should operate on Arrays directly, using vectorized array kernels.
(&self, other: T)
| 2456 | /// NB: operating on `ScalarValue` directly is not efficient, performance sensitive code |
| 2457 | /// should operate on Arrays directly, using vectorized array kernels. |
| 2458 | pub fn mul_checked<T: Borrow<ScalarValue>>(&self, other: T) -> Result<ScalarValue> { |
| 2459 | let r = mul(&self.to_scalar()?, &other.borrow().to_scalar()?)?; |
| 2460 | Self::try_from_array(r.as_ref(), 0) |
| 2461 | } |
| 2462 | |
| 2463 | /// Performs `lhs / rhs` |
| 2464 | /// |
no test coverage detected