Skip to content
Snippets Groups Projects
Commit 1f300380 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[MaL] Make CRSMatrix::amux() type uniform.

parent add53807
No related branches found
No related tags found
No related merge requests found
......@@ -39,8 +39,8 @@ public:
virtual ~CRSMatrixOpenMP()
{}
virtual void amux(FP_TYPE const d, FP_TYPE const * const x, FP_TYPE *y) const
virtual void amux(FP_TYPE const d, FP_TYPE const* const __restrict__ x,
FP_TYPE* __restrict__ y) const
{
amuxCRSParallelOpenMP(d, this->_n_rows, this->_row_ptr, this->_col_idx, this->_data, x, y);
}
......
......@@ -18,7 +18,8 @@ public:
* @param x vector to multiply with
* @param y result vector
*/
virtual void amux(FP_TYPE d, FP_TYPE const * const __restrict__ x, FP_TYPE * __restrict__ y) const = 0;
virtual void amux(FP_TYPE const d, FP_TYPE const* const __restrict__ x,
FP_TYPE* __restrict__ y) const = 0;
virtual ~SparseMatrixBase() {}
/**
* get the number of rows
......
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