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

reciprocal to CRS matrix elements (C[0:nnz] = 1 / A[0:nnz]) More...

Functions

void monolish::vml::reciprocal (const matrix::CRS< double > &A, matrix::CRS< double > &C)
 reciprocal to CRS matrix elements (C[0:nnz] = 1 / A[0:nnz]) More...
 
void monolish::vml::reciprocal (const matrix::CRS< float > &A, matrix::CRS< float > &C)
 

Detailed Description

reciprocal to CRS matrix elements (C[0:nnz] = 1 / A[0:nnz])

Function Documentation

◆ reciprocal() [1/2]

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

reciprocal to CRS matrix elements (C[0:nnz] = 1 / A[0:nnz])

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

◆ reciprocal() [2/2]

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