LSA_Toolkit  "Release 0.3"
Public Member Functions | Public Attributes
LSA_Toolkit::SparseMatrix Class Reference

API access class for the LSA_Toolkit SparseMatrix. More...

#include <sparsematrix.h>

List of all members.

Public Member Functions

 SparseMatrix (Environment *)
 Common SparseMatrix constructor.
 ~SparseMatrix ()
 Common SparseMatrix destructor for all SparseMatrix objects.
double get (size_t, size_t)
 Get a value from a specific position of the SparseMatrix.
std::valarray< double > getrow (size_t)
 Get a specific row from the SparseMatrix.
std::valarray< double > getcol (size_t)
 Get a specific column from the SparseMatrix.
void put (size_t, size_t, double)
 Put a value into a specific position of the SparseMatrix.
void incr (size_t, size_t)
 Increment the value at a specific position of the SparseMatrix.
std::valarray< double > mult (std::valarray< double >)
 Multiply the matrix contained in SparseMatrix by a vector with length = number of columns.
std::valarray< double > tmult (std::valarray< double >)
 Multiply the transpose of the matrix contained in SparseMatrix by a vector with length = to the number of rows.
bool isWeighted ()
 Check if a weighting has been applied to the SparseMatrix object data.
size_t getnonzeros ()
 Get the number of non-zero entries in the SparseMatrix.
size_t getnumrows ()
 Get the number of rows contained in the SparseMatrix.
size_t getnumcols ()
 Get the number of columns contained in the SparseMatrix.
void textLoad (std::string filename)
 Load SparseMatrix data from a text file.
void binDump ()
 Dump a SparseMatrix object to a binary file with a default filename.
void binDump (std::string filename)
 Dump a SparseMatrix object to a binary file.
void binLoad ()
 Load a SparseMatrx object from a binary file with a default filename.
void binLoad (std::string filename)
 Load a SparseMatrx object from a binary file.
void applyWeighting ()
 Weight a raw SparseMatrix with a local * global weighting function.

Public Attributes

SparseMatrix_Impl * ptr

Detailed Description

API access class for the LSA_Toolkit SparseMatrix.

The SparseMatrix is the primary storage class for the raw matrix information. It is a compact efficient storage class for matrices with small percentages of non-zero values.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Defines
Copyright © 2011 Small Bear Technologies, Inc.
LSA_Toolkit is a trademark of Small Bear Technologies, Inc.