From 086ce7e4ab92f5795e000a6e86f80660d3e9bccc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Oberhuber?= <oberhuber.tomas@gmail.com> Date: Sat, 30 Jan 2021 17:01:59 +0100 Subject: [PATCH] Fix of CSR sparse matrix in PyTNL. --- src/Python/pytnl/tnl/SparseMatrix.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Python/pytnl/tnl/SparseMatrix.h b/src/Python/pytnl/tnl/SparseMatrix.h index aac41bb842..068c69ca83 100644 --- a/src/Python/pytnl/tnl/SparseMatrix.h +++ b/src/Python/pytnl/tnl/SparseMatrix.h @@ -5,7 +5,7 @@ namespace py = pybind11; #include <TNL/String.h> #include <TNL/Containers/Vector.h> -#include <TNL/Matrices/Legacy/CSR.h> +#include <Benchmarks/SpMV/ReferenceFormats/Legacy/CSR.h> template< typename Matrix > struct SpecificExports @@ -20,7 +20,7 @@ struct SpecificExports< TNL::Matrices::Legacy::CSR< Real, Device, Index > > template< typename Scope > static void exec( Scope & s ) { - using Matrix = TNL::Matrices::Legacy::CSR< Real, Device, Index >; + using Matrix = TNL::Benchmarks::SpMV::ReferenceFormats::Legacy::CSR< Real, Device, Index >; s.def("getRowPointers", py::overload_cast<>(&Matrix::getRowPointers), py::return_value_policy::reference_internal); s.def("getColumnIndexes", py::overload_cast<>(&Matrix::getColumnIndexes), py::return_value_policy::reference_internal); -- GitLab