1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

65

66

67

68

69

70

71

72

73

74

75

76

77

78

79

80

81

82

83

84

85

86

87

88

89

90

91

92

93

94

95

96

97

98

99

100

101

102

103

104

105

106

107

108

109

110

111

112

113

114

115

116

117

118

119

120

121

122

123

124

125

126

127

""" 

================================================== 

Sparse linear algebra (:mod:`scipy.sparse.linalg`) 

================================================== 

 

.. currentmodule:: scipy.sparse.linalg 

 

Abstract linear operators 

------------------------- 

 

.. autosummary:: 

:toctree: generated/ 

 

LinearOperator -- abstract representation of a linear operator 

aslinearoperator -- convert an object to an abstract linear operator 

 

Matrix Operations 

----------------- 

 

.. autosummary:: 

:toctree: generated/ 

 

inv -- compute the sparse matrix inverse 

expm -- compute the sparse matrix exponential 

expm_multiply -- compute the product of a matrix exponential and a matrix 

 

Matrix norms 

------------ 

 

.. autosummary:: 

:toctree: generated/ 

 

norm -- Norm of a sparse matrix 

onenormest -- Estimate the 1-norm of a sparse matrix 

 

Solving linear problems 

----------------------- 

 

Direct methods for linear equation systems: 

 

.. autosummary:: 

:toctree: generated/ 

 

spsolve -- Solve the sparse linear system Ax=b 

spsolve_triangular -- Solve the sparse linear system Ax=b for a triangular matrix 

factorized -- Pre-factorize matrix to a function solving a linear system 

MatrixRankWarning -- Warning on exactly singular matrices 

use_solver -- Select direct solver to use 

 

Iterative methods for linear equation systems: 

 

.. autosummary:: 

:toctree: generated/ 

 

bicg -- Use BIConjugate Gradient iteration to solve A x = b 

bicgstab -- Use BIConjugate Gradient STABilized iteration to solve A x = b 

cg -- Use Conjugate Gradient iteration to solve A x = b 

cgs -- Use Conjugate Gradient Squared iteration to solve A x = b 

gmres -- Use Generalized Minimal RESidual iteration to solve A x = b 

lgmres -- Solve a matrix equation using the LGMRES algorithm 

minres -- Use MINimum RESidual iteration to solve Ax = b 

qmr -- Use Quasi-Minimal Residual iteration to solve A x = b 

gcrotmk -- Solve a matrix equation using the GCROT(m,k) algorithm 

 

Iterative methods for least-squares problems: 

 

.. autosummary:: 

:toctree: generated/ 

 

lsqr -- Find the least-squares solution to a sparse linear equation system 

lsmr -- Find the least-squares solution to a sparse linear equation system 

 

Matrix factorizations 

--------------------- 

 

Eigenvalue problems: 

 

.. autosummary:: 

:toctree: generated/ 

 

eigs -- Find k eigenvalues and eigenvectors of the square matrix A 

eigsh -- Find k eigenvalues and eigenvectors of a symmetric matrix 

lobpcg -- Solve symmetric partial eigenproblems with optional preconditioning 

 

Singular values problems: 

 

.. autosummary:: 

:toctree: generated/ 

 

svds -- Compute k singular values/vectors for a sparse matrix 

 

Complete or incomplete LU factorizations 

 

.. autosummary:: 

:toctree: generated/ 

 

splu -- Compute a LU decomposition for a sparse matrix 

spilu -- Compute an incomplete LU decomposition for a sparse matrix 

SuperLU -- Object representing an LU factorization 

 

Exceptions 

---------- 

 

.. autosummary:: 

:toctree: generated/ 

 

ArpackNoConvergence 

ArpackError 

 

""" 

 

from __future__ import division, print_function, absolute_import 

 

from .isolve import * 

from .dsolve import * 

from .interface import * 

from .eigen import * 

from .matfuncs import * 

from ._onenormest import * 

from ._norm import * 

from ._expm_multiply import * 

 

__all__ = [s for s in dir() if not s.startswith('_')] 

 

from scipy._lib._testutils import PytestTester 

test = PytestTester(__name__) 

del PytestTester