This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <chrono> | |
| #include <vector> | |
| #include <Eigen/Core> | |
| #include <Eigen/LU> | |
| const int N = 10; | |
| const int n_matrix = 100000; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Copyright (c) 2014 Hartmut Kaiser | |
| // | |
| // Distributed under the Boost Software License, Version 1.0. (See accompanying | |
| // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
| #include <hpx/hpx_main.hpp> | |
| #include <hpx/include/components.hpp> | |
| #include <hpx/include/actions.hpp> | |
| #include <hpx/include/lcos.hpp> | |
| #include <hpx/util/lightweight_test.hpp> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <vector> | |
| #include <legion/legion.h> | |
| using namespace Legion; | |
| using namespace LegionRuntime::Arrays; | |
| using namespace LegionRuntime::HighLevel; | |
| enum {TOP_LEVEL_TASK_ID, NODE_TASK_ID}; | |
| int node_task(const Task *task, const std::vector<PhysicalRegion> ®ions, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <legion/legion.h> | |
| using namespace Legion; | |
| using namespace LegionRuntime::Arrays; | |
| using namespace LegionRuntime::HighLevel; | |
| enum {TOP_LEVEL_TASK_ID, NODE_TASK_ID}; | |
| enum {DATA_FIELD}; | |
| void node_task(const Task *task, const std::vector<PhysicalRegion> ®ions, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ~/test/boost_mt19937 $ g++ -o boost_mt19937 -I../boost_1_55_0 boost_mt19937.cpp && ./boost_mt19937 | |
| Using Boost 1.55.0 | |
| Seed = 1567 | |
| boost::random::mt19937 (w/o distribution): 566192331 4108148734 1430636451 4168466441 3895687773 | |
| boost::random::mt19937 (uniform_01): 0.986307 0.846789 0.653008 0.733521 0.977796 | |
| boost::random::mt19937 (normal_distribution): -0.995594 0.413405 1.18606 -0.30239 -0.598103 | |
| ~/test/boost_mt19937 $ g++ -o boost_mt19937 -I../boost_1_56_0 boost_mt19937.cpp && ./boost_mt19937 | |
| Using Boost 1.56.0 | |
| Seed = 1567 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/cmake/TRIQSConfig.cmake.in b/cmake/TRIQSConfig.cmake.in | |
| index ac6c4c5..646e7bf 100644 | |
| --- a/cmake/TRIQSConfig.cmake.in | |
| +++ b/cmake/TRIQSConfig.cmake.in | |
| @@ -199,9 +199,13 @@ macro (triqs_build_f2py_module target_name modulename module_pyf_name filelist1) | |
| ENDFOREACH(f) | |
| # write the script that will build the f2py extension | |
| SET(filename ${CMAKE_CURRENT_BINARY_DIR}/${filename} ) | |
| + SET(lapacklibs "") | |
| + FOREACH(l ${TRIQS_LIBRARY_LAPACK}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/env pytriqs | |
| import numpy | |
| from itertools import product | |
| import pytriqs.utility.mpi as mpi | |
| from pytriqs.archive import HDFArchive | |
| from pytriqs.parameters.parameters import Parameters | |
| from pytriqs.operators import * | |
| from pytriqs.applications.impurity_solvers.cthyb_matrix import * | |
| from pytriqs.gf.local import * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/env pytriqs | |
| import numpy | |
| from math import pi | |
| from cmath import sqrt, log | |
| from pytriqs.Base.GF_Local import * | |
| from pytriqs.Base.GF_Local.Descriptors import Function | |
| beta = 100 # Inverse temperature | |
| L = 101 # Number of Matsubara frequencies used in the Pade approximation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/CMakeLists.txt b/CMakeLists.txt | |
| index 7d3ddc2..2d1da4b 100644 | |
| --- a/CMakeLists.txt | |
| +++ b/CMakeLists.txt | |
| @@ -125,8 +125,10 @@ FILE(COPY ${TRIQS_SOURCE_DIR}/pytriqs DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/ F | |
| if(BOOST_SOURCE_DIR) | |
| FILE(COPY ${TRIQS_SOURCE_DIR}/foreignlibs/boost DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/ FILES_MATCHING PATTERN *.py PATTERN *.svn EXCLUDE ) | |
| else(BOOST_SOURCE_DIR) | |
| - EXEC_PYTHON_SCRIPT ("import boost; print boost.__path__[0]" BOOST_MODULE_DIR) | |
| - execute_process(COMMAND ln -fs ${BOOST_MODULE_DIR} ${CMAKE_CURRENT_BINARY_DIR}/pytriqs) |