@@ -164,7 +164,13 @@ for FUNC in (:conversion_type,:maxspace)
164
164
end
165
165
166
166
167
- # gives a space c that has a banded conversion operator TO a and b
167
+ """
168
+ conversion_type(a::Space, b::Space)
169
+
170
+ Return a space that has a banded conversion operator TO `a` and `b`
171
+
172
+ See also [`maxspace`](@ref)
173
+ """
168
174
function conversion_type (a,b)
169
175
if spacescompatible (a,b)
170
176
a
181
187
182
188
183
189
190
+ """
191
+ maxspace(a::Space, b::Space)
192
+
193
+ Return a space that has a banded conversion operator FROM `a` and `b`
184
194
185
- # gives a space c that has a banded conversion operator FROM a and b
195
+ See also [`conversion_type`](@ref)
196
+ """
186
197
maxspace (a,b) = NoSpace () # TODO : this fixes weird bug with Nothing
187
198
function maxspace (a:: Space , b:: Space )
188
199
if spacescompatible (a,b)
@@ -278,11 +289,19 @@ end
278
289
279
290
union (a:: Space , bs:: Space... ) = foldl (union, bs, init = a)
280
291
281
- # tests whether a Conversion operator exists
292
+ """
293
+ hasconversion(a,b)
294
+
295
+ Test whether a banded `Conversion` operator exists.
296
+ """
282
297
hasconversion (a,b) = maxspace (a,b) == b
283
298
284
299
285
- # tests whether a coefficients can be converted to b
300
+ """
301
+ isconvertible(a::Space, b::Space)
302
+
303
+ Test whether coefficients may be converted from `a` to `b` through a banded `Conversion` operator.
304
+ """
286
305
isconvertible (a,b) = a == b || hasconversion (a,b)
287
306
288
307
# # Conversion routines
@@ -328,6 +347,7 @@ function defaultcoefficients(f,a,b,inplace = Val(false))
328
347
end
329
348
if spacescompatible (a,csp) || spacescompatible (b,csp)
330
349
# b is csp too, so we are stuck, try Fun constructor
350
+ # This only works for the out-of-place version as of now
331
351
_coefficients!! (inplace)(default_Fun (_Fun (f,a),b))
332
352
else
333
353
_coefficients!! (inplace)(f,a,csp,b)
472
492
473
493
474
494
"""
475
- `ConstantSpace` is the 1-dimensional scalar space.
495
+ ConstantSpace
496
+
497
+ The 1-dimensional scalar space.
476
498
"""
477
499
struct ConstantSpace{DD,R} <: Space{DD,R}
478
500
domain:: DD
@@ -519,7 +541,9 @@ blocklengths(::ConstantSpace) = Vec(1)
519
541
struct SequenceSpace <: Space{PositiveIntegers,Nothing} end
520
542
521
543
"""
522
- `SequenceSpace` is the space of all sequences, i.e., infinite vectors.
544
+ SequenceSpace
545
+
546
+ The space of all sequences, i.e., infinite vectors.
523
547
Also denoted ℓ⁰.
524
548
"""
525
549
SequenceSpace ()
0 commit comments