GClasses
|
Provides static methods for operating on sparse vectors.
#include <GSparseMatrix.h>
Static Public Member Functions | |
static size_t | count_matching_elements (SparseVec &a, SparseVec &b) |
Returns the number of elements that the two vectors both specify in common. More... | |
static double | dotProduct (SparseVec &sparse, GVec &dense) |
Computes the dot product of a sparse vector with a dense vector. More... | |
static double | dotProduct (SparseVec &a, SparseVec &b) |
Computes the dot product of two sparse vectors. More... | |
Returns the number of elements that the two vectors both specify in common.
Computes the dot product of a sparse vector with a dense vector.