You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constructor_of(::Type{D}) where {D<:AbstractDimensions} = D
8
-
constructor_of(::Type{D}) where {R,D<:AbstractDimensions{R}} = D.name.wrapper
9
-
constructor_of(::Type{Q}) where {Q<:AbstractQuantity} = Q
10
-
constructor_of(::Type{Q}) where {T,Q<:AbstractQuantity{T}} = Q.body.name.wrapper
11
-
constructor_of(::Type{Q}) where {T,R,Q<:AbstractQuantity{T,R}} = Q.name.wrapper
12
-
13
9
"""
14
10
Dimensions{R}
15
11
@@ -36,7 +32,6 @@ which is by default a rational number.
36
32
- `Dimensions(::Type{R}; kws...)` or `Dimensions{R}(; kws...)`: Pass a subset of dimensions as keyword arguments, with the output type set to `Dimensions{R}`.
37
33
- `Dimensions{R}(args...)`: Pass all the dimensions as arguments, with the output type set to `Dimensions{R}`.
38
34
- `Dimensions{R}(d::Dimensions)`: Copy the dimensions from another `Dimensions` object, with the output type set to `Dimensions{R}`.
0 commit comments