Classes | Macros | Functions
testSparseMatrixVectorOp.cc File Reference
#include <iostream>
#include <utl/SparseVector.h>
#include <utl/SparseMatrix.h>
#include <tst/Verify.h>
#include <cppunit/extensions/HelperMacros.h>

Go to the source code of this file.

Classes

class  TestSparseMatrixVectorOp
 

Macros

#define ASSERT_CLOSE(x, y)   CPPUNIT_ASSERT(Verify<CloseTo>(x, y))
 
#define ASSERT_CLOSE_EPS(x, y, eps)   CPPUNIT_ASSERT(Verify<CloseTo>(x, y, eps))
 
#define ASSERT_EQUAL(x, y)   CPPUNIT_ASSERT(Verify<Equal>(x, y))
 
#define ASSERT_ITERATOR_EQUAL(it, e, i, v)
 

Functions

 CPPUNIT_TEST_SUITE_REGISTRATION (TestSparseMatrixVectorOp)
 

Detailed Description

Test Sparse Matrix-Vector Operations

Author
Darko Veberic
Date
8 Jun 2008

Definition in file testSparseMatrixVectorOp.cc.

Macro Definition Documentation

#define ASSERT_CLOSE (   x,
 
)    CPPUNIT_ASSERT(Verify<CloseTo>(x, y))

Definition at line 23 of file testSparseMatrixVectorOp.cc.

#define ASSERT_CLOSE_EPS (   x,
  y,
  eps 
)    CPPUNIT_ASSERT(Verify<CloseTo>(x, y, eps))

Definition at line 24 of file testSparseMatrixVectorOp.cc.

#define ASSERT_EQUAL (   x,
 
)    CPPUNIT_ASSERT(Verify<Equal>(x, y))

Definition at line 25 of file testSparseMatrixVectorOp.cc.

Referenced by TestSparseMatrixVectorOp::TestMultiply2().

#define ASSERT_ITERATOR_EQUAL (   it,
  e,
  i,
 
)
Value:
CPPUNIT_ASSERT(it != e); \
ASSERT_EQUAL(it.GetIndex(), i); \
ASSERT_EQUAL(it(), v)
#define ASSERT_EQUAL(x, y)

Definition at line 26 of file testSparseMatrixVectorOp.cc.

Referenced by TestSparseMatrixVectorOp::TestMultiply().

Function Documentation

CPPUNIT_TEST_SUITE_REGISTRATION ( TestSparseMatrixVectorOp  )

, generated on Tue Sep 26 2023.