Function nalgebra_numpy::matrix_to_numpy [−][src]
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>,
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.