monolish  0.14.0
MONOlithic LIner equation Solvers for Highly-parallel architecture
Namespaces | Classes | Functions
monolish Namespace Reference

Namespaces

 blas
 Basic Linear Algebra Subprograms for Dense Matrix, Sparse Matrix, Vector and Scalar.
 
 equation
 
 generalized_eigen
 handling eigenvalues and eigenvectors
 
 matrix
 Declare sparse and dense matrix class.
 
 solver
 Liner solver base class.
 
 standard_eigen
 handling eigenvalues and eigenvectors
 
 util
 monolish utilities
 
 vml
 Vector and Matrix element-wise math library.
 

Classes

class  Logger
 logger class (singleton, for developper class) More...
 
class  vector
 vector class More...
 
class  view1D
 1D view class More...
 

Functions

double get_residual_l2 (const matrix::CRS< double > &A, const vector< double > &x, const vector< double > &y)
 get nrm |b-Ax|_2 More...
 
double get_residual_l2 (const matrix::CRS< double > &A, const vector< double > &x, const view1D< matrix::Dense< double >, double > &y)
 
double get_residual_l2 (const matrix::CRS< double > &A, const vector< double > &x, const view1D< vector< double >, double > &y)
 
double get_residual_l2 (const matrix::CRS< double > &A, const view1D< matrix::Dense< double >, double > &x, const vector< double > &y)
 
double get_residual_l2 (const matrix::CRS< double > &A, const view1D< matrix::Dense< double >, double > &x, const view1D< matrix::Dense< double >, double > &y)
 
double get_residual_l2 (const matrix::CRS< double > &A, const view1D< matrix::Dense< double >, double > &x, const view1D< vector< double >, double > &y)
 
double get_residual_l2 (const matrix::CRS< double > &A, const view1D< vector< double >, double > &x, const vector< double > &y)
 
double get_residual_l2 (const matrix::CRS< double > &A, const view1D< vector< double >, double > &x, const view1D< matrix::Dense< double >, double > &y)
 
double get_residual_l2 (const matrix::CRS< double > &A, const view1D< vector< double >, double > &x, const view1D< vector< double >, double > &y)
 
float get_residual_l2 (const matrix::CRS< float > &A, const vector< float > &x, const vector< float > &y)
 
float get_residual_l2 (const matrix::CRS< float > &A, const vector< float > &x, const view1D< matrix::Dense< float >, float > &y)
 
float get_residual_l2 (const matrix::CRS< float > &A, const vector< float > &x, const view1D< vector< float >, float > &y)
 
float get_residual_l2 (const matrix::CRS< float > &A, const view1D< matrix::Dense< float >, float > &x, const vector< float > &y)
 
float get_residual_l2 (const matrix::CRS< float > &A, const view1D< matrix::Dense< float >, float > &x, const view1D< matrix::Dense< float >, float > &y)
 
float get_residual_l2 (const matrix::CRS< float > &A, const view1D< matrix::Dense< float >, float > &x, const view1D< vector< float >, float > &y)
 
float get_residual_l2 (const matrix::CRS< float > &A, const view1D< vector< float >, float > &x, const vector< float > &y)
 
float get_residual_l2 (const matrix::CRS< float > &A, const view1D< vector< float >, float > &x, const view1D< matrix::Dense< float >, float > &y)
 
float get_residual_l2 (const matrix::CRS< float > &A, const view1D< vector< float >, float > &x, const view1D< vector< float >, float > &y)
 
double get_residual_l2 (const matrix::Dense< double > &A, const vector< double > &x, const vector< double > &y)
 get nrm |b-Ax|_2 More...
 
double get_residual_l2 (const matrix::Dense< double > &A, const vector< double > &x, const view1D< matrix::Dense< double >, double > &y)
 
double get_residual_l2 (const matrix::Dense< double > &A, const vector< double > &x, const view1D< vector< double >, double > &y)
 
double get_residual_l2 (const matrix::Dense< double > &A, const view1D< matrix::Dense< double >, double > &x, const vector< double > &y)
 
