Meta Variables
In ConvDO, all the operation is performed on ScalarField or VectorValue:
            ConvDO.conv_operators.ScalarField
¤
    
              Bases: CommutativeValue
ScalarField is a class for scalar fields.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
value | 
            
                  Optional[Tensor]
             | 
            
               The value of the scalar field. Defaults to None.
It can be changed by calling the   | 
            
                  None
             | 
          
domain | 
            
                  Optional[Domain]
             | 
            
               The domain of the scalar field. Defaults to UnconstrainedDomain().  | 
            
                  UnconstrainedDomain()
             | 
          
Source code in ConvDO/conv_operators.py
                8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67  |  | 
            __radd__
¤
__radd__(other)
Source code in ConvDO/meta_type.py
              10 11  |  | 
            __iadd__
¤
__iadd__(other)
Source code in ConvDO/meta_type.py
              13 14  |  | 
            __sub__
¤
__sub__(other)
Source code in ConvDO/meta_type.py
              16 17 18 19 20  |  | 
            __rsub__
¤
__rsub__(other)
Source code in ConvDO/meta_type.py
              22 23 24 25 26  |  | 
            __isub__
¤
__isub__(other)
Source code in ConvDO/meta_type.py
              28 29  |  | 
            __rmul__
¤
__rmul__(other)
Source code in ConvDO/meta_type.py
              31 32  |  | 
            __imul__
¤
__imul__(other)
Source code in ConvDO/meta_type.py
              34 35  |  | 
            __init__
¤
__init__(
    value: Optional[torch.Tensor] = None,
    domain: Optional[Domain] = UnconstrainedDomain(),
) -> None
Source code in ConvDO/conv_operators.py
              18 19 20 21 22 23  |  | 
            register_value
¤
register_value(value: torch.Tensor)
Register the value of the scalar field.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
value | 
            
                  Tensor
             | 
            
               The value of the scalar field.  | 
            required | 
Source code in ConvDO/conv_operators.py
              25 26 27 28 29 30 31 32 33 34  |  | 
            __add__
¤
__add__(other)
Source code in ConvDO/conv_operators.py
              36 37 38 39 40  |  | 
            __mul__
¤
__mul__(other)
Source code in ConvDO/conv_operators.py
              42 43 44 45 46  |  | 
            __pow__
¤
__pow__(other)
Source code in ConvDO/conv_operators.py
              48 49  |  | 
            __truediv__
¤
__truediv__(other)
Source code in ConvDO/conv_operators.py
              51 52 53 54 55 56 57 58  |  | 
            __rtruediv__
¤
__rtruediv__(other)
Source code in ConvDO/conv_operators.py
              60 61 62 63 64 65 66 67  |  | 
            ConvDO.meta_type.VectorValue
¤
    A class to represent a 2D vector.
Supports basic operations such as addition, subtraction, multiplication, division, and dot product.
The vector is represented as a tuple (ux,uy), where ux and uy are the x and y components of the vector, respectively.
The x/y components of the vector can be any type that supports the basic operations.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
ux | 
            
                  Any
             | 
            
               x-component of the vector  | 
            required | 
uy | 
            
                  Any
             | 
            
               y-component of the vector  | 
            required | 
Source code in ConvDO/meta_type.py
                38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 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  |  | 
            __init__
¤
__init__(ux, uy) -> None
Source code in ConvDO/meta_type.py
              50 51 52  |  | 
            __str__
¤
__str__() -> str
Source code in ConvDO/meta_type.py
              54 55  |  | 
            __add__
¤
__add__(other)
Source code in ConvDO/meta_type.py
              58 59 60 61 62 63 64 65  |  | 
            __radd__
¤
__radd__(other)
Source code in ConvDO/meta_type.py
              67 68  |  | 
            __iadd__
¤
__iadd__(other)
Source code in ConvDO/meta_type.py
              70 71  |  | 
            __sub__
¤
__sub__(other)
Source code in ConvDO/meta_type.py
              73 74 75 76 77  |  | 
            __rsub__
¤
__rsub__(other)
Source code in ConvDO/meta_type.py
              79 80 81 82 83  |  | 
            __isub__
¤
__isub__(other)
Source code in ConvDO/meta_type.py
              85 86  |  | 
            __mul__
¤
__mul__(other)
Source code in ConvDO/meta_type.py
              89 90 91 92 93 94 95 96  |  | 
            __rmul__
¤
__rmul__(other)
Source code in ConvDO/meta_type.py
              98 99 100 101 102  |  | 
            __imul__
¤
__imul__(other)
Source code in ConvDO/meta_type.py
              104 105  |  | 
            __pow__
¤
__pow__(other)
Source code in ConvDO/meta_type.py
              107 108 109 110 111 112 113 114  |  | 
            __matmul__
¤
__matmul__(other)
Source code in ConvDO/meta_type.py
              118 119 120 121 122  |  | 
            __truediv__
¤
__truediv__(other)
Source code in ConvDO/meta_type.py
              124 125 126 127 128  |  |