Skip to content

Instantly share code, notes, and snippets.

View agirault's full-sized avatar
👨‍💻

Alexis Girault agirault

👨‍💻
View GitHub Profile
@agirault
agirault / Modif&Errors.cpp
Created March 24, 2014 18:19
compilation errors after creating new solver to be added to the CSolverFactory for calaTK
=> MODIFICATIONS
/* In CSolverFactory.h */
+ #include "CSolverStepLengthSelection.h"
+ typedef CSolverStepLengthSelection< TState > SolverStepLengthSelection;
+ enum NumericSolverType {StepLengthSelection, LineSearchUnconstrained, LineSearchConstrained, IpOpt, LBFGS, NLOPT };
- enum NumericSolverType {LineSearchUnconstrained, LineSearchConstrained, IpOpt, LBFGS, NLOPT };
/* In CSolverFactory.txx */
CSolverFactory< TState >::CreateNewSolver( NumericSolverType solver )
# Compute -G arg for configuring external projects with the same CMake generator:
if(CMAKE_EXTRA_GENERATOR)
set(gen "${CMAKE_EXTRA_GENERATOR} - ${CMAKE_GENERATOR}")
else()
set(gen "${CMAKE_GENERATOR}")
endif()
size_t found = m_FilePath.find_last_of("/\\");
m_FileDir = str.substr(0,found);
m_FileName = str.substr(found+1);