@@ -107,16 +107,19 @@ function show_ranged(io::IO, X, knots)
107107 Base. print_array (io, [X (x... ) for x in Iterators. product (knots... )])
108108end
109109
110- getknots (X:: BSplineInterpolation ) = axes (X)
111- getknots (X:: ScaledInterpolation ) = X. ranges
112- getknots (X:: GriddedInterpolation ) = X. knots
113- getknots (X:: AbstractExtrapolation ) = getknots (parent (X))
110+ getknots (X:: BSplineInterpolation ) = axes (X)
111+ getknots (X:: ScaledInterpolation ) = X. ranges
112+ getknots (X:: GriddedInterpolation ) = X. knots
113+ getknots (X:: AbstractExtrapolation ) = getknots (parent (X))
114+ getknots (X:: MonotonicInterpolation ) = (X. knots,)
114115
115- Base. show (io:: IO , :: MIME{Symbol("text/plain")} , X:: ScaledInterpolation ) = show_ranged (io, X, getknots (X))
116- Base. show (io:: IO , :: MIME{Symbol("text/plain")} , X:: GriddedInterpolation ) = show_ranged (io, X, getknots (X))
117- Base. show (io:: IO , :: MIME{Symbol("text/plain")} , X:: AbstractExtrapolation ) = show_ranged (io, X, getknots (X))
116+ Base. show (io:: IO , :: MIME{Symbol("text/plain")} , X:: ScaledInterpolation ) = show_ranged (io, X, getknots (X))
117+ Base. show (io:: IO , :: MIME{Symbol("text/plain")} , X:: GriddedInterpolation ) = show_ranged (io, X, getknots (X))
118+ Base. show (io:: IO , :: MIME{Symbol("text/plain")} , X:: AbstractExtrapolation ) = show_ranged (io, X, getknots (X))
119+ Base. show (io:: IO , :: MIME{Symbol("text/plain")} , X:: MonotonicInterpolation ) = show_ranged (io, X, getknots (X))
118120
119121# these are called by show(X)
120- Base. show (io:: IO , X:: ScaledInterpolation ) = show_ranged (io, X, getknots (X))
121- Base. show (io:: IO , X:: GriddedInterpolation ) = show_ranged (io, X, getknots (X))
122- Base. show (io:: IO , X:: AbstractExtrapolation ) = show_ranged (io, X, getknots (X))
122+ Base. show (io:: IO , X:: ScaledInterpolation ) = show_ranged (io, X, getknots (X))
123+ Base. show (io:: IO , X:: GriddedInterpolation ) = show_ranged (io, X, getknots (X))
124+ Base. show (io:: IO , X:: AbstractExtrapolation ) = show_ranged (io, X, getknots (X))
125+ Base. show (io:: IO , X:: MonotonicInterpolation ) = show_ranged (io, X, getknots (X))
0 commit comments