ALP User Documentation 0.7.0
Algebraic Programming User Documentation
Namespaces | Functions
cosine_similarity.hpp File Reference

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

Detailed Description

Implements cosine simularity.

Author
: A. N. Yzelman.
Date
: 13th of December, 2017.