double get_residual_l2 (const matrix::Dense< double > &A, const view1D< matrix::Dense< double >, double > &x, const view1D< matrix::Dense< double >, double > &y)
 
double get_residual_l2 (const matrix::Dense< double > &A, const view1D< matrix::Dense< double >, double > &x, const view1D< vector< double >, double > &y)
 
double get_residual_l2 (const matrix::Dense< double > &A, const view1D< vector< double >, double > &x, const vector< double > &y)
 
double get_residual_l2 (const matrix::Dense< double > &A, const view1D< vector< double >, double > &x, const view1D< matrix::Dense< double >, double > &y)
 
double get_residual_l2 (const matrix::Dense< double > &A, const view1D< vector< double >, double > &x, const view1D< vector< double >, double > &y)
 
float get_residual_l2 (const matrix::Dense< float > &A, const vector< float > &x, const vector< float > &y)
 
float get_residual_l2 (const matrix::Dense< float > &A, const vector< float > &x, const view1D< matrix::Dense< float >, float > &y)
 
float get_residual_l2 (const matrix::Dense< float > &A, const vector< float > &x, const view1D< vector< float >, float > &y)
 
float get_residual_l2 (const matrix::Dense< float > &A, const view1D< matrix::Dense< float >, float > &x, const vector< float > &y)
 
float get_residual_l2 (const matrix::Dense< float > &A, const view1D< matrix::Dense< float >, float > &x, const view1D< matrix::Dense< float >, float > &y)
 
float get_residual_l2 (const matrix::Dense< float > &A, const view1D< matrix::Dense< float >, float > &x, const view1D< vector< float >, float > &y)
 
float get_residual_l2 (const matrix::Dense< float > &A, const view1D< vector< float >, float > &x, const vector< float > &y)
 
float get_residual_l2 (const matrix::Dense< float > &A, const view1D< vector< float >, float > &x, const view1D< matrix::Dense< float >, float > &y)
 
float get_residual_l2 (const matrix::Dense< float > &A, const view1D< vector< float >, float > &x, const view1D< vector< float >, float > &y)
 
double get_residual_l2 (const matrix::LinearOperator< double > &A, const vector< double > &x, const vector< double > &y)
 get nrm |b-Ax|_2 More...
 
double get_residual_l2 (const matrix::LinearOperator< double > &A, const vector< double > &x, const view1D< matrix::Dense< double >, double > &y)
 
double get_residual_l2 (const matrix::LinearOperator< double > &A, const vector< double > &x, const view1D< vector< double >, double > &y)
 
double get_residual_l2 (const matrix::LinearOperator< double > &A, const view1D< matrix::Dense< double >, double > &x, const vector< double > &y)
 
double get_residual_l2 (const matrix::LinearOperator< double > &A, const view1D< matrix::Dense< double >, double > &x, const view1D< matrix::Dense< double >, double > &y)
 
double get_residual_l2 (const matrix::LinearOperator< double > &A, const view1D< matrix::Dense< double >, double > &x, const view1D< vector< double >, double > &y)
 
double get_residual_l2 (const matrix::LinearOperator< double > &A, const view1D< vector< double >, double > &x, const vector< double > &y)
 
double get_residual_l2 (const matrix::LinearOperator< double > &A, const view1D< vector< double >, double > &x, const view1D< matrix::Dense< double >, double > &y)
 
double get_residual_l2 (const matrix::LinearOperator< double > &A, const view1D< vector< double >, double > &x, const view1D< vector< double >, double > &y)
 
float get_residual_l2 (const matrix::LinearOperator< float > &A, const vector< float > &x, const vector< float > &y)
 
float get_residual_l2 (const matrix::LinearOperator< float > &A, const vector< float > &x, const view1D< matrix::Dense< float >, float > &y)
 
float get_residual_l2 (const matrix::LinearOperator< float > &A, const vector< float > &x, const view1D< vector< float >, float > &y)
 
float get_residual_l2 (const matrix::LinearOperator< float > &A, const view1D< matrix::Dense< float >, float > &x, const vector< float > &y)
 
