monolish  0.17.3-dev.16
MONOlithic LInear equation Solvers for Highly-parallel architecture
Functions
monolish::blas::matadd (CRS)

CRS matrix addition: C = A + B. More...

Functions

void monolish::blas::matadd (const matrix::CRS< double > &A, const matrix::CRS< double > &B, matrix::CRS< double > &C)
 CRS matrix addition: C = A + B. More...
 
void monolish::blas::matadd (const matrix::CRS< float > &A, const matrix::CRS< float > &B, matrix::CRS< float > &C)
 

Detailed Description

CRS matrix addition: C = A + B.

Function Documentation

◆ matadd() [1/2]

void monolish::blas::matadd ( const matrix::CRS< double > &  A,
const matrix::CRS< double > &  B,
matrix::CRS< double > &  C 
)

CRS matrix addition: C = A + B.

Parameters
ACRS matrix (size M x N)
BCRS matrix (size M x N)
CCRS 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

◆ matadd() [2/2]

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