linalg 1.8.2
A linear algebra library that provides a user-friendly interface to several BLAS and LAPACK routines.
Loading...
Searching...
No Matches
linalg::sparse_direct_solve Interface Reference

Provides a direct solution to a square, sparse system. More...

Public Member Functions

 csr_solve_sparse_direct
 

Detailed Description

Provides a direct solution to a square, sparse system.

Syntax
subroutine solve_direct_sparse(class(csr_matrix) a, real(real64) b(:), real(real64) x(:), optional real(real64) droptol, optional class(errors) err)
Parameters
[in]aThe N-by-N sparse matrix to factor.
[in]bThe N-element right-hand-side array.
[out]xThe N-element solution array.
[in]droptolAn optional threshold value used to determine when to drop small terms as part of the factorization of matrix A. The default value is set to the square root of machine precision (~1e-8).
[in,out]errAn optional errors-based object that if provided can be used to retrieve information relating to any errors encountered during execution. If not provided, a default implementation of the errors class is used internally to provide error handling. Possible errors and warning messages that may be encountered are as follows.
  • LA_ARRAY_SIZE_ERROR: Occurs if is not square, or if there is a mismatch in dimensions between a, x, and b.
  • LA_OUT_OF_MEMORY_ERROR: Occurs if there is an issue with internal memory allocations.
  • LA_MATRIX_FORMAT_ERROR: Occurs if a is improperly formatted.
  • LA_SINGULAR_MATRIX_ERROR: Occurs if a is singular.

Definition at line 5496 of file linalg.f90.


The documentation for this interface was generated from the following file: