pub unsafe extern "C" fn matd_create_scalar(v: f64) -> *mut matd_t
Expand description

Creates a scalar with the supplied value ‘v’. It is the caller’s responsibility to call matd_destroy() on the returned matrix.

NOTE: Scalars are different than 1x1 matrices (implementation note: they are encoded as 0x0 matrices). For example: for matrices A*B, A and B must both have specific dimensions. However, if A is a scalar, there are no restrictions on the size of B.