Commit 8072d4b7 authored by Juan Ignacio Polanco's avatar Juan Ignacio Polanco

Define order(::BSplineOrder)

parent 019f0ea8
......@@ -54,11 +54,13 @@ knots(g::BSplineBasis) = g.t
order(::Type{BSplineBasis}) -> Int
order(::Type{Spline}) -> Int
order(::BSplineOrder) -> Int
Returns order of B-splines.
Returns order of B-splines as an integer.
order(::Type{<:BSplineBasis{k}}) where {k} = k
order(b::BSplineBasis) = order(typeof(b))
order(::BSplineOrder{k}) where {k} = k
BSpline{B <: BSplineBasis}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment