SHG C++ library.