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

Create a new Dense matrix with greatest elements of two matrices (C[0:nnz] = max(A[0:nnz], B[0:nnz])) More...

Functions

void monolish::vml::max (const matrix::Dense< double > &A, const matrix::Dense< double > &B, matrix::Dense< double > &C)
 Create a new Dense matrix with greatest elements of two matrices (C[0:nnz] = max(A[0:nnz], B[0:nnz])) More...
 
void monolish::vml::max (const matrix::Dense< float > &A, const matrix::Dense< float > &B, matrix::Dense< float > &C)
 
void monolish::vml::max (const tensor::tensor_Dense< double > &A, const tensor::tensor_Dense< double > &B, tensor::tensor_Dense< double > &C)
 Create a new tensor_Dense tensor with greatest elements of two tensors (C[0:nnz] = max(A[0:nnz], B[0:nnz])) More...
 
void monolish::vml::max (const tensor::tensor_Dense< float > &A, const tensor::tensor_Dense< float > &B, tensor::tensor_Dense< float > &C)
 

Detailed Description

Create a new Dense matrix with greatest elements of two matrices (C[0:nnz] = max(A[0:nnz], B[0:nnz]))

Create a new tensor_Dense tensor with greatest elements of two tensors (C[0:nnz] = max(A[0:nnz], B[0:nnz]))

Function Documentation

◆ max() [1/4]

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

Create a new Dense matrix with greatest elements of two matrices (C[0:nnz] = max(A[0:nnz], B[0:nnz]))

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

◆ max() [2/4]

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

◆ max() [3/4]

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

Create a new tensor_Dense tensor with greatest elements of two tensors (C[0:nnz] = max(A[0:nnz], B[0:nnz]))

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

◆ max() [4/4]

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