Function matrix_to_numpy

Source
pub fn matrix_to_numpy<'py, N, R, C, S>(
    py: Python<'py>,
    matrix: &Matrix<N, R, C, S>,
) -> PyObject
where N: Scalar + Element, R: Dim, C: Dim, S: Storage<N, R, C>,
Expand description

Copy a nalgebra matrix to a numpy ndarray.

This does not create a view of the nalgebra matrix. As such, the matrix can be dropped without problem.