![]() |
NeoPZ
|
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"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") |
| #define VERBOSE | ( | level, | |
| ... | |||
| ) |
Definition at line 54 of file skylmat.cpp.
Referenced by read_input_matrix(), res_check(), and res_dump().
| int dump_matrix_stats | ( | ) |
Definition at line 300 of file skylmat.cpp.
References TPZMatrix< TVar >::Dim(), matrix, read_input_matrix(), TPZSkylMatrix< TVar >::SkyHeight(), and verbose.
Referenced by main().
| 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().
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 71 of file skylmat.cpp.
References dump_matrix_stats(), clarg::argT< T >::get_value(), h, help(), mop, clarg::parse_arguments(), run_decompose_cholesky(), run_decompose_ldlt(), substruct_tst14.test::status, clarg::values(), verbose, and clarg::arg_base::was_set().
| int read_input_matrix | ( | TPZSkylMatrix< REAL > & | matrix | ) |
Definition at line 269 of file skylmat.cpp.
References TPZPersistenceManagerNS::binary, clarg::argT< T >::get_value(), rdt::inputfn, FileStreamWrapper::OpenRead(), TPZSkylMatrix< TVar >::Read(), VERBOSE, and clarg::arg_base::was_set().
Referenced by dump_matrix_stats(), run_decompose_cholesky(), and run_decompose_ldlt().
| int res_check | ( | TPZSkylMatrix< REAL > & | matrix | ) |
Definition at line 165 of file skylmat.cpp.
References abs(), TPZPersistenceManagerNS::binary, TPZMatrix< TVar >::Cols(), stats::filename, clarg::argT< T >::get_value(), FileStreamWrapper::OpenRead(), TPZSkylMatrix< TVar >::Read(), res_chk_b, res_chk_t, res_chk_tol, TPZSkylMatrix< TVar >::s(), TPZSkylMatrix< TVar >::SkyHeight(), VERBOSE, and clarg::arg_base::was_set().
Referenced by run_decompose_cholesky(), and run_decompose_ldlt().
| int res_dump | ( | TPZSkylMatrix< REAL > & | matrix | ) |
Definition at line 240 of file skylmat.cpp.
References TPZPersistenceManagerNS::binary, stats::filename, clarg::argT< T >::get_value(), FileStreamWrapper::OpenWrite(), res_dump_b, res_dump_t, VERBOSE, clarg::arg_base::was_set(), and TPZSkylMatrix< TVar >::Write().
Referenced by run_decompose_cholesky(), and run_decompose_ldlt().
| int run_decompose_cholesky | ( | ) |
Definition at line 332 of file skylmat.cpp.
References matrix, operation_rst, read_input_matrix(), res_check(), res_chk_b, res_chk_t, res_dump(), RunStatsTable::start(), RunStatsTable::stop(), and clarg::arg_base::was_set().
Referenced by main().
| int run_decompose_ldlt | ( | ) |
Definition at line 353 of file skylmat.cpp.
References matrix, operation_rst, read_input_matrix(), res_check(), res_chk_b, res_chk_t, res_dump(), RunStatsTable::start(), RunStatsTable::stop(), and clarg::arg_base::was_set().
Referenced by main().
| clarg::argString bm("-bm", "input matrix file name (binary format)", "matrix.bin") |
Referenced by help().
| clarg::argString bm2("-bm2", "argument matrix file name (binary format)", "matrix2.bin") |
Referenced by help().
| clarg::argBool h("-h", "help message", false) |
Referenced by main().
| clarg::argString m("-m", "input matrix file name (text format)", "matrix.txt") |
Referenced by Adapt::adaptlob(), TPZSkylMatrix< TVar >::AutoFill(), TPZSpaceTimeRichardsEq::C_Coef(), TPZLadeKimThermoForceA::CheckConv(), TPZYCLadeKim::CheckConv(), TPZSFMatrix< TVar >::Clear(), TPZGaussRule::ComputingGaussLegendreQuadrature(), TPZGaussRule::ComputingGaussLobattoQuadrature(), TPZLadeKim::DenseSacrRiverSand(), TPZSpaceTimeRichardsEq::DKDsol(), TPZLadeKim::FineSilicaSand(), TPZLadeKim::FineSilicaSandPaperIII(), gegra_(), help(), i4col_swap(), i4vec_heap_d(), Adapt::integrate(), TEulerDiffusivity::InverseJacob(), isorti_(), TPZSpaceTimeRichardsEq::K_Coef(), LKBiaxialTest(), TPZLadeKim::LooseSacrRiverSand(), TPZLadeKim::LooseSantaMonicaBeachSand(), malha_predio(), MalhaCubo(), Input::MalhaCubo(), MalhaPredio(), clarg::arg_base::mark_set(), TPZAUSMFlux::MassFlux(), Max(), Min(), TPZSpMatrix< TVar >::MultAdd(), TPZMohrCoulombPV::PieceWise(), TPZLadeKim::PlainConcrete(), TPZLadeKim::PlainConcreteMPa(), TPZGeoMesh::Print(), TPZSSpMatrix< TVar >::ProdEsc(), PYBIND11_MODULE(), TPZGradientReconstruction::TPZGradientData::QRFactorization(), r8mat_transpose_print_some(), TPZSpaceTimeRichardsEq::Se(), TPZYCCamClayPV::SetUp(), TPZYCLadeKim::SetUp(), TPZSandlerExtended::TaylorCheckDtbkDsigtrial(), TPZSandlerExtended::TaylorCheckProjectF2(), TPZNonLinMultGridAnalysis::UniformlyRefineMesh(), Adapt::Vintegrate(), and vsrtp1_().
| clarg::argString m2("-m2", "argument matrix file name (text format)", "matrix2.txt") |
Referenced by help(), and InnerVecOfMat().
| clarg::argInt mop("-op", "Matrix operation", 1) |
Referenced by main().
| RunStatsTable operation_rst("-perf_rdt", "Raw data table file to add matrix operation performance statistics") |
Referenced by run_decompose_cholesky(), and run_decompose_ldlt().
| clarg::argString res_chk_b("-res_chk_b", "check the results using a reference data (binary format)","") |
Referenced by res_check(), run_decompose_cholesky(), and run_decompose_ldlt().
| clarg::argString res_chk_t("-res_chk_t", "check the results using a reference data (text format)","") |
Referenced by res_check(), run_decompose_cholesky(), and run_decompose_ldlt().
| clarg::argDouble res_chk_tol("-res_chk_tol", "error tolerance when checking results.", 1.e-12) |
Referenced by res_check().
| clarg::argString res_dump_b("-res_dump_b", "write final results to a binary file.", "dump_matrix.bin") |
Referenced by res_dump().
| clarg::argString res_dump_t("-res_dump_t", "write final results to a text file.", "dump_matrix.txt") |
Referenced by res_dump().
| clarg::argInt verb_level("-v", "verbosity level", 0) |
Referenced by help().
| int verbose |
Definition at line 52 of file skylmat.cpp.
Referenced by dump_matrix_stats(), and main().
1.8.13