NeoPZ
Classes | Macros | Functions | Variables
skylmat.cpp File Reference

Tests for skyline matrices. More...

#include <iostream>
#include <cstdlib>
#include "pzbfilestream.h"
#include "pzmd5stream.h"
#include <fstream>
#include <string>
#include "pzskylmat.h"
#include "arglib.h"
#include "run_stats_table.h"
Include dependency graph for skylmat.cpp:

Go to the source code of this file.

Classes

class  FileStreamWrapper
 

Macros

#define VERBOSE(level, ...)
 

Functions

void help (const char *prg)
 
int run_decompose_cholesky ()
 
int run_decompose_ldlt ()
 
int dump_matrix_stats ()
 
int main (int argc, char *argv[])
 
int res_check (TPZSkylMatrix< REAL > &matrix)
 
int res_dump (TPZSkylMatrix< REAL > &matrix)
 
int read_input_matrix (TPZSkylMatrix< REAL > &matrix)
 

Variables

clarg::argString m ("-m", "input matrix file name (text format)", "matrix.txt")
 
clarg::argString bm ("-bm", "input matrix file name (binary format)", "matrix.bin")
 
clarg::argString m2 ("-m2", "argument matrix file name (text format)", "matrix2.txt")
 
clarg::argString bm2 ("-bm2", "argument matrix file name (binary format)", "matrix2.bin")
 
clarg::argInt verb_level ("-v", "verbosity level", 0)
 
int verbose
 
clarg::argInt mop ("-op", "Matrix operation", 1)
 
clarg::argBool h ("-h", "help message", false)
 
clarg::argString res_chk_t ("-res_chk_t", "check the results using a reference data (text format)","")
 
clarg::argString res_chk_b ("-res_chk_b", "check the results using a reference data (binary format)","")
 
clarg::argDouble res_chk_tol ("-res_chk_tol", "error tolerance when checking results.", 1.e-12)
 
clarg::argString res_dump_t ("-res_dump_t", "write final results to a text file.", "dump_matrix.txt")
 
clarg::argString res_dump_b ("-res_dump_b", "write final results to a binary file.", "dump_matrix.bin")
 
RunStatsTable operation_rst ("-perf_rdt", "Raw data table file to add matrix operation performance statistics")
 

Detailed Description

Tests for skyline matrices.

Author
Edson Borin
Since
2013

Definition in file skylmat.cpp.

Macro Definition Documentation

◆ VERBOSE

#define VERBOSE (   level,
  ... 
)

Definition at line 54 of file skylmat.cpp.

Referenced by read_input_matrix(), res_check(), and res_dump().

Function Documentation

◆ dump_matrix_stats()

int dump_matrix_stats ( )

◆ help()

void help ( const char *  prg)

Definition at line 33 of file skylmat.cpp.

References clarg::arguments_descriptions(), bm, bm2, m, m2, and verb_level.

Referenced by main().

◆ main()

int main ( int  argc,
char *  argv[] 
)

◆ read_input_matrix()

int read_input_matrix ( TPZSkylMatrix< REAL > &  matrix)

◆ res_check()

int res_check ( TPZSkylMatrix< REAL > &  matrix)

◆ res_dump()

int res_dump ( TPZSkylMatrix< REAL > &  matrix)

◆ run_decompose_cholesky()

int run_decompose_cholesky ( )

◆ run_decompose_ldlt()

int run_decompose_ldlt ( )

Variable Documentation

◆ bm

clarg::argString bm("-bm", "input matrix file name (binary format)", "matrix.bin")

Referenced by help().

◆ bm2

clarg::argString bm2("-bm2", "argument matrix file name (binary format)", "matrix2.bin")

Referenced by help().

◆ h

clarg::argBool h("-h", "help message", false)

Referenced by main().

◆ m

clarg::argString m("-m", "input matrix file name (text format)", "matrix.txt")

◆ m2

clarg::argString m2("-m2", "argument matrix file name (text format)", "matrix2.txt")

Referenced by help(), and InnerVecOfMat().

◆ mop

clarg::argInt mop("-op", "Matrix operation", 1)

Referenced by main().

◆ operation_rst

RunStatsTable operation_rst("-perf_rdt", "Raw data table file to add matrix operation performance statistics")

◆ res_chk_b

clarg::argString res_chk_b("-res_chk_b", "check the results using a reference data (binary format)","")

◆ res_chk_t

clarg::argString res_chk_t("-res_chk_t", "check the results using a reference data (text format)","")

◆ res_chk_tol

clarg::argDouble res_chk_tol("-res_chk_tol", "error tolerance when checking results.", 1.e-12)

Referenced by res_check().

◆ res_dump_b

clarg::argString res_dump_b("-res_dump_b", "write final results to a binary file.", "dump_matrix.bin")

Referenced by res_dump().

◆ res_dump_t

clarg::argString res_dump_t("-res_dump_t", "write final results to a text file.", "dump_matrix.txt")

Referenced by res_dump().

◆ verb_level

clarg::argInt verb_level("-v", "verbosity level", 0)

Referenced by help().

◆ verbose

int verbose

Definition at line 52 of file skylmat.cpp.

Referenced by dump_matrix_stats(), and main().