Fix indentation (use spaces) and isfinite -> std::isfinite