We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3022a9f commit 7b0930dCopy full SHA for 7b0930d
src/flatten.jl
@@ -8,7 +8,7 @@ _fieldvals(x::Tuple) = x
8
end
9
10
11
-getndof(x::Real) where {T} = static(1)
+getndof(x::Real) = static(1)
12
getndof(x::Tuple{}) = static(0)
13
getndof(x::NTuple{N,Real}) where N = static(N)
14
getndof(x::T) where {T} = sum(map(getndof, _fieldvals(x)))
0 commit comments