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

power to CRS matrix elements by scalar value (C[0:N] = pow(A[0:N], alpha)) More...

Functions

void monolish::vml::pow (const matrix::CRS< double > &A, const double alpha, matrix::CRS< double > &C)
 power to CRS matrix elements by scalar value (C[0:N] = pow(A[0:N], alpha)) More...
 
void monolish::vml::pow (const matrix::CRS< float > &A, const float alpha, matrix::CRS< float > &C)
 

Detailed Description

power to CRS matrix elements by scalar value (C[0:N] = pow(A[0:N], alpha))

Function Documentation

◆ pow() [1/2]

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

power to CRS matrix elements by scalar value (C[0:N] = pow(A[0:N], 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
Warning
A, B, and C must be same non-zero structure

◆ pow() [2/2]

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