MADNESS 0.10.1
Functions
test_preliminaries.cpp File Reference
#include "../madqc/parameter_manager.hpp"
#include "GroundStateData.hpp"
#include "ResponseManager.hpp"
#include "madness/world/world.h"
#include <cassert>
#include <cmath>
#include <iostream>
#include <string>
#include <tensor_json.hpp>
Include dependency graph for test_preliminaries.cpp:

Functions

bool approximately_equal (double computed, double reference, double tol=1e-6)
 
std::pair< Tensor< double >, Tensor< double > > get_fock_from_json (const json &fock_json, double thresh, int k, bool spinrestricted)
 
int main (int argc, char **argv)
 
bool tensor_approx_equal (World &world, const Tensor< double > &computed, const Tensor< double > &reference, double tol=1e-6, bool verbose=true)
 

Function Documentation

◆ approximately_equal()

bool approximately_equal ( double  computed,
double  reference,
double  tol = 1e-6 
)

References std::abs().

◆ get_fock_from_json()

std::pair< Tensor< double >, Tensor< double > > get_fock_from_json ( const json fock_json,
double  thresh,
int  k,
bool  spinrestricted 
)

Referenced by main().

◆ main()

int main ( int  argc,
char **  argv 
)

◆ tensor_approx_equal()

bool tensor_approx_equal ( World world,
const Tensor< double > &  computed,
const Tensor< double > &  reference,
double  tol = 1e-6,
bool  verbose = true 
)