23 #include <cusp/detail/config.h>
25 #include <thrust/execution_policy.h>
38 template <
typename DerivedPolicy,
39 typename MatrixType1,
typename MatrixType2,
typename MatrixType3,
40 typename BinaryFunction>
41 void elementwise(
const thrust::detail::execution_policy_base<DerivedPolicy>& exec,
98 template <
typename MatrixType1,
typename MatrixType2,
typename MatrixType3,
99 typename BinaryFunction>
101 const MatrixType2& B,
153 template <
typename MatrixType1,
154 typename MatrixType2,
155 typename MatrixType3>
156 void add(
const MatrixType1& A,
157 const MatrixType2& B,
208 template <
typename MatrixType1,
209 typename MatrixType2,
210 typename MatrixType3>
212 const MatrixType2& B,
219 #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.