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

Asymmetric linear operation to CRS matrix elements (C[0:nnz] = alpha max(A[0:nnz], 0) + beta min(A[0:nnz], 0)) More...

Functions

void monolish::vml::alo (const matrix::CRS< double > &A, const double alpha, const double beta, matrix::CRS< double > &C)
 Asymmetric linear operation to CRS matrix elements (C[0:nnz] = alpha max(A[0:nnz], 0) + beta min(A[0:nnz], 0)) More...
 
void monolish::vml::alo (const matrix::CRS< float > &A, const float alpha, const float beta, matrix::CRS< float > &C)
 

Detailed Description

Asymmetric linear operation to CRS matrix elements (C[0:nnz] = alpha max(A[0:nnz], 0) + beta min(A[0:nnz], 0))

Function Documentation

◆ alo() [1/2]

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

Asymmetric linear operation to CRS matrix elements (C[0:nnz] = alpha max(A[0:nnz], 0) + beta min(A[0:nnz], 0))

Parameters
Amonolish CRS matrix (size M x N)
alphalinear coefficient in positive range
betalinear coefficient in negative range
Cmonolish CRS matrix (size M x N)
Note
  • # of computation: M*N
  • Multi-threading: true
  • GPU acceleration: true

◆ alo() [2/2]

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