MCPcopy Create free account
hub / github.com/Meshcapade/difflocks / AsDiagonalFunctor

Class AsDiagonalFunctor

extensions/include/cuMat/src/UnaryOps.h:325–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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> >

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected