Skip to content
Snippets Groups Projects
Unverified Commit 3f856466 authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

Fix type of bmat_gradient

parent cef85701
No related branches found
No related tags found
1 merge request!7Add variables as properties
......@@ -25,7 +25,7 @@ end
end
@defvar gradient begin
bmat_gradient(::NoGradient) = zero(SMatrix{3, 3, 9, Float64})
bmat_gradient(::NoGradient) = zero(SMatrix{3, 3, Float64, 9})
bmat_gradient(ngb::NoGradient, qstart::VariableType) = qstart^2 * variables.duration(ngb)
bmat_gradient(ngb::NoGradient, qstart::AbstractVector{<:VariableType}) = @. qstart * permutedims(qstart) * variables.duration(ngb)
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment