Skip to content

Instantly share code, notes, and snippets.

View heisenbuug's full-sized avatar
🏋️‍♂️
Building

Gopi M Tatiraju heisenbuug

🏋️‍♂️
Building
View GitHub Profile
@heisenbuug
heisenbuug / digamma_comp.md
Last active September 1, 2021 22:32
digamma: boost vs mlpack

Implementation of digamma

template<typename T>
T digamma(T x)
{
  T result = 0;

  // Check for negative arguments and use reflection
  if (x <= -1)
 {
-- The C compiler identification is GNU 11.1.1
-- The CXX compiler identification is GNU 11.1.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped