libqe 0.2.6-dev.9001
QE C++ library
Loading...
Searching...
No Matches
qe::bind::py Namespace Reference

Typedefs

using NpMat = ::nanobind::ndarray< double, ::nanobind::ndim< 2 >, ::nanobind::c_contig, ::nanobind::device::cpu >
 
using NpVec = ::nanobind::ndarray< double, ::nanobind::ndim< 1 >, ::nanobind::c_contig, ::nanobind::device::cpu >
 
using NpIMat = ::nanobind::ndarray< int32_t, ::nanobind::ndim< 2 >, ::nanobind::c_contig, ::nanobind::device::cpu >
 

Functions

arma::mat to_mat (NpMat arr)
 
arma::rowvec to_rowvec (NpVec arr)
 
arma::vec to_vec (NpVec arr)
 
arma::imat to_imat (NpIMat arr)
 
inline ::nanobind::ndarray<::nanobind::numpy, double, ::nanobind::ndim< 2 > > from_mat (const arma::mat &m)
 
inline ::nanobind::ndarray<::nanobind::numpy, double, ::nanobind::ndim< 1 > > from_rowvec (const arma::rowvec &v)
 
inline ::nanobind::ndarray<::nanobind::numpy, double, ::nanobind::ndim< 1 > > from_vec (const arma::vec &v)
 
inline ::nanobind::ndarray<::nanobind::numpy, int64_t, ::nanobind::ndim< 2 > > from_umat (const arma::umat &m)
 
inline ::nanobind::ndarray<::nanobind::numpy, int64_t, ::nanobind::ndim< 1 > > from_uvec (const arma::uvec &v)
 

Typedef Documentation

◆ NpIMat

using qe::bind::py::NpIMat = typedef ::nanobind::ndarray<int32_t, ::nanobind::ndim<2>, ::nanobind::c_contig, ::nanobind::device::cpu>

◆ NpMat

using qe::bind::py::NpMat = typedef ::nanobind::ndarray<double, ::nanobind::ndim<2>, ::nanobind::c_contig, ::nanobind::device::cpu>

◆ NpVec

using qe::bind::py::NpVec = typedef ::nanobind::ndarray<double, ::nanobind::ndim<1>, ::nanobind::c_contig, ::nanobind::device::cpu>

Function Documentation

◆ from_mat()

inline ::nanobind::ndarray<::nanobind::numpy, double, ::nanobind::ndim< 2 > > qe::bind::py::from_mat ( const arma::mat &  m)

◆ from_rowvec()

inline ::nanobind::ndarray<::nanobind::numpy, double, ::nanobind::ndim< 1 > > qe::bind::py::from_rowvec ( const arma::rowvec &  v)

◆ from_umat()

inline ::nanobind::ndarray<::nanobind::numpy, int64_t, ::nanobind::ndim< 2 > > qe::bind::py::from_umat ( const arma::umat &  m)

◆ from_uvec()

inline ::nanobind::ndarray<::nanobind::numpy, int64_t, ::nanobind::ndim< 1 > > qe::bind::py::from_uvec ( const arma::uvec &  v)

◆ from_vec()

inline ::nanobind::ndarray<::nanobind::numpy, double, ::nanobind::ndim< 1 > > qe::bind::py::from_vec ( const arma::vec &  v)

◆ to_imat()

arma::imat qe::bind::py::to_imat ( NpIMat  arr)
inline

◆ to_mat()

arma::mat qe::bind::py::to_mat ( NpMat  arr)
inline

◆ to_rowvec()

arma::rowvec qe::bind::py::to_rowvec ( NpVec  arr)
inline

◆ to_vec()

arma::vec qe::bind::py::to_vec ( NpVec  arr)
inline