monolish  0.17.1
MONOlithic LInear equation Solvers for Highly-parallel architecture
Functions
monolish::vml::sub

element by element subtract scalar alpha and CRS matrix A. More...

Functions

void monolish::vml::sub (const matrix::CRS< double > &A, const double alpha, matrix::CRS< double > &C)
 element by element subtract scalar alpha and CRS matrix A. More...
 
void monolish::vml::sub (const matrix::CRS< float > &A, const float alpha, matrix::CRS< float > &C)
 

Detailed Description

element by element subtract scalar alpha and CRS matrix A.

Function Documentation

◆ sub() [1/2]

void monolish::vml::sub ( const matrix::CRS< double > &  A,
const double  alpha,
matrix::CRS< double > &  C 
)

element by element subtract scalar alpha and CRS matrix A.

Parameters
Amonolish CRS Matrix (size M x N)
alphascalar value
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

◆ sub() [2/2]

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