1 #ifndef VIENNACL_TRAITS_FILL_HPP_
2 #define VIENNACL_TRAITS_FILL_HPP_
31 #ifdef VIENNACL_WITH_EIGEN
33 #include <Eigen/Sparse>
46 template <
typename MatrixType,
typename SCALARTYPE>
49 matrix(row_index, col_index) = value;
52 #ifdef VIENNACL_WITH_EIGEN
54 template <
typename T,
int options,
typename SCALARTYPE>
55 inline void fill(Eigen::SparseMatrix<T, options> & m,
61 m.insert(row_index, col_index) = value;
std::size_t vcl_size_t
Definition: forwards.h:58
A dense matrix class.
Definition: forwards.h:293
This file provides the forward declarations for the main types used within ViennaCL.
Main namespace in ViennaCL. Holds all the basic types such as vector, matrix, etc. and defines operations upon them.
Definition: cpu_ram.hpp:29
void fill(MatrixType &matrix, vcl_size_t row_index, vcl_size_t col_index, SCALARTYPE value)
Generic filler routine for setting an entry of a matrix to a particular value.
Definition: fill.hpp:47
A collection of compile time type deductions.