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

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

Functions

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

Detailed Description

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

Create a new tensor_Dense tensor with smallest elements of tensor_Dense tensor or scalar (C[0:nnz] = min(A[0:nnz], alpha))

Function Documentation

◆ min() [1/4]

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

Create a new Dense matrix with smallest elements of Dense matrix or scalar (C[0:nnz] = min(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

◆ min() [2/4]

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

◆ min() [3/4]

void monolish::vml::min ( const tensor::tensor_Dense< double > &  A,
const double  alpha,
tensor::tensor_Dense< double > &  C 
)

Create a new tensor_Dense tensor with smallest elements of tensor_Dense tensor or scalar (C[0:nnz] = min(A[0:nnz], alpha))

Parameters
Amonolish tensor_Dense tensor
alphascalar value
Cmonolish tensor_Dense tensor
Note
  • # of computation: size
  • Multi-threading: true
  • GPU acceleration: true
    • # of data transfer: 0

◆ min() [4/4]

void monolish::vml::min ( const tensor::tensor_Dense< float > &  A,
const float  alpha,
tensor::tensor_Dense< float > &  C 
)