Home | Trees | Indices | Help |
---|
|
object --+ | interface.LinearOperator --+ | SymmetricOperator --+ | DiagonalOperator
An operator which mimics a diagonal matrix. Attributes ---------- diag: ndarray of 1 dim The diagonal of the matrix.
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from |
|
|||
Inherited from Inherited from |
|
Parameters ---------- diag : ndarray with ndim == 1. The diagonal of the operator. Returns ------- A DiagonalOperator instance. Exemple ------- >>> import numpy as np >>> import linear_operators as lo >>> D = lo.DiagonalOperator(np.arange(3)) >>> D.todense() array([[ 0., 0., 0.], [ 0., 1., 0.], [ 0., 0., 2.]])
|
repr(x)
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Thu Jun 2 17:46:16 2011 | http://epydoc.sourceforge.net |