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

Create a new CRS matrix with smallest elements of CRS matrix or scalar (C[0:nnz] = min(A[0:nnz], alpha)) More...

Functions

void monolish::vml::min (const matrix::CRS< double > &A, const double alpha, matrix::CRS< double > &C)
 Create a new CRS matrix with smallest elements of CRS matrix or scalar (C[0:nnz] = min(A[0:nnz], alpha)) More...
 
void monolish::vml::min (const matrix::CRS< float > &A, const float alpha, matrix::CRS< float > &C)
 

Detailed Description

Create a new CRS matrix with smallest elements of CRS matrix or scalar (C[0:nnz] = min(A[0:nnz], alpha))

Function Documentation

◆ min() [1/2]

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

Create a new CRS matrix with smallest elements of CRS matrix or scalar (C[0:nnz] = min(A[0:nnz], alpha))

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 and C must be same non-zero structure

◆ min() [2/2]

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