Skip to content
Snippets Groups Projects
Commit 086ce7e4 authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Fix of CSR sparse matrix in PyTNL.

parent 5afa6091
No related branches found
No related tags found
1 merge request!89To/matrices adaptive csr
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment