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 cdfb8d9 commit 9833f11Copy full SHA for 9833f11
src/flatten.jl
@@ -13,7 +13,7 @@ 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)))
15
getndof(x::StaticArrays.StaticArray{sz, <:Real}) where sz = static(prod(size(x)))
16
-getndof(x::AbstractArray{<:Real}) where T = prod(size(x))
+getndof(x::AbstractArray{<:Real}) = prod(size(x))
17
# getndof(x::AbstractArray) # ToDo
18
19
0 commit comments