Functions

SparseMatrix.cpp File Reference

Implementation of the CSparseMatrix class. More...

#include "SparseMatrix.h"
#include "Matlab.h"
#include <assert.h>
#include <math.h>
Include dependency graph for SparseMatrix.cpp:

Go to the source code of this file.

Functions

bool isZero (double x)
bool Predicate (const _Entry &d1, const _Entry &d2)

Detailed Description

Implementation of the CSparseMatrix class.

Author:
Group
Date:
Documented on 10/07/2010

Definition in file SparseMatrix.cpp.


Function Documentation

bool isZero ( double  x  )  [inline]

Verify if x is close to zero

Parameters:
x input value

Definition at line 24 of file SparseMatrix.cpp.

{
        return (fabs(x) < 1e-9);
}

Here is the caller graph for this function:

bool Predicate ( const _Entry d1,
const _Entry d2 
)

Predicate to sort entries

Definition at line 535 of file SparseMatrix.cpp.

{
  return ( d1.j < d2.j || (d1.j==d2.j && d1.i < d2.i) );
}

 All Classes Namespaces Files Functions Variables Typedefs Enumerator Defines