monolish  0.14.2
MONOlithic LIner equation Solvers for Highly-parallel architecture
monolish_linearoperator_vml.hpp
Go to the documentation of this file.
1 // this code is generated by gen_linearoperator_vml.sh
2 #pragma once
3 
4 #include "../common/monolish_common.hpp"
5 
10 namespace monolish::vml {
11 
23 void add(const matrix::LinearOperator<double> &A,
24  const matrix::LinearOperator<double> &B,
25  matrix::LinearOperator<double> &C);
26 void add(const matrix::LinearOperator<float> &A,
27  const matrix::LinearOperator<float> &B,
28  matrix::LinearOperator<float> &C);
29 
41 void sub(const matrix::LinearOperator<double> &A,
42  const matrix::LinearOperator<double> &B,
43  matrix::LinearOperator<double> &C);
44 void sub(const matrix::LinearOperator<float> &A,
45  const matrix::LinearOperator<float> &B,
46  matrix::LinearOperator<float> &C);
47 
59 void add(const matrix::LinearOperator<double> &A, const double &alpha,
60  matrix::LinearOperator<double> &C);
61 void add(const matrix::LinearOperator<float> &A, const float &alpha,
62  matrix::LinearOperator<float> &C);
63 
75 void sub(const matrix::LinearOperator<double> &A, const double &alpha,
76  matrix::LinearOperator<double> &C);
77 void sub(const matrix::LinearOperator<float> &A, const float &alpha,
78  matrix::LinearOperator<float> &C);
79 
91 void mul(const matrix::LinearOperator<double> &A, const double &alpha,
92  matrix::LinearOperator<double> &C);
93 void mul(const matrix::LinearOperator<float> &A, const float &alpha,
94  matrix::LinearOperator<float> &C);
95 
107 void div(const matrix::LinearOperator<double> &A, const double &alpha,
108  matrix::LinearOperator<double> &C);
109 void div(const matrix::LinearOperator<float> &A, const float &alpha,
110  matrix::LinearOperator<float> &C);
111 } // namespace monolish::vml
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
Vector and Matrix element-wise math library.
Definition: monolish_crs_vml.hpp:10
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::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::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