Searched refs:MatrixXdR (Results 1 – 1 of 1) sorted by relevance
/external/python/pybind11/tests/ |
D | test_eigen.cpp | 21 using MatrixXdR = Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor>; typedef 42 MatrixXdR &get_rm() { in get_rm() 43 static MatrixXdR *x; in get_rm() 45 x = new MatrixXdR(3, 3); in get_rm() 103 … m.def("cholesky1", [](Eigen::Ref<MatrixXdR> x) -> Eigen::MatrixXd { return x.llt().matrixL(); }); in TEST_SUBMODULE() 104 …m.def("cholesky2", [](const Eigen::Ref<const MatrixXdR> &x) -> Eigen::MatrixXd { return x.llt().ma… in TEST_SUBMODULE() 105 …m.def("cholesky3", [](const Eigen::Ref<MatrixXdR> &x) -> Eigen::MatrixXd { return x.llt().matrixL(… in TEST_SUBMODULE() 106 …m.def("cholesky4", [](Eigen::Ref<const MatrixXdR> x) -> Eigen::MatrixXd { return x.llt().matrixL()… in TEST_SUBMODULE() 113 auto add_rm = [](Eigen::Ref<MatrixXdR> x, int r, int c, double v) { x(r,c) += v; }; in TEST_SUBMODULE() 129 m.def("get_rm_ref", []() { return Eigen::Ref<MatrixXdR>(get_rm()); }); in TEST_SUBMODULE() [all …]
|