monolish  0.17.0
MONOlithic LInear equation Solvers for Highly-parallel architecture
Functions
monolish::vml::max

Create a new Dense matrix with greatest elements of Dense matrix or scalar (C[0:nnz] = max(A[0:nnz], alpha)) More...

Functions

void monolish::vml::max (const matrix::Dense< double > &A, const double alpha, matrix::Dense< double > &C)
 Create a new Dense matrix with greatest elements of Dense matrix or scalar (C[0:nnz] = max(A[0:nnz], alpha)) More...
 
void monolish::vml::max (const matrix::Dense< float > &A, const float alpha, matrix::Dense< float > &C)
 

Detailed Description

Create a new Dense matrix with greatest elements of Dense matrix or scalar (C[0:nnz] = max(A[0:nnz], alpha))

Function Documentation

◆ max() [1/2]

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

Create a new Dense matrix with greatest elements of Dense matrix or scalar (C[0:nnz] = max(A[0:nnz], alpha))

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

◆ max() [2/2]

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