ALP User Documentation
0.8.preview
Algebraic Programming User Documentation
|
Implements the 2-norm. More...
Go to the source code of this file.
Namespaces | |
grb | |
The ALP/GraphBLAS namespace. | |
grb::algorithms | |
The namespace for ALP/GraphBLAS algorithms. | |
Functions | |
template<Descriptor descr = descriptors::no_operation, class Ring , typename InputType , typename OutputType , Backend backend, typename Coords > | |
RC | norm2 (OutputType &x, const Vector< InputType, backend, Coords > &y, const Ring &ring=Ring(), const std::function< OutputType(OutputType) > sqrtX=std_sqrt< OutputType, OutputType >, const typename std::enable_if< std::is_floating_point< OutputType >::value, void >::type *=nullptr) |
Provides a generic implementation of the 2-norm computation. More... | |
template<typename OutputType , typename InputType > | |
OutputType | std_sqrt (const InputType x) |
An alias of std::sqrt where the input and output types are templated separately. More... | |
Implements the 2-norm.