| 323 | */ |
| 324 | template<typename _VectorType> |
| 325 | struct AsDiagonalFunctor |
| 326 | { |
| 327 | /** |
| 328 | * \brief The matrix type after converting the vector entry to the matrix entry |
| 329 | */ |
| 330 | using MatrixType = _VectorType; |
| 331 | |
| 332 | static __host__ __device__ CUMAT_STRONG_INLINE MatrixType asDiagonal(const _VectorType& v) |
| 333 | { |
| 334 | return v; //default implementation |
| 335 | } |
| 336 | }; |
| 337 | |
| 338 | template<typename _Child> |
| 339 | struct traits<AsDiagonalOp<_Child> > |
nothing calls this directly
no outgoing calls
no test coverage detected