SPI
SLEPc PETSc Interface is used for rapid development and intuitive matrix operations similar to MatLab or NumPy style of operations
Functions
tests.cpp File Reference
#include "SPImain.hpp"
#include "tests.hpp"
#include <time.h>
#include <slepcsvd.h>

Go to the source code of this file.

Functions

void test_if_true (PetscBool test, std::string name)
 
void test_if_close (PetscScalar value, PetscScalar golden, std::string name, PetscReal tol)
 
int tests ()
 

Function Documentation

◆ test_if_close()

void test_if_close ( PetscScalar  value,
PetscScalar  golden,
std::string  name,
PetscReal  tol 
)

Definition at line 11 of file tests.cpp.

◆ test_if_true()

void test_if_true ( PetscBool  test,
std::string  name 
)

Definition at line 6 of file tests.cpp.

◆ tests()

int tests ( )

Definition at line 24 of file tests.cpp.