Loading Documentation/Examples/Solvers/Linear/IterativeLinearSolverExample.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -52,7 +52,7 @@ void iterativeLinearSolverExample() std::cout << *matrix_ptr << std::endl; /*** * Set the right-hand side vector * Set the right-hand side vector. */ Vector x( size, 1.0 ); Vector b( size ); Loading @@ -61,7 +61,7 @@ void iterativeLinearSolverExample() std::cout << "Vector b = " << b << std::endl; /*** * Solve the linear system * Solve the linear system. */ using LinearSolver = TNL::Solvers::Linear::TFQMR< MatrixType >; LinearSolver solver; Loading Documentation/Examples/Solvers/Linear/IterativeLinearSolverWithMonitorExample.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -54,7 +54,7 @@ void iterativeLinearSolverExample() std::cout << *matrix_ptr << std::endl; /*** * Set the right-hand side vector * Set the right-hand side vector. */ Vector x( size, 1.0 ); Vector b( size ); Loading @@ -63,7 +63,7 @@ void iterativeLinearSolverExample() std::cout << "Vector b = " << b << std::endl; /*** * Setup solver of the linear system * Setup solver of the linear system. */ using LinearSolver = TNL::Solvers::Linear::Jacobi< MatrixType >; LinearSolver solver; Loading @@ -71,7 +71,7 @@ void iterativeLinearSolverExample() solver.setOmega( 0.0005 ); /*** * Setup monitor of the iterative solver * Setup monitor of the iterative solver. */ using IterativeSolverMonitorType = TNL::Solvers::IterativeSolverMonitor< double, int >; IterativeSolverMonitorType monitor; Loading Documentation/Examples/Solvers/Linear/IterativeLinearSolverWithTimerExample.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -55,7 +55,7 @@ void iterativeLinearSolverExample() std::cout << *matrix_ptr << std::endl; /*** * Set the right-hand side vector * Set the right-hand side vector. */ Vector x( size, 1.0 ); Vector b( size ); Loading @@ -64,7 +64,7 @@ void iterativeLinearSolverExample() std::cout << "Vector b = " << b << std::endl; /*** * Setup solver of the linear system * Setup solver of the linear system. */ using LinearSolver = TNL::Solvers::Linear::Jacobi< MatrixType >; LinearSolver solver; Loading @@ -72,7 +72,7 @@ void iterativeLinearSolverExample() solver.setOmega( 0.0005 ); /*** * Setup monitor of the iterative solver * Setup monitor of the iterative solver. */ using IterativeSolverMonitorType = TNL::Solvers::IterativeSolverMonitor< double, int >; IterativeSolverMonitorType monitor; Loading Loading
Documentation/Examples/Solvers/Linear/IterativeLinearSolverExample.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -52,7 +52,7 @@ void iterativeLinearSolverExample() std::cout << *matrix_ptr << std::endl; /*** * Set the right-hand side vector * Set the right-hand side vector. */ Vector x( size, 1.0 ); Vector b( size ); Loading @@ -61,7 +61,7 @@ void iterativeLinearSolverExample() std::cout << "Vector b = " << b << std::endl; /*** * Solve the linear system * Solve the linear system. */ using LinearSolver = TNL::Solvers::Linear::TFQMR< MatrixType >; LinearSolver solver; Loading
Documentation/Examples/Solvers/Linear/IterativeLinearSolverWithMonitorExample.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -54,7 +54,7 @@ void iterativeLinearSolverExample() std::cout << *matrix_ptr << std::endl; /*** * Set the right-hand side vector * Set the right-hand side vector. */ Vector x( size, 1.0 ); Vector b( size ); Loading @@ -63,7 +63,7 @@ void iterativeLinearSolverExample() std::cout << "Vector b = " << b << std::endl; /*** * Setup solver of the linear system * Setup solver of the linear system. */ using LinearSolver = TNL::Solvers::Linear::Jacobi< MatrixType >; LinearSolver solver; Loading @@ -71,7 +71,7 @@ void iterativeLinearSolverExample() solver.setOmega( 0.0005 ); /*** * Setup monitor of the iterative solver * Setup monitor of the iterative solver. */ using IterativeSolverMonitorType = TNL::Solvers::IterativeSolverMonitor< double, int >; IterativeSolverMonitorType monitor; Loading
Documentation/Examples/Solvers/Linear/IterativeLinearSolverWithTimerExample.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -55,7 +55,7 @@ void iterativeLinearSolverExample() std::cout << *matrix_ptr << std::endl; /*** * Set the right-hand side vector * Set the right-hand side vector. */ Vector x( size, 1.0 ); Vector b( size ); Loading @@ -64,7 +64,7 @@ void iterativeLinearSolverExample() std::cout << "Vector b = " << b << std::endl; /*** * Setup solver of the linear system * Setup solver of the linear system. */ using LinearSolver = TNL::Solvers::Linear::Jacobi< MatrixType >; LinearSolver solver; Loading @@ -72,7 +72,7 @@ void iterativeLinearSolverExample() solver.setOmega( 0.0005 ); /*** * Setup monitor of the iterative solver * Setup monitor of the iterative solver. */ using IterativeSolverMonitorType = TNL::Solvers::IterativeSolverMonitor< double, int >; IterativeSolverMonitorType monitor; Loading