| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
interface.LinearOperator --+
|
ReplicationOperator
Generate an operator which replicates the input vector n times.
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from Inherited from |
|||
|
|||
Parameters
----------
shape : length 2 tuple.
The shape of the operator.
rep_num : int
The number of replications.
Returns
-------
A ReplicationOperator instance.
Exemple
-------
>>> import numpy as np
>>> import linear_operators as lo
>>> R = lo.ReplicationOperator((4, 2), 2)
>>> R.todense()
array([[ 1., 0.],
[ 0., 1.],
[ 1., 0.],
[ 0., 1.]])
|
repr(x)
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Thu Jun 2 17:46:16 2011 | http://epydoc.sourceforge.net |