Function new_matrix_from_ptr
Source pub unsafe fn new_matrix_from_ptr(
a: *const f64,
n: u32,
m: u32,
) -> UniquePtr<MatrixF64>
Expand description
Creates a new n x m MatrixF64 from a pointer to a row-major array and its shape.
Note that it copies the data.
ยงSafety
This is unsafe due to the use of a raw pointer.