#include #include #include "tests.h" int RunTests() { // Py_SetProgramName("MatricesTest"); /* optional but recommended */ Py_Initialize(); PyRun_SimpleString("import numpy as np"); PyRun_SimpleString("def compare_floats(f1,f2,tol):\n return np.isclose(f1,f2,rtol=tol)"); bool print = 0; for(int i = 0; i < 10; i++) { // std::cout<(2,print)<(j,print)) { std::cerr<<"Error testing float inverse. Try again to verify that this is not a statistical error."<(j,print)) { std::cerr<<"Error testing double inverse. Try again to verify that this is not a statistical error."<>(j,print)) { std::cerr<<"Error testing complex float inverse. Try again to verify that this is not a statistical error."<>(j,print)) { std::cerr<<"Error testing complex double inverse. Try again to verify that this is not a statistical error."<