-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fe5d1c6
commit 85c1a64
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using Manifolds, Manopt, Test | ||
|
||
@testset "Nonlinear lest squares plane" begin | ||
@testset "Test cost/residual/jacobian cases with smoothing" begin end | ||
@testset "Smootthing factory" begin | ||
s1 = Manopt.smoothing_factory(:Identity) | ||
@test s1 isa ManifoldHessianObjective | ||
|
||
s2 = Manopt.smoothing_factory((:Identity, 2)) | ||
@test s2 isa VectorHessianFunction | ||
@test length(s2) == 2 | ||
|
||
s3 = Manopt.smoothing_factory((:Identity, 3.0)) | ||
@test s3 isa ManifoldHessianObjective | ||
|
||
for s in [:Arctan, :Cauchy, :Huber, :SoftL1, :Tukey] | ||
s4 = Manopt.smoothing_factory(s) | ||
@test s4 isa ManifoldHessianObjective | ||
end | ||
|
||
s5 = Manopt.smoothing_factory(((:Identity, 2), (:Huber, 3))) | ||
@test s5 isa VectorHessianFunction | ||
@test length(s5) == 5 | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters