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

/gem5/ext/pybind11/tests/
H A Dtest_eigen.cpp57 double get_elem(Eigen::Ref<const Eigen::MatrixXd> m) { return m(2, 1); }; function
281 m.def("get_elem", &get_elem);
283 m.def("get_elem_nocopy", [](Eigen::Ref<const Eigen::MatrixXd> m) -> double { return get_elem(m); },
H A Dtest_eigen.py532 # get_elem requires a column-contiguous matrix reference, but should be
539 # All should be callable via get_elem:
540 assert m.get_elem(int_matrix_colmajor) == 8
541 assert m.get_elem(dbl_matrix_colmajor) == 8
542 assert m.get_elem(int_matrix_rowmajor) == 8
543 assert m.get_elem(dbl_matrix_rowmajor) == 8

Completed in 4 milliseconds