monolish  0.16.0
MONOlithic LInear 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 
6 namespace monolish {
11 namespace vml {
12 
37 void add(const matrix::CRS<double> &A, const matrix::CRS<double> &B,
39 void add(const matrix::CRS<float> &A, const matrix::CRS<float> &B,
62 void sub(const matrix::CRS<double> &A, const matrix::CRS<double> &B,
64 void sub(const matrix::CRS<float> &A, const matrix::CRS<float> &B,
87 void mul(const matrix::CRS<double> &A, const matrix::CRS<double> &B,
89 void mul(const matrix::CRS<float> &A, const matrix::CRS<float> &B,
112 void div(const matrix::CRS<double> &A, const matrix::CRS<double> &B,
114 void div(const matrix::CRS<float> &A, const matrix::CRS<float> &B,
115  matrix::CRS<float> &C);
136 void add(const matrix::CRS<double> &A, const double alpha,
138 void add(const matrix::CRS<float> &A, const float alpha, matrix::CRS<float> &C);
159 void sub(const matrix::CRS<double> &A, const double alpha,
161 void sub(const matrix::CRS<float> &A, const float alpha, matrix::CRS<float> &C);
182 void mul(const matrix::CRS<double> &A, const double alpha,
184 void mul(const matrix::CRS<float> &A, const float alpha, matrix::CRS<float> &C);
205 void div(const matrix::CRS<double> &A, const double alpha,
207 void div(const matrix::CRS<float> &A, const float alpha, matrix::CRS<float> &C);
227 void pow(const matrix::CRS<double> &A, const matrix::CRS<double> &B,
229 void pow(const matrix::CRS<float> &A, const matrix::CRS<float> &B,
230  matrix::CRS<float> &C);
252 void pow(const matrix::CRS<double> &A, const double alpha,
254 void pow(const matrix::CRS<float> &A, const float alpha, matrix::CRS<float> &C);
273 void sin(const matrix::CRS<double> &A, matrix::CRS<double> &C);
274 void sin(const matrix::CRS<float> &A, matrix::CRS<float> &C);
293 void sqrt(const matrix::CRS<double> &A, matrix::CRS<double> &C);
294 void sqrt(const matrix::CRS<float> &A, matrix::CRS<float> &C);
313 void sinh(const matrix::CRS<double> &A, matrix::CRS<double> &C);
314 void sinh(const matrix::CRS<float> &A, matrix::CRS<float> &C);
333 void asin(const matrix::CRS<double> &A, matrix::CRS<double> &C);
334 void asin(const matrix::CRS<float> &A, matrix::CRS<float> &C);
354 void asinh(const matrix::CRS<float> &A, matrix::CRS<float> &C);
373 void tan(const matrix::CRS<double> &A, matrix::CRS<double> &C);
374 void tan(const matrix::CRS<float> &A, matrix::CRS<float> &C);
393 void tanh(const matrix::CRS<double> &A, matrix::CRS<double> &C);
394 void tanh(const matrix::CRS<float> &A, matrix::CRS<float> &C);
413 void atan(const matrix::CRS<double> &A, matrix::CRS<double> &C);
414 void atan(const matrix::CRS<float> &A, matrix::CRS<float> &C);
434 void atanh(const matrix::CRS<float> &A, matrix::CRS<float> &C);
453 void ceil(const matrix::CRS<double> &A, matrix::CRS<double> &C);
454 void ceil(const matrix::CRS<float> &A, matrix::CRS<float> &C);
474 void floor(const matrix::CRS<float> &A, matrix::CRS<float> &C);
493 void sign(const matrix::CRS<double> &A, matrix::CRS<double> &C);
494 void sign(const matrix::CRS<float> &A, matrix::CRS<float> &C);
517 void max(const matrix::CRS<double> &A, const matrix::CRS<double> &B,
519 void max(const matrix::CRS<float> &A, const matrix::CRS<float> &B,
520  matrix::CRS<float> &C);
543 void min(const matrix::CRS<double> &A, const matrix::CRS<double> &B,
545 void min(const matrix::CRS<float> &A, const matrix::CRS<float> &B,
546  matrix::CRS<float> &C);
565 [[nodiscard]] double max(const matrix::CRS<double> &C);
566 [[nodiscard]] float max(const matrix::CRS<float> &C);
585 [[nodiscard]] double min(const matrix::CRS<double> &C);
586 [[nodiscard]] float min(const matrix::CRS<float> &C);
608 } // namespace vml
609 } // namespace monolish
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]))
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],...
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],...
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]))
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]))
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]))
monolish::vml::reciprocal
void reciprocal(const matrix::CRS< double > &A, matrix::CRS< double > &C)
reciprocal to CRS matrix elements (C[0:nnz] = 1 / A[0:nnz])
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]))
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]))
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.
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.
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]))
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]))
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.
monolish::vml::pow
void pow(const matrix::CRS< double > &A, const matrix::CRS< double > &B, matrix::CRS< double > &C)
power to CRS matrix elements (C[0:N] = pow(A[0:N], B[0:N]))
monolish
monolish namespaces
Definition: monolish_matrix_blas.hpp:5
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.
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]))
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]))
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]))
monolish::matrix::CRS
Compressed Row Storage (CRS) format Matrix.
Definition: monolish_coo.hpp:29
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]))