float get_residual_l2 (const matrix::LinearOperator< float > &A, const view1D< matrix::Dense< float >, float > &x, const view1D< matrix::Dense< float >, float > &y)
 
float get_residual_l2 (const matrix::LinearOperator< float > &A, const view1D< matrix::Dense< float >, float > &x, const view1D< vector< float >, float > &y)
 
float get_residual_l2 (const matrix::LinearOperator< float > &A, const view1D< vector< float >, float > &x, const vector< float > &y)
 
float get_residual_l2 (const matrix::LinearOperator< float > &A, const view1D< vector< float >, float > &x, const view1D< matrix::Dense< float >, float > &y)
 
float get_residual_l2 (const matrix::LinearOperator< float > &A, const view1D< vector< float >, float > &x, const view1D< vector< float >, float > &y)
 

Function Documentation

◆ get_residual_l2() [1/54]

double monolish::get_residual_l2 ( const matrix::CRS< double > &  A,
const vector< double > &  x,
const vector< double > &  y 
)

get nrm |b-Ax|_2

Parameters
ACRS matrix (size M x N)
xmonolish vector (size N)
ymonolish vector (size M)
Note
  • # of computation: 2*M*nnz + N
  • Multi-threading: true
  • GPU acceleration: true
    • # of data transfer: 0

Definition at line 157 of file equation_utils.cpp.

◆ get_residual_l2() [2/54]

double monolish::get_residual_l2 ( const matrix::CRS< double > &  A,
const vector< double > &  x,
const view1D< matrix::Dense< double >, double > &  y 
)

Definition at line 165 of file equation_utils.cpp.

◆ get_residual_l2() [3/54]

double monolish::get_residual_l2 ( const matrix::CRS< double > &  A,
const vector< double > &  x,
const view1D< vector< double >, double > &  y 
)

Definition at line 161 of file equation_utils.cpp.

◆ get_residual_l2() [4/54]

double monolish::get_residual_l2 ( const matrix::CRS< double > &  A,
const view1D< matrix::Dense< double >, double > &  x,
const vector< double > &  y 
)

Definition at line 184 of file equation_utils.cpp.

◆ get_residual_l2() [5/54]

double monolish::get_residual_l2 ( const matrix::CRS< double > &  A,
const view1D< matrix::Dense< double >, double > &  x,
const view1D< matrix::Dense< double >, double > &  y 
)

Definition at line 194 of file equation_utils.cpp.

◆ get_residual_l2() [6/54]

double monolish::get_residual_l2 ( const matrix::CRS< double > &  A,
const view1D< matrix::Dense< double >, double > &  x,
const view1D< vector< double >, double > &  y 
)

Definition at line 189 of file equation_utils.cpp.

◆ get_residual_l2() [7/54]

double monolish::get_residual_l2 ( const matrix::CRS< double > &  A,
const view1D< vector< double >, double > &  x,
const vector< double > &  y 
)

Definition at line 169 of file equation_utils.cpp.

◆ get_residual_l2() [8/54]

double monolish::get_residual_l2 ( const matrix::CRS< double > &  A,
const view1D< vector< double >, double > &  x,
const view1D< matrix::Dense< double >, double > &  y 
)

Definition at line 179 of file equation_utils.cpp.

◆ get_residual_l2() [9/54]

double monolish::get_residual_l2 ( const matrix::CRS< double > &  A,
const view1D< vector< double >, double > &  x,
const view1D< vector< double >, double > &  y 
)

Definition at line 174 of file equation_utils.cpp.

◆ get_residual_l2() [10/54]

float monolish::get_residual_l2 ( const matrix::CRS< float > &  A,
const vector< float > &  x,
const vector< float > &  y 
)

Definition at line 199 of file equation_utils.cpp.

◆ get_residual_l2() [11/54]

float monolish::get_residual_l2 ( const matrix::CRS< float > &  A,
const vector< float > &  x,
const view1D< matrix::Dense< float >, float > &  y 
)

Definition at line 207 of file equation_utils.cpp.

◆ get_residual_l2() [12/54]

