@@ -140,7 +140,7 @@ namespace grb {
140140 * \mathit{sizeof}(\mathit{size\_t}) \f$ bytes of data.
141141 * \endparblock
142142 */
143- template < typename DataType, typename View, typename Coords, typename Tmp >
143+ template < typename DataType, typename View, typename Coords, bool Tmp >
144144 RC clear ( VectorView< DataType, View, storage::Dense, reference_dense, Coords, Tmp> & x ) noexcept {
145145 throw std::runtime_error ( " Needs an implementation" );
146146 return SUCCESS;
@@ -167,7 +167,7 @@ namespace grb {
167167 * -# shall not make any system calls.
168168 * \endparblock
169169 */
170- template < typename DataType, typename View, typename Coords, typename Tmp >
170+ template < typename DataType, typename View, typename Coords, bool Tmp >
171171 size_t size ( const VectorView< DataType, View, storage::Dense, reference_dense, Coords, Tmp > & x ) noexcept {
172172 return getLength ( x );
173173 }
@@ -192,14 +192,14 @@ namespace grb {
192192 * -# shall not make any system calls.
193193 * \endparblock
194194 */
195- template < typename DataType, typename View, typename Coords, typename Tmp >
195+ template < typename DataType, typename View, typename Coords, bool Tmp >
196196 size_t nnz ( const VectorView< DataType, View, storage::Dense, reference_dense, Coords, Tmp > & x ) noexcept {
197197 throw std::runtime_error ( " Needs an implementation." );
198198 return 0 ;
199199 }
200200
201201 /* * \todo add documentation. In particular, think about the meaning with \a P > 1. */
202- template < typename InputType, typename View, typename length_type, typename Coords, typename Tmp >
202+ template < typename InputType, typename View, typename length_type, typename Coords, bool Tmp >
203203 RC resize ( VectorView< InputType, View, storage::Dense, reference_dense, Coords, Tmp > & x, const length_type new_nz ) {
204204 // check if we have a mismatch
205205 if ( new_nz > grb::size ( x ) ) {
@@ -264,7 +264,7 @@ namespace grb {
264264 template <
265265 Descriptor descr = descriptors::no_operation,
266266 typename DataType, typename View, typename T,
267- typename Coords, typename Tmp
267+ typename Coords, bool Tmp
268268 >
269269 RC set ( VectorView< DataType, View, storage::Dense, reference_dense, Coords, Tmp > & x, const T val,
270270 const typename std::enable_if<
@@ -410,7 +410,7 @@ namespace grb {
410410 * -# shall not make any system calls.
411411 * \endparblock
412412 */
413- template < Descriptor descr = descriptors::no_operation, typename DataType, typename View, typename T, typename Coords, typename Tmp >
413+ template < Descriptor descr = descriptors::no_operation, typename DataType, typename View, typename T, typename Coords, bool Tmp >
414414 RC setElement ( VectorView< DataType, View, storage::Dense, reference_dense, Coords, Tmp > & x,
415415 const T val,
416416 const size_t i,
0 commit comments