ALP User Documentation 0.7.alpha
Algebraic Programming User Documentation
|
Implements cosine simularity. More...
Go to the source code of this file.
Namespaces | |
namespace | grb |
The ALP/GraphBLAS namespace. | |
namespace | grb::algorithms |
The namespace for ALP/GraphBLAS algorithms. | |
Functions | |
template<Descriptor descr = descriptors::no_operation, typename OutputType , typename InputType1 , typename InputType2 , class Ring , class Division = grb::operators::divide< typename Ring::D3, typename Ring::D3, typename Ring::D4 >> | |
RC | cosine_similarity (OutputType &similarity, const Vector< InputType1 > &x, const Vector< InputType2 > &y, const Ring &ring=Ring(), const Division &div=Division()) |
Computes the cosine similarity. | |
Implements cosine simularity.