Home | Trees | Indices | Help |
---|
|
object --+ | interface.LinearOperator --+ | TridiagonalOperator
Store a tridiagonal operator in the form of 3 arrays Attributes ----------- shape : length 2 tuple. The shape of the operator. diag : ndarray of size shape[0] The diagonal of the matrix. subdiag : ndarray of size shape[0] - 1 The subdiagonal of the matrix. superdiag : ndarray of size shape[0] - 1 The superdiagonal of the matrix.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from |
|
|||
T | |||
Inherited from |
|
Parameters ---------- shape : length 2 tuple. The shape of the operator. diag : ndarray of size shape[0] The diagonal of the matrix. subdiag : ndarray of size shape[0] - 1 The subdiagonal of the matrix. superdiag : ndarray of size shape[0] - 1 The superdiagonal of the matrix. Returns ------- A Tridiagonal matrix operator instance. Exemple ------- >>> import numpy as np >>> import linear_operators as lo >>> T = lo.TridiagonalOperator((3, 3), [1, 2, 3], [4, 5], [6, 7]) >>> T.todense() array([[1, 6, 0], [4, 2, 7], [0, 5, 3]])
|
repr(x)
|
|
|
T
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Thu Jun 2 17:46:16 2011 | http://epydoc.sourceforge.net |