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

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

Functions

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

Detailed Description

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

Function Documentation

◆ reciprocal() [1/2]

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

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

Parameters
Amonolish Dense matrix (size M x N)
Cmonolish Dense matrix (size M x N)
Note
  • # of computation: M*N
  • Multi-threading: true
  • GPU acceleration: true

◆ reciprocal() [2/2]

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