mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 13:15:12 +00:00
Typo
This commit is contained in:
parent
01fada7674
commit
13c08072dc
@ -124,7 +124,7 @@ TEST_SUBMODULE(eigen, m) {
|
|||||||
// This one accepts a matrix of any stride:
|
// This one accepts a matrix of any stride:
|
||||||
m.def("add_any", [](py::EigenDRef<Eigen::MatrixXd> x, int r, int c, double v) { x(r,c) += v; });
|
m.def("add_any", [](py::EigenDRef<Eigen::MatrixXd> x, int r, int c, double v) { x(r,c) += v; });
|
||||||
|
|
||||||
// Return mutable references (numpy maps into eigen varibles)
|
// Return mutable references (numpy maps into eigen variables)
|
||||||
m.def("get_cm_ref", []() { return Eigen::Ref<Eigen::MatrixXd>(get_cm()); });
|
m.def("get_cm_ref", []() { return Eigen::Ref<Eigen::MatrixXd>(get_cm()); });
|
||||||
m.def("get_rm_ref", []() { return Eigen::Ref<MatrixXdR>(get_rm()); });
|
m.def("get_rm_ref", []() { return Eigen::Ref<MatrixXdR>(get_rm()); });
|
||||||
// The same references, but non-mutable (numpy maps into eigen variables, but is !writeable)
|
// The same references, but non-mutable (numpy maps into eigen variables, but is !writeable)
|
||||||
|
Loading…
Reference in New Issue
Block a user