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

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

Functions

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

Detailed Description

sign to CRS matrix elements (C[0:nnz] = sign(A[0:nnz]))

Function Documentation

◆ sign() [1/2]

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

sign to CRS matrix elements (C[0:nnz] = sign(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

◆ sign() [2/2]

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