Searched refs:add_cm (Results 1 - 2 of 2) sorted by relevance

/gem5/ext/pybind11/tests/
H A Dtest_eigen.cpp114 auto add_cm = [](Eigen::Ref<Eigen::MatrixXd> x, int r, int c, double v) { x(r,c) += v; }; local
118 m.def("add_cm", add_cm); // Only takes column-contiguous
121 m.def("add1", add_cm);
122 m.def("add2", add_cm);
H A Dtest_eigen.py381 m.add_cm(zc, 1, 0, 200)
393 m.add_cm(zr, 1, 0, 1)
414 m.add_cm(cornersr, 0, 1, 25)
418 m.add_cm(cornersc, 0, 1, 25)

Completed in 7 milliseconds