MCPcopy Create free account
hub / github.com/pybind/pybind11 / get_elem

Function get_elem

tests/test_eigen_matrix.cpp:58–58  ·  view source on GitHub ↗

Returns element 2,1 from a matrix (used to test copy/nocopy)

Source from the content-addressed store, hash-verified

56
57// Returns element 2,1 from a matrix (used to test copy/nocopy)
58double get_elem(const Eigen::Ref<const Eigen::MatrixXd> &m) { return m(2, 1); }
59
60// Returns a matrix with 10*r + 100*c added to each matrix element (to help test that the matrix
61// reference is referencing rows/columns correctly).

Callers 1

TEST_SUBMODULEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected