Fast Auxiliary Space Preconditioning 2.7.7 Aug/28/2022
Loading...
Searching...
No Matches
SolMatFree.c File Reference

Iterative solvers using MatFree spmv operations. More...

#include <time.h>
#include "fasp.h"
#include "fasp_block.h"
#include "fasp_functs.h"
#include "BlaSpmvMatFree.inl"
#include "KryUtil.inl"

Go to the source code of this file.

Functions

INT fasp_solver_itsolver (mxv_matfree *mf, dvector *b, dvector *x, precond *pc, ITS_param *itparam)
 Solve Ax=b by preconditioned Krylov methods for CSR matrices. More...
 
INT fasp_solver_krylov (mxv_matfree *mf, dvector *b, dvector *x, ITS_param *itparam)
 Solve Ax=b by standard Krylov methods – without preconditioner. More...
 
void fasp_solver_matfree_init (INT matrix_format, mxv_matfree *mf, void *A)
 Initialize MatFree (or non-specified format) itsovlers. More...
 

Detailed Description

Iterative solvers using MatFree spmv operations.

Note
This file contains Level-5 (Sol) functions. It requires: AuxMessage.c, AuxTiming.c, BlaSpmvBLC.c, BlaSpmvBSR.c, BlaSpmvCSR.c, BlaSpmvCSRL.c, BlaSpmvSTR.c, KryPbcgs.c, KryPcg.c, KryPgcg.c, KryPgmres.c, KryPminres.c, KryPvfgmres.c, and KryPvgmres.c

Copyright (C) 2009–Present by the FASP team. All rights reserved.

Released under the terms of the GNU Lesser General Public License 3.0 or later.

Definition in file SolMatFree.c.

Function Documentation

◆ fasp_solver_itsolver()

INT fasp_solver_itsolver ( mxv_matfree mf,
dvector b,
dvector x,
precond pc,
ITS_param itparam 
)

Solve Ax=b by preconditioned Krylov methods for CSR matrices.

Note
This is an abstract interface for iterative methods.
Parameters
mfPointer to mxv_matfree MatFree spmv operation
bPointer to the right hand side in dvector format
xPointer to the approx solution in dvector format
pcPointer to the preconditioning action
itparamPointer to parameters for iterative solvers
Returns
Iteration number if converges; ERROR otherwise.
Author
Chensong Zhang
Date
09/25/2009

Modified by Feiteng Huang on 09/19/2012: matrix free

Definition at line 58 of file SolMatFree.c.

◆ fasp_solver_krylov()

INT fasp_solver_krylov ( mxv_matfree mf,
dvector b,
dvector x,
ITS_param itparam 
)

Solve Ax=b by standard Krylov methods – without preconditioner.

Parameters
mfPointer to mxv_matfree MatFree spmv operation
bPointer to the right hand side in dvector format
xPointer to the approx solution in dvector format
itparamPointer to parameters for iterative solvers
Returns
Number of iterations if succeed
Author
Chensong Zhang, Shiquan Zhang
Date
09/25/2009

Modified by Feiteng Huang on 09/20/2012: matrix free

Definition at line 157 of file SolMatFree.c.

◆ fasp_solver_matfree_init()

void fasp_solver_matfree_init ( INT  matrix_format,
mxv_matfree mf,
void *  A 
)

Initialize MatFree (or non-specified format) itsovlers.

Parameters
matrix_formatmatrix format
mfPointer to mxv_matfree MatFree spmv operation
Avoid pointer to the coefficient matrix
Author
Feiteng Huang
Date
09/18/2012

Modified by Chensong Zhang on 05/10/2013: Change interface of mat-free mv

Definition at line 201 of file SolMatFree.c.