File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 6
6
# transform_deriv() and transform_deriv_params()
7
7
8
8
"""
9
+ abstract type Transformation
10
+
9
11
The `Transformation` supertype defines a simple interface for performing
10
12
transformations. Subtypes should be able to apply a coordinate system
11
13
transformation on the correct data types by overloading the call method, and
@@ -15,6 +17,8 @@ Efficient compositions can optionally be defined by `compose()` (equivalently `
15
17
abstract type Transformation end
16
18
17
19
"""
20
+ IdentityTransformation <: Transformation
21
+
18
22
The `IdentityTransformation` is a singleton `Transformation` that returns the
19
23
input unchanged, similar to `identity`.
20
24
"""
@@ -23,8 +27,10 @@ struct IdentityTransformation <: Transformation; end
23
27
@inline (:: IdentityTransformation )(x) = x
24
28
25
29
"""
26
- A `ComposedTransformation` simply executes two transformations successively, and
27
- is the fallback output type of `compose()`.
30
+ ComposedTransformation{T1, T2} <: Transformation
31
+
32
+ A `ComposedTransformation` simply executes two transformations `T2` and `T1`
33
+ successively, and is the fallback output type of `compose()`.
28
34
"""
29
35
struct ComposedTransformation{T1 <: Transformation , T2 <: Transformation } <: Transformation
30
36
t1:: T1
You can’t perform that action at this time.
0 commit comments