pub fn sinh_into<T: Float, D: Dimension>(
data: ArrayView<'_, T, D>,
out: ArrayViewMut<'_, T, D>,
linear_width: T,
) -> Result<(), AsinhCodecError>
Expand description
Compute $w \cdot \text{sinh}\left( \frac{x}{w} \right)$
over the
elements of the input data
array and write them into the out
put array.
§Errors
Errors with
AsinhCodecError::NonFiniteData
if any data element is non-finite (infinite or NaN)AsinhCodecError::MismatchedDecodeIntoArray
if thedata
array’s shape does not match theout
put array’s shape