CUSP
Loading...
Searching...
No Matches
elementwise.h File Reference

Elementwise operations on matrices. More...

Go to the source code of this file.

Functions

template<typename MatrixType1 , typename MatrixType2 , typename MatrixType3 , typename BinaryFunction >
void cusp::elementwise (const MatrixType1 &A, const MatrixType2 &B, MatrixType3 &C, BinaryFunction op)
 Perform transform operation on two matrices.
 
template<typename MatrixType1 , typename MatrixType2 , typename MatrixType3 >
void cusp::add (const MatrixType1 &A, const MatrixType2 &B, MatrixType3 &C)
 Compute the sum of two matrices.
 
template<typename MatrixType1 , typename MatrixType2 , typename MatrixType3 >
void cusp::subtract (const MatrixType1 &A, const MatrixType2 &B, MatrixType3 &C)
 Compute the difference of two matrices.
 

Detailed Description

Elementwise operations on matrices.

Definition in file elementwise.h.