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

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

Functions

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

Detailed Description

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

Function Documentation

◆ tanh() [1/2]

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

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

◆ tanh() [2/2]

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