We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47aa23f commit 84488a4Copy full SHA for 84488a4
1 file changed
fredipy/operators.py
@@ -2,6 +2,7 @@
2
from typing import TYPE_CHECKING, Callable
3
if TYPE_CHECKING:
4
from .integrators import Integrator
5
+import numpy as np
6
7
8
class Operator:
@@ -20,12 +21,22 @@ class Identity(Operator):
20
21
pass
22
23
24
+class ConstMatrix(Operator):
25
+ def __init__(
26
+ self,
27
+ mat: np.ndarray):
28
+ self.mat = mat
29
+
30
+ def make(self, *args):
31
+ return self.mat
32
33
34
class Integral(Operator):
35
'''Wrapper for integration constraints.
36
37
Parameters
38
----------
- func : kernel function of the integrations.
39
+ func : kernel function of the integrations
40
integrator : defines the integration routine, see Integrator class.
41
'''
42
def __init__(
0 commit comments