monolish  0.17.3-dev.16
MONOlithic LInear equation Solvers for Highly-parallel architecture
Functions
monolish::vml::add

element by element addition CRS matrix A and CRS matrix B. More...

Functions

void monolish::vml::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. More...
 
void monolish::vml::add (const matrix::CRS< float > &A, const matrix::CRS< float > &B, matrix::CRS< float > &C)
 

Detailed Description

element by element addition CRS matrix A and CRS matrix B.

Function Documentation

◆ add() [1/2]

void monolish::vml::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.

Parameters
Amonolish CRS Matrix (size M x N)
Bmonolish CRS Matrix (size M x N)
Cmonolish CRS Matrix (size M x N)
Note
  • # of computation: nnz
  • Multi-threading: true
  • GPU acceleration: true
    • # of data transfer: 0
Warning
A, B, and C must be same non-zero structure

◆ add() [2/2]

void monolish::vml::add ( const matrix::CRS< float > &  A,
const matrix::CRS< float > &  B,
matrix::CRS< float > &  C 
)