34#ifndef _H_GRB_ALGORITHMS_NORM
35#define _H_GRB_ALGORITHMS_NORM
44 namespace algorithms {
73 typename InputType,
typename OutputType,
74 Backend backend,
typename Coords
78 const Ring &ring = Ring(),
79 const typename std::enable_if<
80 std::is_floating_point< OutputType >::value,
81 void >::type *
const =
nullptr
83 RC ret = grb::dot< descr >( x, y, y, ring );
A GraphBLAS vector.
Definition: vector.hpp:64
The main header to include in order to use the ALP/GraphBLAS API.
Backend
A collection of all backends.
Definition: backends.hpp:46
RC norm2(OutputType &x, const Vector< InputType, backend, Coords > &y, const Ring &ring=Ring(), const typename std::enable_if< std::is_floating_point< OutputType >::value, void >::type *const =nullptr)
Provides a generic implementation of the 2-norm computation.
Definition: norm.hpp:76
static constexpr Descriptor no_operation
Indicates no additional pre- or post-processing on any of the GraphBLAS function arguments.
Definition: descriptors.hpp:63
The ALP/GraphBLAS namespace.
Definition: graphblas.hpp:452
RC
Return codes of ALP primitives.
Definition: rc.hpp:47
@ SUCCESS
Indicates the primitive has executed successfully.
Definition: rc.hpp:54
unsigned int Descriptor
Descriptors indicate pre- or post-processing for some or all of the arguments to an ALP/GraphBLAS cal...
Definition: descriptors.hpp:54