float monolish::get_residual_l2 ( const matrix::CRS< float > &  A,
const vector< float > &  x,
const view1D< vector< float >, float > &  y 
)

Definition at line 203 of file equation_utils.cpp.

◆ get_residual_l2() [13/54]

float monolish::get_residual_l2 ( const matrix::CRS< float > &  A,
const view1D< matrix::Dense< float >, float > &  x,
const vector< float > &  y 
)

Definition at line 226 of file equation_utils.cpp.

◆ get_residual_l2() [14/54]

float monolish::get_residual_l2 ( const matrix::CRS< float > &  A,
const view1D< matrix::Dense< float >, float > &  x,
const view1D< matrix::Dense< float >, float > &  y 
)

Definition at line 236 of file equation_utils.cpp.

◆ get_residual_l2() [15/54]

float monolish::get_residual_l2 ( const matrix::CRS< float > &  A,
const view1D< matrix::Dense< float >, float > &  x,
const view1D< vector< float >, float > &  y 
)

Definition at line 231 of file equation_utils.cpp.

◆ get_residual_l2() [16/54]

float monolish::get_residual_l2 ( const matrix::CRS< float > &  A,
const view1D< vector< float >, float > &  x,
const vector< float > &  y 
)

Definition at line 211 of file equation_utils.cpp.

◆ get_residual_l2() [17/54]

float monolish::get_residual_l2 ( const matrix::CRS< float > &  A,
const view1D< vector< float >, float > &  x,
const view1D< matrix::Dense< float >, float > &  y 
)

Definition at line 221 of file equation_utils.cpp.

◆ get_residual_l2() [18/54]

float monolish::get_residual_l2 ( const matrix::CRS< float > &  A,
const view1D< vector< float >, float > &  x,
const view1D< vector< float >, float > &  y 
)

Definition at line 216 of file equation_utils.cpp.

◆ get_residual_l2() [19/54]

double monolish::get_residual_l2 ( const matrix::Dense< double > &  A,
const vector< double > &  x,
const vector< double > &  y 
)

get nrm |b-Ax|_2

Parameters
ADense matrix (size M x N)
xmonolish vector (size N)
ymonolish vector (size M)
Note
  • # of computation: 2*M*nnz + N
  • Multi-threading: true
  • GPU acceleration: true
    • # of data transfer: 0

Definition at line 72 of file equation_utils.cpp.

◆ get_residual_l2() [20/54]

double monolish::get_residual_l2 ( const matrix::Dense< double > &  A,
const vector< double > &  x,
const view1D< matrix::Dense< double >, double > &  y 
)

Definition at line 80 of file equation_utils.cpp.

◆ get_residual_l2() [21/54]

double monolish::get_residual_l2 ( const matrix::Dense< double > &  A,
const vector< double > &  x,
const view1D< vector< double >, double > &  y 
)

Definition at line 76 of file equation_utils.cpp.

◆ get_residual_l2() [22/54]

double monolish::get_residual_l2 ( const matrix::Dense< double > &  A,
const view1D< matrix::Dense< double >, double > &  x,
const vector< double > &  y 
)

Definition at line 99 of file equation_utils.cpp.

◆ get_residual_l2() [23/54]

double monolish::get_residual_l2 ( const matrix::Dense< double > &  A,
const view1D< matrix::Dense< double >, double > &  x,
const view1D< matrix::Dense< double >, double > &  y 
)

Definition at line 109 of file equation_utils.cpp.

◆ get_residual_l2() [24/54]

double monolish::get_residual_l2 ( const matrix::Dense< double > &  A,
const view1D< matrix::Dense< double >, double > &  x,
const view1D< vector< double >, double > &  y 
)

Definition at line 104 of file equation_utils.cpp.

◆ get_residual_l2() [25/54]

double monolish::get_residual_l2 ( const matrix::Dense< double > &  A,
const view1D< vector< double >, double > &  x,
const vector< double > &  y 
)

Definition at line 84 of file equation_utils.cpp.

◆ get_residual_l2() [26/54]

