Matrix Reductions#
Matrix Norm#
#include <raft/matrix/norm.cuh>
namespace raft::matrix
-
template<typename m_t, typename idx_t>
m_t l2_norm(raft::resources const &handle, raft::device_mdspan<const m_t, idx_t> in)# Get the L2/F-norm of a matrix.
- Parameters:
handle – [in] raft handle
in – [in] input matrix/vector with totally size elements
- Returns:
matrix l2 norm