Skip to content
Snippets Groups Projects
Commit 26c33ed6 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Cleaned up typedefs in CSR matrix

parent b5e48837
No related branches found
No related tags found
No related merge requests found
......@@ -47,18 +47,13 @@ public:
using RealType = Real;
using DeviceType = Device;
using IndexType = Index;
typedef typename Sparse< RealType, DeviceType, IndexType >:: CompressedRowLengthsVector CompressedRowLengthsVector;
typedef typename Sparse< RealType, DeviceType, IndexType >::CompressedRowLengthsVector CompressedRowLengthsVector;
typedef typename Sparse< RealType, DeviceType, IndexType >::ConstCompressedRowLengthsVectorView ConstCompressedRowLengthsVectorView;
typedef CSR< Real, Devices::Host, Index > HostType;
typedef CSR< Real, Devices::Cuda, Index > CudaType;
typedef Sparse< Real, Device, Index > BaseType;
//typedef typename BaseType::MatrixRow MatrixRow;
using MatrixRow = typename BaseType::MatrixRow;
using ConstMatrixRow = typename BaseType::ConstMatrixRow;
//using typename BaseType::ConstMatrixRow;
//typedef SparseRow< const RealType, const IndexType > ConstMatrixRow;
enum SPMVCudaKernel { scalar, vector, hybrid };
......
......@@ -32,7 +32,7 @@ public:
typedef Index IndexType;
typedef Containers::Vector< IndexType, DeviceType, IndexType > CompressedRowLengthsVector;
typedef Containers::VectorView< IndexType, DeviceType, IndexType > CompressedRowLengthsVectorView;
typedef Containers::VectorView< const IndexType, DeviceType, IndexType > ConstCompressedRowLengthsVectorView;
typedef typename CompressedRowLengthsVectorView::ConstViewType ConstCompressedRowLengthsVectorView;
typedef Containers::Vector< RealType, DeviceType, IndexType > ValuesVector;
Matrix();
......
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