brahmap.base.BaseLinearOperator
¶
Bases: object
Base class for defining the common interface shared by all linear operators.
A linear operator is a linear mapping \(x \mapsto A(x)\) such that the size
of the input vector \(x\) is nargin
and the size of the output vector is
nargout
. The linear operator \(A\) can be visualized as a matrix of shape
(nargout, nargin)
.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
nargin
|
int
|
Size of the input vector \(x\) |
required |
nargout
|
int
|
Size of the output vector \(A(x)\) |
required |
symmetric
|
bool
|
A parameter to specify whether the linear operator is symmetric, by
default |
False
|
dtype
|
DTypeLike
|
Data type of the linear operator, by default |
float64
|
**kwargs
|
Any
|
Extra keywords arguments |
{}
|
Source code in brahmap/base/linop.py
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 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 |
|
dtype: npt.DTypeLike
property
writable
¶
The data type of the operator.
nMatvec: int
property
¶
The number of products with vectors computed so far.
nargin: int
property
¶
The size of the input vector.
nargout: int
property
¶
The size of the output vector.
shape: Tuple[int, int]
property
¶
The shape of the operator.
symmetric: bool
property
¶
Indicate whether the operator is symmetric or not.