Skip to main content

matd_scale

Function matd_scale 

Source
pub unsafe extern "C" fn matd_scale(
    a: *const matd_t,
    s: f64,
) -> *mut matd_t
Expand description

Scales all cell values of matrix ‘a’ by the given scale factor ‘s’ and returns the result as a new matrix of the same dimensions. It is the caller’s responsibility to call matd_destroy() on the returned matrix.