ergo
machine_epsilon.h File Reference

Functionality for determining an approximate value of the "machine epsilon" – the smallest number that can be added to 1 giving a result different from 1, using the ergo_real floating-point type. More...

#include "realtype.h"

Go to the source code of this file.

Functions

ergo_real get_machine_epsilon (void)
 return machine epsilon. More...
 

Detailed Description

Functionality for determining an approximate value of the "machine epsilon" – the smallest number that can be added to 1 giving a result different from 1, using the ergo_real floating-point type.

Author
: Elias Rudberg responsible

Function Documentation

◆ get_machine_epsilon()

ergo_real get_machine_epsilon ( )

return machine epsilon.

This routine is deprecated. Use instead:

  • std::numeric_limits<double>::epsilon() in C++;
  • or FLT_EPSILON for single precision, DBL_EPSILON for double precision or or LDBL_EPSILON in long double - in C.

Referenced by SCF_restricted::disturb_dens_matrix_exact_try(), SCF_restricted::get_2e_part_and_energy(), GetDensFromFock::get_dens_from_fock_sparse(), SCF_restricted::get_non_ort_err_mat_normalized_in_ort_basis(), BasisInfoStruct::normalizeShells(), SCF_general::SCF_general(), and SCF_restricted::update_subspace_diff().