| 84 | |
| 85 | template <typename T> |
| 86 | Mat<T> Mat<T>::clone() const { |
| 87 | Mat<T> res(m_rows, m_cols, m_channels); |
| 88 | for (size_t r = 0; r < m_rows; ++r) { |
| 89 | cuda_check(cudaMemcpy( |
| 90 | res.ptr(r), this->ptr(r), sizeof(T) * m_cols * m_channels, |
| 91 | cudaMemcpyDeviceToDevice)); |
| 92 | } |
| 93 | return res; |
| 94 | } |
| 95 | |
| 96 | template <typename T> |
| 97 | bool Mat<T>::equals(const Mat<T>& rhs) const { |
no test coverage detected