-
-
Notifications
You must be signed in to change notification settings - Fork 667
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: Wrap new variant of itkLBFGS2Optimizerv4
The new optimizer is based on modern c++ code rather than converted fortran code. The new optimizer also has a few interesting modes that are not available in the original fortran implementation. The LBFGS2 optimizer is only wrappable for double precision internal computation type due to current limitations of the core library only being able to be compiled for one data type at a time. Add static_assert to more clearly present this limitation at compiletime.
- Loading branch information
1 parent
267876b
commit 44c06f6
Showing
3 changed files
with
20 additions
and
11 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
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
13 changes: 13 additions & 0 deletions
13
Modules/Numerics/Optimizersv4/wrapping/itkLBFGS2Optimizerv4.wrap
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,13 @@ | ||
set(WRAPPER_AUTO_INCLUDE_HEADERS OFF) | ||
itk_wrap_include("itkLBFGS2Optimizerv4.h") | ||
|
||
itk_wrap_simple_class("itk::LBFGS2Optimizerv4Enums") | ||
|
||
# only double supported at the momemnt unique(types "D;${WRAP_ITK_REAL}") | ||
unique(types "D") | ||
|
||
itk_wrap_class("itk::LBFGS2Optimizerv4Template" POINTER_WITH_CONST_POINTER) | ||
foreach(t ${types}) | ||
itk_wrap_template("${ITKM_${t}}" "${ITKT_${t}}") | ||
endforeach() | ||
itk_end_wrap_class() |