src/python_access/numpy_array.rs

changeset 4
49b062acace9
parent 3
c3a4f4bb87f7
equal deleted inserted replaced
3:c3a4f4bb87f7 4:49b062acace9
3 */ 3 */
4 4
5 use alg_tools::euclidean::wrap::{WrapGuard, WrapGuardMut, Wrapped}; 5 use alg_tools::euclidean::wrap::{WrapGuard, WrapGuardMut, Wrapped};
6 use alg_tools::types::Float; 6 use alg_tools::types::Float;
7 use nalgebra::{DMatrix, DMatrixView, DMatrixViewMut, Dyn}; 7 use nalgebra::{DMatrix, DMatrixView, DMatrixViewMut, Dyn};
8 use ndarray::{Dimension, Ix1, Ix2}; 8 use numpy::ndarray::{Dimension, Ix1, Ix2};
9 use numpy::{PyArray, PyArrayMethods, PyReadonlyArray, PyReadwriteArray, ToPyArray}; 9 use numpy::{PyArray, PyArrayMethods, PyReadonlyArray, PyReadwriteArray, ToPyArray};
10 use pyo3::prelude::*; 10 use pyo3::prelude::*;
11 11
12 /// A helper structure of dealing with dolfinx functions. 12 /// A helper structure of dealing with dolfinx functions.
13 /// `N` is the domain dimension, `O` the order, and `D` is the codomain dimension. 13 /// `N` is the domain dimension, `O` the order, and `D` is the codomain dimension.

mercurial