double monolish::get_residual_l2 ( const matrix::Dense< double > &  A,
const view1D< vector< double >, double > &  x,
const view1D< matrix::Dense< double >, double > &  y 
)

Definition at line 94 of file equation_utils.cpp.

◆ get_residual_l2() [27/54]

double monolish::get_residual_l2 ( const matrix::Dense< double > &  A,
const view1D< vector< double >, double > &  x,
const view1D< vector< double >, double > &  y 
)

Definition at line 89 of file equation_utils.cpp.

◆ get_residual_l2() [28/54]

float monolish::get_residual_l2 ( const matrix::Dense< float > &  A,
const vector< float > &  x,
const vector< float > &  y 
)

Definition at line 114 of file equation_utils.cpp.

◆ get_residual_l2() [29/54]

float monolish::get_residual_l2 ( const matrix::Dense< float > &  A,
const vector< float > &  x,
const view1D< matrix::Dense< float >, float > &  y 
)

Definition at line 122 of file equation_utils.cpp.

◆ get_residual_l2() [30/54]

float monolish::get_residual_l2 ( const matrix::Dense< float > &  A,
const vector< float > &  x,
const view1D< vector< float >, float > &  y 
)

Definition at line 118 of file equation_utils.cpp.

◆ get_residual_l2() [31/54]

float monolish::get_residual_l2 ( const matrix::Dense< float > &  A,
const view1D< matrix::Dense< float >, float > &  x,
const vector< float > &  y 
)

Definition at line 141 of file equation_utils.cpp.

◆ get_residual_l2() [32/54]

float monolish::get_residual_l2 ( const matrix::Dense< float > &  A,
const view1D< matrix::Dense< float >, float > &  x,
const view1D< matrix::Dense< float >, float > &  y 
)

Definition at line 151 of file equation_utils.cpp.

◆ get_residual_l2() [33/54]

float monolish::get_residual_l2 ( const matrix::Dense< float > &  A,
const view1D< matrix::Dense< float >, float > &  x,
const view1D< vector< float >, float > &  y 
)

Definition at line 146 of file equation_utils.cpp.

◆ get_residual_l2() [34/54]

float monolish::get_residual_l2 ( const matrix::Dense< float > &  A,
const view1D< vector< float >, float > &  x,
const vector< float > &  y 
)

Definition at line 126 of file equation_utils.cpp.

◆ get_residual_l2() [35/54]

float monolish::get_residual_l2 ( const matrix::Dense< float > &  A,
const view1D< vector< float >, float > &  x,
const view1D< matrix::Dense< float >, float > &  y 
)

Definition at line 136 of file equation_utils.cpp.

◆ get_residual_l2() [36/54]

float monolish::get_residual_l2 ( const matrix::Dense< float > &  A,
const view1D< vector< float >, float > &  x,
const view1D< vector< float >, float > &  y 
)

Definition at line 131 of file equation_utils.cpp.

◆ get_residual_l2() [37/54]

double monolish::get_residual_l2 ( const matrix::LinearOperator< double > &  A,
const vector< double > &  x,
const vector< double > &  y 
)

get nrm |b-Ax|_2

Parameters
ALinearOperator (size M x N)
xmonolish vector (size N)
ymonolish vector (size M)
Note
  • # of computation: 2*M*nnz + N
  • Multi-threading: true
  • GPU acceleration: true
    • # of data transfer: 0

Definition at line 242 of file equation_utils.cpp.

◆ get_residual_l2() [38/54]

double monolish::get_residual_l2 ( const matrix::LinearOperator< double > &  A,
const vector< double > &  x,
const view1D< matrix::Dense< double >, double > &  y 
)

Definition at line 251 of file equation_utils.cpp.

◆ get_residual_l2() [39/54]

double monolish::get_residual_l2 ( const matrix::LinearOperator< double > &  A,
const vector< double > &  x,
const view1D< vector< double >, double > &  y 
)

Definition at line 246 of file equation_utils.cpp.

◆ get_residual_l2() [40/54]

