File tree 1 file changed +5
-5
lines changed
bindings/python/include/aligator/python
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -5,12 +5,12 @@ namespace aligator {
5
5
namespace python {
6
6
namespace bp = boost::python;
7
7
8
- template <typename BlockMatrixType>
9
- struct BlkMatrixPythonVisitor
10
- : bp::def_visitor<BlkMatrixPythonVisitor<BlockMatrixType>> {
8
+ template <typename BlockMatrixType> struct BlkMatrixPythonVisitor ;
11
9
12
- enum { N = BlockMatrixType::N, M = BlockMatrixType::M };
13
- using MatrixType = typename BlockMatrixType::MatrixType;
10
+ template <typename MatrixType, int N, int M>
11
+ struct BlkMatrixPythonVisitor <BlkMatrix<MatrixType, N, M>>
12
+ : bp::def_visitor<BlkMatrixPythonVisitor<BlkMatrix<MatrixType, N, M>>> {
13
+ using BlockMatrixType = BlkMatrix<MatrixType, N, M>;
14
14
using RefType = Eigen::Ref<MatrixType>;
15
15
16
16
using Self = BlkMatrixPythonVisitor<BlockMatrixType>;
You can’t perform that action at this time.
0 commit comments