23#include <cusp/detail/config.h>
25#include <cusp/detail/execution_policy.h>
38template <
typename DerivedPolicy,
42 typename BinaryFunction>
43void elementwise(
const thrust::detail::execution_policy_base<DerivedPolicy>& exec,
100template <
typename MatrixType1,
101 typename MatrixType2,
102 typename MatrixType3,
103 typename BinaryFunction>
105 const MatrixType2& B,
157template <
typename MatrixType1,
158 typename MatrixType2,
159 typename MatrixType3>
160void add(
const MatrixType1& A,
161 const MatrixType2& B,
212template <
typename MatrixType1,
213 typename MatrixType2,
214 typename MatrixType3>
216 const MatrixType2& B,
223#include <cusp/detail/elementwise.inl>
void subtract(const MatrixType1 &A, const MatrixType2 &B, MatrixType3 &C)
Compute the difference of two matrices.
void elementwise(const MatrixType1 &A, const MatrixType2 &B, MatrixType3 &C, BinaryFunction op)
Perform transform operation on two matrices.
void add(const MatrixType1 &A, const MatrixType2 &B, MatrixType3 &C)
Compute the sum of two matrices.