GClasses
GClasses::GSparseVec Class Reference

Provides static methods for operating on sparse vectors. More...

#include <GSparseMatrix.h>

Static Public Member Functions

static double dotProduct (SparseVec &sparse, double *pDense)
 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...
 

Detailed Description

Provides static methods for operating on sparse vectors.

Member Function Documentation

static double GClasses::GSparseVec::dotProduct ( SparseVec sparse,
double *  pDense 
)
static

Computes the dot product of a sparse vector with a dense vector.

static double GClasses::GSparseVec::dotProduct ( SparseVec a,
SparseVec b 
)
static

Computes the dot product of two sparse vectors.