Skip to content

Commit

Permalink
add the remaining tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
kellertuer committed Dec 30, 2024
1 parent 2261efb commit 8dc437f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 1 addition & 5 deletions src/plans/vectorial_plan.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1164,11 +1164,7 @@ function get_value!(
i=:,
)
c = vgf.value!!(M, p)
if isa(c, Number)
V .= c
else
V .= c[i]
end
V .= c[i]
return V
end

Expand Down
2 changes: 2 additions & 0 deletions test/plans/test_vectorial_plan.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ using Manopt: get_value, get_value_function, get_gradient_function
jacobian_type=CoordinateVectorialType(DefaultOrthonormalBasis()),
evaluation=InplaceEvaluation(),
)
@test Manopt.get_jacobian_basis(vgf_ji) == vgf_ji.jacobian_type.basis
@test Manopt.get_jacobian_basis(vgf_vi) == DefaultOrthonormalBasis()
p = [1.0, 2.0, 3.0]
c = [0.0, -3.0]
gg = [[1.0, 0.0, 0.0], [0.0, -1.0, 0.0]]
Expand Down

0 comments on commit 8dc437f

Please sign in to comment.