monolish  0.14.0
MONOlithic LIner equation Solvers for Highly-parallel architecture
monolish_crs_vml.hpp
Go to the documentation of this file.
1 // this code is generated by gen_crs_vml.sh
2 #pragma once
3 
4 #include "../common/monolish_common.hpp"
5 #if defined USE_MPI
6 #include <mpi.h>
7 #endif
8 
9 namespace monolish {
14 namespace vml {
15 
30 void add(const matrix::CRS<double> &A, const matrix::CRS<double> &B,
32 void add(const matrix::CRS<float> &A, const matrix::CRS<float> &B,
34 
49 void sub(const matrix::CRS<double> &A, const matrix::CRS<double> &B,
51 void sub(const matrix::CRS<float> &A, const matrix::CRS<float> &B,
53 
68 void mul(const matrix::CRS<double> &A, const matrix::CRS<double> &B,
70 void mul(const matrix::CRS<float> &A, const matrix::CRS<float> &B,
72 
87 void div(const matrix::CRS<double> &A, const matrix::CRS<double> &B,
89 void div(const matrix::CRS<float> &A, const matrix::CRS<float> &B,
91 
106 void add(const matrix::CRS<double> &A, const double alpha,
108 void add(const matrix::CRS<float> &A, const float alpha, matrix::CRS<float> &C);
109 
124 void sub(const matrix::CRS<double> &A, const double alpha,
126 void sub(const matrix::CRS<float> &A, const float alpha, matrix::CRS<float> &C);
127 
142 void mul(const matrix::CRS<double> &A, const double alpha,
144 void mul(const matrix::CRS<float> &A, const float alpha, matrix::CRS<float> &C);
145 
160 void div(const matrix::CRS<double> &A, const double alpha,
162 void div(const matrix::CRS<float> &A, const float alpha, matrix::CRS<float> &C);
163 
176 void pow(const matrix::CRS<double> &A, const matrix::CRS<double> &B,
178 void pow(const matrix::CRS<float> &A, const matrix::CRS<float> &B,
179  matrix::CRS<float> &C);
180 
194 void pow(const matrix::CRS<double> &A, const double alpha,
196 void pow(const matrix::CRS<float> &A, const float alpha, matrix::CRS<float> &C);
197 
209 void sin(const matrix::CRS<double> &A, matrix::CRS<double> &C);
210 void sin(const matrix::CRS<float> &A, matrix::CRS<float> &C);
211 
223 void sqrt(const matrix::CRS<double> &A, matrix::CRS<double> &C);
224 void sqrt(const matrix::CRS<float> &A, matrix::CRS<float> &C);
225 
237 void sinh(const matrix::CRS<double> &A, matrix::CRS<double> &C);
238 void sinh(const matrix::CRS<float> &A, matrix::CRS<float> &C);
239 
251 void asin(const matrix::CRS<double> &A, matrix::CRS<double> &C);
252 void asin(const matrix::CRS<float> &A, matrix::CRS<float> &C);
253 
266 void asinh(const matrix::CRS<float> &A, matrix::CRS<float> &C);
267 
279 void tan(const matrix::CRS<double> &A, matrix::CRS<double> &C);
280 void tan(const matrix::CRS<float> &A, matrix::CRS<float> &C);
281 
293 void tanh(const matrix::CRS<double> &A, matrix::CRS<double> &C);
294 void tanh(const matrix::CRS<float> &A, matrix::CRS<float> &C);
295 
307 void atan(const matrix::CRS<double> &A, matrix::CRS<double> &C);
308 void atan(const matrix::CRS<float> &A, matrix::CRS<float> &C);
309 
322 void atanh(const matrix::CRS<float> &A, matrix::CRS<float> &C);
323 
335 void ceil(const matrix::CRS<double> &A, matrix::CRS<double> &C);
336 void ceil(const matrix::CRS<float> &A, matrix::CRS<float> &C);
337 
350 void floor(const matrix::CRS<float> &A, matrix::CRS<float> &C);
351 
363 void sign(const matrix::CRS<double> &A, matrix::CRS<double> &C);
364 void sign(const matrix::CRS<float> &A, matrix::CRS<float> &C);
365 
380 void max(const matrix::CRS<double> &A, const matrix::CRS<double> &B,
382 void max(const matrix::CRS<float> &A, const matrix::CRS<float> &B,
383  matrix::CRS<float> &C);
384 
399 void min(const matrix::CRS<double> &A, const matrix::CRS<double> &B,
401 void min(const matrix::CRS<float> &A, const matrix::CRS<float> &B,
402  matrix::CRS<float> &C);
403 
415 double max(const matrix::CRS<double> &C);
416 float max(const matrix::CRS<float> &C);
417 
429 double min(const matrix::CRS<double> &C);
430 float min(const matrix::CRS<float> &C);
431 
445 
446 } // namespace vml
447 } // namespace monolish
monolish::vml::ceil
void ceil(const matrix::CRS< double > &A, matrix::CRS< double > &C)
ceil to CRS matrix elements (C[0:nnz] = ceil(A[0:nnz]))
Definition: matrix_vml.cpp:357
monolish::vml::min
void min(const matrix::CRS< double > &A, const matrix::CRS< double > &B, matrix::CRS< double > &C)
Create a new CRS matrix with smallest elements of two matrices (C[0:nnz] = min(A[0:nnz],...
Definition: matrix_vml.cpp:390
monolish::vml::asinh
void asinh(const matrix::CRS< double > &A, matrix::CRS< double > &C)
asinh to CRS matrix elements (C[0:nnz] = asinh(A[0:nnz]))
Definition: matrix_vml.cpp:327
monolish::vml::max
void max(const matrix::CRS< double > &A, const matrix::CRS< double > &B, matrix::CRS< double > &C)
Create a new CRS matrix with greatest elements of two matrices (C[0:nnz] = max(A[0:nnz],...
Definition: matrix_vml.cpp:382
monolish::vml::sub
void sub(const matrix::CRS< double > &A, const matrix::CRS< double > &B, matrix::CRS< double > &C)
element by element subtract CRS matrix A and CRS matrix B.
Definition: matrix_vml.cpp:228
monolish::vml::sinh
void sinh(const matrix::CRS< double > &A, matrix::CRS< double > &C)
sinh to CRS matrix elements (C[0:nnz] = sinh(A[0:nnz]))
Definition: matrix_vml.cpp:315
monolish::vml::sqrt
void sqrt(const matrix::CRS< double > &A, matrix::CRS< double > &C)
sqrt to CRS matrix elements (C[0:nnz] = sqrt(A[0:nnz]))
Definition: matrix_vml.cpp:309
monolish::vml::reciprocal
void reciprocal(const matrix::CRS< double > &a, matrix::CRS< double > &y)
reciprocal to CRS matrix elements (C[0:nnz] = 1 / A[0:nnz])
Definition: matrix_vml.cpp:375
monolish::vml::sign
void sign(const matrix::CRS< double > &A, matrix::CRS< double > &C)
sign to CRS matrix elements (C[0:nnz] = sign(A[0:nnz]))
Definition: matrix_vml.cpp:369
monolish
Definition: monolish_matrix_blas.hpp:9
monolish::vml::floor
void floor(const matrix::CRS< double > &A, matrix::CRS< double > &C)
floor to CRS matrix elements (C[0:nnz] = floor(A[0:nnz]))
Definition: matrix_vml.cpp:363
monolish::vml::div
void div(const matrix::CRS< double > &A, const matrix::CRS< double > &B, matrix::CRS< double > &C)
element by element division CRS matrix A and CRS matrix B.
Definition: matrix_vml.cpp:244
monolish::vml::tan
void tan(const matrix::CRS< double > &A, matrix::CRS< double > &C)
tan to CRS matrix elements (C[0:nnz] = tan(A[0:nnz]))
Definition: matrix_vml.cpp:333
monolish::vml::add
void add(const matrix::CRS< double > &A, const matrix::CRS< double > &B, matrix::CRS< double > &C)
element by element addition CRS matrix A and CRS matrix B.
Definition: matrix_vml.cpp:220
monolish::vml::tanh
void tanh(const matrix::CRS< double > &A, matrix::CRS< double > &C)
tanh to CRS matrix elements (C[0:nnz] = tanh(A[0:nnz]))
Definition: matrix_vml.cpp:339
monolish::vml::pow
void pow(const matrix::CRS< double > &A, const matrix::CRS< double > &B, matrix::CRS< double > &C)
power to CRS matrix elements CRS matrix (C[0:N] = pow(A[0:N], B[0:N]))
Definition: matrix_vml.cpp:286
monolish::vml::mul
void mul(const matrix::CRS< double > &A, const matrix::CRS< double > &B, matrix::CRS< double > &C)
element by element multiplication CRS matrix A and CRS matrix B.
Definition: matrix_vml.cpp:236
monolish::vml::sin
void sin(const matrix::CRS< double > &A, matrix::CRS< double > &C)
sin to CRS matrix elements (C[0:nnz] = sin(A[0:nnz]))
Definition: matrix_vml.cpp:303
monolish::vml::atanh
void atanh(const matrix::CRS< double > &A, matrix::CRS< double > &C)
atanh to CRS matrix elements (C[0:nnz] = atanh(A[0:nnz]))
Definition: matrix_vml.cpp:351
monolish::matrix::CRS
Compressed Row Storage (CRS) format Matrix.
Definition: monolish_coo.hpp:29
monolish::vml::asin
void asin(const matrix::CRS< double > &A, matrix::CRS< double > &C)
asin to CRS matrix elements (C[0:nnz] = asin(A[0:nnz]))
Definition: matrix_vml.cpp:321
monolish::vml::atan
void atan(const matrix::CRS< double > &A, matrix::CRS< double > &C)
atan to CRS matrix elements (C[0:nnz] = atan(A[0:nnz]))
Definition: matrix_vml.cpp:345