1 #ifndef VIENNACL_LINALG_DETAIL_SPAI_SPAI_TAG_HPP
2 #define VIENNACL_LINALG_DETAIL_SPAI_SPAI_TAG_HPP
39 #include "boost/numeric/ublas/vector.hpp"
40 #include "boost/numeric/ublas/matrix.hpp"
41 #include "boost/numeric/ublas/matrix_proxy.hpp"
42 #include "boost/numeric/ublas/storage.hpp"
43 #include "boost/numeric/ublas/io.hpp"
44 #include "boost/numeric/ublas/matrix_expression.hpp"
45 #include "boost/numeric/ublas/detail/matrix_assign.hpp"
75 spai_tag(
double residual_norm_threshold = 1e-3,
76 unsigned int iteration_limit = 5,
77 double residual_threshold = 1e-2,
78 bool is_static =
false,
79 bool is_right =
false)
80 : residual_norm_threshold_(residual_norm_threshold),
81 iteration_limit_(iteration_limit),
82 residual_threshold_(residual_threshold),
83 is_static_(is_static),
84 is_right_(is_right) {}
104 if (residual_norm_threshold > 0)
105 residual_norm_threshold_ = residual_norm_threshold;
110 if (residual_threshold > 0)
111 residual_threshold_ = residual_threshold;
116 if (iteration_limit > 0)
117 iteration_limit_ = iteration_limit;
130 double residual_norm_threshold_;
131 unsigned int iteration_limit_;
134 double residual_threshold_;
void setBegInd(long beg_ind)
void setIsRight(bool is_right)
Implementation of a bunch of (small) matrices on GPU. Experimental.
Implementation of a bunch of vectors on GPU. Experimental.
spai_tag(double residual_norm_threshold=1e-3, unsigned int iteration_limit=5, double residual_threshold=1e-2, bool is_static=false, bool is_right=false)
Constructor.
void setIterationLimit(unsigned int iteration_limit)
double getResidualNormThreshold() const
Implementations of the OpenCL backend, where all contexts are stored in.
void setEndInd(long end_ind)
void setResidualThreshold(double residual_threshold)
void setResidualNormThreshold(double residual_norm_threshold)
unsigned int getIterationLimit() const
void setIsStatic(bool is_static)
double getResidualThreshold() const