GCC Code Coverage Report


Directory: ./
File: include/eigenpy/eigen/EigenBase.hpp
Date: 2025-06-03 01:09:21
Exec Total Coverage
Lines: 5 5 100.0%
Functions: 5 5 100.0%
Branches: 6 12 50.0%

Line Branch Exec Source
1 /*
2 * Copyright 2024 INRIA
3 */
4
5 #ifndef __eigenpy_eigen_eigen_base_hpp__
6 #define __eigenpy_eigen_eigen_base_hpp__
7
8 #include "eigenpy/eigenpy.hpp"
9
10 namespace eigenpy {
11
12 template <typename Derived>
13 struct EigenBaseVisitor
14 : public boost::python::def_visitor<EigenBaseVisitor<Derived>> {
15 template <class PyClass>
16 60 void visit(PyClass &cl) const {
17
1/2
✓ Branch 1 taken 60 times.
✗ Branch 2 not taken.
60 cl.def("cols", &Derived::cols, bp::arg("self"),
18 "Returns the number of columns.")
19
2/4
✓ Branch 1 taken 60 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 60 times.
✗ Branch 5 not taken.
120 .def("rows", &Derived::rows, bp::arg("self"),
20 "Returns the number of rows.")
21
3/6
✓ Branch 1 taken 60 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 60 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 60 times.
✗ Branch 8 not taken.
60 .def("size", &Derived::rows, bp::arg("self"),
22 "Returns the number of coefficients, which is rows()*cols().");
23 60 }
24 };
25
26 } // namespace eigenpy
27
28 #endif // ifndef __eigenpy_eigen_eigen_base_hpp__
29