double monolish::get_residual_l2 ( const matrix::LinearOperator< double > &  A,
const view1D< matrix::Dense< double >, double > &  x,
const vector< double > &  y 
)

Definition at line 271 of file equation_utils.cpp.

◆ get_residual_l2() [41/54]

double monolish::get_residual_l2 ( const matrix::LinearOperator< double > &  A,
const view1D< matrix::Dense< double >, double > &  x,
const view1D< matrix::Dense< double >, double > &  y 
)

Definition at line 281 of file equation_utils.cpp.

◆ get_residual_l2() [42/54]

double monolish::get_residual_l2 ( const matrix::LinearOperator< double > &  A,
const view1D< matrix::Dense< double >, double > &  x,
const view1D< vector< double >, double > &  y 
)

Definition at line 276 of file equation_utils.cpp.

◆ get_residual_l2() [43/54]

double monolish::get_residual_l2 ( const matrix::LinearOperator< double > &  A,
const view1D< vector< double >, double > &  x,
const vector< double > &  y 
)

Definition at line 256 of file equation_utils.cpp.

◆ get_residual_l2() [44/54]

double monolish::get_residual_l2 ( const matrix::LinearOperator< double > &  A,
const view1D< vector< double >, double > &  x,
const view1D< matrix::Dense< double >, double > &  y 
)

Definition at line 266 of file equation_utils.cpp.

◆ get_residual_l2() [45/54]

double monolish::get_residual_l2 ( const matrix::LinearOperator< double > &  A,
const view1D< vector< double >, double > &  x,
const view1D< vector< double >, double > &  y 
)

Definition at line 261 of file equation_utils.cpp.

◆ get_residual_l2() [46/54]

float monolish::get_residual_l2 ( const matrix::LinearOperator< float > &  A,
const vector< float > &  x,
const vector< float > &  y 
)

Definition at line 286 of file equation_utils.cpp.

◆ get_residual_l2() [47/54]

float monolish::get_residual_l2 ( const matrix::LinearOperator< float > &  A,
const vector< float > &  x,
const view1D< matrix::Dense< float >, float > &  y 
)

Definition at line 295 of file equation_utils.cpp.

◆ get_residual_l2() [48/54]

float monolish::get_residual_l2 ( const matrix::LinearOperator< float > &  A,
const vector< float > &  x,
const view1D< vector< float >, float > &  y 
)

Definition at line 290 of file equation_utils.cpp.

◆ get_residual_l2() [49/54]

float monolish::get_residual_l2 ( const matrix::LinearOperator< float > &  A,
const view1D< matrix::Dense< float >, float > &  x,
const vector< float > &  y 
)

Definition at line 315 of file equation_utils.cpp.

◆ get_residual_l2() [50/54]

float monolish::get_residual_l2 ( const matrix::LinearOperator< float > &  A,
const view1D< matrix::Dense< float >, float > &  x,
const view1D< matrix::Dense< float >, float > &  y 
)

Definition at line 325 of file equation_utils.cpp.

◆ get_residual_l2() [51/54]

float monolish::get_residual_l2 ( const matrix::LinearOperator< float > &  A,
const view1D< matrix::Dense< float >, float > &  x,
const view1D< vector< float >, float > &  y 
)

Definition at line 320 of file equation_utils.cpp.

◆ get_residual_l2() [52/54]

float monolish::get_residual_l2 ( const matrix::LinearOperator< float > &  A,
const view1D< vector< float >, float > &  x,
const vector< float > &  y 
)

Definition at line 300 of file equation_utils.cpp.

◆ get_residual_l2() [53/54]

float monolish::get_residual_l2 ( const matrix::LinearOperator< float > &  A,
const view1D< vector< float >, float > &  x,
const view1D< matrix::Dense< float >, float > &  y 
)

Definition at line 310 of file equation_utils.cpp.

◆ get_residual_l2() [54/54]

float monolish::get_residual_l2 ( const matrix::LinearOperator< float > &  A,
const view1D< vector< float >, float > &  x,
const view1D< vector< float >, float > &  y 
)

Definition at line 305 of file equation_utils.cpp.