From 14946ddb5b1752629b4144c565d245679501719f Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Thu, 11 Jun 2026 01:15:47 -0500 Subject: [PATCH 01/51] qmc/sse: default EPSILON to an ergodic value for sign-problematic models The sse4 worker reads EPSILON (default 0) and floors it to 1e-6 regardless of the Hamiltonian. The per-bond diagonal constant is c(type) = epsilon + max_diag_me(type), so the vertex carrying the maximum diagonal matrix element is inserted with weight c - me = epsilon ~= 1e-6. On a sign-problematic (frustrated / non-bipartite) Hamiltonian this makes the diagonal update effectively non-ergodic: the operator-string sampler freezes, the expansion order is undersampled, and the simulation reports a confidently wrong, seed-dependent energy with small error bars. A 3x3 Heisenberg lattice with periodic boundary conditions gives = -3.39 at beta=1 against the exact thermal average -2.6525 (checked with two independent exact diagonalizations). The constructor already warned about exactly this case ("make sure that EPSILON is ergodic") but proceeded with the non-ergodic floor. The SSE energy estimator is invariant to EPSILON (a constant shift of the diagonal vertex weights), so when EPSILON is unset and the model is signed, default it to the largest diagonal matrix element. That gives the maximum-diagonal vertex an O(1) insertion weight and restores ergodicity, auto-scaling with the model. Sign-free models keep the previous 1e-6 floor bit-identically (they are ergodic at EPSILON=0, and a larger shift would only inflate the expansion order), so existing unfrustrated results are unchanged. An explicit EPSILON still overrides everything, as before. The warning is reworded into a note describing the applied default. Root-caused and fixed in the ALPS modernization fork while chasing wrong SSE energies on periodic 2-D lattices; instrumentation first refuted a bond-counting hypothesis and then identified the frozen diagonal update. Verified there against exact diagonalization on a periodic 3x3 Heisenberg lattice (SSE reproduces the exact within error bars after this change, with no EPSILON set) plus unchanged results on chains and open 2-D/3-D lattices. Co-Authored-By: Claude Fable 5 --- applications/qmc/sse4/model.h | 34 +++++++++++++++++++++++++++++----- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/applications/qmc/sse4/model.h b/applications/qmc/sse4/model.h index 226225fcc..33918984a 100644 --- a/applications/qmc/sse4/model.h +++ b/applications/qmc/sse4/model.h @@ -80,8 +80,9 @@ class Model { { epsilon = params.value_or_default("EPSILON", 0.0); if (epsilon <= 0.0 && model.is_signed()) - std::cout << "Warning: Hamiltonian has a sign problem and EPSILON=0; " - "make sure that EPSILON is ergodic.\n"; + std::cout << "Note: Hamiltonian has a sign problem and EPSILON is unset; " + "defaulting EPSILON to the largest diagonal matrix element so the " + "diagonal update is ergodic (pass EPSILON explicitly to override).\n"; _nbstates.resize(lattice.max_site_type() + 1); for (unsigned i = 0; i < lattice.nsites(); ++i) { @@ -328,9 +329,32 @@ class Model { if (epsilon == 0.0 && !have_diagonal) throw std::runtime_error("Hamiltonian looks purely off-diagonal. " "Parameter EPSILON has to be non zero for SSE to work."); - - if (epsilon <= 0.0) - epsilon = 1e-6; + + if (epsilon <= 0.0) { + if (model.is_signed()) { + // With EPSILON ~= 0 the maximum-diagonal vertex is left with + // diagonal-insertion weight c - me = epsilon ~= 0 (where + // c(type) = epsilon + _max_diag_me[type]). On a + // sign-problematic (frustrated / non-bipartite) Hamiltonian + // that makes the diagonal update NON-ERGODIC: the worker + // freezes, undersamples the expansion order, and reports a + // confidently-wrong, seed-dependent (e.g. periodic 3x3 + // Heisenberg -> -3.39 vs the exact -2.6525 at beta=1). The + // SSE energy is INVARIANT to EPSILON (it is a constant shift + // of the operator string), so default it to the largest + // diagonal matrix element, giving that vertex an O(1) + // weight. Pass EPSILON explicitly to override. Sign-free + // models are ergodic at EPSILON=0, so keep the tiny shift + // there to avoid needlessly inflating the expansion order. + double ergodic = 1e-6; + for (std::vector::const_iterator it = _max_diag_me.begin(); + it != _max_diag_me.end(); ++it) + if (*it > ergodic) ergodic = *it; + epsilon = ergodic; + } else { + epsilon = 1e-6; + } + } std::set::const_iterator sti = site_types.begin(); for (; sti != site_types.end(); ++sti) From f280192b2330f3040dfe84452843474310681694 Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Wed, 22 Jul 2026 17:45:33 -0500 Subject: [PATCH 02/51] qmc/sse: apply signed epsilon default before fallback --- applications/qmc/sse4/model.h | 46 ++++++++++------------------------- 1 file changed, 13 insertions(+), 33 deletions(-) diff --git a/applications/qmc/sse4/model.h b/applications/qmc/sse4/model.h index 85ce5f080..17f8aecc8 100644 --- a/applications/qmc/sse4/model.h +++ b/applications/qmc/sse4/model.h @@ -90,19 +90,6 @@ class Model { _lowering_matrix_elements.resize(lattice.max_site_type() + 1); construct_vertices(); - - if (epsilon <= 0.0 && model.is_signed()) { - epsilon = *std::max_element( - _max_diag_me.begin(), - _max_diag_me.end() - ); - - std::cout - << "Warning: Hamiltonian has a sign problem and EPSILON<=0.\n" - << "Automatically setting EPSILON = " - << epsilon - << " (largest diagonal matrix element).\n"; - } } std::vector const& nbstates() const @@ -289,8 +276,7 @@ class Model { unsigned nneighbors0 = lattice.nneighbors(sites[0]); unsigned nneighbors1 = lattice.nneighbors(sites[1]); - // _max_diag_me[i] = std::numeric_limits::min(); - _max_diag_me[i] = std::numeric_limits::lowest(); + _max_diag_me[i] = std::numeric_limits::lowest(); for (unsigned l = 0; l < nstates[i]; ++l) { vertex_type vertex; @@ -339,28 +325,22 @@ class Model { if (epsilon == 0.0 && !have_diagonal) throw std::runtime_error("Hamiltonian looks purely off-diagonal. " "Parameter EPSILON has to be non zero for SSE to work."); - if (epsilon <= 0.0) { if (model.is_signed()) { - // With EPSILON ~= 0 the maximum-diagonal vertex is left with - // diagonal-insertion weight c - me = epsilon ~= 0 (where - // c(type) = epsilon + _max_diag_me[type]). On a - // sign-problematic (frustrated / non-bipartite) Hamiltonian - // that makes the diagonal update NON-ERGODIC: the worker - // freezes, undersamples the expansion order, and reports a - // confidently-wrong, seed-dependent (e.g. periodic 3x3 - // Heisenberg -> -3.39 vs the exact -2.6525 at beta=1). The - // SSE energy is INVARIANT to EPSILON (it is a constant shift - // of the operator string), so default it to the largest - // diagonal matrix element, giving that vertex an O(1) - // weight. Pass EPSILON explicitly to override. Sign-free - // models are ergodic at EPSILON=0, so keep the tiny shift - // there to avoid needlessly inflating the expansion order. - double ergodic = 1e-6; + // A tiny EPSILON can make the diagonal update effectively + // non-ergodic for signed models. Use the largest positive + // diagonal matrix element once those elements are known. + epsilon = 1e-6; for (std::vector::const_iterator it = _max_diag_me.begin(); it != _max_diag_me.end(); ++it) - if (*it > ergodic) ergodic = *it; - epsilon = ergodic; + if (*it > epsilon) + epsilon = *it; + + std::cout + << "Warning: Hamiltonian has a sign problem and EPSILON<=0.\n" + << "Automatically setting EPSILON = " << epsilon + << " (largest positive diagonal matrix element, with a " + "1e-6 minimum).\n"; } else { epsilon = 1e-6; } From 7e9abaed7fe71398a4d55d65a669e52ebaf56d87 Mon Sep 17 00:00:00 2001 From: Emanuel Gull Date: Sun, 16 Aug 2026 08:10:26 -0400 Subject: [PATCH 03/51] copyright print notices for hybridization, interaction, framework --- applications/dmft/qmc/hybridization/hybmain.cpp | 12 ++++++++++++ .../dmft/qmc/interaction_expansion2/main.cpp | 11 +++++++++++ applications/dmft/qmc/main.C | 12 +++++++++--- applications/dmft/qmc/solver_main.C | 10 +++++++++- 4 files changed, 41 insertions(+), 4 deletions(-) diff --git a/applications/dmft/qmc/hybridization/hybmain.cpp b/applications/dmft/qmc/hybridization/hybmain.cpp index df8bd8f85..0cf697b76 100644 --- a/applications/dmft/qmc/hybridization/hybmain.cpp +++ b/applications/dmft/qmc/hybridization/hybmain.cpp @@ -30,6 +30,7 @@ #include "hyb.hpp" #include "hybevaluate.hpp" +#include #include #ifdef ALPS_HAVE_MPI #include @@ -82,6 +83,17 @@ int main(int argc, char** argv){ global_mpi_rank=c.rank(); sim_type s(parms, c); #endif + if (global_mpi_rank==0) { + alps::print_copyright(std::cout); + std::cout << "****************************************************************"< #include #ifdef ALPS_HAVE_MPI #include @@ -79,6 +80,16 @@ int main(int argc, char** argv) global_mpi_rank=c.rank(); sim_type s(parms, c); #endif + if (global_mpi_rank==0) { + alps::print_copyright(std::cout); + std::cout << "****************************************************************"< - * Philipp Werner , + * Copyright (C) 2005 - 2026 by Emanuel Gull + * 2005 - 2009 by Philipp Werner , * Sebastian Fuchs * Matthias Troyer * 2012 - 2013 by Jakub Imriska @@ -84,10 +84,16 @@ int main(int argc, char** argv) std::cout << " For further information see the ALPS DMFT paper: "< Date: Thu, 23 Jul 2026 00:25:19 -0500 Subject: [PATCH 04/51] chore: consolidate build config into cmake/ and prune legacy root Relocate the CMake modules and build helpers from config/ to cmake/ (git-tracked renames, contents unchanged) and drop dead legacy: - remove Debian sid packaging (SVN/wheezy-era, unreferenced; superseded by the wheel + CPack packaging paths) - remove SVN-era license-header tooling (preamble*.in, update_preamble*) - remove stale root files (README.txt, README-package.txt, Welcome.txt, CTestConfig.cmake) - add CITATION.md and CMakePresets.json The config/ directory is now gone; cmake/ is the single home for build configuration. No functional/build behavior change. Co-Authored-By: Claude Opus 4.8 (1M context) --- .gitignore | 25 +++- CITATION.md | 29 ++++ CMakeLists.txt | 18 +-- CMakePresets.json | 33 +++++ CONTRIBUTING.md | 15 +- CTestConfig.cmake | 14 -- README-package.txt | 127 ---------------- README.md | 52 ++++++- README.txt | 1 - Welcome.txt | 4 - {config => cmake}/ALPSBuildname.cmake | 0 {config => cmake}/ALPSConfig.cmake.in | 0 {config => cmake}/ALPSCore.cmake | 0 {config => cmake}/ALPSTesting.cmake | 0 {config => cmake}/BoostUtils.cmake | 0 {config => cmake}/CMakeLists.txt | 0 {config => cmake}/Compilers.cmake | 0 {config => cmake}/Distribution.xml.in | 0 {config => cmake}/FindBoostForALPS.cmake | 0 {config => cmake}/FindBoostSrc.cmake | 0 {config => cmake}/FindDocbookDtd.cmake | 0 {config => cmake}/FindDocbookXsl.cmake | 0 {config => cmake}/FindFop.cmake | 0 {config => cmake}/FindLPSolve.cmake | 0 {config => cmake}/FindLapack.cmake | 0 {config => cmake}/FindMPIForALPS.cmake | 0 {config => cmake}/FindPythonMod.cmake | 0 {config => cmake}/FindSQLite.cmake | 0 {config => cmake}/FindSZIP.cmake | 0 {config => cmake}/FindSphinx.cmake | 0 {config => cmake}/FindXsltproc.cmake | 0 {config => cmake}/UseALPS.cmake | 0 {config => cmake}/add_alps_test.cmake | 16 +-- {config => cmake}/alps_logo.png | Bin {config => cmake}/include.mk.in | 0 {config => cmake}/make_package.sh.in | 0 {config => cmake}/passthru.py | 0 {config => cmake}/py-compile | 0 {config => cmake}/run_test.cmake | 0 {config => cmake}/run_test_mpi.cmake | 0 config/debian/sid/.bzr-builddeb/default.conf | 3 - config/debian/sid/.bzrignore | 1 - config/debian/sid/README.source | 6 - config/debian/sid/alps-applications.install | 17 --- config/debian/sid/alps-tutorials.install | 1 - config/debian/sid/changelog | 61 -------- config/debian/sid/compat | 1 - config/debian/sid/control | 121 ---------------- config/debian/sid/copyright | 29 ---- config/debian/sid/libalps-bin.install | 36 ----- config/debian/sid/libalps-dev.install | 5 - config/debian/sid/libalps-dev.links | 1 - config/debian/sid/libalps.install | 2 - .../sid/libboost-numeric-bindings-dev.install | 1 - config/debian/sid/python-pyalps.install | 3 - config/debian/sid/rules | 23 --- config/debian/sid/source/format | 1 - config/preamble-light.in | 39 ----- config/preamble.in | 28 ---- config/preamble_py.in | 28 ---- config/update_preamble | 136 ------------------ config/update_preamble_py | 136 ------------------ 62 files changed, 155 insertions(+), 858 deletions(-) create mode 100644 CITATION.md create mode 100644 CMakePresets.json delete mode 100644 CTestConfig.cmake delete mode 100644 README-package.txt delete mode 100644 README.txt delete mode 100644 Welcome.txt rename {config => cmake}/ALPSBuildname.cmake (100%) rename {config => cmake}/ALPSConfig.cmake.in (100%) rename {config => cmake}/ALPSCore.cmake (100%) rename {config => cmake}/ALPSTesting.cmake (100%) rename {config => cmake}/BoostUtils.cmake (100%) rename {config => cmake}/CMakeLists.txt (100%) rename {config => cmake}/Compilers.cmake (100%) rename {config => cmake}/Distribution.xml.in (100%) rename {config => cmake}/FindBoostForALPS.cmake (100%) rename {config => cmake}/FindBoostSrc.cmake (100%) rename {config => cmake}/FindDocbookDtd.cmake (100%) rename {config => cmake}/FindDocbookXsl.cmake (100%) rename {config => cmake}/FindFop.cmake (100%) rename {config => cmake}/FindLPSolve.cmake (100%) rename {config => cmake}/FindLapack.cmake (100%) rename {config => cmake}/FindMPIForALPS.cmake (100%) rename {config => cmake}/FindPythonMod.cmake (100%) rename {config => cmake}/FindSQLite.cmake (100%) rename {config => cmake}/FindSZIP.cmake (100%) rename {config => cmake}/FindSphinx.cmake (100%) rename {config => cmake}/FindXsltproc.cmake (100%) rename {config => cmake}/UseALPS.cmake (100%) rename {config => cmake}/add_alps_test.cmake (91%) rename {config => cmake}/alps_logo.png (100%) rename {config => cmake}/include.mk.in (100%) rename {config => cmake}/make_package.sh.in (100%) rename {config => cmake}/passthru.py (100%) rename {config => cmake}/py-compile (100%) rename {config => cmake}/run_test.cmake (100%) rename {config => cmake}/run_test_mpi.cmake (100%) delete mode 100644 config/debian/sid/.bzr-builddeb/default.conf delete mode 100644 config/debian/sid/.bzrignore delete mode 100644 config/debian/sid/README.source delete mode 100644 config/debian/sid/alps-applications.install delete mode 100644 config/debian/sid/alps-tutorials.install delete mode 100644 config/debian/sid/changelog delete mode 100644 config/debian/sid/compat delete mode 100644 config/debian/sid/control delete mode 100644 config/debian/sid/copyright delete mode 100644 config/debian/sid/libalps-bin.install delete mode 100644 config/debian/sid/libalps-dev.install delete mode 100644 config/debian/sid/libalps-dev.links delete mode 100644 config/debian/sid/libalps.install delete mode 100644 config/debian/sid/libboost-numeric-bindings-dev.install delete mode 100644 config/debian/sid/python-pyalps.install delete mode 100755 config/debian/sid/rules delete mode 100644 config/debian/sid/source/format delete mode 100644 config/preamble-light.in delete mode 100644 config/preamble.in delete mode 100644 config/preamble_py.in delete mode 100755 config/update_preamble delete mode 100755 config/update_preamble_py diff --git a/.gitignore b/.gitignore index 34c84c5a4..97e8c171d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,21 @@ -# Build directories -*build*/ - -# IDE directories -.idea/* +# Build and generated directories +/build/ +/_build/ +CMakeFiles/ +CMakeCache.txt +cmake_install.cmake +compile_commands.json + +# Editors and operating systems +.idea/ +.vscode/ +.DS_Store + +# Python tooling +.pytest_cache/ +.ruff_cache/ +__pycache__/ +*.py[cod] # Prerequisites *.d @@ -36,5 +49,3 @@ *.exe *.out *.app - -__pycache__ diff --git a/CITATION.md b/CITATION.md new file mode 100644 index 000000000..5d81cfa04 --- /dev/null +++ b/CITATION.md @@ -0,0 +1,29 @@ +# Citing ALPS + +If ALPS contributes to published research, please cite the framework papers below and any method-specific paper relevant to the application you used. Citation is requested as scholarly acknowledgement; it is not a condition of the MIT license in [`LICENSE.txt`](LICENSE.txt). + +## Framework papers + +Please cite both ALPS framework papers: + +1. A. F. Albuquerque *et al.*, “The ALPS project release 1.3: Open-source software for strongly correlated systems,” *Journal of Magnetism and Magnetic Materials* **310**, 1187–1193 (2007). [doi:10.1016/j.jmmm.2006.10.304](https://doi.org/10.1016/j.jmmm.2006.10.304) +2. B. Bauer *et al.*, “The ALPS project release 2.0: Open source software for strongly correlated systems,” *Journal of Statistical Mechanics: Theory and Experiment* **2011**, P05001 (2011). [doi:10.1088/1742-5468/2011/05/P05001](https://doi.org/10.1088/1742-5468/2011/05/P05001) + +## Method-specific papers + +Add the applicable paper from this table. Application names match directories or executables in this repository. + +| Application or component | Additional citation | +| --- | --- | +| `applications/qmc/looper` (`loop`, `loop_mpi`) | S. Todo and K. Kato, “Cluster Algorithms for General-S Quantum Spin Systems,” *Physical Review Letters* **87**, 047203 (2001). [doi:10.1103/PhysRevLett.87.047203](https://doi.org/10.1103/PhysRevLett.87.047203) | +| `applications/qmc/qwl` | M. Troyer, S. Wessel, and F. Alet, “Flat Histogram Methods for Quantum Systems,” *Physical Review Letters* **90**, 120201 (2003). [doi:10.1103/PhysRevLett.90.120201](https://doi.org/10.1103/PhysRevLett.90.120201) | +| Continuous-time QMC impurity solvers and the DMFT framework | E. Gull, P. Werner, S. Fuchs, B. Surer, T. Pruschke, and M. Troyer, “Continuous-time quantum Monte Carlo impurity solvers,” *Computer Physics Communications* **182**, 1078–1082 (2011). [doi:10.1016/j.cpc.2010.12.050](https://doi.org/10.1016/j.cpc.2010.12.050) | +| DMRG/MPS applications | M. Dolfi *et al.*, “Matrix product state applications for the ALPS project,” *Computer Physics Communications* **185**, 3430–3440 (2014). [doi:10.1016/j.cpc.2014.08.019](https://doi.org/10.1016/j.cpc.2014.08.019) | + +The framework papers are sufficient for `sse`, `spinmc`, `fulldiag`, `sparsediag`, and `worm` unless a publication describes a more specific algorithmic reference. For specialized models or algorithms, also cite the primary scientific source on which the calculation is based. + +## Citation metadata + +Use the DOI links above to obtain current BibTeX, RIS, or other citation metadata from the publishers. This avoids maintaining duplicate hand-written records that can drift from the authoritative metadata. + +When describing reproducibility, also record the ALPS release or Git commit used in the calculation. diff --git a/CMakeLists.txt b/CMakeLists.txt index 4a7995efd..8b202cf49 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -122,7 +122,7 @@ message(STATUS "Build type: " ${CMAKE_BUILD_TYPE}) ###################################################################### # CMAKE_MODULE_PATH ###################################################################### -list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/config) +list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) ###################################################################### # set default CMAKE_INSTALL_PREFIX @@ -436,8 +436,8 @@ if(PYTHON_LIBRARY) list(APPEND ALPS_EXTRA_LIBRARIES ${PYTHON_LIBRARY}) endif(PYTHON_LIBRARY) -configure_file(config/ALPSConfig.cmake.in ${PROJECT_BINARY_DIR}/config/ALPSConfig.cmake @ONLY) -configure_file(config/include.mk.in ${PROJECT_BINARY_DIR}/config/include.mk) +configure_file(cmake/ALPSConfig.cmake.in ${PROJECT_BINARY_DIR}/config/ALPSConfig.cmake @ONLY) +configure_file(cmake/include.mk.in ${PROJECT_BINARY_DIR}/config/include.mk) # installation @@ -474,17 +474,17 @@ endif() install(DIRECTORY ${PROJECT_BINARY_DIR}/lib/xml DESTINATION ${ALPS_XML_PATH} COMPONENT xml) -add_subdirectory(config) +add_subdirectory(cmake) -install(FILES config/UseALPS.cmake +install(FILES cmake/UseALPS.cmake ${PROJECT_BINARY_DIR}/config/ALPSConfig.cmake ${PROJECT_BINARY_DIR}/config/include.mk - config/run_test.cmake - config/run_test_mpi.cmake - config/add_alps_test.cmake + cmake/run_test.cmake + cmake/run_test_mpi.cmake + cmake/add_alps_test.cmake DESTINATION share/alps COMPONENT build) -install(FILES LICENSE.txt README.md +install(FILES CITATION.md LICENSE.txt README.md DESTINATION share/alps COMPONENT libraries) if(ALPS_BUILD_PYTHON AND ALPS_PYTHON_LIB_DEST_ROOT) string(CONFIGURE [[ diff --git a/CMakePresets.json b/CMakePresets.json new file mode 100644 index 000000000..693c0c554 --- /dev/null +++ b/CMakePresets.json @@ -0,0 +1,33 @@ +{ + "version": 3, + "cmakeMinimumRequired": { + "major": 3, + "minor": 21, + "patch": 0 + }, + "configurePresets": [ + { + "name": "default", + "displayName": "Default release build", + "binaryDir": "${sourceDir}/_build/default", + "cacheVariables": { + "CMAKE_BUILD_TYPE": "Release" + } + } + ], + "buildPresets": [ + { + "name": "default", + "configurePreset": "default" + } + ], + "testPresets": [ + { + "name": "default", + "configurePreset": "default", + "output": { + "outputOnFailure": true + } + } + ] +} diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a6565acac..c64d68452 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -52,9 +52,9 @@ Before opening a new issue, please search existing issues to avoid duplicates. - CMake ≥ 3.18 - A C++17-capable compiler (GCC, Clang, Intel, or Fujitsu) -- Boost (bundled copy included; or provide your own with `-DALPS_USE_SYSTEM_BOOST=ON`) +- Boost (downloaded automatically during configuration; or use a system install with `-DALPS_USE_SYSTEM_BOOST=ON`) - For Fortran bindings: gfortran (or compatible Fortran compiler) -- For Python bindings: Python ≥ 3.9, plus `numpy` and `scipy` +- For Python bindings: Python ≥ 3.10, plus `numpy` and `scipy` See the [installation page](https://alps.comp-phys.org/documentation/install/) for full platform-specific instructions. @@ -79,12 +79,17 @@ cmake .. -DCMAKE_BUILD_TYPE=Release make -j$(nproc) ``` -To build with Python bindings: +Alternatively, use the bundled CMake preset (requires CMake ≥ 3.21, which is +newer than the 3.18 minimum for a plain configure): ```bash -pip install scikit-build-core numpy scipy -pip install --no-build-isolation -e . +cmake --preset default +cmake --build --preset default ``` +The Python bindings are a separate `scikit-build-core` project that builds +against an installed ALPS C++ SDK; see the +[`pyalps` build instructions](bindings/python/pyalps/README.md). + ### Run the tests From the build directory: diff --git a/CTestConfig.cmake b/CTestConfig.cmake deleted file mode 100644 index 16bb958cd..000000000 --- a/CTestConfig.cmake +++ /dev/null @@ -1,14 +0,0 @@ -## This file should be placed in the root directory of your project. -## Then modify the CMakeLists.txt file in the root directory of your -## project to incorporate the testing dashboard. -## # The following are required to uses Dart and the Cdash dashboard -## ENABLE_TESTING() -## INCLUDE(CTest) - -set(CTEST_PROJECT_NAME "ALPS") -set(CTEST_NIGHTLY_START_TIME "01:00:00 UTC") - -set(CTEST_DROP_METHOD "http") -set(CTEST_DROP_SITE "alps.comp-phys.org") -set(CTEST_DROP_LOCATION "/cdash/submit.php?project=ALPS") -set(CTEST_DROP_SITE_CDASH TRUE) diff --git a/README-package.txt b/README-package.txt deleted file mode 100644 index e52b7432c..000000000 --- a/README-package.txt +++ /dev/null @@ -1,127 +0,0 @@ -The ALPS project (Algorithms and Libraries for Physics Simulations) aims at providing generic parallel algorithms for classical and quantum lattice models and provides utility classes and algorithm for many other problems. It strives to increase software reuse in the physics community. - -The ALPS Libraries are published under the ALPS Application License; you can use, redistribute it and/or modify it under the terms of the license, either version 1 or (at your option) any later version. - -You should have received a copy of the ALPS Library License along with the ALPS Libraries; see the file LICENSE.txt. If not, the license is also available from http://alps.comp-phys.org/. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -Any publication for which one of the following libraries are used has to -acknowledge the use of the ALPS libraries, and the papers listed below: - -When alps/model.h or any header in alps/model was used: -reference the web page http://alps.comp-phys.org/ and cite the publication: -A.F. Albuquerque et al., J. of Magn. and Magn. Materials 310, 1187 (2007) -B. Bauer et al., J. Stat. Mech. (2011) P05001 - -When alps/lattice.h or any header in alps/lattice was used: -reference the web page http://alps.comp-phys.org/ and cite the publication: -A.F. Albuquerque et al., J. of Magn. and Magn. Materials 310, 1187 (2007) -B. Bauer et al., J. Stat. Mech. (2011) P05001 - -When alps/alea.h or any header in alps/alea was used: -reference the web page http://alps.comp-phys.org/ and cite the publications: -A.F. Albuquerque et al., J. of Magn. and Magn. Materials 310, 1187 (2007) -B. Bauer et al., J. Stat. Mech. (2011) P05001 - -When alps/scheduler.h or any header in alps/scheduler was used: -reference the web page http://alps.comp-phys.org/ and cite the publications: -A.F. Albuquerque et al., J. of Magn. and Magn. Materials 310, 1187 (2007) -B. Bauer et al., J. Stat. Mech. (2011) P05001 -M. Troyer et al., Lecture Notes in Computer Science, Vol. 1505, p. 191 (1998). - -The use of any other library, in particular those with headers in the -subdirectories alps/parser, alps/osiris, alps/random do not carry any -citation requirement but acknowledgment of the ALPS project is encouraged. - -* When the SSE quantum Monte Carlo program sse or sse_mpi was used: - - reference the ALPS web page http://alps.comp-phys.org/ - - and cite the publications: - A.F. Albuquerque et al., J. of Magn. and Magn. Materials 310, 1187 (2007). - B. Bauer et al., J. Stat. Mech. (2011) P05001 - -* When the loop quantum Monte Carlo program loop or loop_mpi was used: - - reference the ALPS and ALPS/looper web pages - http://alps.comp-phys.org/ - http://wistaria.comp-phys.org/alps-looper/ - - and cite the publications: - S. Todo and K. Kato, Phys. Rev. Lett. 87 047203 (2001). - A.F. Albuquerque et al., J. of Magn. and Magn. Materials 310, 1187 (2007). - B. Bauer et al., J. Stat. Mech. (2011) P05001 - -* When the classical Monte Carlo program spinmc or spinmc_mpi was - used: - - reference the ALPS web page http://alps.comp-phys.org/ - - and cite the publications: - A.F. Albuquerque et al., J. of Magn. and Magn. Materials 310, 1187 (2007). - B. Bauer et al., J. Stat. Mech. (2011) P05001 - -* When the diagonalization programs fulldiag, sparsediag or fulldiag_mpi was - used: - - reference the ALPS web page http://alps.comp-phys.org/ - - and cite the publications: - A.F. Albuquerque et al., J. of Magn. and Magn. Materials 310, 1187 (2007). - B. Bauer et al., J. Stat. Mech. (2011) P05001 - -* When the worm quantum Monte Carlo program is used: - - reference the ALPS web page http://alps.comp-phys.org/ - - and cite the publications: - A.F. Albuquerque et al., J. of Magn. and Magn. Materials 310, 1187 (2007). - B. Bauer et al., J. Stat. Mech. (2011) P05001 - -* When the quantum Wang-Landau program is used: - - reference the ALPS web page http://alps.comp-phys.org/ - - and cite the publications: - M. Troyer, S. Wessel, and F. Alet, Phys. Rev. Lett. 90, 120201 (2003). - A.F. Albuquerque et al., J. of Magn. and Magn. Materials 310, 1187 (2007). - B. Bauer et al., J. Stat. Mech. (2011) P05001 - -* When the Continuous-Time quantum Monte Carlo impurity solver programs or the DMFT framework are used: - - cite the publication: - A.F. Albuquerque et al., J. of Magn. and Magn. Materials 310, 1187 (2007). - B. Bauer et al., J. Stat. Mech. (2011) P05001 - - cite the ALPS DMFT publication (contact the authors for a current reference): - E. Gull, P. Werner, S. Fuchs, B. Surer, T. Pruschke, and M. Troyer, submitted to Computer Physics Communications. - - Copyright ALPS collaboration 2002 - 2010 - 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) - -Since some of the references are to preprints we would like to ask you -to check the ALPS web page http://alps.comp-phys.org/ for updates. - ------------------------------------- -This binary installer package comes with other libraries distributed under their own license terms: - -The version of Szip distributed with HDF products is free for non-commercial use. - -lp_solve is distributed under the LPGL, shown on the license page. - -------------------------------------- - -HDF5 (Hierarchical Data Format 5) Software Library and Utilities -Copyright 2006-2009 by The HDF Group. - -NCSA HDF5 (Hierarchical Data Format 5) Software Library and Utilities -Copyright 1998-2006 by the Board of Trustees of the University of Illinois. - -All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, are permitted for any purpose (including commercial purposes) provided that the following conditions are met: - -Redistributions of source code must retain the above copyright notice, this list of conditions, and the following disclaimer. -Redistributions in binary form must reproduce the above copyright notice, this list of conditions, and the following disclaimer in the documentation and/or materials provided with the distribution. -In addition, redistributions of modified forms of the source or binary code must carry prominent notices stating that the original code was changed and the date of the change. -All publications or advertising materials mentioning features or use of this software are asked, but not required, to acknowledge that it was developed by The HDF Group and by the National Center for Supercomputing Applications at the University of Illinois at Urbana-Champaign and credit the contributors. -Neither the name of The HDF Group, the name of the University, nor the name of any Contributor may be used to endorse or promote products derived from this software without specific prior written permission from The HDF Group, the University, or the Contributor, respectively. -DISCLAIMER: THIS SOFTWARE IS PROVIDED BY THE HDF GROUP AND THE CONTRIBUTORS "AS IS" WITH NO WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED. In no event shall The HDF Group or the Contributors be liable for any damages suffered by the users arising out of the use of this software, even if advised of the possibility of such damage. - - -Portions of HDF5 were developed with support from the University of California, Lawrence Livermore National Laboratory (UC LLNL). The following statement applies to those portions of the product and must be retained in any redistribution of source code, binaries, documentation, and/or accompanying materials: - -This work was partially produced at the University of California, Lawrence Livermore National Laboratory (UC LLNL) under contract no. W-7405-ENG-48 (Contract 48) between the U.S. Department of Energy (DOE) and The Regents of the University of California (University) for the operation of UC LLNL. -DISCLAIMER: This work was prepared as an account of work sponsored by an agency of the United States Government. Neither the United States Government nor the University of California nor any of their employees, makes any warranty, express or implied, or assumes any liability or responsibility for the accuracy, completeness, or usefulness of any information, apparatus, product, or process disclosed, or represents that its use would not infringe privately- owned rights. Reference herein to any specific commercial products, process, or service by trade name, trademark, manufacturer, or otherwise, does not necessarily constitute or imply its endorsement, recommendation, or favoring by the United States Government or the University of California. The views and opinions of authors expressed herein do not necessarily state or reflect those of the United States Government or the University of California, and shall not be used for advertising or product endorsement purposes. - -------------------------------------- - diff --git a/README.md b/README.md index b49b867bf..852cac70e 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,53 @@ -[![ALPS CI/CD](https://github.com/ALPSim/legacy/actions/workflows/build.yml/badge.svg)](https://github.com/ALPSim/legacy/actions/workflows/build.yml) +[![Build](https://github.com/ALPSim/ALPS/actions/workflows/build.yml/badge.svg)](https://github.com/ALPSim/ALPS/actions/workflows/build.yml) +[![Python wheels](https://github.com/ALPSim/ALPS/actions/workflows/build_wheels.yml/badge.svg)](https://github.com/ALPSim/ALPS/actions/workflows/build_wheels.yml) +[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE.txt) -## Algorithms and Libraries for Physics Simulations (ALPS) +# ALPS — Algorithms and Libraries for Physics Simulations The ALPS software package aims to provide a set of well tested, robust, and standardized components for numerical simulations of condensed matter systems, including bosonic, fermionic, and spin systems. They consist of a set of components that are used in state-of-the-art high performance codes. -## Installation Instruction +**Project website:** [alps.comp-phys.org](https://alps.comp-phys.org/) -We support both binary and source installations. For details, please check out our [installation webpage](https://alps.comp-phys.org/documentation/install/). +## Installation + +### Python + +Binary `pyalps` wheels are available for supported Linux and macOS systems: + +```sh +python -m pip install pyalps +``` + +Plotting with `pyalps` requires Matplotlib, which can be installed together with the package: + +```sh +python -m pip install "pyalps[plot]" +``` + +### Build from source + +A native build requires CMake 3.18 or newer, a C++14 compiler, HDF5, and BLAS/LAPACK. MPI is enabled by default when available. The legacy Fortran interface is disabled by default. If a Boost source tree is not supplied, configuration downloads one and therefore requires network access. + +Configure a release build with an explicit installation prefix, then build and install it: + +```sh +cmake -S . -B _build/release \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/path/to/alps +cmake --build _build/release --parallel +cmake --install _build/release +``` + +Add `-DALPS_ENABLE_MPI=OFF` to the configure command for a serial-only build. To build the legacy Fortran interface and its examples, add `-DALPS_BUILD_FORTRAN=ON`; this requires a Fortran compiler and the HDF5 Fortran component. + +Building the Python bindings from source is a separate step against an installed ALPS C++ SDK; see the [`pyalps` build instructions](bindings/python/pyalps/README.md). + +Platform-specific binary, source, and Spack instructions are available on the [ALPS installation website](https://alps.comp-phys.org/documentation/install/). + +## Contributing + +See [CONTRIBUTING.md](CONTRIBUTING.md) for development and contribution guidance. + +## License and citations + +ALPS is distributed under the terms in [LICENSE.txt](LICENSE.txt). See [CITATION.md](CITATION.md) for citation guidance. diff --git a/README.txt b/README.txt deleted file mode 100644 index b0c6280be..000000000 --- a/README.txt +++ /dev/null @@ -1 +0,0 @@ -The ALPS software package aims to provide a set of well tested, robust, and standardized components for numerical simulations of condensed matter systems, including bosonic, fermionic, and spin systems. They consist of a set of components that are used in state-of-the-art high performance codes. diff --git a/Welcome.txt b/Welcome.txt deleted file mode 100644 index bf440f686..000000000 --- a/Welcome.txt +++ /dev/null @@ -1,4 +0,0 @@ -ALPS Project - -The ALPS project (Algorithms and Libraries for Physics Simulations) aims at providing generic parallel algorithms for classical and quantum lattice models and provides utility classes and algorithm for many other problems. It strives to increase software reuse in the physics community. - diff --git a/config/ALPSBuildname.cmake b/cmake/ALPSBuildname.cmake similarity index 100% rename from config/ALPSBuildname.cmake rename to cmake/ALPSBuildname.cmake diff --git a/config/ALPSConfig.cmake.in b/cmake/ALPSConfig.cmake.in similarity index 100% rename from config/ALPSConfig.cmake.in rename to cmake/ALPSConfig.cmake.in diff --git a/config/ALPSCore.cmake b/cmake/ALPSCore.cmake similarity index 100% rename from config/ALPSCore.cmake rename to cmake/ALPSCore.cmake diff --git a/config/ALPSTesting.cmake b/cmake/ALPSTesting.cmake similarity index 100% rename from config/ALPSTesting.cmake rename to cmake/ALPSTesting.cmake diff --git a/config/BoostUtils.cmake b/cmake/BoostUtils.cmake similarity index 100% rename from config/BoostUtils.cmake rename to cmake/BoostUtils.cmake diff --git a/config/CMakeLists.txt b/cmake/CMakeLists.txt similarity index 100% rename from config/CMakeLists.txt rename to cmake/CMakeLists.txt diff --git a/config/Compilers.cmake b/cmake/Compilers.cmake similarity index 100% rename from config/Compilers.cmake rename to cmake/Compilers.cmake diff --git a/config/Distribution.xml.in b/cmake/Distribution.xml.in similarity index 100% rename from config/Distribution.xml.in rename to cmake/Distribution.xml.in diff --git a/config/FindBoostForALPS.cmake b/cmake/FindBoostForALPS.cmake similarity index 100% rename from config/FindBoostForALPS.cmake rename to cmake/FindBoostForALPS.cmake diff --git a/config/FindBoostSrc.cmake b/cmake/FindBoostSrc.cmake similarity index 100% rename from config/FindBoostSrc.cmake rename to cmake/FindBoostSrc.cmake diff --git a/config/FindDocbookDtd.cmake b/cmake/FindDocbookDtd.cmake similarity index 100% rename from config/FindDocbookDtd.cmake rename to cmake/FindDocbookDtd.cmake diff --git a/config/FindDocbookXsl.cmake b/cmake/FindDocbookXsl.cmake similarity index 100% rename from config/FindDocbookXsl.cmake rename to cmake/FindDocbookXsl.cmake diff --git a/config/FindFop.cmake b/cmake/FindFop.cmake similarity index 100% rename from config/FindFop.cmake rename to cmake/FindFop.cmake diff --git a/config/FindLPSolve.cmake b/cmake/FindLPSolve.cmake similarity index 100% rename from config/FindLPSolve.cmake rename to cmake/FindLPSolve.cmake diff --git a/config/FindLapack.cmake b/cmake/FindLapack.cmake similarity index 100% rename from config/FindLapack.cmake rename to cmake/FindLapack.cmake diff --git a/config/FindMPIForALPS.cmake b/cmake/FindMPIForALPS.cmake similarity index 100% rename from config/FindMPIForALPS.cmake rename to cmake/FindMPIForALPS.cmake diff --git a/config/FindPythonMod.cmake b/cmake/FindPythonMod.cmake similarity index 100% rename from config/FindPythonMod.cmake rename to cmake/FindPythonMod.cmake diff --git a/config/FindSQLite.cmake b/cmake/FindSQLite.cmake similarity index 100% rename from config/FindSQLite.cmake rename to cmake/FindSQLite.cmake diff --git a/config/FindSZIP.cmake b/cmake/FindSZIP.cmake similarity index 100% rename from config/FindSZIP.cmake rename to cmake/FindSZIP.cmake diff --git a/config/FindSphinx.cmake b/cmake/FindSphinx.cmake similarity index 100% rename from config/FindSphinx.cmake rename to cmake/FindSphinx.cmake diff --git a/config/FindXsltproc.cmake b/cmake/FindXsltproc.cmake similarity index 100% rename from config/FindXsltproc.cmake rename to cmake/FindXsltproc.cmake diff --git a/config/UseALPS.cmake b/cmake/UseALPS.cmake similarity index 100% rename from config/UseALPS.cmake rename to cmake/UseALPS.cmake diff --git a/config/add_alps_test.cmake b/cmake/add_alps_test.cmake similarity index 91% rename from config/add_alps_test.cmake rename to cmake/add_alps_test.cmake index 36e7c79cc..8c8d459bf 100644 --- a/config/add_alps_test.cmake +++ b/cmake/add_alps_test.cmake @@ -53,15 +53,15 @@ macro(add_alps_test) if(RUN_TEST_DIR AND EXISTS ${RUN_TEST_DIR}/run_test.cmake) set(RUN_TEST ${RUN_TEST_DIR}/run_test.cmake) else(RUN_TEST_DIR AND EXISTS ${RUN_TEST_DIR}/run_test.cmake) - if(EXISTS ${PROJECT_SOURCE_DIR}/config/run_test.cmake) - set(RUN_TEST ${PROJECT_SOURCE_DIR}/config/run_test.cmake) - else(EXISTS ${PROJECT_SOURCE_DIR}/config/run_test.cmake) + if(EXISTS ${PROJECT_SOURCE_DIR}/cmake/run_test.cmake) + set(RUN_TEST ${PROJECT_SOURCE_DIR}/cmake/run_test.cmake) + else(EXISTS ${PROJECT_SOURCE_DIR}/cmake/run_test.cmake) if(EXISTS ${ALPS_ROOT_DIR}/share/alps/run_test.cmake) set(RUN_TEST ${ALPS_ROOT_DIR}/share/alps/run_test.cmake) else(EXISTS ${ALPS_ROOT_DIR}/share/alps/run_test.cmake) set(RUN_TEST ${CMAKE_INSTALL_PREFIX}/share/alps/run_test.cmake) endif(EXISTS ${ALPS_ROOT_DIR}/share/alps/run_test.cmake) - endif(EXISTS ${PROJECT_SOURCE_DIR}/config/run_test.cmake) + endif(EXISTS ${PROJECT_SOURCE_DIR}/cmake/run_test.cmake) endif(RUN_TEST_DIR AND EXISTS ${RUN_TEST_DIR}/run_test.cmake) add_test(${name} @@ -138,15 +138,15 @@ macro(add_alps_test_mpi) if(RUN_TEST_DIR AND EXISTS ${RUN_TEST_DIR}/run_test_mpi.cmake) set(RUN_TEST ${RUN_TEST_DIR}/run_test_mpi.cmake) else(RUN_TEST_DIR AND EXISTS ${RUN_TEST_DIR}/run_test_mpi.cmake) - if(EXISTS ${PROJECT_SOURCE_DIR}/config/run_test_mpi.cmake) - set(RUN_TEST ${PROJECT_SOURCE_DIR}/config/run_test_mpi.cmake) - else(EXISTS ${PROJECT_SOURCE_DIR}/config/run_test_mpi.cmake) + if(EXISTS ${PROJECT_SOURCE_DIR}/cmake/run_test_mpi.cmake) + set(RUN_TEST ${PROJECT_SOURCE_DIR}/cmake/run_test_mpi.cmake) + else(EXISTS ${PROJECT_SOURCE_DIR}/cmake/run_test_mpi.cmake) if(EXISTS ${ALPS_ROOT_DIR}/share/alps/run_test_mpi.cmake) set(RUN_TEST ${ALPS_ROOT_DIR}/share/alps/run_test_mpi.cmake) else(EXISTS ${ALPS_ROOT_DIR}/share/alps/run_test_mpi.cmake) set(RUN_TEST ${CMAKE_INSTALL_PREFIX}/share/alps/run_test_mpi.cmake) endif(EXISTS ${ALPS_ROOT_DIR}/share/alps/run_test_mpi.cmake) - endif(EXISTS ${PROJECT_SOURCE_DIR}/config/run_test_mpi.cmake) + endif(EXISTS ${PROJECT_SOURCE_DIR}/cmake/run_test_mpi.cmake) endif(RUN_TEST_DIR AND EXISTS ${RUN_TEST_DIR}/run_test_mpi.cmake) add_test(${name}-np${procs} diff --git a/config/alps_logo.png b/cmake/alps_logo.png similarity index 100% rename from config/alps_logo.png rename to cmake/alps_logo.png diff --git a/config/include.mk.in b/cmake/include.mk.in similarity index 100% rename from config/include.mk.in rename to cmake/include.mk.in diff --git a/config/make_package.sh.in b/cmake/make_package.sh.in similarity index 100% rename from config/make_package.sh.in rename to cmake/make_package.sh.in diff --git a/config/passthru.py b/cmake/passthru.py similarity index 100% rename from config/passthru.py rename to cmake/passthru.py diff --git a/config/py-compile b/cmake/py-compile similarity index 100% rename from config/py-compile rename to cmake/py-compile diff --git a/config/run_test.cmake b/cmake/run_test.cmake similarity index 100% rename from config/run_test.cmake rename to cmake/run_test.cmake diff --git a/config/run_test_mpi.cmake b/cmake/run_test_mpi.cmake similarity index 100% rename from config/run_test_mpi.cmake rename to cmake/run_test_mpi.cmake diff --git a/config/debian/sid/.bzr-builddeb/default.conf b/config/debian/sid/.bzr-builddeb/default.conf deleted file mode 100644 index 99317c03e..000000000 --- a/config/debian/sid/.bzr-builddeb/default.conf +++ /dev/null @@ -1,3 +0,0 @@ -[BUILDDEB] -merge = True -export-upstream = https://rigarash@alps.comp-phys.org/svn/alps1/trunk/alps diff --git a/config/debian/sid/.bzrignore b/config/debian/sid/.bzrignore deleted file mode 100644 index 2dee1753e..000000000 --- a/config/debian/sid/.bzrignore +++ /dev/null @@ -1 +0,0 @@ -debian diff --git a/config/debian/sid/README.source b/config/debian/sid/README.source deleted file mode 100644 index d2958fe42..000000000 --- a/config/debian/sid/README.source +++ /dev/null @@ -1,6 +0,0 @@ -This package uses quilt to manage all modifications to the upstream source. -Changes are stored in the source package as diffs in debian/patches and -applied during the build. - -See /usr/share/doc/quilt/README.source for a detailed explanation. - diff --git a/config/debian/sid/alps-applications.install b/config/debian/sid/alps-applications.install deleted file mode 100644 index e4c894bcb..000000000 --- a/config/debian/sid/alps-applications.install +++ /dev/null @@ -1,17 +0,0 @@ -debian/tmp/usr/bin/dirloop_sse usr/bin/ -debian/tmp/usr/bin/dmft usr/bin/ -debian/tmp/usr/bin/dmrg usr/bin/ -debian/tmp/usr/bin/dwa usr/bin/ -debian/tmp/usr/bin/fulldiag usr/bin/ -debian/tmp/usr/bin/fulldiag_evaluate usr/bin/ -debian/tmp/usr/bin/hirschfye usr/bin/ -debian/tmp/usr/bin/hybridization usr/bin/ -debian/tmp/usr/bin/interaction usr/bin/ -debian/tmp/usr/bin/loop usr/bin/ -debian/tmp/usr/bin/qwl usr/bin/ -debian/tmp/usr/bin/qwl_evaluate usr/bin/ -debian/tmp/usr/bin/sparsediag usr/bin/ -debian/tmp/usr/bin/spinmc usr/bin/ -debian/tmp/usr/bin/spinmc_evaluate usr/bin/ -debian/tmp/usr/bin/worm usr/bin/ -debian/tmp/usr/bin/worm_evaluate usr/bin/ diff --git a/config/debian/sid/alps-tutorials.install b/config/debian/sid/alps-tutorials.install deleted file mode 100644 index faf00cddc..000000000 --- a/config/debian/sid/alps-tutorials.install +++ /dev/null @@ -1 +0,0 @@ -debian/tmp/usr/tutorials usr/share/alps/ diff --git a/config/debian/sid/changelog b/config/debian/sid/changelog deleted file mode 100644 index 9280183b7..000000000 --- a/config/debian/sid/changelog +++ /dev/null @@ -1,61 +0,0 @@ -alps (1:20150402~r7566-1) wheezy; urgency=low - - * New upstream snapshot (20150402-r7566). - - -- Synge Todo Thu, 02 Apr 2015 16:43:40 +0900 - -alps (1:20140623~r7482-1) wheezy; urgency=low - - * New upstream snapshot (20140623-r7482). - - -- Synge Todo Fri, 04 Jul 2014 09:18:02 +0900 - -alps (1:20140309~r7370-1) wheezy; urgency=low - - * New upstream snapshot (20140309-r7370). - - -- Synge Todo Sun, 09 Mar 2014 19:24:10 +0900 - -alps (1:20130626~r6962-1) wheezy; urgency=low - - * New upstream snapshot (20130626-r6962). - * Renamed alps2* as alps*. - * Introduced task-alps meta package. - - -- Synge Todo Mon, 01 Jul 2013 21:24:31 +0900 - -alps (2.0.0~rc4-1) unstable; urgency=low - - * New upstream release (2.0.0rc4). - * Add dirloop_sse to build. - * Remove "-Wl,--no-undefined" flag, since it causes build failure. - - -- Ryo IGARASHI Mon, 13 Dec 2010 17:21:37 +0900 - -alps (2.0.0~rc3-1) unstable; urgency=low - - * New upstream release (2.0.0rc3). - * Add "-Wl,--no-undefined" and "-Wl,--as-needed" option - for reducing binary size. - - -- Ryo IGARASHI Mon, 29 Nov 2010 10:17:44 +0900 - -alps (2.0.0~rc2-2) unstable; urgency=low - - * Add TEBD application to build. - - -- Ryo IGARASHI Thu, 25 Nov 2010 20:23:13 +0900 - -alps (2.0.0~rc2-1) unstable; urgency=low - - * New upstream release (2.0.0rc2). - * Switch to dpkg-source 3.0 (quilt) format. - - -- Ryo IGARASHI Thu, 25 Nov 2010 09:54:24 +0900 - -alps (2.0.0~b4-1) unstable; urgency=low - - * Initial release for 2.0.0b4. (Closes: #317973) - * lintian-clean (except for binary-without-manpage). - - -- Ryo IGARASHI Tue, 02 Nov 2010 16:42:13 +0900 diff --git a/config/debian/sid/compat b/config/debian/sid/compat deleted file mode 100644 index 7ed6ff82d..000000000 --- a/config/debian/sid/compat +++ /dev/null @@ -1 +0,0 @@ -5 diff --git a/config/debian/sid/control b/config/debian/sid/control deleted file mode 100644 index 4bf945e1d..000000000 --- a/config/debian/sid/control +++ /dev/null @@ -1,121 +0,0 @@ -Source: alps -Section: non-free -Priority: extra -Maintainer: Ryo IGARASHI and Synge Todo -Build-Depends: cdbs, debhelper (>= 7.0.50~), cmake, - libboost-date-time-dev (>= 1.47.0), libboost-filesystem-dev (>= - 1.47.0), libboost-mpi-dev (>= 1.47.0), libboost-program-options-dev - (>= 1.47.0), libboost-python-dev (>= 1.47.0), libboost-regex-dev (>= - 1.47.0), libboost-serialization-dev (>= 1.47.0), libboost-system-dev - (>= 1.47.0), libboost-thread-dev (>= 1.47.0), libhdf5-serial-dev | - libhdf5-dev, mpi-default-dev, libsqlite3-dev, python-matplotlib, - liblapack-dev, gfortran -Standards-Version: 3.9.1 -Homepage: http://alps.comp-phys.org/ -Vcs-Svn: https://rigarash@alps.comp-phys.org/svn/alps1/trunk/alps -Vcs-Browser: https://alps.comp-phys.org/trac/browser - -Package: task-alps -Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends}, alps-applications, alps-tutorials, libalps, libalps-bin, libalps-dbg, libalps-dev, libboost-numeric-bindings-dev, python-pyalps -Description: The ALPS project - Libraries, Applications, and Tutorials - The ALPS project (Algorithms and Libraries for Physics Simulations) - is an open source effort aiming at providing high-end simulation - codes for strongly correlated quantum mechanical systems as well as - C++ libraries for simplifying the development of such code. ALPS - strives to increase software reuse in the physics community. - This package installs all the ALPS libraries, applications, and tutorials. - -Package: libalps -Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends} -Description: The ALPS project - Library - The ALPS project (Algorithms and Libraries for Physics Simulations) - is an open source effort aiming at providing high-end simulation - codes for strongly correlated quantum mechanical systems as well as - C++ libraries for simplifying the development of such code. ALPS - strives to increase software reuse in the physics community. - This package contains shared library of ALPS Library. - -Package: libalps-dbg -Architecture: any -Depends: libalps (= ${binary:Version}), ${misc:Depends} -Description: The ALPS project - Library with debugging symbols - The ALPS project (Algorithms and Libraries for Physics Simulations) - is an open source effort aiming at providing high-end simulation - codes for strongly correlated quantum mechanical systems as well as - C++ libraries for simplifying the development of such code. ALPS - strives to increase software reuse in the physics community. - This package contains debugging symbols of ALPS Library. - -Package: libalps-dev -Architecture: any -Depends: libalps (= ${binary:Version}), - libboost-numeric-bindings-dev, ${misc:Depends} -Recommends: libalps-bin (= ${binary:Version}) -Description: The ALPS project - Development files - The ALPS project (Algorithms and Libraries for Physics Simulations) - is an open source effort aiming at providing high-end simulation - codes for strongly correlated quantum mechanical systems as well as - C++ libraries for simplifying the development of such code. ALPS - strives to increase software reuse in the physics community. - This package contains development files of ALPS Library. - -Package: libboost-numeric-bindings-dev -Architecture: any -Depends: ${misc:Depends} -Description: Numeric Bindings Library for Linear Algebra - This package forms part of the Boost C++ Libraries (Sandbox) - collections. - -Package: libalps-bin -Architecture: any -Depends: libalps (= ${binary:Version}), ${shlibs:Depends}, - ${misc:Depends} -Description: The ALPS project - Miscellaneous tools - The ALPS project (Algorithms and Libraries for Physics Simulations) - is an open source effort aiming at providing high-end simulation - codes for strongly correlated quantum mechanical systems as well as - C++ libraries for simplifying the development of such code. ALPS - strives to increase software reuse in the physics community. - This package contains miscellaneous tools of ALPS Library. - -Package: alps-applications -Architecture: any -Depends: libalps (= ${binary:Version}), ${shlibs:Depends}, - ${misc:Depends} -Recommends: libalps-bin (= ${binary:Version}), python-pyalps (= - ${binary:Version}) -Description: The ALPS project - Application binaries - The ALPS project (Algorithms and Libraries for Physics Simulations) - is an open source effort aiming at providing high-end simulation - codes for strongly correlated quantum mechanical systems as well as - C++ libraries for simplifying the development of such code. ALPS - strives to increase software reuse in the physics community. - This package contains application binary. - -Package: python-pyalps -Architecture: any -Depends: libalps (= ${binary:Version}), python2.7, python-numpy, - python-matplotlib, ${shlibs:Depends}, - ${misc:Depends} -Description: The ALPS project - python modules - The ALPS project (Algorithms and Libraries for Physics Simulations) - is an open source effort aiming at providing high-end simulation - codes for strongly correlated quantum mechanical systems as well as - C++ libraries for simplifying the development of such code. ALPS - strives to increase software reuse in the physics community. - This package contains python module. - -Package: alps-tutorials -Architecture: any -Depends: alps-applications (= ${binary:Version}), python-pyalps (= - ${binary:Version}), libalps-bin (= ${binary:Version}), - ${misc:Depends} -Description: The ALPS project - tutorials - The ALPS project (Algorithms and Libraries for Physics Simulations) - is an open source effort aiming at providing high-end simulation - codes for strongly correlated quantum mechanical systems as well as - C++ libraries for simplifying the development of such code. ALPS - strives to increase software reuse in the physics community. - This package contains tutorials for applications. diff --git a/config/debian/sid/copyright b/config/debian/sid/copyright deleted file mode 100644 index 2016f1c7b..000000000 --- a/config/debian/sid/copyright +++ /dev/null @@ -1,29 +0,0 @@ -This work was packaged for Debian by: - - Ryo IGARASHI on Sun, 02 May 2010 12:17:02 +0900 - Synge Todo Mon, 01 Jul 2013 21:24:31 +0900 - -It was downloaded from: - - - -Upstream Author(s): - - ALPS Collaboration - -Copyright: - - Copyright (C) 1994-2015 ALPS Collaboration - -License: - - ALPS LIBRARY LICENSE version 1.1 - see LICENCE.txt. - ALPS APPLICATION LICENCE version 1.0 - see LICENCE-package.txt. - -The Debian packaging is: - - Copyright (C) 2010-2015 Ryo IGARASHI and - Synge Todo - and is licensed under the ALPS LIBRARY LICENCE version 1.1. diff --git a/config/debian/sid/libalps-bin.install b/config/debian/sid/libalps-bin.install deleted file mode 100644 index f106c2355..000000000 --- a/config/debian/sid/libalps-bin.install +++ /dev/null @@ -1,36 +0,0 @@ -debian/tmp/usr/bin/archive usr/bin/ -debian/tmp/usr/bin/archivecat usr/bin/ -debian/tmp/usr/bin/checksign usr/bin/ -debian/tmp/usr/bin/compactrun usr/bin/ -debian/tmp/usr/bin/convert2html usr/bin/ -debian/tmp/usr/bin/convert2text usr/bin/ -debian/tmp/usr/bin/convert2xml usr/bin/ -debian/tmp/usr/bin/extractgp usr/bin/ -debian/tmp/usr/bin/extracthtml usr/bin/ -debian/tmp/usr/bin/extractmpl usr/bin/ -debian/tmp/usr/bin/extracttext usr/bin/ -debian/tmp/usr/bin/extractxmgr usr/bin/ -debian/tmp/usr/bin/fleas_correlated usr/bin/ -debian/tmp/usr/bin/fleas_direct usr/bin/ -debian/tmp/usr/bin/fleas_independent usr/bin/ -debian/tmp/usr/bin/fleas_simpleminded usr/bin/ -debian/tmp/usr/bin/fleas_uncorrelated usr/bin/ -debian/tmp/usr/bin/lattice2xml usr/bin/ -debian/tmp/usr/bin/lattice-preview usr/bin/ -debian/tmp/usr/bin/maxent usr/bin/ -debian/tmp/usr/bin/p2h5 usr/bin/ -debian/tmp/usr/bin/parameter2hdf5 usr/bin/ -debian/tmp/usr/bin/parameter2xml usr/bin/ -debian/tmp/usr/bin/pconfig usr/bin/ -debian/tmp/usr/bin/pevaluate usr/bin/ -debian/tmp/usr/bin/plot2gp usr/bin/ -debian/tmp/usr/bin/plot2html usr/bin/ -debian/tmp/usr/bin/plot2mpl usr/bin/ -debian/tmp/usr/bin/plot2text usr/bin/ -debian/tmp/usr/bin/plot2xmgr usr/bin/ -debian/tmp/usr/bin/poutput usr/bin/ -debian/tmp/usr/bin/printgraph usr/bin/ -debian/tmp/usr/bin/txt2archive usr/bin/ -debian/tmp/usr/bin/use_local_stylesheet usr/bin/ -debian/tmp/usr/bin/xml2archive usr/bin/ -debian/tmp/usr/bin/xslttransform usr/bin/ diff --git a/config/debian/sid/libalps-dev.install b/config/debian/sid/libalps-dev.install deleted file mode 100644 index 43bf07321..000000000 --- a/config/debian/sid/libalps-dev.install +++ /dev/null @@ -1,5 +0,0 @@ -debian/tmp/usr/include/alps/* usr/include/alps/ -debian/tmp/usr/include/ietl/* usr/include/ietl/ -debian/tmp/usr/include/boost/*.hpp usr/include/boost/ -debian/tmp/usr/lib/libalps.so usr/lib/ -debian/tmp/usr/share/alps/* usr/share/alps/ diff --git a/config/debian/sid/libalps-dev.links b/config/debian/sid/libalps-dev.links deleted file mode 100644 index 69fa28ff6..000000000 --- a/config/debian/sid/libalps-dev.links +++ /dev/null @@ -1 +0,0 @@ -usr/share/alps usr/share/cmake-2.8/ALPS diff --git a/config/debian/sid/libalps.install b/config/debian/sid/libalps.install deleted file mode 100644 index 20660f2e0..000000000 --- a/config/debian/sid/libalps.install +++ /dev/null @@ -1,2 +0,0 @@ -debian/tmp/usr/lib/libalps.so.* usr/lib/ -debian/tmp/usr/lib/xml/* usr/lib/xml/ diff --git a/config/debian/sid/libboost-numeric-bindings-dev.install b/config/debian/sid/libboost-numeric-bindings-dev.install deleted file mode 100644 index c4ba43e72..000000000 --- a/config/debian/sid/libboost-numeric-bindings-dev.install +++ /dev/null @@ -1 +0,0 @@ -debian/tmp/usr/include/boost/numeric/* usr/include/boost/numeric/ diff --git a/config/debian/sid/python-pyalps.install b/config/debian/sid/python-pyalps.install deleted file mode 100644 index 5e9b297bb..000000000 --- a/config/debian/sid/python-pyalps.install +++ /dev/null @@ -1,3 +0,0 @@ -debian/tmp/usr/lib/pyalps/*.py usr/lib/python2.7/dist-packages/pyalps/ -debian/tmp/usr/lib/pyalps/*.so usr/lib/python2.7/dist-packages/pyalps/ -debian/tmp/usr/lib/python/alps usr/lib/python2.7/dist-packages/ diff --git a/config/debian/sid/rules b/config/debian/sid/rules deleted file mode 100755 index 61935cd9a..000000000 --- a/config/debian/sid/rules +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/make -f - -include /usr/share/cdbs/1/rules/debhelper.mk -include /usr/share/cdbs/1/class/cmake.mk - -# Add here any variable or target overrides you need. - -# Extra flags passed to cmake. -# ALPS specific options -DEB_CMAKE_EXTRA_FLAGS = \ - -DALPS_BUILD_APPLICATIONS:BOOL=ON \ - -DALPS_ENABLE_OPENMP:BOOL=ON \ - -DALPS_BUILD_FORTRAN:BOOL=OFF \ - -DCMAKE_Fortran_FLAGS:STRING=-fopenmp - -# Linker flags for reduce binary size -DEB_CMAKE_EXTRA_FLAGS += \ - -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed" \ - -DCMAKE_MODULE_LINKER_FLAGS="-Wl,--as-needed" \ - -DCMAKE_EXE_LINKER_FLAGS="-Wl,--as-needed" - -# Allow parallel builds -DEB_BUILD_PARALLEL = yes diff --git a/config/debian/sid/source/format b/config/debian/sid/source/format deleted file mode 100644 index 163aaf8d8..000000000 --- a/config/debian/sid/source/format +++ /dev/null @@ -1 +0,0 @@ -3.0 (quilt) diff --git a/config/preamble-light.in b/config/preamble-light.in deleted file mode 100644 index 3203dab12..000000000 --- a/config/preamble-light.in +++ /dev/null @@ -1,39 +0,0 @@ -/***************************************************************************** -* -* ALPS Project: Algorithms and Libraries for Physics Simulations -* -* ALPS Light Libraries -* -* @COPYRIGHT@ -* -* This software is part of the "ALPS Light" Libraries, public-domain -* part of the ALPS Libraries. If you need the full functionality of -* the ALPS Libraries, such as Lattice, Model, Scheduler, etc, please -* use the full version of ALPS Libraries, which is available from -* http://alps.comp-phys.org/. -* -* Permission is hereby granted, free of charge, to any person or organization -* obtaining a copy of the software and accompanying documentation covered by -* this license (the "Software") to use, reproduce, display, distribute, -* execute, and transmit the Software, and to prepare derivative works of the -* Software, and to permit third-parties to whom the Software is furnished to -* do so, all subject to the following: -* -* The copyright notices in the Software and this entire statement, including -* the above license grant, this restriction and the following disclaimer, -* must be included in all copies of the Software, in whole or in part, and -* all derivative works of the Software, unless such copies or derivative -* works are solely in the form of machine-executable object code generated by -* a source language processor. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -* SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -* FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. -* -*****************************************************************************/ - -/* @ID@ */ diff --git a/config/preamble.in b/config/preamble.in deleted file mode 100644 index d6cbb782c..000000000 --- a/config/preamble.in +++ /dev/null @@ -1,28 +0,0 @@ -/***************************************************************************** -* -* ALPS Project: Algorithms and Libraries for Physics Simulations -* -* ALPS Libraries -* -* @COPYRIGHT@ -* -* This software is part of the ALPS libraries, published under the ALPS -* Library License; you can use, redistribute it and/or modify it under -* the terms of the license, either version 1 or (at your option) any later -* version. -* -* You should have received a copy of the ALPS Library License along with -* the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -* available from http://alps.comp-phys.org/. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -* SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -* FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. -* -*****************************************************************************/ - -/* @ID@ */ diff --git a/config/preamble_py.in b/config/preamble_py.in deleted file mode 100644 index 226831af7..000000000 --- a/config/preamble_py.in +++ /dev/null @@ -1,28 +0,0 @@ -############################################################################## -# -# ALPS Project: Algorithms and Libraries for Physics Simulations -# -# ALPS Libraries -# -# @COPYRIGHT@ -# -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. -# -############################################################################## - -# @ID@ diff --git a/config/update_preamble b/config/update_preamble deleted file mode 100755 index 95c4b2522..000000000 --- a/config/update_preamble +++ /dev/null @@ -1,136 +0,0 @@ -#!/usr/bin/perl - -# Script for updating preamble of *.h and *.C -# -# Usage: -# update_preamble.pl [-l] [files] -# Options: -# -l : use preamble for light version instead of full version - -# written by Synge Todo - -$basedir = $0; -$basedir =~ s/[a-zA-Z\_\.]+$//; - -if (@ARGV[0] ne '-l') { - # ALPS full version - $skel = join('', $basedir, "preamble.in"); -} else { - # ALPS-light - shift @ARGV; - $skel = join('', $basedir, "preamble-light.in"); -} -if (!-f $skel) { - die "Couldn't find $skel."; -} - -foreach $file (@ARGV) { - if (-f $file) { - $file_new = "$file.$$.tmp"; - - # scan - $year0 = ""; - $year1 = ""; - $id = ""; - @authors = (); - @emails = (); - $finish_preamble = 0; - $skip = 0; - $print_id = 0; - open(ORIG, "< $file") || die "Couldn't open $file"; - open(NEW, "> $file_new") || die "Couldn't open $file_new"; - foreach $line () { - chomp($line); - $line =~ s/\t/ /g; - $line =~ s/\s+$//g; - if ($finish_preamble == 0) { - if ($line =~ /^\s*\*\s+Copyright.+([0-9]{4})-([0-9]{4})\s+by\s+(\S\C+)\s+\<([a-zA-Z0-9\.\-_]+@[a-zA-Z0-9\.\-_]+)\>/) { - $year0 = $1; - $year1 = $2; - @authors[$#authors+1] = $3; - @emails[$#emails+1] = $4; - } elsif ($line =~ /^\s*\*\s+Copyright.+([0-9]{4})\s+by\s+(\S\C+)\s+\<([a-zA-Z0-9\.\-_]+@[a-zA-Z0-9\.\-_]+)\>/) { - $year0 = $1; - @authors[$#authors+1] = $2; - @emails[$#emails+1] = $3; - } elsif ($line =~ /^\s*\*\s+(\S\C+)\s+\<([a-zA-Z0-9\.\-_]+@[a-zA-Z0-9\.\-_]+)\>/) { - @authors[$#authors + 1] = $1; - @emails[$#emails + 1] = $2; - } elsif ($line =~ /(\$Id\:\C+\$)/) { - $id = $1; - } elsif ($line =~ /(^\s*$)|(^$)|(^\*)|(^ \*)|(^\/\*)/) { - ## nothing to do - } else { - $finish_preamble = 1; - } - - if ($finish_preamble == 1) { - if ($year0 eq "" || @authors[0] eq "") { - ## Year and authors not found. Skip this file. - $skip = 1; - } else { - if ($year1 eq $year0) { $year1 = ""; } - # if ($id eq "") { $id = join("", "\$I", "d: \$"); } - - ## print out preamble - open(SKEL, "< $skel") || die "Couldn't open $skel"; - foreach $sk () { - chomp($sk); - if ($sk =~ /\@COPYRIGHT\@/) { - if ($year1) { - print NEW "* Copyright (C) $year0-$year1 by @authors[0] <@emails[0]>"; - } else { - print NEW "* Copyright (C) $year0 by @authors[0] <@emails[0]>"; - } - if ($#authors > 0) { print NEW ","; } - print NEW "\n"; - for ($i = 1; $i <= $#authors; $i++) { - if ($year1) { - print NEW "* @authors[$i] <@emails[$i]>"; - } else { - print NEW "* @authors[$i] <@emails[$i]>"; - } - if ($i < $#authors) { print NEW ","; } - print NEW "\n"; - } - } elsif ($sk =~ /\@ID\@/) { - if ($id ne "") { - $sk =~ s/\@ID\@/$id/; - print NEW "$sk\n"; - $print_id=1; - } - } else { - print NEW "$sk\n"; - } - } - if ($print_id == 1) { - print NEW "\n"; - } - } - } - } - - if ($skip == 0 && $finish_preamble == 1) { - print NEW "$line\n"; - } - } - close(ORIG); - close(NEW); - - if ($skip ==0) { - system("diff $file $file_new > /dev/null"); - if ($? == 256) { - unlink $file; - rename $file_new, $file; - print "$file is updated.\n"; - } else { - unlink $file_new; - } - } else { - print "$file does not obey ALPS standard. Skipped.\n"; - unlink $file_new; - } - } else { - print "Couldn't open $file. Skipped.\n"; - } -} diff --git a/config/update_preamble_py b/config/update_preamble_py deleted file mode 100755 index 046da2949..000000000 --- a/config/update_preamble_py +++ /dev/null @@ -1,136 +0,0 @@ -#!/usr/bin/perl - -# Script for updating preamble of *.h and *.C -# -# Usage: -# update_preamble.pl [-l] [files] -# Options: -# -l : use preamble for light version instead of full version - -# written by Synge Todo - -$basedir = $0; -$basedir =~ s/[a-zA-Z\_\.]+$//; - -if (@ARGV[0] ne '-l') { - # ALPS full version - $skel = join('', $basedir, "preamble_py.in"); -} else { - # ALPS-light - shift @ARGV; - $skel = join('', $basedir, "preamble-light.in"); -} -if (!-f $skel) { - die "Couldn't find $skel."; -} - -foreach $file (@ARGV) { - if (-f $file) { - $file_new = "$file.$$.tmp"; - - # scan - $year0 = ""; - $year1 = ""; - $id = ""; - @authors = (); - @emails = (); - $finish_preamble = 0; - $skip = 0; - $print_id = 0; - open(ORIG, "< $file") || die "Couldn't open $file"; - open(NEW, "> $file_new") || die "Couldn't open $file_new"; - foreach $line () { - chomp($line); - $line =~ s/\t/ /g; - $line =~ s/\s+$//g; - if ($finish_preamble == 0) { - if ($line =~ /^\s*\#\s+Copyright.+([0-9]{4})-([0-9]{4})\s+by\s+(\S\C+)\s+\<([a-zA-Z0-9\.\-_]+@[a-zA-Z0-9\.\-_]+)\>/) { - $year0 = $1; - $year1 = $2; - @authors[$#authors+1] = $3; - @emails[$#emails+1] = $4; - } elsif ($line =~ /^\s*\#\s+Copyright.+([0-9]{4})\s+by\s+(\S\C+)\s+\<([a-zA-Z0-9\.\-_]+@[a-zA-Z0-9\.\-_]+)\>/) { - $year0 = $1; - @authors[$#authors+1] = $2; - @emails[$#emails+1] = $3; - } elsif ($line =~ /^\s*\#\s+(\S\C+)\s+\<([a-zA-Z0-9\.\-_]+@[a-zA-Z0-9\.\-_]+)\>/) { - @authors[$#authors + 1] = $1; - @emails[$#emails + 1] = $2; - } elsif ($line =~ /(\$Id\:\C+\$)/) { - $id = $1; - } elsif ($line =~ /(^\s*$)|(^$)|(^\#)|(^ \#)|(^\/\#)/) { - ## nothing to do - } else { - $finish_preamble = 1; - } - - if ($finish_preamble == 1) { - if ($year0 eq "" || @authors[0] eq "") { - ## Year and authors not found. Skip this file. - $skip = 1; - } else { - if ($year1 eq $year0) { $year1 = ""; } - # if ($id eq "") { $id = join("", "\$I", "d: \$"); } - - ## print out preamble - open(SKEL, "< $skel") || die "Couldn't open $skel"; - foreach $sk () { - chomp($sk); - if ($sk =~ /\@COPYRIGHT\@/) { - if ($year1) { - print NEW "# Copyright (C) $year0-$year1 by @authors[0] <@emails[0]>"; - } else { - print NEW "# Copyright (C) $year0 by @authors[0] <@emails[0]>"; - } - if ($#authors > 0) { print NEW ","; } - print NEW "\n"; - for ($i = 1; $i <= $#authors; $i++) { - if ($year1) { - print NEW "# @authors[$i] <@emails[$i]>"; - } else { - print NEW "# @authors[$i] <@emails[$i]>"; - } - if ($i < $#authors) { print NEW ","; } - print NEW "\n"; - } - } elsif ($sk =~ /\@ID\@/) { - if ($id ne "") { - $sk =~ s/\@ID\@/$id/; - print NEW "$sk\n"; - $print_id=1; - } - } else { - print NEW "$sk\n"; - } - } - if ($print_id == 1) { - print NEW "\n"; - } - } - } - } - - if ($skip == 0 && $finish_preamble == 1) { - print NEW "$line\n"; - } - } - close(ORIG); - close(NEW); - - if ($skip ==0) { - system("diff $file $file_new > /dev/null"); - if ($? == 256) { - unlink $file; - rename $file_new, $file; - print "$file is updated.\n"; - } else { - unlink $file_new; - } - } else { - print "$file does not obey ALPS standard. Skipped.\n"; - unlink $file_new; - } - } else { - print "Couldn't open $file. Skipped.\n"; - } -} From d694119dbe9bfd219a53a74f462e2f4e49bca73b Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Fri, 24 Jul 2026 11:37:31 -0500 Subject: [PATCH 05/51] build: align CMake floors and generated paths --- CMakeLists.txt | 8 ++++---- CONTRIBUTING.md | 8 ++++---- README.md | 9 ++++++++- tutorials/alpsize-01-cmake/CMakeLists.txt | 2 +- tutorials/alpsize-02-original-c/CMakeLists.txt | 2 +- tutorials/alpsize-03-basic-cpp/CMakeLists.txt | 2 +- tutorials/alpsize-04-stl/CMakeLists.txt | 2 +- tutorials/alpsize-05-boost/CMakeLists.txt | 2 +- tutorials/alpsize-06-parameters/CMakeLists.txt | 2 +- tutorials/alpsize-07-alea/CMakeLists.txt | 2 +- tutorials/alpsize-08-lattice/CMakeLists.txt | 2 +- tutorials/alpsize-09-scheduler/CMakeLists.txt | 2 +- tutorials/alpsize-10-fortran-scheduler/CMakeLists.txt | 2 +- tutorials/alpsize-11-fortran-ising/CMakeLists.txt | 2 +- tutorials/code-06-mcmain-c++/CMakeLists.txt | 2 +- tutorials/code-07-mcmain-mcbase/CMakeLists.txt | 2 +- .../heisenberg/1d_lattice/CMakeLists.txt | 2 +- .../heisenberg/nd_lattice/CMakeLists.txt | 4 +--- .../heisenberg/o_n_model/CMakeLists.txt | 2 +- 19 files changed, 32 insertions(+), 27 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8b202cf49..49c52dcca 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -436,8 +436,8 @@ if(PYTHON_LIBRARY) list(APPEND ALPS_EXTRA_LIBRARIES ${PYTHON_LIBRARY}) endif(PYTHON_LIBRARY) -configure_file(cmake/ALPSConfig.cmake.in ${PROJECT_BINARY_DIR}/config/ALPSConfig.cmake @ONLY) -configure_file(cmake/include.mk.in ${PROJECT_BINARY_DIR}/config/include.mk) +configure_file(cmake/ALPSConfig.cmake.in ${PROJECT_BINARY_DIR}/cmake/ALPSConfig.cmake @ONLY) +configure_file(cmake/include.mk.in ${PROJECT_BINARY_DIR}/cmake/include.mk) # installation @@ -477,8 +477,8 @@ install(DIRECTORY ${PROJECT_BINARY_DIR}/lib/xml DESTINATION ${ALPS_XML_PATH} COM add_subdirectory(cmake) install(FILES cmake/UseALPS.cmake - ${PROJECT_BINARY_DIR}/config/ALPSConfig.cmake - ${PROJECT_BINARY_DIR}/config/include.mk + ${PROJECT_BINARY_DIR}/cmake/ALPSConfig.cmake + ${PROJECT_BINARY_DIR}/cmake/include.mk cmake/run_test.cmake cmake/run_test_mpi.cmake cmake/add_alps_test.cmake diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c64d68452..3fd052873 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -50,7 +50,7 @@ Before opening a new issue, please search existing issues to avoid duplicates. ### Prerequisites -- CMake ≥ 3.18 +- CMake ≥ 3.18 for normal configuration; CMake ≥ 3.21 for presets - A C++17-capable compiler (GCC, Clang, Intel, or Fujitsu) - Boost (downloaded automatically during configuration; or use a system install with `-DALPS_USE_SYSTEM_BOOST=ON`) - For Fortran bindings: gfortran (or compatible Fortran compiler) @@ -79,8 +79,7 @@ cmake .. -DCMAKE_BUILD_TYPE=Release make -j$(nproc) ``` -Alternatively, use the bundled CMake preset (requires CMake ≥ 3.21, which is -newer than the 3.18 minimum for a plain configure): +Alternatively, use the bundled CMake preset (requires CMake ≥ 3.21): ```bash cmake --preset default cmake --build --preset default @@ -178,7 +177,8 @@ If you are contributing a new simulation application or library, the Governing C ### CMake -- CMake ≥ 3.18 features are acceptable. +- CMake ≥ 3.18 features are acceptable. Preset files may use features available + in CMake ≥ 3.21. - Use target-based linking (`target_link_libraries`, `target_include_directories`) rather than directory-level commands. --- diff --git a/README.md b/README.md index 852cac70e..35d123abb 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ python -m pip install "pyalps[plot]" ### Build from source -A native build requires CMake 3.18 or newer, a C++14 compiler, HDF5, and BLAS/LAPACK. MPI is enabled by default when available. The legacy Fortran interface is disabled by default. If a Boost source tree is not supplied, configuration downloads one and therefore requires network access. +A native build requires CMake 3.18 or newer, a C++14 compiler, HDF5, and BLAS/LAPACK. The bundled CMake presets require CMake 3.21 or newer. MPI is enabled by default when available. The legacy Fortran interface is disabled by default. If a Boost source tree is not supplied, configuration downloads one and therefore requires network access. Configure a release build with an explicit installation prefix, then build and install it: @@ -38,6 +38,13 @@ cmake --build _build/release --parallel cmake --install _build/release ``` +Alternatively, with CMake 3.21 or newer: + +```sh +cmake --preset default +cmake --build --preset default +``` + Add `-DALPS_ENABLE_MPI=OFF` to the configure command for a serial-only build. To build the legacy Fortran interface and its examples, add `-DALPS_BUILD_FORTRAN=ON`; this requires a Fortran compiler and the HDF5 Fortran component. Building the Python bindings from source is a separate step against an installed ALPS C++ SDK; see the [`pyalps` build instructions](bindings/python/pyalps/README.md). diff --git a/tutorials/alpsize-01-cmake/CMakeLists.txt b/tutorials/alpsize-01-cmake/CMakeLists.txt index 08a7f6bec..eddfdab20 100644 --- a/tutorials/alpsize-01-cmake/CMakeLists.txt +++ b/tutorials/alpsize-01-cmake/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8 FATAL_ERROR) +cmake_minimum_required(VERSION 3.18) project(alpsize NONE) # find ALPS Library diff --git a/tutorials/alpsize-02-original-c/CMakeLists.txt b/tutorials/alpsize-02-original-c/CMakeLists.txt index 4f4b8a271..37b204a9f 100644 --- a/tutorials/alpsize-02-original-c/CMakeLists.txt +++ b/tutorials/alpsize-02-original-c/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8 FATAL_ERROR) +cmake_minimum_required(VERSION 3.18) project(alpsize NONE) # enable C and C++ compilers diff --git a/tutorials/alpsize-03-basic-cpp/CMakeLists.txt b/tutorials/alpsize-03-basic-cpp/CMakeLists.txt index 406566506..f8896c49d 100644 --- a/tutorials/alpsize-03-basic-cpp/CMakeLists.txt +++ b/tutorials/alpsize-03-basic-cpp/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8 FATAL_ERROR) +cmake_minimum_required(VERSION 3.18) project(alpsize NONE) # enable C and C++ compilers diff --git a/tutorials/alpsize-04-stl/CMakeLists.txt b/tutorials/alpsize-04-stl/CMakeLists.txt index 406566506..f8896c49d 100644 --- a/tutorials/alpsize-04-stl/CMakeLists.txt +++ b/tutorials/alpsize-04-stl/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8 FATAL_ERROR) +cmake_minimum_required(VERSION 3.18) project(alpsize NONE) # enable C and C++ compilers diff --git a/tutorials/alpsize-05-boost/CMakeLists.txt b/tutorials/alpsize-05-boost/CMakeLists.txt index 461872150..f3d5ea1fa 100644 --- a/tutorials/alpsize-05-boost/CMakeLists.txt +++ b/tutorials/alpsize-05-boost/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8 FATAL_ERROR) +cmake_minimum_required(VERSION 3.18) project(alpsize NONE) # find ALPS Library diff --git a/tutorials/alpsize-06-parameters/CMakeLists.txt b/tutorials/alpsize-06-parameters/CMakeLists.txt index 328b5703b..ae449f6b5 100644 --- a/tutorials/alpsize-06-parameters/CMakeLists.txt +++ b/tutorials/alpsize-06-parameters/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8 FATAL_ERROR) +cmake_minimum_required(VERSION 3.18) project(alpsize NONE) # find ALPS Library diff --git a/tutorials/alpsize-07-alea/CMakeLists.txt b/tutorials/alpsize-07-alea/CMakeLists.txt index 328b5703b..ae449f6b5 100644 --- a/tutorials/alpsize-07-alea/CMakeLists.txt +++ b/tutorials/alpsize-07-alea/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8 FATAL_ERROR) +cmake_minimum_required(VERSION 3.18) project(alpsize NONE) # find ALPS Library diff --git a/tutorials/alpsize-08-lattice/CMakeLists.txt b/tutorials/alpsize-08-lattice/CMakeLists.txt index ecf65578e..23c419577 100644 --- a/tutorials/alpsize-08-lattice/CMakeLists.txt +++ b/tutorials/alpsize-08-lattice/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8 FATAL_ERROR) +cmake_minimum_required(VERSION 3.18) project(alpsize NONE) # find ALPS Library diff --git a/tutorials/alpsize-09-scheduler/CMakeLists.txt b/tutorials/alpsize-09-scheduler/CMakeLists.txt index cd9f8cc4e..6b1e8de07 100644 --- a/tutorials/alpsize-09-scheduler/CMakeLists.txt +++ b/tutorials/alpsize-09-scheduler/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8 FATAL_ERROR) +cmake_minimum_required(VERSION 3.18) project(alpsize NONE) # find ALPS Library diff --git a/tutorials/alpsize-10-fortran-scheduler/CMakeLists.txt b/tutorials/alpsize-10-fortran-scheduler/CMakeLists.txt index 0fe965108..c32ad0ad3 100644 --- a/tutorials/alpsize-10-fortran-scheduler/CMakeLists.txt +++ b/tutorials/alpsize-10-fortran-scheduler/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8 FATAL_ERROR) +cmake_minimum_required(VERSION 3.18) project(alpsize NONE) # find ALPS Library diff --git a/tutorials/alpsize-11-fortran-ising/CMakeLists.txt b/tutorials/alpsize-11-fortran-ising/CMakeLists.txt index 82950f8ba..78de7d796 100644 --- a/tutorials/alpsize-11-fortran-ising/CMakeLists.txt +++ b/tutorials/alpsize-11-fortran-ising/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8 FATAL_ERROR) +cmake_minimum_required(VERSION 3.18) project(alpsize NONE) # find ALPS Library diff --git a/tutorials/code-06-mcmain-c++/CMakeLists.txt b/tutorials/code-06-mcmain-c++/CMakeLists.txt index 10e3c8104..11055b87f 100644 --- a/tutorials/code-06-mcmain-c++/CMakeLists.txt +++ b/tutorials/code-06-mcmain-c++/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8 FATAL_ERROR) +cmake_minimum_required(VERSION 3.18) project(alpsize NONE) # find ALPS Library diff --git a/tutorials/code-07-mcmain-mcbase/CMakeLists.txt b/tutorials/code-07-mcmain-mcbase/CMakeLists.txt index 5dddd97e8..12ad7d69b 100644 --- a/tutorials/code-07-mcmain-mcbase/CMakeLists.txt +++ b/tutorials/code-07-mcmain-mcbase/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8 FATAL_ERROR) +cmake_minimum_required(VERSION 3.18) project(alpsize NONE) # find ALPS Library diff --git a/tutorials/code-07-mcmain-mcbase/heisenberg/1d_lattice/CMakeLists.txt b/tutorials/code-07-mcmain-mcbase/heisenberg/1d_lattice/CMakeLists.txt index 6546fbac7..1fc795c32 100644 --- a/tutorials/code-07-mcmain-mcbase/heisenberg/1d_lattice/CMakeLists.txt +++ b/tutorials/code-07-mcmain-mcbase/heisenberg/1d_lattice/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8 FATAL_ERROR) +cmake_minimum_required(VERSION 3.18) project(heisenberg NONE) # find ALPS Library diff --git a/tutorials/code-07-mcmain-mcbase/heisenberg/nd_lattice/CMakeLists.txt b/tutorials/code-07-mcmain-mcbase/heisenberg/nd_lattice/CMakeLists.txt index 368003174..103997448 100644 --- a/tutorials/code-07-mcmain-mcbase/heisenberg/nd_lattice/CMakeLists.txt +++ b/tutorials/code-07-mcmain-mcbase/heisenberg/nd_lattice/CMakeLists.txt @@ -1,8 +1,6 @@ -cmake_minimum_required(VERSION 2.8 FATAL_ERROR) +cmake_minimum_required(VERSION 3.18) project(heisenberg NONE) -set(ALPS_ROOT_DIR /Users/ricoh/Applications/alps) - # find ALPS Library find_package(ALPS REQUIRED PATHS ${ALPS_ROOT_DIR} $ENV{ALPS_HOME} NO_SYSTEM_ENVIRONMENT_PATH) message(STATUS "Found ALPS: ${ALPS_ROOT_DIR} (revision: ${ALPS_VERSION})") diff --git a/tutorials/code-07-mcmain-mcbase/heisenberg/o_n_model/CMakeLists.txt b/tutorials/code-07-mcmain-mcbase/heisenberg/o_n_model/CMakeLists.txt index 584178bb0..4b5ea3948 100644 --- a/tutorials/code-07-mcmain-mcbase/heisenberg/o_n_model/CMakeLists.txt +++ b/tutorials/code-07-mcmain-mcbase/heisenberg/o_n_model/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8 FATAL_ERROR) +cmake_minimum_required(VERSION 3.18) project(ndim_spin NONE) # find ALPS Library From 4b3399d79bb828b461609da4c95f274473849de6 Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Fri, 24 Jul 2026 19:07:08 -0500 Subject: [PATCH 06/51] fix: stop version.h dropping zero-valued version components version.h.in declared ALPS_VERSION_MAJOR/MINOR/PATCH with cmakedefine, which emits "/* #undef NAME */" when the substituted value is false-y. CMake counts 0 as false-y, so any x.y.0 release generated a header with that component silently missing. 2.4.0 would have tripped it. Use a plain #define for every macro the build unconditionally sets. Keep cmakedefine only for ALPS_XML_ALTERNATE_DIR, which the build never sets and parser/xslt_path.C guards with #ifdef. Also add ALPS_VERSION_NUMBER/ALPS_VERSION_NUM() for preprocessor version comparisons (BOOST_VERSION packing), and drop two macros: ALPS_SVN_REVISION, which expanded a variable unset since the SVN migration and was always #undef, and ALPS_SRCDIR, which baked the build machine's source path into an installed header for one line of pconfig output. Refs #95 Co-Authored-By: Claude Opus 5 --- src/alps/version.h.in | 40 ++++++++++++++++++++++++++-------------- tool/pconfig.C | 1 - 2 files changed, 26 insertions(+), 15 deletions(-) diff --git a/src/alps/version.h.in b/src/alps/version.h.in index 6543db8b2..2035029e9 100644 --- a/src/alps/version.h.in +++ b/src/alps/version.h.in @@ -30,34 +30,46 @@ #ifndef ALPS_VERSION_H #define ALPS_VERSION_H +// Plain #define for everything the build always sets: the cmakedefine directive +// emits an "undef" when its value is false-y, and CMake counts 0 as false-y, so +// a zero component (2.4.0) would vanish. It is used below only where the macro +// is genuinely optional. (configure_file matches that directive even inside a +// comment, hence no leading '#' on it here.) + // ALPS version -#cmakedefine ALPS_VERSION "@ALPS_VERSION@" +#define ALPS_VERSION "@ALPS_VERSION@" + +#define ALPS_VERSION_MAJOR @ALPS_VERSION_MAJOR@ +#define ALPS_VERSION_MINOR @ALPS_VERSION_MINOR@ +#define ALPS_VERSION_PATCH @ALPS_VERSION_PATCH@ -#cmakedefine ALPS_VERSION_MAJOR @ALPS_VERSION_MAJOR@ -#cmakedefine ALPS_VERSION_MINOR @ALPS_VERSION_MINOR@ -#cmakedefine ALPS_VERSION_PATCH @ALPS_VERSION_PATCH@ -#cmakedefine ALPS_SVN_REVISION @ALPS_WC_REVISION@ +// ALPS version as a single integer, for preprocessor comparisons: +// #if ALPS_VERSION_NUMBER >= ALPS_VERSION_NUM(2, 3, 4) +#define ALPS_VERSION_NUM(major, minor, patch) \ + ((major) * 100000 + (minor) * 100 + (patch)) +#define ALPS_VERSION_NUMBER \ + ALPS_VERSION_NUM(ALPS_VERSION_MAJOR, ALPS_VERSION_MINOR, ALPS_VERSION_PATCH) // ALPS version (full string) -#cmakedefine ALPS_VERSION_STRING "@ALPS_VERSION_STRING@" +#define ALPS_VERSION_STRING "@ALPS_VERSION_STRING@" // latest publish year of ALPS -#cmakedefine ALPS_YEAR "@ALPS_YEAR@" +#define ALPS_YEAR "@ALPS_YEAR@" // install path of ALPS -#cmakedefine ALPS_PREFIX "@ALPS_PREFIX@" - -// source directory of ALPS -#cmakedefine ALPS_SRCDIR "@ALPS_SRCDIR@" +#define ALPS_PREFIX "@ALPS_PREFIX@" // XSLT PATH -#cmakedefine ALPS_XML_DIR "@ALPS_XML_DIR@" +#define ALPS_XML_DIR "@ALPS_XML_DIR@" + +// Optional Windows fallback for the 32/64-bit "Program Files" split. Never set +// by the build, and guarded by #ifdef in parser/xslt_path.C. #cmakedefine ALPS_XML_ALTERNATE_DIR "@ALPS_XML_ALTERNATE_DIR@" // hostname where configure script was executed -#cmakedefine ALPS_CONFIG_HOST "@ALPS_CONFIG_HOST@" +#define ALPS_CONFIG_HOST "@ALPS_CONFIG_HOST@" // username who executed configure script -#cmakedefine ALPS_CONFIG_USER "@ALPS_CONFIG_USER@" +#define ALPS_CONFIG_USER "@ALPS_CONFIG_USER@" #endif // ALPS_VERSION_H diff --git a/tool/pconfig.C b/tool/pconfig.C index 78eeefa3f..5f1787cdc 100644 --- a/tool/pconfig.C +++ b/tool/pconfig.C @@ -35,7 +35,6 @@ int main() { std::cout << "ALPS version: " << alps::version() << std::endl << "Boost version: " << BOOST_LIB_VERSION << std::endl - << "source directory: " << ALPS_SRCDIR << std::endl << "installed at: " << ALPS_PREFIX << std::endl << "configured on: " << alps::config_host() << std::endl << "configured by: " << alps::config_user() << std::endl From a03bfc3475e7408163846063e16c415d51bb7382 Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Fri, 24 Jul 2026 19:29:49 -0500 Subject: [PATCH 07/51] build: single-source the ALPS version, add ALPSConfigVersion.cmake The version was hardcoded in CMakeLists.txt and had already drifted: CMake said 2.3.3, the newest tag is v2.3.4, and pyalps' pyproject.toml says 2.3.4b1. Put the numeric release in ALPS_VERSION.txt, read it in cmake/ALPSVersion.cmake before project(), and derive ALPS_VERSION_MAJOR/MINOR/PATCH from PROJECT_VERSION_*. The file holds MAJOR.MINOR.PATCH and nothing else, because project(VERSION) rejects non-numeric input and neither SOVERSION nor find_package() matching has any notion of prerelease ordering. A malformed file is rejected with a message naming the file, rather than CMake's bare "VERSION format invalid". Corrects the version to 2.3.4 in passing. ALPS_VERSION_BUILD, which was always empty, becomes the ALPS_VERSION_PRERELEASE cache variable: it carries "beta.2" into display strings while the numeric version stays clean. "Prerelease" because a later change adds real build metadata (a git hash), and two similarly-named slots would confuse. Generate and install ALPSConfigVersion.cmake. Without it find_package(ALPS ) accepted any version it found and silently discarded the constraint. SameMinorVersion: within 2.3.x a patch release is drop-in, a minor bump is not guaranteed to be. Note this is stricter than the SOVERSION of MAJOR alone advertises; reconciling the soname is a packaging-visible change and is left alone here. Derive ALPS_YEAR with string(TIMESTAMP), which honours SOURCE_DATE_EPOCH, so distro and conda reproducible builds still get a stable year. ALPS_SRCDIR is dropped from the installed header by the preceding commit, but two tests use it to locate reference .h5 inputs. Give those two targets a private compile definition instead: a build-tree path belongs there, not in an installed public header. Refs #95 Co-Authored-By: Claude Opus 5 --- ALPS_VERSION.txt | 1 + CMakeLists.txt | 53 ++++++++++++++++++++++++++----------- cmake/ALPSConfig.cmake.in | 7 +++-- cmake/ALPSVersion.cmake | 41 ++++++++++++++++++++++++++++ test/hdf5/CMakeLists.txt | 5 ++++ test/numeric/CMakeLists.txt | 7 +++++ 6 files changed, 97 insertions(+), 17 deletions(-) create mode 100644 ALPS_VERSION.txt create mode 100644 cmake/ALPSVersion.cmake diff --git a/ALPS_VERSION.txt b/ALPS_VERSION.txt new file mode 100644 index 000000000..3f684d2d9 --- /dev/null +++ b/ALPS_VERSION.txt @@ -0,0 +1 @@ +2.3.4 diff --git a/CMakeLists.txt b/CMakeLists.txt index 49c52dcca..c4513f28b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -83,13 +83,17 @@ if(ALPS_BUILD_LIBS_ONLY) set(ALPS_BUILD_APPLICATIONS OFF) endif() +# Sets ALPS_VERSION_CORE from ALPS_VERSION.txt. Included by full path because +# CMAKE_MODULE_PATH is not set up until after project(). +include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/ALPSVersion.cmake) + if(ALPS_BUILD_FORTRAN) - project(alps C CXX Fortran) + project(alps VERSION ${ALPS_VERSION_CORE} LANGUAGES C CXX Fortran) if (APPLE) set (CMAKE_Fortran_RUNTIME_LIBRARIES "-lgcc_s.1") endif(APPLE) else(ALPS_BUILD_FORTRAN) - project(alps C CXX) + project(alps VERSION ${ALPS_VERSION_CORE} LANGUAGES C CXX) endif(ALPS_BUILD_FORTRAN) set(CMAKE_CXX_STANDARD 14) @@ -135,25 +139,35 @@ endif (ALPS_BUILD_PYTHON) ###################################################################### # Version information ###################################################################### -set(ALPS_YEAR 2026) -set(ALPS_VERSION_MAJOR 2) -set(ALPS_VERSION_MINOR 3) -set(ALPS_VERSION_PATCH 3) -set(ALPS_VERSION_BUILD "") - -if(ALPS_VERSION_BUILD) - set(ALPS_VERSION "${ALPS_VERSION_MAJOR}.${ALPS_VERSION_MINOR}.${ALPS_VERSION_PATCH}-${ALPS_VERSION_BUILD}") -else(ALPS_VERSION_BUILD) - set(ALPS_VERSION "${ALPS_VERSION_MAJOR}.${ALPS_VERSION_MINOR}.${ALPS_VERSION_PATCH}") -endif(ALPS_VERSION_BUILD) +# The numeric components come from project() above, which took its version from +# ALPS_VERSION.txt. Do not hardcode them here. +set(ALPS_VERSION_MAJOR ${PROJECT_VERSION_MAJOR}) +set(ALPS_VERSION_MINOR ${PROJECT_VERSION_MINOR}) +set(ALPS_VERSION_PATCH ${PROJECT_VERSION_PATCH}) + +# Prerelease label, e.g. "beta.2" for the v2.3.4-beta.2 tag. Display only: it is +# deliberately kept out of the numeric version that drives SOVERSION and +# find_package() matching. Set by the release process, not checked in. +set(ALPS_VERSION_PRERELEASE "" CACHE STRING + "Prerelease label for this build, e.g. beta.2 (affects version strings only)") +mark_as_advanced(ALPS_VERSION_PRERELEASE) + +if(ALPS_VERSION_PRERELEASE) + set(ALPS_VERSION "${ALPS_VERSION_CORE}-${ALPS_VERSION_PRERELEASE}") +else() + set(ALPS_VERSION "${ALPS_VERSION_CORE}") +endif() set(ALPS_VERSION_STRING "ALPS Libraries version ${ALPS_VERSION}") -MESSAGE(STATUS "ALPS version: ${ALPS_VERSION}") +message(STATUS "ALPS version: ${ALPS_VERSION}") + +# Derived, never hardcoded. string(TIMESTAMP) honours SOURCE_DATE_EPOCH, so +# distro and conda reproducible builds still get a stable year. +string(TIMESTAMP ALPS_YEAR "%Y" UTC) set(ALPS_CONFIG_HOST unknown) set(ALPS_CONFIG_USER unknown) set(ALPS_PREFIX "${CMAKE_INSTALL_PREFIX}") -set(ALPS_SRCDIR "${CMAKE_SOURCE_DIR}") set(libdir "${CMAKE_INSTALL_PREFIX}/lib") set(bindir "${CMAKE_INSTALL_PREFIX}/bin") @@ -439,6 +453,14 @@ endif(PYTHON_LIBRARY) configure_file(cmake/ALPSConfig.cmake.in ${PROJECT_BINARY_DIR}/cmake/ALPSConfig.cmake @ONLY) configure_file(cmake/include.mk.in ${PROJECT_BINARY_DIR}/cmake/include.mk) +# Without this file find_package(ALPS ) accepts any version it finds +# and silently discards the constraint. SameMinorVersion: patch releases within +# a minor series are drop-in, a minor bump is not guaranteed to be. +include(CMakePackageConfigHelpers) +write_basic_package_version_file( + ${PROJECT_BINARY_DIR}/cmake/ALPSConfigVersion.cmake + COMPATIBILITY SameMinorVersion) + # installation ###################################################################### @@ -478,6 +500,7 @@ add_subdirectory(cmake) install(FILES cmake/UseALPS.cmake ${PROJECT_BINARY_DIR}/cmake/ALPSConfig.cmake + ${PROJECT_BINARY_DIR}/cmake/ALPSConfigVersion.cmake ${PROJECT_BINARY_DIR}/cmake/include.mk cmake/run_test.cmake cmake/run_test_mpi.cmake diff --git a/cmake/ALPSConfig.cmake.in b/cmake/ALPSConfig.cmake.in index 4436acd40..fdb794cd7 100644 --- a/cmake/ALPSConfig.cmake.in +++ b/cmake/ALPSConfig.cmake.in @@ -20,11 +20,14 @@ set(ALPS_LIBRARY_DIRS "@ALPS_LIBRARY_DIRS_CONFIG@") # of runtime binaries for each configuration type. set(ALPS_RUNTIME_LIBRARY_DIRS "@ALPS_RUNTIME_LIBRARY_DIRS_CONFIG@") -# The ALPS version number. +# The ALPS version number. ALPS_VERSION carries the prerelease label when there +# is one; ALPS_VERSION_CORE is always plain MAJOR.MINOR.PATCH and is what +# ALPSConfigVersion.cmake compares against. SET(ALPS_VERSION_MAJOR "@ALPS_VERSION_MAJOR@") SET(ALPS_VERSION_MINOR "@ALPS_VERSION_MINOR@") SET(ALPS_VERSION_PATCH "@ALPS_VERSION_PATCH@") -SET(ALPS_VERSION_BUILD "@ALPS_VERSION_BUILD@") +SET(ALPS_VERSION_PRERELEASE "@ALPS_VERSION_PRERELEASE@") +SET(ALPS_VERSION_CORE "@ALPS_VERSION_CORE@") SET(ALPS_VERSION "@ALPS_VERSION@") # The location of the UseALPS.cmake file. diff --git a/cmake/ALPSVersion.cmake b/cmake/ALPSVersion.cmake new file mode 100644 index 000000000..d14bb0fe9 --- /dev/null +++ b/cmake/ALPSVersion.cmake @@ -0,0 +1,41 @@ +# Copyright ALPS collaboration 2026. +# Distributed under the MIT licence; see LICENSE.txt. +# +# Single source of truth for the ALPS release version. +# +# ALPS_VERSION.txt holds the numeric release core (MAJOR.MINOR.PATCH) and +# nothing else. Two constraints force that: +# +# * project(VERSION ...) rejects anything non-numeric, so "2.4.0-beta.1" +# fails to configure. +# * find_package() version matching and the library SOVERSION have no notion +# of prerelease ordering. +# +# A prerelease label such as "beta.2" therefore lives in ALPS_VERSION_PRERELEASE +# (see the version block in the top-level CMakeLists.txt), where it affects the +# display string only -- never the numeric version used for ABI and +# find_package() decisions. +# +# This file is included by full path before project(), so it cannot rely on +# CMAKE_MODULE_PATH or PROJECT_SOURCE_DIR. + +set(_alps_version_file "${CMAKE_CURRENT_LIST_DIR}/../ALPS_VERSION.txt") + +if(NOT EXISTS "${_alps_version_file}") + message(FATAL_ERROR "Cannot read the ALPS version file: ${_alps_version_file}") +endif() + +file(STRINGS "${_alps_version_file}" ALPS_VERSION_CORE LIMIT_COUNT 1) +string(STRIP "${ALPS_VERSION_CORE}" ALPS_VERSION_CORE) + +# Fail loudly here rather than letting project() emit "VERSION format invalid", +# which gives no hint about which file is at fault. +if(NOT ALPS_VERSION_CORE MATCHES "^[0-9]+\\.[0-9]+\\.[0-9]+$") + message(FATAL_ERROR + "${_alps_version_file} must contain exactly MAJOR.MINOR.PATCH, but reads " + "'${ALPS_VERSION_CORE}'. Prerelease labels belong in " + "ALPS_VERSION_PRERELEASE, and the leading 'v' of a release tag is not " + "part of the version.") +endif() + +unset(_alps_version_file) diff --git a/test/hdf5/CMakeLists.txt b/test/hdf5/CMakeLists.txt index 54cd3f7dc..d6b24daae 100644 --- a/test/hdf5/CMakeLists.txt +++ b/test/hdf5/CMakeLists.txt @@ -38,6 +38,11 @@ FOREACH (name hdf5_complex hdf5_copy hdf5_real_complex_vec hdf5_real_complex_mat set_property(TEST ${name} PROPERTY LABELS hdf5) ENDFOREACH(name) +# Reads a reference .h5 file from the source tree; see the note in +# test/numeric/CMakeLists.txt. +target_compile_definitions(hdf5_fortran_string + PRIVATE ALPS_SRCDIR="${PROJECT_SOURCE_DIR}") + IF (ALPS_ENABLE_OPENMP AND OPENMP_FOUND) add_executable(hdf5_omp hdf5_omp.cpp) add_dependencies(hdf5_omp alps) diff --git a/test/numeric/CMakeLists.txt b/test/numeric/CMakeLists.txt index 32d13d304..41d9c5df8 100644 --- a/test/numeric/CMakeLists.txt +++ b/test/numeric/CMakeLists.txt @@ -30,5 +30,12 @@ if(LAPACK_FOUND) add_alps_test(${name}) set_property(TEST ${name} PROPERTY LABELS numeric) ENDFOREACH(name) + + # This test reads a reference .h5 file from the source tree. That path is a + # property of this build, not of the installed library, so it is a private + # definition on the one target that needs it rather than a macro in the + # installed alps/version.h. + target_compile_definitions(matrix_deprecated_hdf5_format_test + PRIVATE ALPS_SRCDIR="${PROJECT_SOURCE_DIR}") endif(LAPACK_FOUND) From b81da6bff27aec737d2dc674a28586251eefac72 Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Thu, 23 Jul 2026 08:08:57 -0500 Subject: [PATCH 08/51] chore: remove obsolete lattice preview --- config/debian/sid/libalps-bin.install | 1 - tool/CMakeLists.txt | 21 - tool/config.py.in | 56 --- tool/lattice-preview.in | 33 -- tool/license.py | 102 ----- tool/preview.py | 604 -------------------------- 6 files changed, 817 deletions(-) delete mode 100644 tool/config.py.in delete mode 100644 tool/lattice-preview.in delete mode 100644 tool/license.py delete mode 100644 tool/preview.py diff --git a/config/debian/sid/libalps-bin.install b/config/debian/sid/libalps-bin.install index f106c2355..3b6601fd2 100644 --- a/config/debian/sid/libalps-bin.install +++ b/config/debian/sid/libalps-bin.install @@ -16,7 +16,6 @@ debian/tmp/usr/bin/fleas_independent usr/bin/ debian/tmp/usr/bin/fleas_simpleminded usr/bin/ debian/tmp/usr/bin/fleas_uncorrelated usr/bin/ debian/tmp/usr/bin/lattice2xml usr/bin/ -debian/tmp/usr/bin/lattice-preview usr/bin/ debian/tmp/usr/bin/maxent usr/bin/ debian/tmp/usr/bin/p2h5 usr/bin/ debian/tmp/usr/bin/parameter2hdf5 usr/bin/ diff --git a/tool/CMakeLists.txt b/tool/CMakeLists.txt index 519386439..51070a2d7 100644 --- a/tool/CMakeLists.txt +++ b/tool/CMakeLists.txt @@ -75,27 +75,6 @@ endif(SQLite_FOUND) install(PROGRAMS msxsl.exe DESTINATION bin COMPONENT tools) endif(UNIX AND NOT WIN32) -# -# lattice-preview and helper program -# - - configure_file(config.py.in ${CMAKE_CURRENT_BINARY_DIR}/config.py) - if(WIN32 AND NOT UNIX AND ALPS_BUILD_PYTHON) - # in the function add_pi_executable is not present ... - option(ALPS_HAS_CMAKE_PI_MACROS "Ignore the PI macros if they are not present" ON) - mark_as_advanced(ALPS_HAS_CMAKE_PI_MACROS) - if (ALPS_HAS_CMAKE_PI_MACROS) - add_pi_executable(lattice-preview preview.py ${CMAKE_CURRENT_BINARY_DIR}/config.py license.py) - file(GLOB pi_generated_files ${CMAKE_CURRENT_BINARY_DIR}/lattice-preview/*) - install(FILES ${pi_generated_files} DESTINATION bin COMPONENT tools) - endif (ALPS_HAS_CMAKE_PI_MACROS) - else(WIN32 AND NOT UNIX) - configure_file(lattice-preview.in ${CMAKE_CURRENT_BINARY_DIR}/lattice-preview) - install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/lattice-preview DESTINATION bin COMPONENT tools) - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/config.py preview.py license.py - DESTINATION lib/python/alps COMPONENT tools) - endif(WIN32 AND NOT UNIX AND ALPS_BUILD_PYTHON) - # # Analytical continuation with MaxEnt # diff --git a/tool/config.py.in b/tool/config.py.in deleted file mode 100644 index 3982bde75..000000000 --- a/tool/config.py.in +++ /dev/null @@ -1,56 +0,0 @@ -############################################################################## -# -# ALPS Project: Algorithms and Libraries for Physics Simulations -# -# ALPS Libraries -# -# Copyright (C) 2006-2009 by Synge Todo -# -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. -# -############################################################################## - -import os - -def select(a, b): - if len(a): - return a - else: - return b - -def copyright(): - return "Copyright (C) 2006-2009 Synge Todo " - -def version(): - return select("@PACKAGE_VERSION@", "@ALPS_VERSION@") - -def prefix(): - return select("@prefix@", "@CMAKE_INSTALL_PREFIX@") - -def srcdir(): - return select("@abs_srcdir@", "@CMAKE_CURRENT_SOURCE_DIR@") - -def builddir(): - return select("@abs_builddir@", "@CMAKE_CURRENT_BINARY_DIR@") - -## test routine -if __name__ == "__main__": - print version() - print copyright() - print prefix() - print 'isInstalled() = ', isInstalled() diff --git a/tool/lattice-preview.in b/tool/lattice-preview.in deleted file mode 100644 index c43980f36..000000000 --- a/tool/lattice-preview.in +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/sh - -DIR=`dirname $0` -SRCDIR="@abs_srcdir@" -if test -z "$SRCDIR"; then - SRCDIR="@CMAKE_CURRENT_SOURCE_DIR@" -fi -BUILDIDR="@abs_builddir@" -if test -z "$BUILDDIR"; then - BUILDIDR="@CMAKE_CURRENT_BINARY_DIR@" -fi - -if test -f "$DIR/config.py"; then - SCRIPTDIR="$SRCDIR" - PYTHONPATH=$SCRIPTDIR:$BUILDDIR:$PHTHONPATH - export PYTHONPATH -else - if test -f "@PYTHON_SCRIPTDIR@/alps/preview.py"; then - SCRIPTDIR="@PYTHON_SCRIPTDIR@/alps" - else - DIRS=$(@PYTHON_INTERPRETER@ -c 'import sys;print " ".join(sys.path)') - for d in $DIRS; do - if test -f "$d/alps/preview.py"; then - SCRIPTDIR="$d/alps" - break - fi - done - fi - PYTHONPATH=$SCRIPTDIR:$PHTHONPATH - export PYTHONPATH -fi - -@PYTHON_INTERPRETER@ "$SCRIPTDIR/preview.py" "$@" < /dev/null & diff --git a/tool/license.py b/tool/license.py deleted file mode 100644 index 15a6541b7..000000000 --- a/tool/license.py +++ /dev/null @@ -1,102 +0,0 @@ -############################################################################## -# -# ALPS Project: Algorithms and Libraries for Physics Simulations -# -# ALPS Libraries -# -# Copyright (C) 2006-2009 by Synge Todo -# -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. -# -############################################################################## - -import config -import wx -from wx.lib.hyperlink import HyperLinkCtrl - -alpsDescription = """The ALPS project (Algorithms and Libraries for Physics Simulations) is an open source effort aiming at providing high-end simulation codes for strongly correlated quantum mechanical systems as well as C++ libraries for simplifying the development of such code. ALPS strives to increase software reuse in the physics community.""" - -alpsLicense = """ALPS LIBRARY LICENSE version 1.1 -Copyright (C) 2003-2005 Ian McCulloch. Everyone is permitted to copy and distribute this license document. - -This License applies to any software containing a notice placed by the copyright holder saying that it may be distributed under the terms of the ALPS Library License version 1.1. Such software is herein referred to as the "Library". This license grants permission to use, reproduce, display, distribute, execute and transmit the Library, and to prepare derivative works of the Library, and to permit others to do so for non-commercial academic use, all subject to the following conditions: - -1. In any scientific publication based wholly or in part on the Library, the use of the Library must be acknowledged and the publications listed in the accompanying CITATIONS.txt document must be cited. - -2. You may copy and distribute verbatim copies of the Library in the form that you received it, as long as all copyright notices and references to this license and warranty disclaimer are kept intact, and all recipients also receive a copy of this license, warranty disclaimer and CITATIONS.txt document. - -3. You may modify your copy or copies of the Library, thus forming a work based on the Library, and use, copy or distribute such modified works under the terms of sections 1 and 2 above, provided that you also meet all of these conditions: - -a. You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. - -b. All citations listed in the CITATIONS.txt document that refer to sections of the Library that exist in the modified work must be preserved irrespective of the extent of the modification. - -c. You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Library or any part thereof, to be licensed as a whole at no charge to all third parties under terms compatible with this License. - -4. This Software, or modifications under section 3 above, may be distributed in object code or executable form, provided that you meet all of these conditions: - -a. This complete License, warranty disclaimer and accompanying CITATIONS.txt document is included. - -b. The executable program is accompanied with the complete machine-readable source code to the Library as used in the executable, which must be distributed under the terms of sections 2 and 3 above. Alternatively, you may provide instructions for obtaining the source code at no cost (for example, a hyper-text link). - -5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is not a derivative work of the Library, and therefore falls outside the scope of this License. - -However, linking such a work with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library). The executable is therefore covered by this License. Section 4 states terms for distribution of such executables. - -6. You must cause executable programs that utilize this Library to print or display, when started in the most basic way, a prominent announcement including a copyright notice and citation requirements as listed in the accompanying CITATIONS.txt document. If the executable program utilizes the Library in a modified form (under section 3 above), then the announcement must state this. Exception: if the announcement would not normally be visible to the user, or the announcement would interfere with normal operations of the executable application, then the executable program is not required to print an announcement. - -THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.""" - -class AboutThisSoftware(wx.Frame): - def __init__(self, parent, name, version = config.version(), copyright = config.copyright()): - wx.Frame.__init__(self, parent, -1, size=(480,400)) - sizer = wx.BoxSizer(wx.VERTICAL) - self.SetSizer(sizer) - - title = wx.StaticText(self, label=name + " version " + version) - title.SetFont(wx.Font(12, wx.SWISS, wx.NORMAL, wx.BOLD, False, 'Verdana')) - sizer.Add(title, 0, wx.EXPAND|wx.ALL, 5) - - copy = wx.StaticText(self, -1, copyright) - sizer.Add(copy, 0, wx.EXPAND|wx.ALL, 5) - - wiki = HyperLinkCtrl(self, -1, "ALPS Wiki", URL="http://alps.comp-phys.org") - sizer.Add(wiki, 0, wx.ALL, 5) - - desc = wx.StaticText(self, -1, alpsDescription, size=(400,90), style=wx.TE_MULTILINE) - sizer.Add(desc, 0, wx.EXPAND|wx.ALL, 5) - - lic = wx.TextCtrl(self, -1, alpsLicense, style=wx.TE_MULTILINE|wx.TE_READONLY, - size=(400,100)) - sizer.Add(lic, 1, wx.EXPAND|wx.ALL, 5) - - btn = wx.Button(self, -1, "Close") - btn.SetDefault() - sizer.Add(btn, 0, wx.ALIGN_CENTER|wx.ALL, 5) - self.Bind(wx.EVT_BUTTON, self.OnButton) - - sizer.Layout() - - def OnButton(self, event): - self.Destroy() - -if __name__ == "__main__": - app = wx.PySimpleApp(0) - frame = AboutThisSoftware(None, 'My Program') - frame.Show() - app.MainLoop() diff --git a/tool/preview.py b/tool/preview.py deleted file mode 100644 index cd84aeb7b..000000000 --- a/tool/preview.py +++ /dev/null @@ -1,604 +0,0 @@ -############################################################################## -# -# ALPS Project: Algorithms and Libraries for Physics Simulations -# -# ALPS Libraries -# -# Copyright (C) 2006-2009 by Synge Todo -# -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. -# -############################################################################## - -import config, license -import os, random, subprocess, sys -from math import cos, sin, pi -from xml.dom import minidom - -import wx -import vtk -from vtk.wx.wxVTKRenderWindowInteractor import wxVTKRenderWindowInteractor - -def prog(): - return "ALPS Lattice Preview" - -def systemLibraryPath(): - if os.path.exists(config.prefix() + '/lib/xml/lattices.xml'): - return config.prefix() + '/lib/xml/lattices.xml' - else: - return config.builddir() + '/../lib/xml/lattices.xml' - -def lattice2xml(): - if os.path.exists(config.builddir() + '/lattice2xml'): - return config.builddir() + '/lattice2xml' - else: - return config.prefix() + '/bin/lattice2xml' - -class LatticeLibrary: - def __init__(self, libraryPath = ''): - self.graphs = [] - self.params = {} - if libraryPath: - self.parseXML(libraryPath) - def parseXML(self, libraryPath): - self.graphs = [] - self.params = {} - lattices = [] - latticeparams = {} - top = minidom.parse(libraryPath) - for n0 in top.childNodes: - if n0.localName == 'LATTICES': - for n1 in n0.childNodes: - if n1.localName == 'LATTICE': - name = n1.getAttribute("name") - p = {} - for n2 in n1.childNodes: - if n2.localName == 'PARAMETER': - p[n2.getAttribute("name")] = n2.getAttribute("default") - lattices.append([name, p]) - latticeparams[name] = p - for n0 in top.childNodes: - if n0.localName == 'LATTICES': - for n1 in n0.childNodes: - if n1.localName == 'LATTICEGRAPH': - name = n1.getAttribute("name") - p = {} - for n2 in n1.childNodes: - if n2.localName == 'FINITELATTICE': - for n3 in n2.childNodes: - if n3.localName == 'LATTICE': - ref = n3.getAttribute("ref") - if ref and ref in latticeparams: - for k in latticeparams[ref].keys(): - p[k] = latticeparams[ref][k] - elif n3.localName == 'PARAMETER': - p[n3.getAttribute("name")] = n3.getAttribute("default") - elif n3.localName == 'EXTENT': - size = n3.getAttribute("size") - if size not in p and not size.isdigit(): - p[size] = "" - self.graphs.append(name) - self.params[name] = p - elif n1.localName == 'GRAPH': - name = n1.getAttribute("name") - self.graphs.append(name) - self.params[name] = {} - top.unlink() - -class LatticeData: - # def __init__(self, paramfile = ''): - def __init__(self, param = {}): - self.lattice2xml = lattice2xml() - self.clear() - if param: - self.parseXML(param) - - def clear(self): - self.vertices = [] - self.edges = [] - self.hasCoordinate = False - self.vertexTypes = [] - self.maxVertexType = 0 - self.edgeTypes = [] - self.maxEdgeType = 0 - - def parseXML(self, param): - self.clear() - p = subprocess.Popen(self.lattice2xml, stdin=subprocess.PIPE, stdout=subprocess.PIPE, - stderr=subprocess.PIPE, close_fds=True) - (cout, cerr) = p.communicate(param) - if p.returncode == 0: - xmltree = minidom.parseString(cout) - self.parseTree(xmltree) - xmltree.unlink() - if not self.hasCoordinate: - self.assignCoordinates() - self.updateVertexTypes() - self.updateEdgeTypes() - return (p.returncode, cerr) - - def parseTree(self, node): - if node.localName == 'EDGE': - source = node.getAttribute("source") - target = node.getAttribute("target") - tp = node.getAttribute("type") - out = node.getAttribute("outside") - if tp == "" or tp == None: - tp = "0" - if out == "" or out == None: - out = "0" - self.edges.append([int(source), int(target), int(tp), int(out)]) - elif node.localName == 'VERTEX': - tp = node.getAttribute("type") - out = node.getAttribute("outside") - if tp == "" or tp == None: - tp = "0" - if out == "" or out == None: - out = "0" - coords = [0, 0, 0] - for child in node.childNodes: - if child.localName == 'COORDINATE': - for grandchild in child.childNodes: - if grandchild.nodeType == grandchild.TEXT_NODE: - vec = grandchild.wholeText.split(" ") - if len(vec) >= 1: - self.hasCoordinate = True - coords[0] = float(vec[0]) - if len(vec) >= 2: - coords[1] = float(vec[1]) - if len(vec) >= 3: - coords[2] = float(vec[2]) - self.vertices.append([coords, int(tp), int(out)]) - else: - for child in node.childNodes: - self.parseTree(child) - - def assignCoordinates(self): - n = len(self.vertices) - for s in range(0, n): - self.vertices[s][0][0] = cos(2*pi*s/n) - self.vertices[s][0][1] = sin(2*pi*s/n) - - def updateVertexTypes(self): - types = {} - for (coord, type, out) in self.vertices: - types[type] = 1 - for k in types.keys(): - self.vertexTypes.append(int(k)) - self.vertexTypes.sort() - self.maxVertexType = self.vertexTypes[len(self.vertexTypes)-1] - - def updateEdgeTypes(self): - types = {} - for (source, target, type, out) in self.edges: - types[type] = 1 - for k in types.keys(): - self.edgeTypes.append(int(k)) - self.edgeTypes.sort() - self.maxEdgeType = self.edgeTypes[len(self.edgeTypes)-1] - -class LatticeParameterWindow(wx.Frame): - def __init__(self, parent, libraryPath = ''): - wx.Frame.__init__(self, parent, -1, "Lattice Preview", size=wx.Size(600,600)) - self.libraryPath = libraryPath - self.useSystem = True - if libraryPath: - self.useSystem = False - self.graphName = '' - self.parameters = {} - self.library = LatticeLibrary() - - self.sizer = wx.BoxSizer(wx.VERTICAL) - - # menu bar - menuBar = wx.MenuBar() - menuPreview = wx.Menu() - menuPreviewAbout = menuPreview.Append(-1, "About...", "About") - menuPreview.AppendSeparator() - menuPreviewNew = menuPreview.Append(-1, "&New...\tCtrl+N", "New Preview") - menuPreviewClose = menuPreview.Append(-1, "&Close\tCtrl+W", "Close Window") - self.Bind(wx.EVT_MENU, self.ShowAbout, menuPreviewAbout) - self.Bind(wx.EVT_MENU, self.OnNew, menuPreviewNew) - self.Bind(wx.EVT_MENU, self.OnClose, menuPreviewClose) - menuBar.Append(menuPreview, "Preview") - self.SetMenuBar(menuBar) - - # - # Lattice Library - # - - self.sizer.Add(wx.StaticText(self, -1, "Lattice Library:"), 0, wx.EXPAND|wx.ALL, 5) - - self.rb_system = wx.RadioButton(self, -1, "System Lattice Library", style=wx.RB_GROUP) - self.rb_user = wx.RadioButton(self, -1, "User Lattice XML") - self.tx_user = wx.TextCtrl(self, -1, self.libraryPath, size=wx.Size(200,10), - style=wx.TE_READONLY) - btn_choose = wx.Button(self, -1, "Choose") - self.Bind(wx.EVT_RADIOBUTTON, self.OnRadio, self.rb_system) - self.Bind(wx.EVT_RADIOBUTTON, self.OnRadio, self.rb_user) - self.Bind(wx.EVT_BUTTON, self.OnChoose, btn_choose) - self.sizer.Add(self.rb_system, 0, wx.EXPAND|wx.ALL, 5) - self.sizer.Add(self.rb_user, 0, wx.EXPAND|wx.ALL, 5) - choose_sizer = wx.BoxSizer(wx.HORIZONTAL) - choose_sizer.Add((10,10), 0, wx.EXPAND|wx.ALL, 5) - choose_sizer.Add(self.tx_user, 1, wx.EXPAND|wx.ALL, 5) - choose_sizer.Add(btn_choose, 0, wx.EXPAND|wx.ALL, 5) - self.sizer.Add(choose_sizer, 0, wx.EXPAND|wx.ALL, 5) - self.sizer.Add(wx.StaticLine(self), 0, wx.EXPAND|wx.TOP|wx.BOTTOM, 5) - - # - # Lattice/Graph - # - - self.sizer.Add(wx.StaticText(self, -1, "Lattice/Graph:"), 0, wx.EXPAND|wx.ALL, 5) - - graphs = [] - self.graphBox = wx.Choice(self, -1, choices=graphs) - self.Bind(wx.EVT_CHOICE, self.OnSelectGraph, self.graphBox) - self.sizer.Add(self.graphBox, 0, wx.EXPAND|wx.ALL, 15) - self.sizer.Add(wx.StaticLine(self), 0, wx.EXPAND|wx.TOP|wx.BOTTOM, 5) - - self.sizer.Add(wx.StaticText(self, -1, "Parameters:"), 0, wx.EXPAND|wx.ALL, 5) - self.fgs = wx.FlexGridSizer(0, 2, 5, 5) - self.sizer.Add(self.fgs, 1, wx.EXPAND|wx.ALL, 15) - - btn_cancel = wx.Button(self, -1, "Cancel") - self.btn_preview = wx.Button(self, -1, "Preview") - self.btn_preview.SetDefault() - self.Bind(wx.EVT_BUTTON, self.OnCancel, btn_cancel) - self.Bind(wx.EVT_BUTTON, self.OnPreview, self.btn_preview) - btns = wx.BoxSizer(wx.HORIZONTAL) - btns.Add((1, 1), 1, wx.RIGHT, 5) - btns.Add(btn_cancel, 0, wx.RIGHT, 5) - btns.Add(self.btn_preview, 0, wx.RIGHT, 5) - self.sizer.Add(btns, 0, wx.EXPAND|wx.ALL, 5) - - self.SetSizer(self.sizer) - self.UpdateLibrary() - - def ShowAbout(self, evt): - frame = license.AboutThisSoftware(self, prog()) - frame.CentreOnParent(wx.BOTH) - frame.Show() - - def OnNew(self, evt): - frame = LatticeParameterWindow(None) - frame.Show() - - def OnClose(self, evt): - self.Destroy() - - def UpdateLibrary(self): - if self.useSystem: - self.rb_system.SetValue(True) - self.tx_user.Enable(False) - self.library.parseXML(systemLibraryPath()) - else: - self.rb_user.SetValue(True) - self.tx_user.Enable(True) - if self.libraryPath: - self.library.parseXML(self.libraryPath) - self.UpdateGraph() - - def UpdateGraph(self): - graphs = [] - if len(self.library.graphs) > 0: - graphs = ["Please choose a lattice/graph"] - graphs += self.library.graphs - self.graphBox.SetItems(graphs) - self.graphBox.SetSelection(0) - self.graphName = '' - self.UpdateParameters() - self.btn_preview.Enable(False) - - def OnRadio(self, evt): - if evt.GetEventObject().GetLabel() == 'System Lattice Library': - if self.useSystem == False: - self.useSystem = True - self.UpdateLibrary() - else: - if self.useSystem == True: - if self.tx_user.GetValue() == '': - self.OnChoose(True) - else: - self.useSystem = False - self.UpdateLibrary() - - def OnChoose(self, event): - wildCard = "XML file (*.xml)|*.xml|All files (*.*)|*.*" - path = os.getcwd() - if self.libraryPath: - path = os.path.dirname(self.libraryPath) - dialog = wx.FileDialog(self.Parent, "Choose an XML file", path, "", wildCard, wx.OPEN) - if dialog.ShowModal() == wx.ID_OK: - if self.useSystem or not self.libraryPath == dialog.GetPath(): - self.useSystem = False - self.libraryPath = dialog.GetPath() - self.UpdateLibrary() - self.tx_user.SetValue(self.libraryPath) - else: - self.UpdateLibrary() - dialog.Destroy() - - def OnSelectGraph(self, event): - if self.graphBox.GetSelection() > 0 : - graph = self.library.graphs[self.graphBox.GetSelection() - 1] - self.btn_preview.Enable(True) - else: - graph = '' - self.btn_preview.Enable(False) - if not graph == self.graphName: - self.graphName = graph - self.UpdateParameters() - - def UpdateParameters(self): - self.fgs.Clear(True) - if self.graphName: - self.parameters = self.library.params[self.graphName] - if len(self.parameters): - for k in self.parameters.keys(): - name = wx.StaticText(self, -1, k + " : ") - value = wx.TextCtrl(self, -1, self.parameters[k], size=wx.Size(200,-1), name=k) - self.Bind(wx.EVT_TEXT, self.OnParameterInput, value) - self.fgs.Add(name, 0, wx.ALIGN_LEFT) - self.fgs.Add(value, 1, wx.ALIGN_LEFT) - else: - name = wx.StaticText(self, -1, "None") - self.fgs.Add(name, 0, wx.ALIGN_LEFT) - name.Enable(False) - self.sizer.Layout() - - def OnParameterInput(self, evt): - key = evt.GetEventObject().GetName() - if key in self.parameters: - self.parameters[key] = evt.GetEventObject().GetValue() - - def OnPreview(self, evt): - params = "" - if self.useSystem: - params += "LATTICE_LIBRARY = \"" + systemLibraryPath() + "\"; " - else: - params += "LATTICE_LIBRARY = \"" + self.libraryPath + "\"; " - params += "LATTICE = \"" + self.graphName + "\"; " - params += "UNROLL_BOUNDARY = 1; " - for k in self.parameters.keys(): - params += k + " = \"" + self.parameters[k] + "\"; " - lattice = LatticeData() - (ret, cerr) = lattice.parseXML(params) - if ret == 0: - frame = PreviewLatticeWindow(lattice, size=self.GetSize(), pos=self.GetPosition()) - frame.Show() - self.Destroy() - else: - dialog = wx.MessageDialog(self, cerr, "Error (code = " + str(ret) + ")", - wx.OK|wx.ICON_ERROR) - dialog.ShowModal() - - def OnCancel(self, evt): - self.Destroy() - -class PreviewLatticeWindow(wx.Frame): - def __init__(self, lattice, size, pos): - wx.Frame.__init__(self, None, -1, "Lattice Preview", size=size, pos=pos) - self.lattice = lattice - - # menu bar - menuBar = wx.MenuBar() - menuFile = wx.Menu() - menuFileAbout = menuFile.Append(-1, "About...", "About") - menuFile.AppendSeparator() - menuFileNew = menuFile.Append(-1, "&New...\tCtrl+N", "New Preview") - menuFileClose = menuFile.Append(-1, "&Close\tCtrl+W", "Close Window") - self.Bind(wx.EVT_MENU, self.ShowAbout, menuFileAbout) - self.Bind(wx.EVT_MENU, self.OnNew, menuFileNew) - self.Bind(wx.EVT_MENU, self.OnClose, menuFileClose) - menuBar.Append(menuFile, "Preview") - self.menuView = wx.Menu() - if len(lattice.vertexTypes) > 0: - self.menuView.Append(-1, "Vertex Type").Enable(False) - for t in lattice.vertexTypes: - m = self.menuView.AppendCheckItem(-1, " " + str(t)) - m.Check(True) - self.Bind(wx.EVT_MENU, self.OnViewVertex, m) - if len(lattice.vertexTypes) > 0 and len(lattice.edgeTypes) > 0: - self.menuView.AppendSeparator() - if len(lattice.edgeTypes) > 0: - self.menuView.Append(-1, "Edge Type").Enable(False) - for t in lattice.edgeTypes: - m = self.menuView.AppendCheckItem(-1, " " + str(t)) - m.Check(True) - self.Bind(wx.EVT_MENU, self.OnViewEdge, m) - if len(lattice.vertexTypes) > 0 or len(lattice.edgeTypes) > 0: - self.menuView.AppendSeparator() - m = self.menuView.Append(-1, "Show All") - self.Bind(wx.EVT_MENU, self.OnShowAll, m) - m = self.menuView.Append(-1, "Hide All") - self.Bind(wx.EVT_MENU, self.OnHideAll, m) - menuBar.Append(self.menuView, "View") - self.SetMenuBar(menuBar) - - main = wx.BoxSizer(wx.VERTICAL) - self.SetBackgroundColour('#eeffff') - - self.vtkwidget = wxVTKRenderWindowInteractor(self, -1) - main.Add(self.vtkwidget, 1, wx.EXPAND) - self.SetSizer(main) - self.Layout() - - self.vtkwidget.Enable(1) - self.vtkwidget.AddObserver("ExitEvent", lambda o, e, f=self: f.Close()) - - self.vertexActors = [] - self.vertexView = [] - self.edgeActors = [] - self.edgeView = [] - self.InitColors() - - self.renderer = vtk.vtkRenderer() - self.renderer.SetBackground(0.1, 0.2, 0.4) - self.vtkwidget.GetRenderWindow().AddRenderer(self.renderer) - vtk.vtkOutputWindow().PromptUserOff() - - self.ShowPreview() - - def InitColors(self): - random.seed() - self.VertexColors = [ - [0.8,0.3,0.3], #dark red - [0.4,0.6,0.5], #dark green 2 - [0.8,0.6,0.3] #orange 2 - ] - for i in range(3, self.lattice.maxVertexType+1): - self.VertexColors.append([random.random(),random.random(),random.random()]) - self.EdgeColors = [ - [0.4,0.6,0.5], #dark green 2 - [0.8,0.3,0.5], #dark red - [1.0,0.6,0.3] #orange 2 - ] - for i in range(3, self.lattice.maxEdgeType+1): - self.EdgeColors.append([random.random(),random.random(),random.random()]) - - def ShowPreview(self): - self.vertexActors = [] - self.vertexView = [] - self.edgeActors = [] - self.edgeView = [] - - for v in self.lattice.vertices: - self.vertexActors.append(vtk.vtkActor()) - self.vertexView.append(True) - for e in self.lattice.edges: - self.edgeActors.append(vtk.vtkActor()) - self.edgeView.append(True) - - for i in range(len(self.lattice.vertices)): - (coord, tp, out) = self.lattice.vertices[i] - color = self.VertexColors[tp] - self.drawVertex(self.vertexActors[i], coord, color) - self.renderer.AddActor(self.vertexActors[i]) - for i in range(len(self.lattice.edges)): - (source, target, tp, out) = self.lattice.edges[i] - color = self.EdgeColors[tp] - self.drawEdge(self.edgeActors[i], self.lattice.vertices[source-1][0], - self.lattice.vertices[target-1][0], color) - self.renderer.AddActor(self.edgeActors[i]) - self.setOpacity() - - def OnViewVertex(self, evt): - type = int(evt.GetEventObject().GetLabel(evt.GetId())) - self.vertexView[type] = evt.IsChecked() - self.setOpacity() - - def OnViewEdge(self, evt): - type = int(evt.GetEventObject().GetLabel(evt.GetId())) - self.edgeView[type] = evt.IsChecked() - self.setOpacity() - - def OnShowAll(self, evt): - for m in evt.GetEventObject().GetMenuItems(): - if m.IsCheckable(): - m.Check(True) - for i in range(len(self.vertexView)): - self.vertexView[i] = True - for i in range(len(self.edgeView)): - self.edgeView[i] = True - self.setOpacity() - - def OnHideAll(self, evt): - for m in evt.GetEventObject().GetMenuItems(): - if m.IsCheckable(): - m.Check(False) - for i in range(len(self.vertexView)): - self.vertexView[i] = False - for i in range(len(self.edgeView)): - self.edgeView[i] = False - self.setOpacity() - - def ShowAbout(self, evt): - frame = license.AboutThisSoftware(self, prog(), copyright()) - frame.CentreOnParent(wx.BOTH) - frame.Show() - - def OnNew(self, evt): - frame = LatticeParameterWindow(None) - frame.Show() - - def OnClose(self, evt): - self.Destroy() - - def drawVertex(self, actor, coord, color): - v = vtk.vtkSphereSource() - v.SetPhiResolution(20) - v.SetThetaResolution(20) - v.SetCenter(coord[0], coord[1], coord[2]) - v.SetRadius(0.05) - actor.GetProperty().SetColor(color) - mapper = vtk.vtkPolyDataMapper() - mapper.SetInputConnection(v.GetOutputPort()) - actor.SetMapper(mapper) - - def drawEdge(self, actor, source, target, color): - e = vtk.vtkPolyData() - p = vtk.vtkPoints() - p.InsertPoint(0, source[0], source[1], source[2]) - p.InsertPoint(1, target[0], target[1], target[2]) - e.SetPoints(p) - c = vtk.vtkCellArray() - c.InsertNextCell(2) - c.InsertCellPoint(0) - c.InsertCellPoint(1) - e.SetLines(c) - edge = vtk.vtkTubeFilter() - edge.SetRadius(0.01) - edge.SetNumberOfSides(10) - edge.SetInput(e) - actor.GetProperty().SetColor(color) - mapper = vtk.vtkPolyDataMapper() - mapper.SetInputConnection(edge.GetOutputPort()) - actor.SetMapper(mapper) - - def setOpacity(self): - for i in range(len(self.lattice.vertices)): - (coord, tp, out) = self.lattice.vertices[i] - if self.vertexView[tp]: - if out == 1: - self.vertexActors[i].GetProperty().SetOpacity(0.3) - else: - self.vertexActors[i].GetProperty().SetOpacity(1.0) - else: - self.vertexActors[i].GetProperty().SetOpacity(0.0) - for i in range(len(self.lattice.edges)): - (source, target, tp, out) = self.lattice.edges[i] - if self.edgeView[tp]: - if out == 1: - self.edgeActors[i].GetProperty().SetOpacity(0.3) - else: - self.edgeActors[i].GetProperty().SetOpacity(1.0) - else: - self.edgeActors[i].GetProperty().SetOpacity(0.0) - self.vtkwidget.Render() - -## main routine -if __name__ == "__main__": - app = wx.PySimpleApp(0) - path = '' - if len(sys.argv) > 1: - path = os.path.abspath(sys.argv[1]) - frame = LatticeParameterWindow(None, path) - frame.Show() - app.MainLoop() From aa6a87191210e84a3e2b41c1e9b4ca9c715d51ac Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Wed, 22 Jul 2026 12:51:37 -0500 Subject: [PATCH 09/51] feat: migrate pyalps bindings to nanobind --- .github/workflows/build_wheels.yml | 65 ++-- CMakeLists.txt | 99 +---- .../dmft/qmc/hybridization/hybmain.cpp | 16 +- .../dmft/qmc/interaction_expansion2/main.cpp | 15 +- applications/qmc/dwa/bandstructure.hpp | 14 +- bindings/python/pyalps/CMakeLists.txt | 139 +++++++ bindings/python/pyalps/README.md | 24 ++ bindings/python/pyalps/cpp/apps/dwa.cpp | 109 ++++++ bindings/python/pyalps/cpp/dict_to_params.hpp | 35 ++ .../python/pyalps/cpp/ngs/accumulator.cpp | 123 ++++++ bindings/python/pyalps/cpp/ngs/api.cpp | 32 ++ .../pyalps/cpp/ngs/extract_from_pyobject.hpp | 130 +++++++ bindings/python/pyalps/cpp/ngs/hdf5.cpp | 317 +++++++++++++++ bindings/python/pyalps/cpp/ngs/mcbase.cpp | 173 ++++++++ bindings/python/pyalps/cpp/ngs/observable.cpp | 81 ++++ .../python/pyalps/cpp/ngs/observables.cpp | 108 +++++ bindings/python/pyalps/cpp/ngs/params.cpp | 160 ++++++++ bindings/python/pyalps/cpp/ngs/random01.cpp | 24 ++ bindings/python/pyalps/cpp/ngs/result.cpp | 181 +++++++++ bindings/python/pyalps/cpp/ngs/results.cpp | 86 ++++ bindings/python/pyalps/cpp/numpy_compat.hpp | 95 +++++ bindings/python/pyalps/cpp/pyalea.cpp | 368 ++++++++++++++++++ bindings/python/pyalps/cpp/pymcdata.cpp | 329 ++++++++++++++++ bindings/python/pyalps/cpp/pytools.cpp | 52 +++ .../pyalps/cpp/save_observable_to_hdf5.hpp | 15 + .../python/pyalps/src}/pyalps/__init__.py | 9 + .../python/pyalps/src/pyalps/_ext/__init__.py | 4 + .../python/pyalps/src}/pyalps/alea.py | 0 .../python/pyalps/src}/pyalps/alea_detail.py | 0 .../python/pyalps/src}/pyalps/apptest.py | 0 .../python/pyalps/src}/pyalps/cxx.py | 28 +- .../python/pyalps/src}/pyalps/dataset.py | 0 .../pyalps/src}/pyalps/dict_intersect.py | 0 .../python/pyalps/src}/pyalps/dwa.py | 5 +- .../python/pyalps/src}/pyalps/fit_wrapper.py | 0 .../pyalps/src}/pyalps/floatwitherror.py | 0 .../python/pyalps/src}/pyalps/hdf5.py | 0 .../python/pyalps/src}/pyalps/hlist.py | 0 .../python/pyalps/src}/pyalps/lattice.py | 0 .../python/pyalps/src}/pyalps/load.py | 0 .../python/pyalps/src}/pyalps/math.py | 0 .../python/pyalps/src}/pyalps/maxent.py | 6 +- .../python/pyalps/src}/pyalps/mpi.py | 0 .../pyalps/src}/pyalps/mpl_setup_macosx.py | 0 .../python/pyalps/src}/pyalps/mpl_setup_qt.py | 0 .../python/pyalps/src}/pyalps/mpl_setup_tk.py | 0 .../python/pyalps/src}/pyalps/natural_sort.py | 0 .../python/pyalps/src}/pyalps/ngs.py | 24 +- .../python/pyalps/src}/pyalps/plot.py | 0 .../python/pyalps/src}/pyalps/plot_core.py | 0 .../pyalps/src}/pyalps/pyalps_config.py | 0 .../pyalps/src}/pyalps/pyalps_config.py.in | 2 +- .../python/pyalps/src}/pyalps/pytools.py | 0 .../python/pyalps/src}/pyalps/tools.py | 0 lib/pyalps/CMakeLists.txt | 157 -------- pyproject.toml | 82 +--- src/alps/CMakeLists.txt | 66 +--- src/alps/alea/mcanalyze.hpp | 19 +- src/alps/ngs/numeric/vector.hpp | 30 +- test/CMakeLists.txt | 5 +- test/pyalps/test_binding_surface.py | 152 ++++++++ tool/maxent.cpp | 16 +- tutorials/CMakeLists.txt | 2 +- 63 files changed, 2886 insertions(+), 511 deletions(-) create mode 100644 bindings/python/pyalps/CMakeLists.txt create mode 100644 bindings/python/pyalps/README.md create mode 100644 bindings/python/pyalps/cpp/apps/dwa.cpp create mode 100644 bindings/python/pyalps/cpp/dict_to_params.hpp create mode 100644 bindings/python/pyalps/cpp/ngs/accumulator.cpp create mode 100644 bindings/python/pyalps/cpp/ngs/api.cpp create mode 100644 bindings/python/pyalps/cpp/ngs/extract_from_pyobject.hpp create mode 100644 bindings/python/pyalps/cpp/ngs/hdf5.cpp create mode 100644 bindings/python/pyalps/cpp/ngs/mcbase.cpp create mode 100644 bindings/python/pyalps/cpp/ngs/observable.cpp create mode 100644 bindings/python/pyalps/cpp/ngs/observables.cpp create mode 100644 bindings/python/pyalps/cpp/ngs/params.cpp create mode 100644 bindings/python/pyalps/cpp/ngs/random01.cpp create mode 100644 bindings/python/pyalps/cpp/ngs/result.cpp create mode 100644 bindings/python/pyalps/cpp/ngs/results.cpp create mode 100644 bindings/python/pyalps/cpp/numpy_compat.hpp create mode 100644 bindings/python/pyalps/cpp/pyalea.cpp create mode 100644 bindings/python/pyalps/cpp/pymcdata.cpp create mode 100644 bindings/python/pyalps/cpp/pytools.cpp create mode 100644 bindings/python/pyalps/cpp/save_observable_to_hdf5.hpp rename {lib => bindings/python/pyalps/src}/pyalps/__init__.py (86%) create mode 100644 bindings/python/pyalps/src/pyalps/_ext/__init__.py rename {lib => bindings/python/pyalps/src}/pyalps/alea.py (100%) rename {lib => bindings/python/pyalps/src}/pyalps/alea_detail.py (100%) rename {lib => bindings/python/pyalps/src}/pyalps/apptest.py (100%) rename {lib => bindings/python/pyalps/src}/pyalps/cxx.py (80%) rename {lib => bindings/python/pyalps/src}/pyalps/dataset.py (100%) rename {lib => bindings/python/pyalps/src}/pyalps/dict_intersect.py (100%) rename {lib => bindings/python/pyalps/src}/pyalps/dwa.py (99%) rename {lib => bindings/python/pyalps/src}/pyalps/fit_wrapper.py (100%) rename {lib => bindings/python/pyalps/src}/pyalps/floatwitherror.py (100%) rename {lib => bindings/python/pyalps/src}/pyalps/hdf5.py (100%) rename {lib => bindings/python/pyalps/src}/pyalps/hlist.py (100%) rename {lib => bindings/python/pyalps/src}/pyalps/lattice.py (100%) rename {lib => bindings/python/pyalps/src}/pyalps/load.py (100%) rename {lib => bindings/python/pyalps/src}/pyalps/math.py (100%) rename {lib => bindings/python/pyalps/src}/pyalps/maxent.py (95%) rename {lib => bindings/python/pyalps/src}/pyalps/mpi.py (100%) rename {lib => bindings/python/pyalps/src}/pyalps/mpl_setup_macosx.py (100%) rename {lib => bindings/python/pyalps/src}/pyalps/mpl_setup_qt.py (100%) rename {lib => bindings/python/pyalps/src}/pyalps/mpl_setup_tk.py (100%) rename {lib => bindings/python/pyalps/src}/pyalps/natural_sort.py (100%) rename {lib => bindings/python/pyalps/src}/pyalps/ngs.py (81%) rename {lib => bindings/python/pyalps/src}/pyalps/plot.py (100%) rename {lib => bindings/python/pyalps/src}/pyalps/plot_core.py (100%) rename {lib => bindings/python/pyalps/src}/pyalps/pyalps_config.py (100%) rename {lib => bindings/python/pyalps/src}/pyalps/pyalps_config.py.in (51%) rename {lib => bindings/python/pyalps/src}/pyalps/pytools.py (100%) rename {lib => bindings/python/pyalps/src}/pyalps/tools.py (100%) delete mode 100644 lib/pyalps/CMakeLists.txt create mode 100644 test/pyalps/test_binding_surface.py diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 5a89aa119..7b7fef3c3 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -26,16 +26,12 @@ jobs: steps: - uses: actions/checkout@v7 - # Install Fortran compiler based on OS - - name: Install dependencies - run: | - if [ "${{ matrix.plat.os }}" = "ubuntu-latest" ]; then - sudo apt-get update - sudo apt-get install -y gfortran - else - brew update - brew install gfortran - fi + - name: Restore compiler cache + uses: actions/cache@v4 + with: + path: _build/ccache + key: pyalps-ccache-${{ runner.os }}-${{ matrix.plat.arch }}-${{ hashFiles('src/**', 'bindings/python/**', 'applications/**', 'tool/maxent*') }} + restore-keys: pyalps-ccache-${{ runner.os }}-${{ matrix.plat.arch }}- - name: Build wheels uses: pypa/cibuildwheel@v2.22.0 @@ -43,24 +39,43 @@ jobs: CIBW_BUILD: cp39-* cp310-* cp311-* cp312-* cp313-* CIBW_ARCHS: ${{ matrix.plat.arch }} CIBW_ARCHS_MACOS: ${{ matrix.plat.arch }} - - # Set Fortran compiler for all platforms - CIBW_ENVIRONMENT: "FC=gfortran" - - # macOS-specific settings + CIBW_ENVIRONMENT: > + ALPS_DIR={project}/_build/cibw-install/share/alps + CCACHE_DIR={project}/_build/ccache + CCACHE_NAMESPACE=pyalps-wheel + CMAKE_ARGS="-DCMAKE_CXX_COMPILER_LAUNCHER=ccache" + CIBW_BEFORE_ALL_LINUX: > + dnf install -y ccache cmake hdf5-devel openmpi-devel lapack-devel ninja-build && + cmake -S {project} -B {project}/_build/cibw-alps -G Ninja + -DCMAKE_BUILD_TYPE=Release + -DCMAKE_INSTALL_PREFIX={project}/_build/cibw-install + -DCMAKE_CXX_COMPILER_LAUNCHER=ccache + -DALPS_BUILD_LIBS_ONLY=ON + -DALPS_BUILD_TESTS=OFF + -DALPS_BUILD_EXAMPLES=OFF + -DALPS_BUILD_APPLICATIONS=OFF && + cmake --build {project}/_build/cibw-alps --target install -j2 + CIBW_BEFORE_ALL_MACOS: > + brew install ccache cmake hdf5 open-mpi ninja && + cmake -S {project} -B {project}/_build/cibw-alps -G Ninja + -DCMAKE_BUILD_TYPE=Release + -DCMAKE_INSTALL_PREFIX={project}/_build/cibw-install + -DCMAKE_CXX_COMPILER_LAUNCHER=ccache + -DALPS_BUILD_LIBS_ONLY=ON + -DALPS_BUILD_TESTS=OFF + -DALPS_BUILD_EXAMPLES=OFF + -DALPS_BUILD_APPLICATIONS=OFF + -DHDF5_ROOT=${{ matrix.plat.homebrew }}/opt/hdf5 && + cmake --build {project}/_build/cibw-alps --target install -j2 CIBW_ENVIRONMENT_MACOS: > - Boost_ROOT_DIR=/Users/runner/work/ALPS/ALPS/boost_1_87_0 + ALPS_DIR={project}/_build/cibw-install/share/alps + CCACHE_DIR={project}/_build/ccache + CCACHE_NAMESPACE=pyalps-wheel + CMAKE_ARGS="-DCMAKE_CXX_COMPILER_LAUNCHER=ccache" MACOSX_DEPLOYMENT_TARGET=${{ matrix.plat.target }} CXXFLAGS="-stdlib=libc++" -# CIBW_ENVIRONMENT: > - - # env: - # CIBW_SOME_OPTION: value - # ... - # with: - # package-dir: . - # output-dir: wheelhouse - # config-file: "{package}/pyproject.toml" + CIBW_TEST_REQUIRES: pytest + CIBW_TEST_COMMAND: pytest -q {project}/test/pyalps - uses: actions/upload-artifact@v7 with: diff --git a/CMakeLists.txt b/CMakeLists.txt index c4513f28b..bbd89d8db 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,12 +28,6 @@ if (NOT_BUILD_SHARED_LIBS) else (NOT_BUILD_SHARED_LIBS) option(BUILD_SHARED_LIBS "Build shared libraries" ON) endif (NOT_BUILD_SHARED_LIBS) -if (NOT_ALPS_BUILD_PYTHON) - option(ALPS_BUILD_PYTHON "Build ALPS python extentions" OFF) -else (NOT_ALPS_BUILD_PYTHON) - option(ALPS_BUILD_PYTHON "Build ALPS python extentions" ON) -endif (NOT_ALPS_BUILD_PYTHON) - option(ALPS_BUILD_DEVELOPER_TOOLS "Build tools used by developers to maintain ALPS" OFF) option(ALPS_ENABLE_OPENMP "Enable OpenMP parallelization" OFF) option(ALPS_ENABLE_OPENMP_WORKER "Enable OpenMP worker support" OFF) @@ -46,7 +40,6 @@ option(ALPS_LINK_BOOST_TEST "Link Boost.test pre-built library" OFF) option(ALPS_INSTALL_BOOST_TEST "Install Boost Test framework" OFF) option(ALPS_NGS_USE_NEW_ALEA "Use the ALPS ngs-alea instead of just alea" OFF) option(ALPS_NGS_OPENMPI_ULFM "Userlevel failure mitigation is available" OFF) -option(ALPS_PYTHON_WHEEL "Build python wheel" OFF) option(ALPS_BUILD_LIBS_ONLY "Build only libraries" OFF) @@ -56,7 +49,6 @@ mark_as_advanced(ALPS_LINK_BOOST_TEST) mark_as_advanced(ALPS_INSTALL_BOOST_TEST) mark_as_advanced(ALPS_NGS_USE_NEW_ALEA) mark_as_advanced(ALPS_NGS_OPENMPI_ULFM) -mark_as_advanced(ALPS_PYTHON_WHEEL) mark_as_advanced(ALPS_BUILD_LIBS_ONLY) option(ALPS_USE_MKL_PARALLEL "Use parallel version of MKL" OFF) @@ -65,7 +57,6 @@ mark_as_advanced(ALPS_USE_MKL_PARALLEL) SET (APPLICATIONS_CAN_BE_BUILT ON) set(ALPS_BOOST_LIBRARY_NAME "boost" CACHE STRING "name of the boost library") -set(ALPS_BOOST_PYTHON_LIBRARY_NAME "boost_python" CACHE STRING "name of the boost library") set(ALPS_ENABLE_MPI ON CACHE BOOL "Enable MPI Parallelization") set(ALPS_INSTALL_HEADERS ON CACHE BOOL "Install headers for ALPS and all dependent libraries") set(ALPS_BUILD_EXAMPLES ON CACHE BOOL "Build ALPS examples") @@ -74,11 +65,6 @@ set(ALPS_BUILD_APPLICATIONS ${APPLICATIONS_CAN_BE_BUILT} CACHE BOOL "Build ALPS mark_as_advanced(ALPS_BOOST_LIBRARY_NAME) -if(ALPS_PYTHON_WHEEL) - set(ALPS_BUILD_APPLICATIONS ON) - set(ALPS_ENABLE_MPI OFF) -endif() - if(ALPS_BUILD_LIBS_ONLY) set(ALPS_BUILD_APPLICATIONS OFF) endif() @@ -132,10 +118,6 @@ list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) # set default CMAKE_INSTALL_PREFIX ###################################################################### -if (ALPS_BUILD_PYTHON) - find_package(PythonMod REQUIRED) # COMPONENTS Interpreter Development.Module ) -endif (ALPS_BUILD_PYTHON) - ###################################################################### # Version information ###################################################################### @@ -289,24 +271,9 @@ IF(HDF5_IS_PARALLEL) INCLUDE_DIRECTORIES(${MPI_INCLUDE_PATH}) ENDIF(HDF5_IS_PARALLEL) -# python - - -if (ALPS_BUILD_PYTHON) - set(PYTHON_SCRIPTDIR "${CMAKE_INSTALL_PREFIX}/lib/python") - find_package(PythonMod) -endif (ALPS_BUILD_PYTHON) - -IF (PYTHONLIBS_FOUND AND ALPS_BUILD_PYTHON) - include_directories(${PYTHON_NUMPY_INCLUDE_DIR}) - MESSAGE (STATUS "Numpy include in ${PYTHON_NUMPY_INCLUDE_DIR}") - SET(ALPS_HAVE_PYTHON ON) - INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_DIRS}) - set(BUILD_BOOST_PYTHON TRUE) -ELSE (PYTHONLIBS_FOUND AND ALPS_BUILD_PYTHON) - set(BUILD_BOOST_PYTHON OFF) - SET(ALPS_HAVE_PYTHON OFF) -ENDIF (PYTHONLIBS_FOUND AND ALPS_BUILD_PYTHON) +# Python bindings are built by the standalone scikit-build-core project in +# bindings/python/pyalps. The C++ SDK deliberately has no Python dependency. +set(BUILD_BOOST_PYTHON OFF) # Boost Libraries find_package(BoostForALPS REQUIRED) @@ -409,12 +376,6 @@ endif(MPI_INCLUDE_DIR) if(HDF5_INCLUDE_DIR) list(APPEND ALPS_EXTRA_INCLUDE_DIRS ${HDF5_INCLUDE_DIR}) endif(HDF5_INCLUDE_DIR) -if(PYTHON_INCLUDE_DIRS) - list(APPEND ALPS_EXTRA_INCLUDE_DIRS ${PYTHON_INCLUDE_DIRS}) -endif(PYTHON_INCLUDE_DIRS) -if(PYTHON_NUMPY_INCLUDE_DIR) - list(APPEND ALPS_EXTRA_INCLUDE_DIRS ${PYTHON_NUMPY_INCLUDE_DIR}) -endif(PYTHON_NUMPY_INCLUDE_DIR) if(Boost_INCLUDE_DIR_CONFIG) list(APPEND ALPS_EXTRA_INCLUDE_DIRS ${Boost_INCLUDE_DIR_CONFIG}) endif(Boost_INCLUDE_DIR_CONFIG) @@ -446,10 +407,6 @@ endif(LAPACK_LIBRARIES) if(HDF5_LIBRARIES) list(APPEND ALPS_EXTRA_LIBRARIES ${HDF5_LIBRARIES}) endif(HDF5_LIBRARIES) -if(PYTHON_LIBRARY) - list(APPEND ALPS_EXTRA_LIBRARIES ${PYTHON_LIBRARY}) -endif(PYTHON_LIBRARY) - configure_file(cmake/ALPSConfig.cmake.in ${PROJECT_BINARY_DIR}/cmake/ALPSConfig.cmake @ONLY) configure_file(cmake/include.mk.in ${PROJECT_BINARY_DIR}/cmake/include.mk) @@ -465,22 +422,17 @@ write_basic_package_version_file( # installation ###################################################################### include(InstallRequiredSystemLibraries) -if(ALPS_PYTHON_WHEEL) - install(DIRECTORY lib/pyalps DESTINATION . COMPONENT python - FILES_MATCHING PATTERN "*.py" - ) - install(DIRECTORY lib/xml DESTINATION pyalps COMPONENT xml - FILES_MATCHING PATTERN "*.xsl" - ) - install(DIRECTORY ${PROJECT_BINARY_DIR}/lib/xml DESTINATION pyalps COMPONENT xml) -elseif(ALPS_BUILD_LIBS_ONLY) -else() - if (ALPS_INSTALL_HEADERS) set(ALPS_HEADER_DIR "include") install(DIRECTORY src/alps src/boost src/ietl src/mocasito COMPONENT headers DESTINATION ${ALPS_HEADER_DIR} FILES_MATCHING PATTERN "*.h" PATTERN "*.hpp" PATTERN "*.ipp" ) + # ALPS' public headers include the vendored Boost.Numeric bindings. Install + # them as part of the C++ SDK so downstream consumers do not need the ALPS + # source tree on their include path. + install(DIRECTORY bindings/boost COMPONENT headers DESTINATION ${ALPS_HEADER_DIR} + FILES_MATCHING PATTERN "*.h" PATTERN "*.hpp" PATTERN "*.ipp" + ) install(FILES ${PROJECT_BINARY_DIR}/src/alps/config.h ${PROJECT_BINARY_DIR}/src/alps/version.h DESTINATION ${ALPS_HEADER_DIR}/alps COMPONENT headers) endif(ALPS_INSTALL_HEADERS) @@ -488,12 +440,6 @@ install(DIRECTORY lib/xml DESTINATION ${ALPS_XML_PATH} COMPONENT xml FILES_MATCHING PATTERN "*.xsl" ) -if(ALPS_BUILD_PYTHON AND ALPS_PYTHON_LIB_DEST_ROOT) - install(DIRECTORY lib/pyalps DESTINATION ${ALPS_PYTHON_LIB_DEST_ROOT} COMPONENT python - FILES_MATCHING PATTERN "*.py" PATTERN "*.pyc" - ) -endif() - install(DIRECTORY ${PROJECT_BINARY_DIR}/lib/xml DESTINATION ${ALPS_XML_PATH} COMPONENT xml) add_subdirectory(cmake) @@ -509,43 +455,24 @@ install(FILES cmake/UseALPS.cmake install(FILES CITATION.md LICENSE.txt README.md DESTINATION share/alps COMPONENT libraries) -if(ALPS_BUILD_PYTHON AND ALPS_PYTHON_LIB_DEST_ROOT) - string(CONFIGURE [[ - set(PROJECT_SOURCE_DIR "@PROJECT_SOURCE_DIR@") - set(ALPS_PYTHON_LIB_DEST_ROOT "@ALPS_PYTHON_LIB_DEST_ROOT@") - message(STATUS "PROJECT_SOURCE_DIR: ${PROJECT_SOURCE_DIR}") - message(STATUS "CMAKE_BINARY_DIR: ${CMAKE_BINARY_DIR}") - message(STATUS "CMAKE_SOURCE_DIR: ${CMAKE_SOURCE_DIR}") - message(STATUS "CMAKE_INSTALL_PREFIX: ${CMAKE_INSTALL_PREFIX}") - message(STATUS "ALPS_PYTHON_LIB_DEST_ROOT: ${ALPS_PYTHON_LIB_DEST_ROOT}") - - configure_file(${PROJECT_SOURCE_DIR}/lib/pyalps/pyalps_config.py.in ${CMAKE_INSTALL_PREFIX}/${ALPS_PYTHON_LIB_DEST_ROOT}/pyalps/pyalps_config.py) - ]] install_script @ONLY) - install(CODE ${install_script}) -endif() - -set(PYTHONEXEC python) - -endif() ###################################################################### # libraries ###################################################################### add_subdirectory(src/boost) add_subdirectory(src/alps) -add_subdirectory(lib/pyalps) ###################################################################### # programs ###################################################################### -if (NOT ALPS_PYTHON_WHEEL AND NOT ALPS_BUILD_LIBS_ONLY) +if (NOT ALPS_BUILD_LIBS_ONLY) add_subdirectory(tool) if (ALPS_BUILD_EXAMPLES) add_subdirectory(example) endif (ALPS_BUILD_EXAMPLES) -endif (NOT ALPS_PYTHON_WHEEL AND NOT ALPS_BUILD_LIBS_ONLY) +endif (NOT ALPS_BUILD_LIBS_ONLY) ###################################################################### @@ -556,9 +483,9 @@ if (ALPS_BUILD_APPLICATIONS AND NOT ALPS_BUILD_LIBS_ONLY) add_subdirectory(applications) endif (ALPS_BUILD_APPLICATIONS AND NOT ALPS_BUILD_LIBS_ONLY) -if (ALPS_INCLUDE_TUTORIALS AND NOT ALPS_PYTHON_WHEEL AND NOT ALPS_BUILD_LIBS_ONLY) +if (ALPS_INCLUDE_TUTORIALS AND NOT ALPS_BUILD_LIBS_ONLY) add_subdirectory(tutorials) -endif (ALPS_INCLUDE_TUTORIALS AND NOT ALPS_PYTHON_WHEEL AND NOT ALPS_BUILD_LIBS_ONLY) +endif (ALPS_INCLUDE_TUTORIALS AND NOT ALPS_BUILD_LIBS_ONLY) ###################################################################### # developer tools diff --git a/applications/dmft/qmc/hybridization/hybmain.cpp b/applications/dmft/qmc/hybridization/hybmain.cpp index df8bd8f85..3a641e0c6 100644 --- a/applications/dmft/qmc/hybridization/hybmain.cpp +++ b/applications/dmft/qmc/hybridization/hybmain.cpp @@ -47,11 +47,11 @@ void master_final_tasks(const alps::results_type::type &results, int global_mpi_rank; #ifdef BUILD_PYTHON_MODULE -//compile it as a python module (requires boost::python library) -using namespace boost::python; +#include "dict_to_params.hpp" +namespace nb = nanobind; -void solve(boost::python::dict parms_){ - alps::parameters_type::type parms(parms_); +void solve(nb::dict const & parms_){ + alps::parameters_type::type parms = pyalps::params_from_dict(parms_); std::string output_file = boost::lexical_cast(parms["BASENAME"]|"results")+std::string(".out.h5"); #else int main(int argc, char** argv){ @@ -137,12 +137,10 @@ void master_final_tasks(const alps::results_type::type &results, } #ifdef BUILD_PYTHON_MODULE -BOOST_PYTHON_MODULE(cthyb) -{ - def("solve",solve);//define python-callable run method -}; +NB_MODULE(cthyb, m) { + m.def("solve", solve); +} #endif - diff --git a/applications/dmft/qmc/interaction_expansion2/main.cpp b/applications/dmft/qmc/interaction_expansion2/main.cpp index ce7630914..875db3f76 100644 --- a/applications/dmft/qmc/interaction_expansion2/main.cpp +++ b/applications/dmft/qmc/interaction_expansion2/main.cpp @@ -44,11 +44,11 @@ void compute_greens_functions(const alps::results_type::type parms(parms_); +void solve(nb::dict const & parms_){ + alps::parameters_type::type parms = pyalps::params_from_dict(parms_); std::string output_file = boost::lexical_cast(parms["BASENAME"]|"results")+std::string(".out.h5"); #else int main(int argc, char** argv) @@ -114,9 +114,8 @@ int main(int argc, char** argv) } #ifdef BUILD_PYTHON_MODULE - BOOST_PYTHON_MODULE(ctint) - { - def("solve",solve);//define python-callable run method - }; + NB_MODULE(ctint, m) { + m.def("solve", solve); + } #endif diff --git a/applications/qmc/dwa/bandstructure.hpp b/applications/qmc/dwa/bandstructure.hpp index b48ce7af4..1071bc5d3 100644 --- a/applications/qmc/dwa/bandstructure.hpp +++ b/applications/qmc/dwa/bandstructure.hpp @@ -32,10 +32,6 @@ #include #include #include -#include -#include -#include -#include // LAPACK Library: dsteqr -- description: diagonalize a real tridiagonal matrix @@ -47,7 +43,7 @@ class bandstructure { public: bandstructure(double V0_, double lambda_, double a_, double m_, unsigned int L_, int Mmax_=10); - bandstructure(boost::python::object V0_, boost::python::object lambda_, double a_, double m_, unsigned int L_, int Mmax_=10); + bandstructure(std::vector const & V0_, std::vector const & lambda_, double a_, double m_, unsigned int L_, int Mmax_=10); std::vector get_t() { if(!is_evaluated) evaluate(); return t; } double get_U() { if(!is_evaluated) evaluate(); return U; } @@ -132,15 +128,15 @@ bandstructure::bandstructure(double V0_, double lambda_, double a_, double m_, u wk2_d = 1.; } -bandstructure::bandstructure(boost::python::object V0_, boost::python::object lambda_, double a_, double m_, unsigned int L_, int Mmax_) +bandstructure::bandstructure(std::vector const & V0_, std::vector const & lambda_, double a_, double m_, unsigned int L_, int Mmax_) : is_evaluated (false) , L (L_) , Mmax (Mmax_) { - alps::python::numpy::convert(V0_, V0); - alps::python::numpy::convert(lambda_, lambda); + V0 = V0_; + lambda = lambda_; - if (V0.empty() || lambda.empty() || a_ == 0. || m_ == 0. || L == 0) + if (V0.empty() || lambda.empty() || a_ == 0. || m_ == 0. || L == 0) boost::throw_exception(std::runtime_error("Illegal initialization parameters for bandstructure class")); V0.resize (3, V0.back()); diff --git a/bindings/python/pyalps/CMakeLists.txt b/bindings/python/pyalps/CMakeLists.txt new file mode 100644 index 000000000..f7db44eec --- /dev/null +++ b/bindings/python/pyalps/CMakeLists.txt @@ -0,0 +1,139 @@ +# Copyright (C) 2026 by the ALPS collaboration +# SPDX-License-Identifier: MIT + +cmake_minimum_required(VERSION 3.18) +project(pyalps LANGUAGES CXX) + +option(PYALPS_BUILD_APPLICATIONS "Build optional ALPS application bindings" ON) + +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) +set(CMAKE_CXX_EXTENSIONS OFF) + +find_package(ALPS REQUIRED CONFIG) +find_package(Python 3.9 REQUIRED COMPONENTS Interpreter Development.Module) + +execute_process( + COMMAND "${Python_EXECUTABLE}" -m nanobind --cmake_dir + OUTPUT_VARIABLE _nanobind_cmake_dir + OUTPUT_STRIP_TRAILING_WHITESPACE + COMMAND_ERROR_IS_FATAL ANY) +list(PREPEND CMAKE_PREFIX_PATH "${_nanobind_cmake_dir}") +find_package(nanobind 2.10 CONFIG REQUIRED) + +get_filename_component(_repo_root "${CMAKE_CURRENT_SOURCE_DIR}/../../.." ABSOLUTE) +set(_bindings "${CMAKE_CURRENT_SOURCE_DIR}/cpp") + +link_directories(${ALPS_LIBRARY_DIRS}) +if(ALPS_HDF5_INCLUDE_DIR) + get_filename_component(_alps_hdf5_prefix "${ALPS_HDF5_INCLUDE_DIR}" DIRECTORY) + link_directories("${_alps_hdf5_prefix}/lib") +endif() + +# Legacy ALPSConfig.cmake serializes the HDF5 imported target name into +# ALPS_LIBRARIES. Outside the original build tree that target no longer +# exists, while the installed library keeps its conventional `hdf5` name. +set(_pyalps_link_libraries ${ALPS_LIBRARIES}) +list(TRANSFORM _pyalps_link_libraries REPLACE "^hdf5-shared$" "hdf5") +separate_arguments(_pyalps_link_options NATIVE_COMMAND "${ALPS_EXTRA_LINKER_FLAGS}") + +set(_pyalps_targets + pyalea_c + pymcdata_c + pytools_c + pyngsparams_c + pyngshdf5_c + pyngsbase_c + pyngsobservable_c + pyngsobservables_c + pyngsresult_c + pyngsresults_c + pyngsapi_c + pyngsrandom01_c + pyngsaccumulator_c) + +nanobind_add_module(pyalea_c NB_STATIC "${_bindings}/pyalea.cpp") +nanobind_add_module(pymcdata_c NB_STATIC "${_bindings}/pymcdata.cpp") +nanobind_add_module(pytools_c NB_STATIC "${_bindings}/pytools.cpp") +nanobind_add_module(pyngsparams_c NB_STATIC "${_bindings}/ngs/params.cpp") +nanobind_add_module(pyngshdf5_c NB_STATIC "${_bindings}/ngs/hdf5.cpp") +nanobind_add_module(pyngsbase_c NB_STATIC "${_bindings}/ngs/mcbase.cpp") +nanobind_add_module(pyngsobservable_c NB_STATIC "${_bindings}/ngs/observable.cpp") +nanobind_add_module(pyngsobservables_c NB_STATIC "${_bindings}/ngs/observables.cpp") +nanobind_add_module(pyngsresult_c NB_STATIC "${_bindings}/ngs/result.cpp") +nanobind_add_module(pyngsresults_c NB_STATIC "${_bindings}/ngs/results.cpp") +nanobind_add_module(pyngsapi_c NB_STATIC "${_bindings}/ngs/api.cpp") +nanobind_add_module(pyngsrandom01_c NB_STATIC "${_bindings}/ngs/random01.cpp") +nanobind_add_module(pyngsaccumulator_c NB_STATIC "${_bindings}/ngs/accumulator.cpp") + +if(PYALPS_BUILD_APPLICATIONS) + if(NOT EXISTS "${_repo_root}/tool/maxent.cpp") + message(FATAL_ERROR + "PYALPS_BUILD_APPLICATIONS requires an ALPS source checkout. " + "Configure with -DPYALPS_BUILD_APPLICATIONS=OFF for the core-only package.") + endif() + + set(_dmft "${_repo_root}/applications/dmft/qmc") + + nanobind_add_module(maxent_c NB_STATIC + "${_repo_root}/tool/maxent.cpp" + "${_repo_root}/tool/maxent_helper.cpp" + "${_repo_root}/tool/maxent_simulation.cpp" + "${_repo_root}/tool/maxent_parms.cpp") + + nanobind_add_module(cthyb NB_STATIC + "${_dmft}/hybridization/hybmain.cpp" + "${_dmft}/hybridization/hybsim.cpp" + "${_dmft}/hybridization/hyblocal.cpp" + "${_dmft}/hybridization/hybint.cpp" + "${_dmft}/hybridization/hybfun.cpp" + "${_dmft}/hybridization/hybretintfun.cpp" + "${_dmft}/hybridization/hybmatrix.cpp" + "${_dmft}/hybridization/hybmatrix_ft.cpp" + "${_dmft}/hybridization/hybconfig.cpp" + "${_dmft}/hybridization/hybupdates.cpp" + "${_dmft}/hybridization/hybevaluate.cpp" + "${_dmft}/hybridization/hybmeasurements.cpp") + + nanobind_add_module(ctint NB_STATIC + "${_dmft}/interaction_expansion2/main.cpp" + "${_dmft}/fouriertransform.C" + "${_dmft}/interaction_expansion2/auxiliary.cpp" + "${_dmft}/interaction_expansion2/observables.cpp" + "${_dmft}/interaction_expansion2/fastupdate.cpp" + "${_dmft}/interaction_expansion2/selfenergy.cpp" + "${_dmft}/interaction_expansion2/solver.cpp" + "${_dmft}/interaction_expansion2/io.cpp" + "${_dmft}/interaction_expansion2/splines.cpp" + "${_dmft}/interaction_expansion2/interaction_expansion.cpp" + "${_dmft}/interaction_expansion2/measurements.cpp" + "${_dmft}/interaction_expansion2/model.cpp") + + nanobind_add_module(dwa_c NB_STATIC "${_bindings}/apps/dwa.cpp") + + list(APPEND _pyalps_targets maxent_c cthyb ctint dwa_c) + foreach(_target IN ITEMS maxent_c cthyb ctint) + target_compile_definitions(${_target} PRIVATE BUILD_PYTHON_MODULE) + target_include_directories(${_target} PRIVATE "${_bindings}" "${_dmft}") + endforeach() + target_include_directories(dwa_c PRIVATE "${_repo_root}/applications/qmc/dwa") +endif() + +foreach(_target IN LISTS _pyalps_targets) + target_include_directories(${_target} PRIVATE + ${ALPS_INCLUDE_DIRS} + ${ALPS_EXTRA_INCLUDE_DIRS}) + target_link_libraries(${_target} PRIVATE ${_pyalps_link_libraries}) + target_link_options(${_target} PRIVATE ${_pyalps_link_options}) + set_target_properties(${_target} PROPERTIES + INSTALL_RPATH "${ALPS_LIBRARY_DIRS};${_alps_hdf5_prefix}/lib") +endforeach() + +set(_extension_dir "pyalps/_ext") +install(TARGETS ${_pyalps_targets} + LIBRARY DESTINATION "${_extension_dir}" + RUNTIME DESTINATION "${_extension_dir}") + +install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/src/pyalps/" + DESTINATION pyalps + FILES_MATCHING PATTERN "*.py") diff --git a/bindings/python/pyalps/README.md b/bindings/python/pyalps/README.md new file mode 100644 index 000000000..e4c3507f3 --- /dev/null +++ b/bindings/python/pyalps/README.md @@ -0,0 +1,24 @@ +# pyalps + +Legacy-compatible Python bindings for ALPS, built as a standalone +`scikit-build-core` project using nanobind. The C++ ALPS library must be +built and installed separately; point `ALPS_DIR` at its `share/alps` +package directory when building this wheel. + +From the repository root: + +```sh +cmake -S . -B _build/alps -G Ninja \ + -DCMAKE_INSTALL_PREFIX="$PWD/_build/install" \ + -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ + -DALPS_BUILD_LIBS_ONLY=ON +cmake --build _build/alps --target install + +ALPS_DIR="$PWD/_build/install/share/alps" \ + CMAKE_ARGS="-DCMAKE_CXX_COMPILER_LAUNCHER=ccache" \ + python -m build --wheel +``` + +`PYALPS_BUILD_APPLICATIONS=ON` is the default and preserves the MaxEnt, +DWA, CT-HYB, and CT-INT extension modules. Set it to `OFF` through CMake +configuration for a smaller core-only developer build. diff --git a/bindings/python/pyalps/cpp/apps/dwa.cpp b/bindings/python/pyalps/cpp/apps/dwa.cpp new file mode 100644 index 000000000..9016fd6e8 --- /dev/null +++ b/bindings/python/pyalps/cpp/apps/dwa.cpp @@ -0,0 +1,109 @@ +/***************************************************************************** +* +* ALPS Project Applications: Directed Worm Algorithm +* +* Copyright (C) 2013 by Matthias Troyer , +* Lode Pollet , +* Ping Nang Ma +* 2026 by the ALPS collaboration +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice shall be included +* in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +* +*****************************************************************************/ +// dwa_c — nanobind port. +// +// The old boost::python binding registered each std::vector we +// handed out as a distinct nb::class_> carrying the +// vector_indexing_suite. nanobind's built-in STL caster auto- +// converts std::vector ↔ Python list for us, so those +// registrations are retired; any code that wrote +// `dwa_c.std_vector_double(...)` now just passes / receives a Python +// list directly. +#include +#include +#include +namespace nb = nanobind; +#include "worldlines.hpp" +#include "bandstructure.hpp" +#include +#include +NB_MODULE(dwa_c, m) { + m.doc() = "ALPS DWA (directed worm algorithm) Python bindings."; + nb::class_(m, "kink") + .def(nb::init(), nb::arg("siteindicator")) + .def(nb::init(), + nb::arg("siteindicator"), nb::arg("time"), nb::arg("state")) + .def("__repr__", &kink::representation) + .def("siteindicator",&kink::siteindicator) + .def("time", &kink::time) + .def("state", &kink::state); + nb::class_(m, "location_type"); + nb::class_(m, "worldlines") + .def(nb::init<>()) + .def(nb::init(), nb::arg("num_sites")) + .def("__repr__", &worldlines::representation) + .def("load", static_cast(&worldlines::load)) + .def("save", static_cast(&worldlines::save)) + .def("open_worldlines", &worldlines::open_worldlines) + .def("worldlines_siteindicator", &worldlines::worldlines_siteindicator) + .def("worldlines_time", &worldlines::worldlines_time) + .def("worldlines_state", &worldlines::worldlines_state) + .def("num_sites", &worldlines::num_sites) + .def("num_kinks", &worldlines::num_kinks) + .def("states", &worldlines::states) + .def("location", &worldlines::location) + .def("state_before", &worldlines::state_before) + .def("state", &worldlines::state) + .def("is_valid", static_cast(&worldlines::is_valid)); + nb::class_(m, "wormpair") + .def(nb::init<>()) + .def(nb::init()) + .def("__repr__", &wormpair::representation) + .def("wormhead", &wormpair::wormhead) + .def("wormtail", &wormpair::wormtail) + .def("wormhead_site", &wormpair::site) + .def("wormhead_time", &wormpair::time) + .def("wormhead_forward", &wormpair::forward) + .def("wormtail_site", &wormpair::wormtail_site) + .def("wormtail_time", &wormpair::wormtail_time) + .def("next_partnersite", &wormpair::next_partnersite) + .def("next_time", &wormpair::next_time) + .def("wormhead_turns_around", &wormpair::wormhead_turns_around) + .def("wormhead_moves_to_new_time", &wormpair::wormhead_moves_to_new_time) + .def("wormhead_inserts_vertex_and_jumps_to_new_site", &wormpair::wormhead_inserts_vertex_and_jumps_to_new_site) + .def("wormhead_deletes_vertex_and_jumps_to_new_site", &wormpair::wormhead_deletes_vertex_and_jumps_to_new_site) + .def("wormhead_relinks_vertex_and_jumps_to_new_site", &wormpair::wormhead_relinks_vertex_and_jumps_to_new_site) + .def("wormhead_crosses_vertex", &wormpair::wormhead_crosses_vertex) + .def("wormhead_annihilates_wormtail", &wormpair::wormhead_annihilates_wormtail); + nb::class_(m, "bandstructure") + .def(nb::init(), + nb::arg("V0"), nb::arg("lambda"), nb::arg("a"), nb::arg("m"), nb::arg("L")) + .def(nb::init const &, std::vector const &, + double, double, unsigned int>(), + nb::arg("V0"), nb::arg("lambda"), nb::arg("a"), nb::arg("m"), nb::arg("L")) + .def("__repr__", static_cast(&bandstructure::representation)) + .def("t", static_cast (bandstructure::*)()>(&bandstructure::get_t)) + .def("U", static_cast(&bandstructure::get_U)) + .def("Ut", static_cast (bandstructure::*)()>(&bandstructure::get_Ut)) + .def("norm", static_cast (bandstructure::*)()>(&bandstructure::get_norm)) + .def("q", static_cast (bandstructure::*)(unsigned int)>(&bandstructure::get_q)) + .def("wk2", static_cast (bandstructure::*)(unsigned int)>(&bandstructure::get_wk2)) + .def("wk2_c", static_cast(&bandstructure::get_wk2_c)) + .def("wk2_d", static_cast(&bandstructure::get_wk2_d)); +} diff --git a/bindings/python/pyalps/cpp/dict_to_params.hpp b/bindings/python/pyalps/cpp/dict_to_params.hpp new file mode 100644 index 000000000..d50c84e8d --- /dev/null +++ b/bindings/python/pyalps/cpp/dict_to_params.hpp @@ -0,0 +1,35 @@ +// Copyright (C) 2026 by the ALPS collaboration +// Part of the ALPS Project — see LICENSE.txt for full license text. +// SPDX-License-Identifier: MIT +#ifndef PYALPS_DICT_TO_PARAMS_HPP +#define PYALPS_DICT_TO_PARAMS_HPP +#include +#include +#include +#include +#include +#include +namespace pyalps { +namespace nb = nanobind; +inline alps::params params_from_dict(nb::dict const & values) { + alps::params result; + for (auto item : values) { + std::string key = nb::cast(nb::str(item.first)); + nb::handle value = item.second; + if (nb::isinstance(value)) + result[key] = nb::cast(value); + else if (nb::isinstance(value)) + result[key] = nb::cast(value); + else if (nb::isinstance(value)) + result[key] = nb::cast(value); + else if (nb::isinstance(value)) + result[key] = nb::cast(value); + else if (nb::isinstance(value) || nb::isinstance(value)) + result[key] = nb::cast>(value); + else + throw nb::type_error(("unsupported parameter type for '" + key + "'").c_str()); + } + return result; +} +} // namespace pyalps +#endif diff --git a/bindings/python/pyalps/cpp/ngs/accumulator.cpp b/bindings/python/pyalps/cpp/ngs/accumulator.cpp new file mode 100644 index 000000000..f3ca7f005 --- /dev/null +++ b/bindings/python/pyalps/cpp/ngs/accumulator.cpp @@ -0,0 +1,123 @@ +// Copyright (C) 2010 - 2011 by Lukas Gamper +// 2026 by the ALPS collaboration +// Part of the ALPS Project — see LICENSE.txt for full license text. +// SPDX-License-Identifier: MIT +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace nb = nanobind; +namespace { +template +std::string print_value(T const & value) { + std::stringstream stream; + value.print(stream); + return stream.str(); +} +template +typename Accumulator::result_type make_result(Accumulator const & value) { + return typename Accumulator::result_type(value); +} +template +void bind_result_operators(nb::class_ & cls) { + cls + .def("__neg__", [](Result value) { value.negate(); return value; }) + .def("__iadd__", [](Result & self, Result const & other) -> Result & { self += other; return self; }, nb::rv_policy::reference_internal) + .def("__iadd__", [](Result & self, double value) -> Result & { self += value; return self; }, nb::rv_policy::reference_internal) + .def("__isub__", [](Result & self, Result const & other) -> Result & { self -= other; return self; }, nb::rv_policy::reference_internal) + .def("__isub__", [](Result & self, double value) -> Result & { self -= value; return self; }, nb::rv_policy::reference_internal) + .def("__imul__", [](Result & self, Result const & other) -> Result & { self *= other; return self; }, nb::rv_policy::reference_internal) + .def("__imul__", [](Result & self, double value) -> Result & { self *= value; return self; }, nb::rv_policy::reference_internal) + .def("__itruediv__", [](Result & self, Result const & other) -> Result & { self /= other; return self; }, nb::rv_policy::reference_internal) + .def("__itruediv__", [](Result & self, double value) -> Result & { self /= value; return self; }, nb::rv_policy::reference_internal) + .def("__add__", [](Result value, Result const & other) { value += other; return value; }, nb::is_operator()) + .def("__add__", [](Result value, double other) { value += other; return value; }, nb::is_operator()) + .def("__radd__", [](Result value, double other) { value += other; return value; }, nb::is_operator()) + .def("__sub__", [](Result value, Result const & other) { value -= other; return value; }, nb::is_operator()) + .def("__sub__", [](Result value, double other) { value -= other; return value; }, nb::is_operator()) + .def("__rsub__", [](Result value, double other) { value.negate(); value += other; return value; }, nb::is_operator()) + .def("__mul__", [](Result value, Result const & other) { value *= other; return value; }, nb::is_operator()) + .def("__mul__", [](Result value, double other) { value *= other; return value; }, nb::is_operator()) + .def("__rmul__", [](Result value, double other) { value *= other; return value; }, nb::is_operator()) + .def("__truediv__", [](Result value, Result const & other) { value /= other; return value; }, nb::is_operator()) + .def("__truediv__", [](Result value, double other) { value /= other; return value; }, nb::is_operator()) + .def("__rtruediv__", [](Result value, double other) { value.inverse(); value *= other; return value; }, nb::is_operator()) + .def("sin", [](Result value) { value.sin(); return value; }) + .def("cos", [](Result value) { value.cos(); return value; }) + .def("tan", [](Result value) { value.tan(); return value; }) + .def("sinh", [](Result value) { value.sinh(); return value; }) + .def("cosh", [](Result value) { value.cosh(); return value; }) + .def("tanh", [](Result value) { value.tanh(); return value; }) + .def("abs", [](Result value) { value.abs(); return value; }) + .def("sqrt", [](Result value) { value.sqrt(); return value; }) + .def("log", [](Result value) { value.log(); return value; }); +} +template +void bind_serializable(nb::class_ & cls) { + cls.def("__str__", &print_value) + .def("save", &T::save) + .def("load", &T::load) + .def("reset", &T::reset); +} +} // namespace +NB_MODULE(pyngsaccumulator_c, m) { + using namespace alps::accumulator::impl; + using count_accumulator = Accumulator>; + using count_result = count_accumulator::result_type; + nb::class_ count_acc(m, "count_accumulator"); + count_acc.def(nb::init<>()).def("__call__", [](count_accumulator & self, double value) { self(value); }) + .def("result", &make_result).def("count", &count_accumulator::count); + bind_serializable(count_acc); + nb::class_ count_res(m, "count_result"); + count_res.def(nb::init<>()).def("count", &count_result::count); + bind_serializable(count_res); bind_result_operators(count_res); + using mean_accumulator = Accumulator; + using mean_result = mean_accumulator::result_type; + nb::class_ mean_acc(m, "mean_accumulator"); + mean_acc.def(nb::init<>()).def("__call__", [](mean_accumulator & self, double value) { self(value); }) + .def("result", &make_result).def("count", &mean_accumulator::count) + .def("mean", &mean_accumulator::mean); + bind_serializable(mean_acc); + nb::class_ mean_res(m, "mean_result"); + mean_res.def(nb::init<>()).def("count", &mean_result::count).def("mean", &mean_result::mean); + bind_serializable(mean_res); bind_result_operators(mean_res); + using error_accumulator = Accumulator; + using error_result = error_accumulator::result_type; + nb::class_ error_acc(m, "error_accumulator"); + error_acc.def(nb::init<>()).def("__call__", [](error_accumulator & self, double value) { self(value); }) + .def("result", &make_result).def("count", &error_accumulator::count) + .def("mean", &error_accumulator::mean).def("error", &error_accumulator::error); + bind_serializable(error_acc); + nb::class_ error_res(m, "error_result"); + error_res.def(nb::init<>()).def("count", &error_result::count).def("mean", &error_result::mean) + .def("error", &error_result::error); + bind_serializable(error_res); bind_result_operators(error_res); + using binning_accumulator = Accumulator; + using binning_result = binning_accumulator::result_type; + nb::class_ binning_acc(m, "binning_analysis_accumulator"); + binning_acc.def(nb::init<>()).def("__call__", [](binning_accumulator & self, double value) { self(value); }) + .def("result", &make_result).def("count", &binning_accumulator::count) + .def("mean", &binning_accumulator::mean).def("error", &binning_accumulator::error); + bind_serializable(binning_acc); + nb::class_ binning_res(m, "binning_analysis_result"); + binning_res.def(nb::init<>()).def("count", &binning_result::count).def("mean", &binning_result::mean) + .def("error", &binning_result::error); + bind_serializable(binning_res); bind_result_operators(binning_res); + using maxbin_accumulator = Accumulator; + using maxbin_result = maxbin_accumulator::result_type; + nb::class_ maxbin_acc(m, "max_num_binning_accumulator"); + maxbin_acc.def(nb::init<>()).def("__call__", [](maxbin_accumulator & self, double value) { self(value); }) + .def("result", &make_result).def("count", &maxbin_accumulator::count) + .def("mean", &maxbin_accumulator::mean).def("error", &maxbin_accumulator::error); + bind_serializable(maxbin_acc); + nb::class_ maxbin_res(m, "max_num_binning_result"); + maxbin_res.def(nb::init<>()).def("count", &maxbin_result::count).def("mean", &maxbin_result::mean) + .def("error", &maxbin_result::error); + bind_serializable(maxbin_res); bind_result_operators(maxbin_res); +} diff --git a/bindings/python/pyalps/cpp/ngs/api.cpp b/bindings/python/pyalps/cpp/ngs/api.cpp new file mode 100644 index 000000000..09a90dc4b --- /dev/null +++ b/bindings/python/pyalps/cpp/ngs/api.cpp @@ -0,0 +1,32 @@ +// Copyright (C) 2010 - 2011 by Lukas Gamper +// Matthias Troyer +// 2026 by the ALPS collaboration +// Part of the ALPS Project — see LICENSE.txt for full license text. +// SPDX-License-Identifier: MIT +// umbrella retired in Phase 4 Slice 6 of the NGS +// retirement (ngs-retirement-scoping.md). This binding's surviving +// surface (`saveResults`) only needs `alps::mcresults`, +// `alps::params`, and `alps::hdf5::archive` — pull the narrow +// headers directly. +#include +#include +#include +#include +#include +#include +namespace nb = nanobind; +namespace alps { + namespace detail { + void save_results_export(mcresults const & res, params const & par, alps::hdf5::archive & ar, std::string const & path) { + ar["/parameters"] << par; + if (res.size()) + ar[path] << res; + } + } +} +NB_MODULE(pyngsapi_c, m) { + m.def("collectResults", [](alps::mcbase const & sim) { + return alps::collect_results(sim); + }); + m.def("saveResults", &alps::detail::save_results_export); +} diff --git a/bindings/python/pyalps/cpp/ngs/extract_from_pyobject.hpp b/bindings/python/pyalps/cpp/ngs/extract_from_pyobject.hpp new file mode 100644 index 000000000..3023d4bad --- /dev/null +++ b/bindings/python/pyalps/cpp/ngs/extract_from_pyobject.hpp @@ -0,0 +1,130 @@ +// Copyright (C) 2026 by the ALPS collaboration +// Part of the ALPS Project — see LICENSE.txt for full license text. +// SPDX-License-Identifier: MIT +/// Header-only template: dispatches a nb::object to a visitor based +/// on the object's Python type name. For numpy arrays the buffer +/// protocol (PEP 3118) provides the raw data + shape + format string; +/// for numpy scalars nb::cast handles the conversion through the +/// scalar's __int__/__float__/__complex__ methods. No dependence on +/// . +#ifndef PYALPS_NGS_EXTRACT_FROM_PYOBJECT_HPP +#define PYALPS_NGS_EXTRACT_FROM_PYOBJECT_HPP + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + namespace alps { + namespace detail { + namespace nb_ = nanobind; + // True iff the ndarray view is C-contiguous: strides match + // the canonical row-major layout (rightmost stride = + // itemsize, each leftward stride = previous * shape[i+1]). + // Zero-rank scalars are trivially contiguous. + template + inline bool ndarray_is_c_contiguous(Arr const & arr) { + if (arr.ndim() == 0) return true; + int64_t expected = 1; + for (int64_t i = arr.ndim() - 1; i >= 0; --i) { + if (arr.shape(i) == 0) return true; // empty array + if (arr.stride(i) != expected) return false; + expected *= arr.shape(i); + } + return true; + } + /// Dispatches `data` to `visitor` based on Python's type + /// name. Visitor must be callable with bool / int / long / + /// double / std::complex / std::string / + /// nb::list / nb::dict, plus the two-arg numpy form + /// `visitor(T const*, std::vector)` for each + /// supported native numpy element type. + template void extract_from_pyobject_py11(T & visitor, nb_::handle data) { + std::string dtype = data.ptr()->ob_type->tp_name; + if (dtype == "bool") visitor(nb_::cast(data)); + else if (dtype == "int") visitor(nb_::cast(data)); + else if (dtype == "long") visitor(nb_::cast(data)); + else if (dtype == "float") visitor(nb_::cast(data)); + else if (dtype == "complex") visitor(nb_::cast>(data)); + else if (dtype == "str") visitor(nb_::cast(data)); + else if (dtype == "list") visitor(nb_::borrow(data)); + else if (dtype == "tuple") { + // materialise the tuple as a list so the visitor only + // needs one sequence overload. + nb_::list as_list = nb_::steal( + PySequence_List(data.ptr())); + visitor(as_list); + } + else if (dtype == "dict") visitor(nb_::borrow(data)); + // numpy scalars: extract through the scalar's own + // __int__/__float__/__complex__ — no numpy C macros. + else if (dtype == "numpy.str_" || dtype == "numpy.str") + visitor(std::string(nb_::cast(nb_::str(data.attr("__str__")())))); + else if (dtype == "numpy.bool_" || dtype == "numpy.bool") + visitor(nb_::cast(data)); + else if (dtype == "numpy.int8") visitor(static_cast(nb_::cast(data))); + else if (dtype == "numpy.int16") visitor(static_cast(nb_::cast(data))); + else if (dtype == "numpy.int32") visitor(static_cast(nb_::cast(data))); + else if (dtype == "numpy.int64") visitor(static_cast(nb_::cast(data))); + else if (dtype == "numpy.uint8") visitor(static_cast(nb_::cast(data))); + else if (dtype == "numpy.uint16") visitor(static_cast(nb_::cast(data))); + else if (dtype == "numpy.uint32") visitor(static_cast(nb_::cast(data))); + else if (dtype == "numpy.uint64") visitor(static_cast(nb_::cast(data))); + else if (dtype == "numpy.float32") visitor(static_cast(nb_::cast(data))); + else if (dtype == "numpy.float64") visitor(nb_::cast(data)); + else if (dtype == "numpy.complex64") + visitor(std::complex( + nb_::cast(data.attr("real").attr("__float__")()) + , nb_::cast(data.attr("imag").attr("__float__")()) + )); + else if (dtype == "numpy.complex128") + visitor(nb_::cast>(data)); + else if (dtype == "numpy.ndarray") { + // Raw buffer access via nb::ndarray, with a strict + // dtype match — nb::cast>(arr) of a + // mismatched-dtype array silently coerces (e.g. + // int → bool yields all-true), so we inspect + // .dtype() ourselves and pick the matching arm. + // We require C-contiguity; the typical save path + // is bulk contiguous data and silently copying + // behind the user's back was the old + // PyArray_GETCONTIGUOUS behaviour we don't want + // to inherit. + auto arr_any = nb_::cast>(data); + std::vector sizes; + sizes.reserve(arr_any.ndim()); + for (std::size_t i = 0; i < arr_any.ndim(); ++i) + sizes.push_back(static_cast(arr_any.shape(i))); + auto dt = arr_any.dtype(); + #define DISPATCH_DTYPE(T) \ + if (dt == nb_::dtype()) \ + return visitor(static_cast(arr_any.data()), sizes); + DISPATCH_DTYPE(bool) + DISPATCH_DTYPE(signed char) + DISPATCH_DTYPE(unsigned char) + DISPATCH_DTYPE(short) + DISPATCH_DTYPE(unsigned short) + DISPATCH_DTYPE(int) + DISPATCH_DTYPE(unsigned) + DISPATCH_DTYPE(long) + DISPATCH_DTYPE(unsigned long) + DISPATCH_DTYPE(long long) + DISPATCH_DTYPE(unsigned long long) + DISPATCH_DTYPE(float) + DISPATCH_DTYPE(double) + DISPATCH_DTYPE(std::complex) + DISPATCH_DTYPE(std::complex) + #undef DISPATCH_DTYPE + throw std::runtime_error( + "Unknown numpy element dtype at save site" + ALPS_STACKTRACE); + } else + throw std::runtime_error("Unsupported type: " + dtype + ALPS_STACKTRACE); + } + } // namespace detail + } // namespace alps +#endif // PYALPS_NGS_EXTRACT_FROM_PYOBJECT_HPP diff --git a/bindings/python/pyalps/cpp/ngs/hdf5.cpp b/bindings/python/pyalps/cpp/ngs/hdf5.cpp new file mode 100644 index 000000000..05eeefe92 --- /dev/null +++ b/bindings/python/pyalps/cpp/ngs/hdf5.cpp @@ -0,0 +1,317 @@ +// Copyright (C) 2010 - 2012 by Lukas Gamper +// Matthias Troyer +// 2026 by the ALPS collaboration +// Part of the ALPS Project — see LICENSE.txt for full license text. +// SPDX-License-Identifier: MIT +// Save path: extract_from_pyobject_py11 dispatches a nb::handle to a +// visitor that writes a concrete C++ value. Load path: dispatches on +// the archive's inspected type and reads into a concrete C++ type +// before wrapping it back as a nb::object. +// +// Exception translation: pyalps/hdf5.py creates ArchiveError etc. and +// calls register_archive_exception_type(id, type); the translators +// below fire PyErr_SetString against whichever Python type was handed +// in. +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "extract_from_pyobject.hpp" +#include "../numpy_compat.hpp" +#include +#include +#include +#include +#include +#include +#include +namespace nb = nanobind; +namespace alps { + namespace detail { + // Save-side visitor: receives a concrete C++ value (or a + // nb::list / nb::dict) from extract_from_pyobject_py11 and + // writes it to the archive at `path`. + struct hdf5_save_py11_visitor { + alps::hdf5::archive & ar; + std::string path; + template + void operator()(U const & v) const { + ar[path] << v; + } + template + void operator()(U const * ptr, std::vector const & sizes) const { + // Use make_pvp(path, ptr, size-vector) to preserve the + // dimensional shape — a plain vector flatten would + // round-trip the data but lose the rank. + ar << alps::make_pvp(path, ptr, sizes); + } + void operator()(nb::list const & l) const { + // Order: flat numeric first, then nested numeric, then + // strings. Heterogeneous / deeply-nested / mixed-type + // lists fall through to the descent branch below which + // stores each entry under a numeric child path. + try { ar[path] << nb::cast>(l); return; } + catch (nb::cast_error const &) {} + try { ar[path] << nb::cast>(l); return; } + catch (nb::cast_error const &) {} + try { ar[path] << nb::cast>>(l); return; } + catch (nb::cast_error const &) {} + try { ar[path] << nb::cast>>(l); return; } + catch (nb::cast_error const &) {} + try { ar[path] << nb::cast>>(l); return; } + catch (nb::cast_error const &) {} + try { ar[path] << nb::cast>(l); return; } + catch (nb::cast_error const &) {} + // Inhomogeneous — recurse per-element into + // /, letting each entry be stored as its + // own native type. + ar.create_group(path); + Py_ssize_t i = 0; + for (auto item : l) { + std::string child = path + "/" + std::to_string(static_cast(i++)); + hdf5_save_py11_visitor child_visitor{ar, child}; + extract_from_pyobject_py11(child_visitor, item); + } + } + void operator()(nb::dict const & d) const { + // Store a dict as a group with one child per key. Keys + // are stringified (HDF5 paths are strings), values go + // through the same save dispatch recursively. + ar.create_group(path); + for (auto item : d) { + std::string key = nb::cast(nb::str(item.first)); + std::string child = path + "/" + key; + hdf5_save_py11_visitor child_visitor{ar, child}; + extract_from_pyobject_py11(child_visitor, item.second); + } + } + }; + std::string python_hdf5_get_filename(alps::hdf5::archive & ar) { + return ar.get_filename(); + } + void python_hdf5_save(alps::hdf5::archive & ar, + std::string const & path, + nb::handle data) { + hdf5_save_py11_visitor visitor{ar, path}; + extract_from_pyobject_py11(visitor, data); + } + // Helper: load a multi-dim HDF5 dataset of element type T + // into a flat std::vector, then wrap as a numpy array with + // the original shape so that Python sees a 2-D np.array for + // rank-2 writes etc. Preserves the dimensionality encoded on + // the save path (alps::make_pvp(path, ptr, size-vector)). + template + nb::object load_nd_array(alps::hdf5::archive & ar, + std::string const & path, + std::vector const & shape) { + std::size_t total = 1; + for (auto s : shape) total *= s; + std::vector flat(total); + if (shape.size() <= 1) { + // vector overload works directly. + ar[path] >> flat; + } else { + // make_pvp with explicit size-vector to read a + // multi-dim dataset into a flat buffer. + ar >> alps::make_pvp(path, flat.data(), shape); + } + return alps::python::make_numpy_array(flat.data(), shape); + } + nb::object python_hdf5_load_impl(alps::hdf5::archive & ar, + std::string const & path); + nb::object python_hdf5_load(alps::hdf5::archive & ar, + std::string const & path) { + return python_hdf5_load_impl(ar, path); + } + nb::object python_hdf5_load_impl(alps::hdf5::archive & ar, + std::string const & path) { + // Groups (not datasets) get loaded recursively. Children + // whose names are consecutive decimal integers starting at 0 + // are recovered as a Python list (preserving round-trip for + // list-saved-as-group); otherwise a dict. + if (ar.is_group(path)) { + auto children = ar.list_children(path); + bool list_shaped = true; + for (std::size_t i = 0; list_shaped && i < children.size(); ++i) { + if (children[i] != std::to_string(i)) + list_shaped = false; + } + if (list_shaped) { + nb::list result; + for (auto const & child : children) + result.append( + python_hdf5_load_impl(ar, path + "/" + child)); + return nb::object(std::move(result)); + } else { + nb::dict result; + for (auto const & child : children) + result[nb::str(child.c_str())] = + python_hdf5_load_impl(ar, path + "/" + child); + return nb::object(std::move(result)); + } + } + // Complex values have a quirky HDF5 representation: a + // single complex is stored as rank-1 dims=[2] (real,imag) + // and a 2x2 array of complex as rank-3 dims=[2,2,2]. So + // is_scalar returns false for a scalar complex — branch + // on is_complex first and use the rank minus 1 (stripping + // the trailing complex-pair dim) to tell scalar from + // array. + if (ar.is_complex(path)) { + auto ext = ar.extent(path); + if (ext.size() == 1) { + std::complex v; ar[path] >> v; return nb::cast(v); + } + std::vector shape(ext.begin(), ext.end() - 1); + return load_nd_array>(ar, path, shape); + } + // Convenience macros for the scalar path: check each + // candidate integer width in turn (numpy's default int is + // platform-dependent — int64 on macOS/Linux, int32 on + // Windows — so we can't rely on just `int` matching). + #define TRY_SCALAR(T) \ + if (ar.is_datatype(path)) { T v; ar[path] >> v; return nb::cast(v); } + if (ar.is_scalar(path)) { + TRY_SCALAR(std::string) + TRY_SCALAR(double) + TRY_SCALAR(float) + TRY_SCALAR(bool) + TRY_SCALAR(std::int64_t) + TRY_SCALAR(std::int32_t) + TRY_SCALAR(std::int16_t) + TRY_SCALAR(std::int8_t) + TRY_SCALAR(std::uint64_t) + TRY_SCALAR(std::uint32_t) + TRY_SCALAR(std::uint16_t) + TRY_SCALAR(std::uint8_t) + throw std::runtime_error( + "Unknown HDF5 scalar type at " + path + ALPS_STACKTRACE); + } else { + // String datasets don't map to nb::ndarray the way + // numeric types do; keep the flat vector path. + if (ar.is_datatype(path)) { + std::vector v; ar[path] >> v; return nb::cast(v); + } + auto shape = ar.extent(path); + if (ar.is_datatype(path)) return load_nd_array(ar, path, shape); + if (ar.is_datatype(path)) return load_nd_array(ar, path, shape); + if (ar.is_datatype(path)) return load_nd_array(ar, path, shape); + if (ar.is_datatype(path)) return load_nd_array(ar, path, shape); + if (ar.is_datatype(path)) return load_nd_array(ar, path, shape); + if (ar.is_datatype(path)) return load_nd_array(ar, path, shape); + if (ar.is_datatype(path)) return load_nd_array(ar, path, shape); + if (ar.is_datatype(path)) return load_nd_array(ar, path, shape); + if (ar.is_datatype(path)) return load_nd_array(ar, path, shape); + if (ar.is_datatype(path)) return load_nd_array(ar, path, shape); + throw std::runtime_error( + "Unknown HDF5 vector type at " + path + ALPS_STACKTRACE); + } + #undef TRY_SCALAR + } + nb::list python_hdf5_extent(alps::hdf5::archive & ar, + std::string const & path) { + nb::list result; + std::vector ext = ar.extent(path); + if (ar.is_complex(path)) { + if (ext.size() > 1) + ext.pop_back(); + else + ext.back() = 1; + } + for (auto const & s : ext) + result.append(s); + return result; + } + // Python exception types registered by pyalps.hdf5 at import + // time. Translators below fire PyErr_SetString against these + // pre-registered PyObject*'s so the Python side sees its own + // subclasses (ArchiveError / ArchiveNotFound / ...). + std::array exception_type = {}; + #define TRANSLATE_CPP_ERROR_TO_PYTHON(T, ID) \ + static void translate_ ## T (hdf5:: T const & e) { \ + std::string message = \ + std::string(e.what()).substr( \ + 0, std::string(e.what()).find_first_of('\n')); \ + PyErr_SetString(exception_type[ID] ? exception_type[ID] \ + : PyExc_RuntimeError, \ + message.c_str()); \ + } + TRANSLATE_CPP_ERROR_TO_PYTHON(archive_error, 0) + TRANSLATE_CPP_ERROR_TO_PYTHON(archive_not_found, 1) + TRANSLATE_CPP_ERROR_TO_PYTHON(archive_closed, 2) + TRANSLATE_CPP_ERROR_TO_PYTHON(invalid_path, 3) + TRANSLATE_CPP_ERROR_TO_PYTHON(path_not_found, 4) + TRANSLATE_CPP_ERROR_TO_PYTHON(wrong_type, 5) + #undef TRANSLATE_CPP_ERROR_TO_PYTHON + void register_exception_type(int id, nb::object type) { + if (id < 0 || id >= static_cast(exception_type.size())) + throw std::out_of_range( + "register_archive_exception_type: id out of range"); + // Py_INCREF the incoming type so it survives past this call + // (we're keeping a raw PyObject* in a static array). + Py_INCREF(type.ptr()); + exception_type[id] = type.ptr(); + } + } +} +NB_MODULE(pyngshdf5_c, m) { + // Install the six C++→Python exception translators. Each calls the + // matching translate_* above, which forwards to whichever Python + // class was registered via register_archive_exception_type. If + // pyalps/hdf5.py hasn't run yet, the translator falls back to + // RuntimeError so the module is safely loadable on its own. + nb::register_exception_translator( + [](const std::exception_ptr &p, void * /*payload*/) { + try { std::rethrow_exception(p); } + catch (alps::hdf5::archive_not_found const & e) { + alps::detail::translate_archive_not_found(e); + } catch (alps::hdf5::archive_closed const & e) { + alps::detail::translate_archive_closed(e); + } catch (alps::hdf5::invalid_path const & e) { + alps::detail::translate_invalid_path(e); + } catch (alps::hdf5::path_not_found const & e) { + alps::detail::translate_path_not_found(e); + } catch (alps::hdf5::wrong_type const & e) { + alps::detail::translate_wrong_type(e); + } catch (alps::hdf5::archive_error const & e) { + // Base class — must be caught LAST since the specialized + // types above inherit from it. + alps::detail::translate_archive_error(e); + } + }); + m.def("register_archive_exception_type", + &alps::detail::register_exception_type); + nb::class_(m, "hdf5_archive_impl") + .def(nb::init()) + .def("__deepcopy__", + // copy.deepcopy() hands us (self, memo); memo unused. + [](alps::hdf5::archive const & self, nb::handle /*memo*/) { + return alps::hdf5::archive(self); + }) + .def_prop_ro("filename", &alps::detail::python_hdf5_get_filename) + .def_prop_ro("context", &alps::hdf5::archive::get_context) + .def_prop_ro("is_open", &alps::hdf5::archive::is_open) + .def("set_context", &alps::hdf5::archive::set_context) + .def("is_group", &alps::hdf5::archive::is_group) + .def("is_data", &alps::hdf5::archive::is_data) + .def("is_attribute", &alps::hdf5::archive::is_attribute) + .def("close", &alps::hdf5::archive::close) + .def("extent", &alps::detail::python_hdf5_extent) + .def("dimensions", &alps::hdf5::archive::dimensions) + .def("is_scalar", &alps::hdf5::archive::is_scalar) + .def("is_complex", &alps::hdf5::archive::is_complex) + .def("is_null", &alps::hdf5::archive::is_null) + .def("list_children", &alps::hdf5::archive::list_children) + .def("list_attributes", &alps::hdf5::archive::list_attributes) + .def("__setitem__", &alps::detail::python_hdf5_save) + .def("__getitem__", &alps::detail::python_hdf5_load) + .def("create_group", &alps::hdf5::archive::create_group) + .def("delete_data", &alps::hdf5::archive::delete_data) + .def("delete_group", &alps::hdf5::archive::delete_group) + .def("delete_attribute",&alps::hdf5::archive::delete_attribute); +} diff --git a/bindings/python/pyalps/cpp/ngs/mcbase.cpp b/bindings/python/pyalps/cpp/ngs/mcbase.cpp new file mode 100644 index 000000000..0c4b704c7 --- /dev/null +++ b/bindings/python/pyalps/cpp/ngs/mcbase.cpp @@ -0,0 +1,173 @@ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * * + * ALPS Project: Algorithms and Libraries for Physics Simulations * + * * + * ALPS Libraries * + * * + * Copyright (C) 2010 - 2011 by Lukas Gamper * + * Matthias Troyer * + * 2026 by the ALPS collaboration * + * * + * Permission is hereby granted, free of charge, to any person obtaining * + * a copy of this software and associated documentation files (the "Software"), * + * to deal in the Software without restriction, including without limitation * + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * + * and/or sell copies of the Software, and to permit persons to whom the * + * Software is furnished to do so, subject to the following conditions: * + * * + * The above copyright notice and this permission notice shall be included * + * in all copies or substantial portions of the Software. * + * * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * + * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * + * DEALINGS IN THE SOFTWARE. * + * * + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ +// pyngsbase_c — nanobind port. +// +// Trampoline (PyMCBase) forwards the three pure-virtual mcbase methods +// (update / measure / fraction_completed) back into the Python subclass +// through nanobind's trampoline support. The old wrapper +// pattern becomes a standard trampoline-plus-alias pair. +// +// Params ingestion: the public alps::mcbase ctor wants an alps::params. +// libalps still declares a params(boost::python::dict) ctor in its +// header, but we don't want to drag boost::python through the +// nanobind bindings. Instead, we convert nb::dict → alps::params at the +// binding boundary by iterating and setitem-ing concrete C++ values +// (int/float/bool/str/list). That sidesteps the cross-registry issue +// and keeps the libalps ABI untouched. +#define PY_ARRAY_UNIQUE_SYMBOL pyngsbase_PyArrayHandle +#include +#include +#include +#include +#include +#include +#include +#include +namespace nb = nanobind; +#ifdef ALPS_HAVE_MPI + #include +#endif +#include +#include +#include +#include +#include +namespace alps { + namespace detail { + // Convert a Python dict into an alps::params, extracting concrete + // C++ values for each entry. This mirrors what the libalps + // params(boost::python::dict) ctor does, but without routing the + // nb::object through the boost::python::object variant alternative + // — everything stays within the nanobind type registry. + inline alps::params py_dict_to_params(nb::dict const & d) { + alps::params p; + for (auto item : d) { + std::string k = nb::cast(nb::str(item.first)); + nb::handle v = item.second; + if (nb::isinstance(v)) + p[k] = nb::cast(v); + else if (nb::isinstance(v)) + p[k] = nb::cast(v); + else if (nb::isinstance(v)) + p[k] = nb::cast(v); + else if (nb::isinstance(v)) + p[k] = nb::cast(v); + else if (nb::isinstance(v) || nb::isinstance(v)) + p[k] = nb::cast>(v); + else + throw nb::type_error(( + "unsupported type for key '" + k + + "' in params dict (expected bool/int/float/str/list)").c_str()); + } + return p; + } + } +} +namespace alps { + // Trampoline: holds Python overrides for pure-virtuals. The + // protected mcbase members (random / parameters / measurements) + // are accessed via lambdas in the binding below, which friend-in + // through PyMCBase (a protected member is visible to a derived + // class's own member functions / friends). + class PyMCBase : public mcbase { + public: + NB_TRAMPOLINE(mcbase, 3); + #ifdef ALPS_HAVE_MPI + PyMCBase(nb::dict const & arg, + std::size_t seed_offset = 42, + boost::mpi::communicator const & /*comm*/ = boost::mpi::communicator()) + : mcbase(alps::detail::py_dict_to_params(arg), seed_offset) + {} + #else + PyMCBase(nb::dict const & arg, std::size_t seed_offset = 42) + : mcbase(alps::detail::py_dict_to_params(arg), seed_offset) + {} + #endif + void update() override { + NB_OVERRIDE_PURE(update); + } + void measure() override { + NB_OVERRIDE_PURE(measure); + } + double fraction_completed() const override { + NB_OVERRIDE_PURE(fraction_completed); + } + // Accessors for protected mcbase members. Called from the + // binding lambdas below (they friend-in through PyMCBase). + alps::random01 & get_random() { return random; } + mcbase::parameters_type & get_parameters() { return parameters; } + alps::mcobservables & get_measurements() { return measurements; } + // mcbase::run takes a std::function; wrap a Python + // callable so the stop_callback can be driven from Python. + bool run_py(nb::object stop_callback) { + return mcbase::run([stop_callback]() -> bool { + nb::gil_scoped_acquire gil; + return nb::cast(stop_callback()); + }); + } + }; +} +NB_MODULE(pyngsbase_c, m) { + nb::class_(m, "_mcbase", nb::never_destruct()); + nb::class_(m, "mcbase") + // Always expose the (dict, seed_offset) form from Python. When + // ALPS_HAVE_MPI is on we'd *like* to offer an optional + // communicator too, but boost::mpi::communicator is not a + // nanobind-registered type so nb::arg(..).default_value() can't + // materialise it. MPI simulations that actually need to hand + // Python a communicator should do so from C++ using the + // extended trampoline ctor directly. + .def(nb::init(), + nb::arg("dict"), + nb::arg("seed_offset") = 42) + .def_prop_ro( + "random", + [](alps::PyMCBase & self) -> alps::random01 & { return self.get_random(); }, + nb::rv_policy::reference_internal) + .def_prop_ro( + "parameters", + [](alps::PyMCBase & self) -> alps::mcbase::parameters_type & { return self.get_parameters(); }, + nb::rv_policy::reference_internal) + .def_prop_ro( + "measurements", + [](alps::PyMCBase & self) -> alps::mcobservables & { return self.get_measurements(); }, + nb::rv_policy::reference_internal) + .def("run", + [](alps::PyMCBase & self, nb::object cb) { return self.run_py(std::move(cb)); }) + // Pure-virtual methods: bound on the base class; the trampoline's + // The trampoline forwards the call into the Python subclass. + .def("update", &alps::mcbase::update) + .def("measure", &alps::mcbase::measure) + .def("fraction_completed", &alps::mcbase::fraction_completed) + .def("save", static_cast( + &alps::mcbase::save)) + .def("load", static_cast( + &alps::mcbase::load)); +} diff --git a/bindings/python/pyalps/cpp/ngs/observable.cpp b/bindings/python/pyalps/cpp/ngs/observable.cpp new file mode 100644 index 000000000..dde673f21 --- /dev/null +++ b/bindings/python/pyalps/cpp/ngs/observable.cpp @@ -0,0 +1,81 @@ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * * + * ALPS Project: Algorithms and Libraries for Physics Simulations * + * * + * ALPS Libraries * + * * + * Copyright (C) 2010 - 2011 by Lukas Gamper * + * Matthias Troyer * + * 2026 by the ALPS collaboration * + * * + * Permission is hereby granted, free of charge, to any person obtaining * + * a copy of this software and associated documentation files (the "Software"), * + * to deal in the Software without restriction, including without limitation * + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * + * and/or sell copies of the Software, and to permit persons to whom the * + * Software is furnished to do so, subject to the following conditions: * + * * + * The above copyright notice and this permission notice shall be included * + * in all copies or substantial portions of the Software. * + * * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * + * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * + * DEALINGS IN THE SOFTWARE. * + * * + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ +// pyngsobservable_c — nanobind port. +#define PY_ARRAY_UNIQUE_SYMBOL pyngsobservable_PyArrayHandle +#include +#include +#include +#include +#include +#include +namespace nb = nanobind; +#include +#include +#include +#include +#include +namespace alps { + namespace detail { + void observable_append(alps::mcobservable & self, nb::object const & data) { + if (nb::isinstance(data) || nb::isinstance(data)) { + self << nb::cast(data); + return; + } + try { + auto values = nb::cast>(data); + self << std::valarray(values.data(), values.size()); + } catch (nb::cast_error const &) { + throw nb::type_error("observable samples must be numeric scalars or contiguous float64 arrays"); + } + } + void observable_load(alps::mcobservable & self, alps::hdf5::archive & ar, std::string const & path) { + std::string current = ar.get_context(); + ar.set_context(path); + self.load(ar); + ar.set_context(current); + } + alps::mcobservable create_RealObservable_export(std::string name) { + return alps::mcobservable(std::make_shared(name).get()); + } + alps::mcobservable create_RealVectorObservable_export(std::string name) { + return alps::mcobservable(std::make_shared(name).get()); + } + } +} +NB_MODULE(pyngsobservable_c, m) { + m.def("createRealObservable", &alps::detail::create_RealObservable_export); + m.def("createRealVectorObservable", &alps::detail::create_RealVectorObservable_export); + nb::class_(m, "observable") + .def("append", &alps::detail::observable_append) + .def("merge", &alps::mcobservable::merge) + .def("save", &alps::mcobservable::save) + .def("load", &alps::detail::observable_load) + .def("addToObservable", &alps::detail::observable_load); +} diff --git a/bindings/python/pyalps/cpp/ngs/observables.cpp b/bindings/python/pyalps/cpp/ngs/observables.cpp new file mode 100644 index 000000000..7b121fe64 --- /dev/null +++ b/bindings/python/pyalps/cpp/ngs/observables.cpp @@ -0,0 +1,108 @@ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * * + * ALPS Project: Algorithms and Libraries for Physics Simulations * + * * + * ALPS Libraries * + * * + * Copyright (C) 2010 - 2011 by Lukas Gamper * + * Matthias Troyer * + * 2026 by the ALPS collaboration * + * * + * Permission is hereby granted, free of charge, to any person obtaining * + * a copy of this software and associated documentation files (the "Software"), * + * to deal in the Software without restriction, including without limitation * + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * + * and/or sell copies of the Software, and to permit persons to whom the * + * Software is furnished to do so, subject to the following conditions: * + * * + * The above copyright notice and this permission notice shall be included * + * in all copies or substantial portions of the Software. * + * * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * + * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * + * DEALINGS IN THE SOFTWARE. * + * * + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ +// pyngsobservables_c — nanobind port. +// +// Unlike mcresults, alps::mcobservables doesn't override erase() so we +// can stand on a straight nb::class_<> with hand-written map methods +// that match the map_indexing_suite surface area. We keep it explicit +// (rather than nb::bind_map) because the class also carries non-map +// methods (reset/save/load/__lshift__/create*) that need to live on +// the same binding, and mixing bind_map with extra defs is noisy. +#define PY_ARRAY_UNIQUE_SYMBOL pyngsobservables_PyArrayHandle +#include +#include +#include +#include +#include +#include +#include +namespace nb = nanobind; +#include +#include +namespace { +void mcobservables_load(alps::mcobservables & self, alps::hdf5::archive & ar, std::string const & path) { + std::string current = ar.get_context(); + ar.set_context(path); + self.load(ar); + ar.set_context(current); +} +void createRealObservable(alps::mcobservables & self, std::string const & name, std::uint32_t binnum) { + self << alps::ngs::RealObservable(name, binnum); +} +void createRealVectorObservable(alps::mcobservables & self, std::string const & name, std::uint32_t binnum) { + self << alps::ngs::RealVectorObservable(name, binnum); +} +void addObservable(alps::mcobservables & self, nb::object const & obj) { + // Mirror boost::python::call_method(obj, "addToObservables", ref(self)): + // bounce the call back into Python, passing `self` by reference. + obj.attr("addToObservables")(nb::cast(&self, nb::rv_policy::reference)); +} +} // namespace +NB_MODULE(pyngsobservables_c, m) { + nb::class_(m, "observables") + .def(nb::init<>()) + .def("__len__", [](alps::mcobservables const & self) { return self.size(); }) + .def("__contains__", [](alps::mcobservables const & self, std::string const & k) { + return self.has(k); + }) + .def("__getitem__", [](alps::mcobservables & self, std::string const & k) -> alps::mcobservable & { + if (!self.has(k)) + throw nb::key_error(k.c_str()); + return self[k]; + }, + nb::rv_policy::reference_internal) + .def("__setitem__", [](alps::mcobservables & self, std::string const & k, alps::mcobservable const & v) { + self.insert(k, v); + }) + .def("__iter__", [](alps::mcobservables & self) { + return nb::make_key_iterator(nb::type(), "key_iterator", self.begin(), self.end()); + }, + nb::keep_alive<0, 1>()) + .def("keys", [](alps::mcobservables & self) { + return nb::make_key_iterator(nb::type(), "key_iterator", self.begin(), self.end()); + }, + nb::keep_alive<0, 1>()) + .def("values", [](alps::mcobservables & self) { + return nb::make_value_iterator(nb::type(), "value_iterator", self.begin(), self.end()); + }, + nb::keep_alive<0, 1>()) + .def("items", [](alps::mcobservables & self) { + return nb::make_iterator(nb::type(), "item_iterator", self.begin(), self.end()); + }, + nb::keep_alive<0, 1>()) + .def("reset", &alps::mcobservables::reset, nb::arg("equilibrated") = false) + .def("save", &alps::mcobservables::save) + .def("load", &mcobservables_load) + .def("__lshift__", &addObservable) + .def("createRealObservable", &createRealObservable, + nb::arg("name"), nb::arg("binnum") = 0) + .def("createRealVectorObservable", &createRealVectorObservable, + nb::arg("name"), nb::arg("binnum") = 0); +} diff --git a/bindings/python/pyalps/cpp/ngs/params.cpp b/bindings/python/pyalps/cpp/ngs/params.cpp new file mode 100644 index 000000000..f6d9c8957 --- /dev/null +++ b/bindings/python/pyalps/cpp/ngs/params.cpp @@ -0,0 +1,160 @@ +// Copyright (C) 2010 - 2011 by Lukas Gamper +// Matthias Troyer +// 2026 by the ALPS collaboration +// Part of the ALPS Project — see LICENSE.txt for full license text. +// SPDX-License-Identifier: MIT +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace nb = nanobind; +namespace { +// Convert a Python dict into an alps::params. Same shape as the +// helper in mcbase.cpp but kept local to params.cpp so a change to +// the dispatch (e.g. adding complex support) can stay in one place +// alongside the other setitem logic. +alps::params py_dict_to_params(nb::dict const & d); +// Walk the paramvalue variant and wrap each native alternative as a +// nb::object. Called from __getitem__. +struct paramvalue_to_py_visitor : boost::static_visitor { + template + nb::object operator()(T const & value) const { + return nb::cast(value); + } +}; +nb::object paramvalue_to_py(alps::detail::paramvalue const & pv) { + return boost::apply_visitor( + paramvalue_to_py_visitor(), + static_cast(pv)); +} +// Deposit a native C++ value from a Python object into the paramvalue +// via paramproxy's templated operator=. +void params_setitem(alps::params & self, nb::object const & key_obj, nb::object const & value) { + std::string key = nb::cast(nb::str(key_obj)); + if (nb::isinstance(value)) + self[key] = nb::cast(value); + else if (nb::isinstance(value)) + self[key] = nb::cast(value); + else if (nb::isinstance(value)) + self[key] = nb::cast(value); + else if (nb::isinstance(value)) + self[key] = nb::cast(value); + else if (nb::isinstance(value) || nb::isinstance(value)) { + // Heuristic: try doubles first, strings as fallback. + try { + self[key] = nb::cast>(value); + } catch (nb::cast_error &) { + self[key] = nb::cast>(value); + } + } else { + throw nb::type_error("unsupported value type for params[]"); + } +} +nb::object params_getitem(alps::params & self, nb::object const & key_obj) { + std::string key = nb::cast(nb::str(key_obj)); + if (!self.defined(key)) + return nb::none(); + // params doesn't expose the underlying map directly, but + // paramiterator yields (key, paramvalue) pairs; walk it to find the + // entry and hand the variant to paramvalue_to_py. + for (auto it = self.begin(); it != self.end(); ++it) + if (it->first == key) + return paramvalue_to_py(it->second); + return nb::none(); // defensive — defined()==true should guarantee a hit +} +void params_delitem(alps::params & self, nb::object const & key_obj) { + self.erase(nb::cast(nb::str(key_obj))); +} +bool params_contains(alps::params & self, nb::object const & key_obj) { + return self.defined(nb::cast(nb::str(key_obj))); +} +nb::object value_or_default(alps::params & self, nb::object const & key, nb::object const & dflt) { + return params_contains(self, key) ? params_getitem(self, key) : dflt; +} +void params_load(alps::params & self, alps::hdf5::archive & ar, std::string const & path) { + std::string current = ar.get_context(); + ar.set_context(path); + self.load(ar); + ar.set_context(current); +} +std::string params_print(alps::params & self) { + std::stringstream ss; + ss << self; + return ss.str(); +} +// deepcopy support — nanobind passes (self, memo); memo unused. +alps::params params_deepcopy(alps::params const & self, nb::handle /*memo*/) { + return alps::params(self); +} +// Materialise an alps::params from a Python dict. Re-uses the same +// type dispatch as params_setitem so a round-tripped dict-built +// params contains exactly the same variant alternatives. +alps::params py_dict_to_params(nb::dict const & d) { + alps::params p; + for (auto item : d) { + std::string k = nb::cast(nb::str(item.first)); + nb::handle v = item.second; + if (nb::isinstance(v)) + p[k] = nb::cast(v); + else if (nb::isinstance(v)) + p[k] = nb::cast(v); + else if (nb::isinstance(v)) + p[k] = nb::cast(v); + else if (nb::isinstance(v)) + p[k] = nb::cast(v); + else if (nb::isinstance(v) || nb::isinstance(v)) { + try { p[k] = nb::cast>(v); } + catch (nb::cast_error &) { + p[k] = nb::cast>(v); + } + } else { + throw nb::type_error( + ("unsupported value type for params key '" + k + "'").c_str()); + } + } + return p; +} +} // namespace +NB_MODULE(pyngsparams_c, m) { + nb::class_(m, "params") + .def(nb::init<>()) + .def("__init__", + [](alps::params * self, nb::dict const & d) { + new (self) alps::params(py_dict_to_params(d)); + }, + nb::arg("dict")) + .def(nb::init(), + nb::arg("archive"), + nb::arg("path") = std::string("/parameters")) + .def("__len__", [](alps::params const & self) { return self.size(); }) + .def("__deepcopy__", ¶ms_deepcopy) + .def("__getitem__", ¶ms_getitem) + .def("__setitem__", ¶ms_setitem) + .def("__delitem__", ¶ms_delitem) + .def("__contains__", ¶ms_contains) + .def("__iter__", [](alps::params & self) { + // paramiterator yields pair; + // make_key_iterator projects out pair.first. + return nb::make_key_iterator( + nb::type(), + "key_iterator", + self.begin(), self.end()); + }, + nb::keep_alive<0, 1>()) + .def("__str__", ¶ms_print) + .def("valueOrDefault", &value_or_default) + .def("save", &alps::params::save) + .def("load", ¶ms_load, + nb::arg("archive"), + nb::arg("path") = std::string("/parameters")); +} diff --git a/bindings/python/pyalps/cpp/ngs/random01.cpp b/bindings/python/pyalps/cpp/ngs/random01.cpp new file mode 100644 index 000000000..4efc47dee --- /dev/null +++ b/bindings/python/pyalps/cpp/ngs/random01.cpp @@ -0,0 +1,24 @@ +// Copyright (C) 2010 - 2013 by Lukas Gamper +// Matthias Troyer +// 2026 by the ALPS collaboration +// Part of the ALPS Project — see LICENSE.txt for full license text. +// SPDX-License-Identifier: MIT +#include +#include +#include +#include +namespace nb = nanobind; +NB_MODULE(pyngsrandom01_c, m) { + nb::class_(m, "random01") + .def(nb::init(), nb::arg("seed") = 42) + .def("__deepcopy__", + // copy.deepcopy() passes (self, memo); memo is unused. + [](alps::random01 const & self, nb::handle /*memo*/) { + return alps::random01(self); + }) + .def("__call__", + static_cast( + &alps::random01::operator())) + .def("save", &alps::random01::save) + .def("load", &alps::random01::load); +} diff --git a/bindings/python/pyalps/cpp/ngs/result.cpp b/bindings/python/pyalps/cpp/ngs/result.cpp new file mode 100644 index 000000000..5d7d6248e --- /dev/null +++ b/bindings/python/pyalps/cpp/ngs/result.cpp @@ -0,0 +1,181 @@ +// Copyright (C) 2010 - 2011 by Lukas Gamper +// Matthias Troyer +// 2026 by the ALPS collaboration +// Part of the ALPS Project — see LICENSE.txt for full license text. +// SPDX-License-Identifier: MIT +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace nb = nanobind; +namespace { +// Allocate a heap-owned 1-D numpy array of T and copy `n` elements from `src`. +template +nb::ndarray make_1d(T const * src, std::size_t n) { + T * buf = new T[n ? n : 1]; + if (n) std::memcpy(buf, src, n * sizeof(T)); + nb::capsule owner(buf, [](void * p) noexcept { + delete[] static_cast(p); + }); + std::size_t shape[1] = { n }; + return nb::ndarray(buf, 1, shape, owner); +} +} // namespace +namespace alps { + namespace detail { + template std::string short_print_python(T const & value) { + return cast(value); + } + template std::string short_print_python(std::vector const & value) { + switch (value.size()) { + case 0: + return "[]"; + case 1: + return "[" + short_print_python(value.front()) + "]"; + case 2: + return "[" + short_print_python(value.front()) + "," + short_print_python(value.back()) + "]"; + default: + return "[" + short_print_python(value.front()) + ",.." + short_print_python(value.size()) + "..," + short_print_python(value.back()) + "]"; + } + } + inline nb::object vec_to_numpy(std::vector const & v) { + return nb::cast(make_1d(v.data(), v.size())); + } + std::string mcresult_print(alps::mcresult const & self) { + if (self.count() == 0) + return "No Measurements"; + else if (self.is_type()) + return short_print_python(self.mean()) + "(" + short_print_python(self.count()) + ") " + + "+/-" + short_print_python(self.error()) + " " + + short_print_python(self.bins()) + "#" + short_print_python(self.bin_size()); + else if (self.is_type >()) + return short_print_python(self.mean >()) + "(" + short_print_python(self.count()) + ") " + + "+/-" + short_print_python(self.error >()) + " " + + short_print_python(self.bins >()) + "#" + short_print_python(self.bin_size()); + else + throw std::runtime_error("Unsupported type." + ALPS_STACKTRACE); + } + nb::object mcresult_mean(alps::mcresult const & self) { + if (self.is_type()) + return nb::float_(self.mean()); + else if (self.is_type >()) + return vec_to_numpy(self.mean >()); + else + throw std::runtime_error("Unsupported type." + ALPS_STACKTRACE); + } + nb::object mcresult_error(alps::mcresult const & self) { + if (self.is_type()) + return nb::float_(self.error()); + else if (self.is_type >()) + return vec_to_numpy(self.error >()); + else + throw std::runtime_error("Unsupported type." + ALPS_STACKTRACE); + } + nb::object mcresult_tau(alps::mcresult const & self) { + if (self.is_type()) + return nb::float_(self.tau()); + else if (self.is_type >()) + return vec_to_numpy(self.tau >()); + else + throw std::runtime_error("Unsupported type." + ALPS_STACKTRACE); + } + nb::object mcresult_variance(alps::mcresult const & self) { + if (self.is_type()) + return nb::float_(self.variance()); + else if (self.is_type >()) + return vec_to_numpy(self.variance >()); + else + throw std::runtime_error("Unsupported type." + ALPS_STACKTRACE); + } + nb::object mcresult_bins(alps::mcresult const & self) { + if (self.is_type()) + return vec_to_numpy(self.bins()); + else + throw std::runtime_error("Unsupported type." + ALPS_STACKTRACE); + } + alps::mcresult observable2result_export(alps::mcobservable const & obs) { + return alps::mcresult(obs); + } + } +} +NB_MODULE(pyngsresult_c, m) { + using namespace alps; + using R = alps::mcresult; + m.def("observable2result", &alps::detail::observable2result_export); + nb::class_(m, "result") + .def(nb::init<>()) + .def(nb::init()) + .def("__repr__", &alps::detail::mcresult_print) + .def("__deepcopy__", + [](R const & self, nb::handle /*memo*/) { + return R(self); + }) + .def("__abs__", static_cast(&abs)) + .def("__pow__", static_cast(&pow)) + .def_prop_ro("mean", &alps::detail::mcresult_mean) + .def_prop_ro("error", &alps::detail::mcresult_error) + .def_prop_ro("tau", &alps::detail::mcresult_tau) + .def_prop_ro("variance", &alps::detail::mcresult_variance) + .def_prop_ro("bins", &alps::detail::mcresult_bins) + .def_prop_ro("count", &R::count) + // mcresult's unary +/- operate on non-const self and return a + // reference (not a new value). Wrap them in lambdas that + // return a fresh copy, which is what Python's +obj/-obj expect. + .def("__pos__", [](R self) { return +self; }) + .def("__neg__", [](R self) { return -self; }) + // In-place operators — return self by reference so the original + // object is modified in place (Python's __i*__ semantics). + .def("__iadd__", [](R & self, R const & o) -> R & { return self += o; }, nb::is_operator()) + .def("__iadd__", [](R & self, double o) -> R & { return self += o; }, nb::is_operator()) + .def("__isub__", [](R & self, R const & o) -> R & { return self -= o; }, nb::is_operator()) + .def("__isub__", [](R & self, double o) -> R & { return self -= o; }, nb::is_operator()) + .def("__imul__", [](R & self, R const & o) -> R & { return self *= o; }, nb::is_operator()) + .def("__imul__", [](R & self, double o) -> R & { return self *= o; }, nb::is_operator()) + .def("__itruediv__", [](R & self, R const & o) -> R & { return self /= o; }, nb::is_operator()) + .def("__itruediv__", [](R & self, double o) -> R & { return self /= o; }, nb::is_operator()) + // Binary operators — left and right forms. nb::is_operator() + // marks them as Python operator overloads so mixed-type + // failures return NotImplemented rather than raising TypeError + // (giving Python's reflected operator machinery a chance). + .def("__add__", [](R const & a, R const & b) { return a + b; }, nb::is_operator()) + .def("__radd__", [](R const & a, R const & b) { return b + a; }, nb::is_operator()) + .def("__add__", [](R const & a, double b) { return a + b; }, nb::is_operator()) + .def("__radd__", [](R const & a, double b) { return b + a; }, nb::is_operator()) + .def("__sub__", [](R const & a, R const & b) { return a - b; }, nb::is_operator()) + .def("__rsub__", [](R const & a, R const & b) { return b - a; }, nb::is_operator()) + .def("__sub__", [](R const & a, double b) { return a - b; }, nb::is_operator()) + .def("__rsub__", [](R const & a, double b) { return b - a; }, nb::is_operator()) + .def("__mul__", [](R const & a, R const & b) { return a * b; }, nb::is_operator()) + .def("__rmul__", [](R const & a, R const & b) { return b * a; }, nb::is_operator()) + .def("__mul__", [](R const & a, double b) { return a * b; }, nb::is_operator()) + .def("__rmul__", [](R const & a, double b) { return b * a; }, nb::is_operator()) + .def("__truediv__", [](R const & a, R const & b) { return a / b; }, nb::is_operator()) + .def("__rtruediv__", [](R const & a, R const & b) { return b / a; }, nb::is_operator()) + .def("__truediv__", [](R const & a, double b) { return a / b; }, nb::is_operator()) + .def("__rtruediv__", [](R const & a, double b) { return b / a; }, nb::is_operator()) + .def("sq", static_cast(&sq)) + .def("cb", static_cast(&cb)) + .def("sqrt", static_cast(&sqrt)) + .def("cbrt", static_cast(&cbrt)) + .def("exp", static_cast(&exp)) + .def("log", static_cast(&log)) + .def("sin", static_cast(&sin)) + .def("cos", static_cast(&cos)) + .def("tan", static_cast(&tan)) + .def("sinh", static_cast(&sinh)) + .def("cosh", static_cast(&cosh)) + .def("tanh", static_cast(&tanh)) + .def("save", &R::save) + .def("load", &R::load); +} diff --git a/bindings/python/pyalps/cpp/ngs/results.cpp b/bindings/python/pyalps/cpp/ngs/results.cpp new file mode 100644 index 000000000..1b4b7d8ad --- /dev/null +++ b/bindings/python/pyalps/cpp/ngs/results.cpp @@ -0,0 +1,86 @@ +// Copyright (C) 2010 - 2011 by Lukas Gamper +// Matthias Troyer +// 2026 by the ALPS collaboration +// Part of the ALPS Project — see LICENSE.txt for full license text. +// SPDX-License-Identifier: MIT +// A generic map binder cannot be used for alps::mcresults because +// mcresults::erase(std::string const &) shadows the std::map::erase(iterator) +// that bind_map relies on for __delitem__. Synthesise the dict-like surface +// by hand instead. (Same applies to nanobind's bind_map.) +#define PY_ARRAY_UNIQUE_SYMBOL pyngsresults_PyArrayHandle +#include +#include +#include +#include +#include +#include +#include +#include +namespace nb = nanobind; +namespace alps { + namespace detail { + std::string mcresults_print(alps::mcresults & self) { + std::stringstream sstr; + sstr << self; + return sstr.str(); + } + void mcresults_load(alps::mcresults & self, alps::hdf5::archive & ar, std::string const & path) { + std::string current = ar.get_context(); + ar.set_context(path); + self.load(ar); + ar.set_context(current); + } + } +} +NB_MODULE(pyngsresults_c, m) { + nb::class_(m, "results") + .def("__len__", [](alps::mcresults const & self) { return self.size(); }) + .def("__contains__", [](alps::mcresults const & self, std::string const & k) { + return self.has(k); + }) + .def("__getitem__", [](alps::mcresults & self, std::string const & k) -> alps::mcresult const & { + if (!self.has(k)) + throw nb::key_error(k.c_str()); + return self[k]; + }, + nb::rv_policy::reference_internal) + .def("__setitem__", [](alps::mcresults & self, std::string const & k, alps::mcresult const & v) { + self.insert(k, v); + }) + .def("__delitem__", [](alps::mcresults & self, std::string const & k) { + if (!self.has(k)) + throw nb::key_error(k.c_str()); + self.erase(k); + }) + .def("__iter__", [](alps::mcresults & self) { + return nb::make_key_iterator( + nb::type(), + "key_iterator", + self.begin(), self.end()); + }, + nb::keep_alive<0, 1>()) + .def("keys", [](alps::mcresults & self) { + return nb::make_key_iterator( + nb::type(), + "key_iterator", + self.begin(), self.end()); + }, + nb::keep_alive<0, 1>()) + .def("values", [](alps::mcresults & self) { + return nb::make_value_iterator( + nb::type(), + "value_iterator", + self.begin(), self.end()); + }, + nb::keep_alive<0, 1>()) + .def("items", [](alps::mcresults & self) { + return nb::make_iterator( + nb::type(), + "item_iterator", + self.begin(), self.end()); + }, + nb::keep_alive<0, 1>()) + .def("__str__", &alps::detail::mcresults_print) + .def("save", &alps::mcresults::save) + .def("load", &alps::detail::mcresults_load); +} diff --git a/bindings/python/pyalps/cpp/numpy_compat.hpp b/bindings/python/pyalps/cpp/numpy_compat.hpp new file mode 100644 index 000000000..b23cafc0e --- /dev/null +++ b/bindings/python/pyalps/cpp/numpy_compat.hpp @@ -0,0 +1,95 @@ +// Copyright (C) 2026 by the ALPS collaboration +// Part of the ALPS Project — see LICENSE.txt for full license text. +// SPDX-License-Identifier: MIT +// +// Numpy interop without numpy headers. Construct numpy.ndarray +// instances from C++ buffers and consume incoming numpy arrays through +// nb::ndarray's DLPack/buffer view. The numpy package itself is loaded +// at runtime via nb::module_::import_("numpy"); pyalps already requires +// numpy as a runtime dependency. +#ifndef ALPS_PYTHON_NUMPY_COMPAT_HPP +#define ALPS_PYTHON_NUMPY_COMPAT_HPP +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace alps { + namespace python { + namespace nb_ = nanobind; + // numpy dtype strings, indexed by the corresponding C++ type. + // Used by make_numpy_array() / as_contiguous() to drive the + // numpy.empty(dtype=…) / numpy.ascontiguousarray(dtype=…) calls. + template struct numpy_dtype; + template <> struct numpy_dtype { static constexpr char const* name = "bool"; }; + template <> struct numpy_dtype { static constexpr char const* name = "int8"; }; + template <> struct numpy_dtype { static constexpr char const* name = "int16"; }; + template <> struct numpy_dtype { static constexpr char const* name = "int32"; }; + template <> struct numpy_dtype { static constexpr char const* name = "int64"; }; + template <> struct numpy_dtype { static constexpr char const* name = "uint8"; }; + template <> struct numpy_dtype { static constexpr char const* name = "uint16"; }; + template <> struct numpy_dtype { static constexpr char const* name = "uint32"; }; + template <> struct numpy_dtype { static constexpr char const* name = "uint64"; }; + template <> struct numpy_dtype { static constexpr char const* name = "float32"; }; + template <> struct numpy_dtype { static constexpr char const* name = "float64"; }; + template <> struct numpy_dtype> { static constexpr char const* name = "complex64"; }; + template <> struct numpy_dtype> { static constexpr char const* name = "complex128"; }; + // Allocates numpy.empty(shape, dtype=numpy_dtype::name) and + // memcpy's `data` (length = product(shape)) into it. Returns + // a writable numpy.ndarray. + template + inline nb_::object make_numpy_array(T const* data, + std::vector const& shape) { + nb_::object np = nb_::module_::import_("numpy"); + nb_::tuple shape_tuple = nb_::steal(PyTuple_New(static_cast(shape.size()))); + for (std::size_t i = 0; i < shape.size(); ++i) + PyTuple_SET_ITEM(shape_tuple.ptr(), static_cast(i), + PyLong_FromUnsignedLongLong(shape[i])); + nb_::object arr = np.attr("empty")( + shape_tuple, nb_::arg("dtype") = numpy_dtype::name); + // Bridge the freshly-allocated numpy buffer through nb::ndarray + // to get a writable raw pointer. + auto nd = nb_::cast>(arr); + std::size_t total = 1; + for (auto s : shape) total *= s; + if (total > 0) + std::memcpy(nd.data(), data, total * sizeof(T)); + return arr; + } + template + inline nb_::object make_numpy_array(std::vector const& v) { + return make_numpy_array(v.data(), {v.size()}); + } + // Strong-ref'd C-contiguous view onto a numpy array of dtype T. + // The owner handle keeps the array alive for the lifetime of + // the view; data() / shape() / ndim() forward to the ndarray. + template + struct contiguous_view { + nb_::object owner; + nb_::ndarray nd; + T const* data() const { return nd.data(); } + std::size_t ndim() const { return nd.ndim(); } + std::size_t shape(int i) const { return nd.shape(i); } + }; + // Coerces `obj` to a C-contiguous numpy.ndarray of dtype T via + // numpy.ascontiguousarray. Always produces a contiguous + + // correctly-typed buffer (numpy copies if the input doesn't + // already match). Equivalent in spirit to nanobind's + // py::array_t + // parameter form, just routed through numpy at runtime instead + // of through the numpy C headers at compile time. + template + inline contiguous_view as_contiguous(nb_::handle obj) { + nb_::object np = nb_::module_::import_("numpy"); + nb_::object arr = np.attr("ascontiguousarray")( + obj, nb_::arg("dtype") = numpy_dtype::name); + auto nd = nb_::cast>(arr); + return contiguous_view{std::move(arr), std::move(nd)}; + } + } // namespace python +} // namespace alps +#endif // ALPS_PYTHON_NUMPY_COMPAT_HPP diff --git a/bindings/python/pyalps/cpp/pyalea.cpp b/bindings/python/pyalps/cpp/pyalea.cpp new file mode 100644 index 000000000..b5ecd5607 --- /dev/null +++ b/bindings/python/pyalps/cpp/pyalea.cpp @@ -0,0 +1,368 @@ +// Copyright (C) 1994-2010 by Ping Nang Ma , +// Lukas Gamper , +// Matthias Troyer , +// Maximilian Poprawe +// 2026 by the ALPS collaboration +// Part of the ALPS Project — see LICENSE.txt for full license text. +// SPDX-License-Identifier: MIT +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "numpy_compat.hpp" +#include "save_observable_to_hdf5.hpp" +#include +#include +#include +#include +#include +#include +#include +#include +namespace nb = nanobind; +namespace alps { + namespace alea { + // Wraps a scalar-valarray observable (RealVectorObservable / + // RealVectorTimeSeriesObservable) so Python sees numpy arrays + // in / out instead of std::valarray. + template + class WrappedValarrayObservable { + using element_type = typename T::value_type::value_type; + public: + WrappedValarrayObservable(std::string const & name, int s = 0) + : obs(name, s) + {} + // Copy the ndarray into a valarray and feed it to the observable. + void push(nb::handle arr) { + auto view = alps::python::as_contiguous(arr); + if (view.ndim() != 1) + throw std::invalid_argument( + "RealVectorObservable.push: expected 1-D array"); + std::size_t n = static_cast(view.shape(0)); + std::valarray v(n); + double const * data = view.data(); + for (std::size_t i = 0; i < n; ++i) + v[i] = static_cast(data[i]); + obs << v; + } + std::string representation() const { return obs.representation(); } + // Turn an alps::numeric std::valarray-like view into a + // 1-D numpy.ndarray (dtype=float64) by copying through + // numpy.empty + buffer protocol. + template + static nb::object _to_numpy(U const & v) { + std::size_t n = static_cast(v.size()); + std::vector tmp(n); + for (std::size_t i = 0; i < n; ++i) + tmp[i] = static_cast(v[i]); + return alps::python::make_numpy_array(tmp.data(), {n}); + } + nb::object mean() const { return _to_numpy(obs.mean()); } + nb::object error() const { return _to_numpy(obs.error()); } + nb::object tau() const { return _to_numpy(obs.tau()); } + nb::object variance() const { return _to_numpy(obs.variance()); } + void save(std::string const & filename) const { + alps::hdf5::archive ar(filename, "a"); + ar["/simulation/results/" + obs.representation()] << obs; + } + typename T::count_type count() const { return obs.count(); } + typename T::convergence_type converged_errors() const { return obs.converged_errors(); } + private: + T obs; + }; + } // namespace alea +} // namespace alps +namespace { +// Build a 1-D numpy.ndarray (dtype=float64) from any sequence-like +// alps container (std::vector, std::valarray). +template +nb::object seq_to_numpy(Container const & v) { + std::size_t n = static_cast(v.size()); + std::vector tmp(n); + for (std::size_t i = 0; i < n; ++i) + tmp[i] = static_cast(v[i]); + return alps::python::make_numpy_array(tmp.data(), {n}); +} +// Copy a numpy array into a std::vector. Used when the +// caller still instantiates mctimeseries from a +// Python array. +template +std::vector +numpy_to_vector(nb::handle arr) { + auto view = alps::python::as_contiguous(arr); + if (view.ndim() != 1) + throw std::invalid_argument( + "mctimeseries ctor: expected 1-D array"); + std::size_t n = static_cast(view.shape(0)); + std::vector out(n); + double const * data = view.data(); + for (std::size_t i = 0; i < n; ++i) + out[i] = static_cast(data[i]); + return out; +} +// __repr__ helper for any ALPS type with an ostream operator. +template +std::string stream_repr(T const & x) { + std::ostringstream ss; + ss << x; + return ss.str(); +} +template +std::string value_with_error_repr(alps::alea::value_with_error const & v) { + std::ostringstream ss; + ss << v.mean() << " +/- " << v.error(); + return ss.str(); +} +// Numpy-returning wrappers for vector-valued alps::alea free +// functions (mean, variance, uncorrelated_error, binning_error) — +// the scalar overloads are bound directly and nanobind casts +// their `double` return to a Python float automatically. +template +nb::object mean_vector(T const & x) { + return seq_to_numpy(alps::alea::mean(x)); +} +template +nb::object variance_vector(T const & x) { + return seq_to_numpy(alps::alea::variance(x)); +} +// mctimeseries.timeseries() returns std::vector; hand +// back to Python as numpy. For scalar ValueType we pack 1-D; for +// vector ValueType we pack 2-D. mctimeseries_view has the +// same surface. +template +nb::object ts_to_numpy_scalar(TS const & ts) { + auto const & v = ts.timeseries(); + return seq_to_numpy(v); +} +template +nb::object ts_to_numpy_vector_rows(TS const & ts) { + auto const & rows = ts.timeseries(); + if (rows.empty()) + return alps::python::make_numpy_array( + static_cast(nullptr), {std::size_t{0}, std::size_t{0}}); + std::size_t nrows = rows.size(); + std::size_t ncols = rows.front().size(); + for (auto const & row : rows) + if (row.size() != ncols) + throw std::runtime_error("mctimeseries has ragged rows; cannot shape as numpy 2-D"); + std::vector flat(nrows * ncols); + double * dst = flat.data(); + for (auto const & row : rows) { + for (std::size_t j = 0; j < ncols; ++j) + *dst++ = static_cast(row[j]); + } + return alps::python::make_numpy_array(flat.data(), {nrows, ncols}); +} +} // namespace +NB_MODULE(pyalea_c, m) { + m.doc() = "ALPS alea bindings (nanobind)"; + // ─── scalar-valarray observables ───────────────────────────────── + using RealVecObs = alps::alea::WrappedValarrayObservable; + using RealVecTsObs = alps::alea::WrappedValarrayObservable; + #define ALPS_PY_EXPORT_VECTOROBSERVABLE(Wrapper, PyName) \ + nb::class_(m, PyName) \ + .def("__init__", \ + [](Wrapper * self, std::string name, int bins) { \ + new (self) Wrapper(name, bins); \ + }, \ + nb::arg("name"), nb::arg("bins") = 0) \ + .def("__repr__", &Wrapper::representation) \ + .def("__deepcopy__", \ + [](Wrapper const & self, nb::handle /*memo*/) { \ + return Wrapper(self); \ + }) \ + .def("__lshift__", &Wrapper::push, nb::arg("array")) \ + .def("save", &Wrapper::save, nb::arg("filename")) \ + .def_prop_ro("mean", &Wrapper::mean) \ + .def_prop_ro("error", &Wrapper::error) \ + .def_prop_ro("tau", &Wrapper::tau) \ + .def_prop_ro("variance", &Wrapper::variance) \ + .def_prop_ro("count", &Wrapper::count) \ + .def_prop_ro("converged_errors", &Wrapper::converged_errors) + ALPS_PY_EXPORT_VECTOROBSERVABLE(RealVecObs, "RealVectorObservable"); + ALPS_PY_EXPORT_VECTOROBSERVABLE(RealVecTsObs, "RealVectorTimeSeriesObservable"); + #undef ALPS_PY_EXPORT_VECTOROBSERVABLE + // ─── scalar simple observables ─────────────────────────────────── + #define ALPS_PY_EXPORT_SIMPLEOBSERVABLE(AlpsClass, PyName) \ + nb::class_(m, PyName) \ + .def("__init__", \ + [](alps::AlpsClass * self, std::string name, int bins) { \ + new (self) alps::AlpsClass(name, bins); \ + }, \ + nb::arg("name"), nb::arg("bins") = 0) \ + .def("__deepcopy__", \ + [](alps::AlpsClass const & self, nb::handle /*memo*/) { \ + return alps::AlpsClass(self); \ + }) \ + .def("__repr__", &alps::AlpsClass::representation) \ + .def("__lshift__", &alps::AlpsClass::operator<<) \ + .def("save", &alps::python::save_observable_to_hdf5, \ + nb::arg("filename")) \ + .def_prop_ro("mean", &alps::AlpsClass::mean) \ + .def_prop_ro("error", \ + static_cast( \ + &alps::AlpsClass::error)) \ + .def_prop_ro("tau", &alps::AlpsClass::tau) \ + .def_prop_ro("variance", &alps::AlpsClass::variance) \ + .def_prop_ro("count", &alps::AlpsClass::count) \ + .def_prop_ro("converged_errors", &alps::AlpsClass::converged_errors) + ALPS_PY_EXPORT_SIMPLEOBSERVABLE(RealObservable, "RealObservable"); + ALPS_PY_EXPORT_SIMPLEOBSERVABLE(RealTimeSeriesObservable, "RealTimeSeriesObservable"); + #undef ALPS_PY_EXPORT_SIMPLEOBSERVABLE + // ─── value_with_error ──────────────────────────────────────────── + nb::class_>(m, "ValueWithError") + .def(nb::init(), + nb::arg("mean") = 0.0, nb::arg("error") = 0.0) + .def_prop_ro("mean", &alps::alea::value_with_error::mean) + .def_prop_ro("error", &alps::alea::value_with_error::error) + .def("__repr__", &value_with_error_repr); + // ─── StdPairDouble ───────────────────────────────────────────── + // nanobind's STL caster already registered std::pair as a + // Python tuple converter via the stl.h header; nanobind takes the + // same path via . Binding it again as a + // class_ would fight that, so use a thin attribute-access + // wrapper instead, and give integrated_autocorrelation_time a + // Python-side signature that accepts either StdPairDouble or a + // plain (float, float) tuple. + struct StdPairDouble { + double first{0.0}; + double second{0.0}; + StdPairDouble() = default; + StdPairDouble(double f, double s) : first(f), second(s) {} + operator std::pair() const { return {first, second}; } + }; + nb::class_(m, "StdPairDouble", + "Pair of (fit slope, fit intercept) returned by the autocorrelation fit helpers.") + .def(nb::init<>()) + .def(nb::init(), nb::arg("first"), nb::arg("second")) + .def_rw("first", &StdPairDouble::first) + .def_rw("second", &StdPairDouble::second) + .def("__repr__", [](StdPairDouble const & p) { + std::ostringstream ss; + ss << "StdPairDouble(" << p.first << ", " << p.second << ")"; + return ss.str(); + }); + // ─── mctimeseries / mctimeseries_view bindings ──────────── + // + // Numpy-ctor: take any handle and copy through numpy_to_vector. + // The timeseries() method returns numpy arrays directly; the + // 2-D overload for vector goes through the + // ts_to_numpy_vector_rows helper. + #define ALPS_PY_EXPORT_MCTIMESERIES_SCALAR(Value, PyName) \ + nb::class_>(m, PyName) \ + .def(nb::init<>()) \ + .def("__init__", \ + [](alps::alea::mctimeseries * self, nb::handle a) { \ + new (self) alps::alea::mctimeseries( \ + numpy_to_vector(a)); \ + }) \ + .def(nb::init>()) \ + .def("timeseries", [](alps::alea::mctimeseries const & self) { \ + return ts_to_numpy_scalar(self); \ + }) \ + .def_prop_ro("size", &alps::alea::mctimeseries::size) \ + .def("__repr__", &stream_repr>); \ + nb::class_>(m, PyName "View") \ + .def(nb::init>()) \ + .def(nb::init>()) \ + .def("timeseries", [](alps::alea::mctimeseries_view const & self) { \ + return ts_to_numpy_scalar(self); \ + }) \ + .def_prop_ro("size", &alps::alea::mctimeseries_view::size) \ + .def("__repr__", &stream_repr>) + ALPS_PY_EXPORT_MCTIMESERIES_SCALAR(double, "MCScalarTimeseries"); + #undef ALPS_PY_EXPORT_MCTIMESERIES_SCALAR + // Vector-valued mctimeseries: ctor from a 2-D numpy array, rows + // are time samples. timeseries() returns 2-D. + using VecTs = alps::alea::mctimeseries>; + using VecTsV = alps::alea::mctimeseries_view>; + using VecMcD = alps::alea::mcdata>; + nb::class_(m, "MCVectorTimeseries") + .def(nb::init<>()) + .def("__init__", [](VecTs * self, nb::handle a) { + auto view = alps::python::as_contiguous(a); + if (view.ndim() != 2) + throw std::invalid_argument( + "MCVectorTimeseries ctor: expected 2-D array"); + std::size_t nrows = static_cast(view.shape(0)); + std::size_t ncols = static_cast(view.shape(1)); + std::vector> rows(nrows); + double const * data = view.data(); + for (std::size_t i = 0; i < nrows; ++i) { + rows[i].resize(ncols); + for (std::size_t j = 0; j < ncols; ++j) + rows[i][j] = data[i * ncols + j]; + } + new (self) VecTs(rows); + }) + .def(nb::init()) + .def("timeseries", [](VecTs const & self) { return ts_to_numpy_vector_rows(self); }) + .def_prop_ro("size", &VecTs::size) + .def("__repr__", &stream_repr); + nb::class_(m, "MCVectorTimeseriesView") + .def(nb::init()) + .def(nb::init()) + .def("timeseries", [](VecTsV const & self) { return ts_to_numpy_vector_rows(self); }) + .def_prop_ro("size", &VecTsV::size) + .def("__repr__", &stream_repr); + // ─── alps::alea free functions over mcdata / mctimeseries ──────── + #define DEF_ALL(name, fn) \ + /* scalar-valued */ \ + m.def(name, static_cast const &)>(&fn)); \ + m.def(name, static_cast const &)>(&fn)); \ + m.def(name, static_cast const &)>(&fn)); + // size — works for both scalar and vector value types. + m.def("size", static_cast const &)>(&alps::size)); + m.def("size", static_cast const &)>(&alps::size)); + m.def("size", static_cast const &)>(&alps::size)); + m.def("size", static_cast> const &)>(&alps::size)); + m.def("size", static_cast> const &)>(&alps::size)); + m.def("size", static_cast> const &)>(&alps::size)); + // mean — scalar overloads return double, vector overloads return numpy. + DEF_ALL("mean", alps::alea::mean) + m.def("mean", &mean_vector>>); + m.def("mean", &mean_vector>>); + m.def("mean", &mean_vector>>); + // variance — same pattern. + DEF_ALL("variance", alps::alea::variance) + m.def("variance", &variance_vector>>); + m.def("variance", &variance_vector>>); + m.def("variance", &variance_vector>>); + // integrated_autocorrelation_time — scalar only. The C++ signature + // takes the (slope, intercept) pair by const-ref. + m.def("integrated_autocorrelation_time", + static_cast const &, + std::pair const &)>( + &alps::alea::integrated_autocorrelation_time)); + m.def("integrated_autocorrelation_time", + static_cast const &, + std::pair const &)>( + &alps::alea::integrated_autocorrelation_time)); + // running_mean / reverse_running_mean — scalar only, mctimeseries-valued. + m.def("running_mean", + static_cast (*)(alps::alea::mcdata const &)>( + &alps::alea::running_mean)); + m.def("running_mean", + static_cast (*)(alps::alea::mctimeseries const &)>( + &alps::alea::running_mean)); + m.def("running_mean", + static_cast (*)(alps::alea::mctimeseries_view const &)>( + &alps::alea::running_mean)); + m.def("reverse_running_mean", + static_cast (*)(alps::alea::mcdata const &)>( + &alps::alea::reverse_running_mean)); + m.def("reverse_running_mean", + static_cast (*)(alps::alea::mctimeseries const &)>( + &alps::alea::reverse_running_mean)); + m.def("reverse_running_mean", + static_cast (*)(alps::alea::mctimeseries_view const &)>( + &alps::alea::reverse_running_mean)); + #undef DEF_ALL +} diff --git a/bindings/python/pyalps/cpp/pymcdata.cpp b/bindings/python/pyalps/cpp/pymcdata.cpp new file mode 100644 index 000000000..017299470 --- /dev/null +++ b/bindings/python/pyalps/cpp/pymcdata.cpp @@ -0,0 +1,329 @@ +// Copyright (C) 1994-2010 by Ping Nang Ma , +// Lukas Gamper , +// Matthias Troyer +// 2026 by the ALPS collaboration +// Part of the ALPS Project — see LICENSE.txt for full license text. +// SPDX-License-Identifier: MIT +#include +#include +#include +#include +#include "numpy_compat.hpp" +#include +#include +#include +#include +#include +#include +#include +namespace nb = nanobind; +namespace alps { + namespace python { + // Build a 1-D numpy.ndarray (dtype=float64) from a + // std::vector. Allocates a fresh array via + // numpy.empty + memcpy through the buffer protocol — no + // numpy headers. + inline nb::object vec_to_numpy(std::vector const & v) { + return make_numpy_array(v.data(), {v.size()}); + } + // Build a 2-D numpy.ndarray from a vector>. + // Rows must be equal-length; on mismatch throw a value error + // (mcdata doesn't produce ragged bins/jackknife tables). + inline nb::object matrix_to_numpy(std::vector> const & m) { + std::size_t rows = m.size(); + std::size_t cols = rows > 0 ? m.front().size() : 0; + for (auto const & row : m) { + if (row.size() != cols) + throw std::runtime_error("mcdata returned ragged 2-D table; refusing to convert to numpy"); + } + std::vector flat(rows * cols); + double * dst = flat.data(); + for (auto const & row : m) { + std::copy(row.begin(), row.end(), dst); + dst += cols; + } + return make_numpy_array(flat.data(), {rows, cols}); + } + // __repr__ for mcdata — " +/- ". + template + std::string print_mcdata_scalar(alps::alea::mcdata const & self) { + std::ostringstream ss; + ss << self.mean() << " +/- " << self.error(); + return ss.str(); + } + // __repr__ for mcdata> — newline-joined scalar reprs. + // The const_iterator's operator-> returns through boost::addressof + // on a rvalue scalar mcdata, which triggers the deleted + // overload; take a local copy instead. + template + std::string print_mcdata_vector(alps::alea::mcdata> const & self) { + std::ostringstream ss; + bool first = true; + for (auto it = self.begin(); it != self.end(); ++it) { + if (!first) ss << "\n"; + first = false; + alps::alea::mcdata entry = *it; + ss << entry.mean() << " +/- " << entry.error(); + } + return ss.str(); + } + // __format__ for mcdata — defers to builtins.format on + // mean and error separately, then joins with " +/- ". + template + std::string format_mcdata_scalar(alps::alea::mcdata const & self, + std::string const & spec) { + nb::object fmt = nb::module_::import_("builtins").attr("format"); + std::string m = nb::cast(fmt(self.mean(), spec)); + std::string e = nb::cast(fmt(self.error(), spec)); + return m + " +/- " + e; + } + template + std::string format_mcdata_vector(alps::alea::mcdata> const & self, + std::string const & spec) { + std::ostringstream ss; + bool first = true; + for (auto it = self.begin(); it != self.end(); ++it) { + if (!first) ss << "\n"; + first = false; + alps::alea::mcdata entry = *it; + ss << format_mcdata_scalar(entry, spec); + } + return ss.str(); + } + // Indexing: mcdata>[i] returns a scalar mcdata + // view; mcdata>[slice] returns a sliced + // mcdata>. + template + nb::object mcdata_vector_getitem(alps::alea::mcdata> & data, + nb::object const & key) { + std::size_t n = data.mean().size(); + if (nb::isinstance(key)) { + nb::slice s = nb::borrow(key); + auto [start, stop, step, slicelength] = s.compute(n); + if (step != 1) + throw nb::index_error("slice step size not supported."); + if (start > stop) + return nb::cast(alps::alea::mcdata>()); + return nb::cast(alps::alea::mcdata>( + data, start, stop)); + } + long index = nb::cast(key); + if (index < 0) + index += static_cast(n); + if (index < 0 || static_cast(index) >= n) + throw nb::index_error("Index out of range"); + return nb::cast(alps::alea::mcdata( + data, static_cast(index))); + } + template + bool mcdata_vector_contains(alps::alea::mcdata> & data, + nb::object const & key) { + // Best-effort: accept either a scalar mcdata or a value + // that casts cleanly; anything else is "not in". + // mcdata>::const_iterator does not fully + // model std::ranges::input_range (the iterator traits + // needed for borrowed_iterator_t aren't wired up), so the + // ranges-form of std::find is ill-formed here. Keep the + // classical iterator pair. + try { + auto probe = nb::cast>(key); + return std::find(data.begin(), data.end(), probe) != data.end(); + } catch (nb::cast_error const &) { + } + return false; + } + } +} +NB_MODULE(pymcdata_c, m) { + using alps::alea::mcdata; + namespace pymod = alps::python; + using Scalar = mcdata; + using Vector = mcdata>; + // mcdata's transcendentals (sq, cb, sqrt, cbrt, exp, log, sin, …) + // live in namespace alps::alea and are found via ADL when we pass + // an mcdata argument. Capture each as a lambda so the binding + // doesn't have to cast through overloaded name lookup, which + // fights 's own abs/pow/sqrt etc. sitting in global scope. + nb::class_(m, "MCScalarData", + "Scalar Monte Carlo data. Supports +, -, *, /, +=, -=, *=, /=, " + "abs, pow, sq, cb, sqrt, cbrt, exp, log, sin, cos, tan, sinh, cosh, tanh.") + .def(nb::init<>()) + .def(nb::init(), nb::arg("mean")) + .def(nb::init(), nb::arg("mean"), nb::arg("error")) + .def_prop_ro("mean", [](Scalar const & v) { return v.mean(); }) + .def_prop_ro("error", [](Scalar const & v) { return v.error(); }) + .def_prop_ro("tau", [](Scalar const & v) { return v.tau(); }) + .def_prop_ro("variance", [](Scalar const & v) { return v.variance(); }) + .def_prop_ro("bins", [](Scalar const & v) { + return pymod::vec_to_numpy(v.bins()); + }) + .def_prop_ro("jackknife",[](Scalar const & v) { + return pymod::vec_to_numpy(v.jackknife()); + }) + .def_prop_ro("count", &Scalar::count) + .def("__repr__", &pymod::print_mcdata_scalar) + .def("__format__", &pymod::format_mcdata_scalar, + nb::arg("format_spec")) + .def("__deepcopy__", + [](Scalar const & self, nb::handle /*memo*/) { + return Scalar(self); + }) + .def("__abs__", [](Scalar x) { using alps::alea::abs; return abs(std::move(x)); }) + .def("__pow__", [](Scalar x, double e) { using alps::alea::pow; return pow(std::move(x), e); }) + // Unary - / + on mcdata produce new values; wrap manually + // because the library's operator+()/-() signatures aren't + // const-returning (which is what nb::self expects). + .def("__pos__", [](Scalar self) { return +self; }) + .def("__neg__", [](Scalar self) { return -self; }) + // In-place operators — modify self in place, return reference. + .def("__iadd__", [](Scalar & s, Scalar const & o) -> Scalar & { return s += o; }, nb::is_operator()) + .def("__iadd__", [](Scalar & s, double o) -> Scalar & { return s += o; }, nb::is_operator()) + .def("__isub__", [](Scalar & s, Scalar const & o) -> Scalar & { return s -= o; }, nb::is_operator()) + .def("__isub__", [](Scalar & s, double o) -> Scalar & { return s -= o; }, nb::is_operator()) + .def("__imul__", [](Scalar & s, Scalar const & o) -> Scalar & { return s *= o; }, nb::is_operator()) + .def("__imul__", [](Scalar & s, double o) -> Scalar & { return s *= o; }, nb::is_operator()) + .def("__itruediv__", [](Scalar & s, Scalar const & o) -> Scalar & { return s /= o; }, nb::is_operator()) + .def("__itruediv__", [](Scalar & s, double o) -> Scalar & { return s /= o; }, nb::is_operator()) + // Binary +/-/*//: forward and reflected forms. nb::is_operator() + // marks them so mixed-type failures return NotImplemented and + // Python's reflected operator machinery gets a turn. + .def("__add__", [](Scalar const & a, Scalar const & b) { return a + b; }, nb::is_operator()) + .def("__radd__", [](Scalar const & a, Scalar const & b) { return b + a; }, nb::is_operator()) + .def("__add__", [](Scalar const & a, double b) { return a + b; }, nb::is_operator()) + .def("__radd__", [](Scalar const & a, double b) { return b + a; }, nb::is_operator()) + .def("__sub__", [](Scalar const & a, Scalar const & b) { return a - b; }, nb::is_operator()) + .def("__rsub__", [](Scalar const & a, Scalar const & b) { return b - a; }, nb::is_operator()) + .def("__sub__", [](Scalar const & a, double b) { return a - b; }, nb::is_operator()) + .def("__rsub__", [](Scalar const & a, double b) { return b - a; }, nb::is_operator()) + .def("__mul__", [](Scalar const & a, Scalar const & b) { return a * b; }, nb::is_operator()) + .def("__rmul__", [](Scalar const & a, Scalar const & b) { return b * a; }, nb::is_operator()) + .def("__mul__", [](Scalar const & a, Vector const & b) { return a * b; }, nb::is_operator()) + .def("__rmul__", [](Scalar const & a, Vector const & b) { return b * a; }, nb::is_operator()) + .def("__mul__", [](Scalar const & a, double b) { return a * b; }, nb::is_operator()) + .def("__rmul__", [](Scalar const & a, double b) { return b * a; }, nb::is_operator()) + .def("__truediv__", [](Scalar const & a, Scalar const & b) { return a / b; }, nb::is_operator()) + .def("__rtruediv__", [](Scalar const & a, Scalar const & b) { return b / a; }, nb::is_operator()) + .def("__truediv__", [](Scalar const & a, double b) { return a / b; }, nb::is_operator()) + .def("__rtruediv__", [](Scalar const & a, double b) { return b / a; }, nb::is_operator()) + .def("sq", [](Scalar x) { using alps::alea::sq; return sq(std::move(x)); }) + .def("cb", [](Scalar x) { using alps::alea::cb; return cb(std::move(x)); }) + .def("sqrt", [](Scalar x) { using alps::alea::sqrt; return sqrt(std::move(x)); }) + .def("cbrt", [](Scalar x) { using alps::alea::cbrt; return cbrt(std::move(x)); }) + .def("exp", [](Scalar x) { using alps::alea::exp; return exp(std::move(x)); }) + .def("log", [](Scalar x) { using alps::alea::log; return log(std::move(x)); }) + .def("sin", [](Scalar x) { using alps::alea::sin; return sin(std::move(x)); }) + .def("cos", [](Scalar x) { using alps::alea::cos; return cos(std::move(x)); }) + .def("tan", [](Scalar x) { using alps::alea::tan; return tan(std::move(x)); }) + .def("sinh", [](Scalar x) { using alps::alea::sinh; return sinh(std::move(x)); }) + .def("cosh", [](Scalar x) { using alps::alea::cosh; return cosh(std::move(x)); }) + .def("tanh", [](Scalar x) { using alps::alea::tanh; return tanh(std::move(x)); }) + .def("set_bin_size", &Scalar::set_bin_size) + .def("set_bin_number", &Scalar::set_bin_number) + .def("discard_bins", &Scalar::discard_bins) + .def("merge", static_cast(&Scalar::merge)) + .def("save", static_cast(&Scalar::save), + nb::arg("filename"), nb::arg("observable_name")) + .def("load", static_cast(&Scalar::load), + nb::arg("filename"), nb::arg("observable_name")); + nb::class_(m, "MCVectorData", + "Vector-valued Monte Carlo data.") + .def(nb::init<>()) + .def(nb::init>(), nb::arg("mean")) + .def(nb::init, std::vector>(), + nb::arg("mean"), nb::arg("error")) + .def("__len__", + [](Vector & v) { + return v.mean().size(); + }) + .def("__getitem__", &pymod::mcdata_vector_getitem) + .def("__contains__", &pymod::mcdata_vector_contains) + .def_prop_ro("mean", [](Vector const & v) { + return pymod::vec_to_numpy(v.mean()); + }) + .def_prop_ro("error", [](Vector const & v) { + return pymod::vec_to_numpy(v.error()); + }) + .def_prop_ro("tau", [](Vector const & v) { + return pymod::vec_to_numpy(v.tau()); + }) + .def_prop_ro("variance", [](Vector const & v) { + return pymod::vec_to_numpy(v.variance()); + }) + .def_prop_ro("bins", [](Vector const & v) { + return pymod::matrix_to_numpy(v.bins()); + }) + .def_prop_ro("jackknife",[](Vector const & v) { + return pymod::matrix_to_numpy(v.jackknife()); + }) + .def_prop_ro("count", &Vector::count) + .def("__repr__", &pymod::print_mcdata_vector) + .def("__format__", &pymod::format_mcdata_vector, + nb::arg("format_spec")) + .def("__deepcopy__", + [](Vector const & self, nb::handle /*memo*/) { + return Vector(self); + }) + .def("__abs__", [](Vector x) { using alps::alea::abs; return abs(std::move(x)); }) + .def("__pow__", [](Vector x, double e) { using alps::alea::pow; return pow(std::move(x), e); }) + .def("__pos__", [](Vector self) { return +self; }) + .def("__neg__", [](Vector self) { return -self; }) + .def("__eq__", [](Vector const & a, Vector const & b) { return a == b; }, nb::is_operator()) + // In-place operators. + .def("__iadd__", [](Vector & s, Vector const & o) -> Vector & { return s += o; }, nb::is_operator()) + .def("__iadd__", [](Vector & s, std::vector const & o) -> Vector & { return s += o; }, nb::is_operator()) + .def("__isub__", [](Vector & s, Vector const & o) -> Vector & { return s -= o; }, nb::is_operator()) + .def("__isub__", [](Vector & s, std::vector const & o) -> Vector & { return s -= o; }, nb::is_operator()) + .def("__imul__", [](Vector & s, Vector const & o) -> Vector & { return s *= o; }, nb::is_operator()) + .def("__imul__", [](Vector & s, std::vector const & o) -> Vector & { return s *= o; }, nb::is_operator()) + .def("__itruediv__", [](Vector & s, Vector const & o) -> Vector & { return s /= o; }, nb::is_operator()) + .def("__itruediv__", [](Vector & s, std::vector const & o) -> Vector & { return s /= o; }, nb::is_operator()) + // Binary operators — Vector ↔ Vector / Scalar / vector / double. + .def("__add__", [](Vector const & a, Vector const & b) { return a + b; }, nb::is_operator()) + .def("__radd__", [](Vector const & a, Vector const & b) { return b + a; }, nb::is_operator()) + .def("__add__", [](Vector const & a, std::vector const & b) { return a + b; }, nb::is_operator()) + .def("__radd__", [](Vector const & a, std::vector const & b) { return b + a; }, nb::is_operator()) + .def("__sub__", [](Vector const & a, Vector const & b) { return a - b; }, nb::is_operator()) + .def("__rsub__", [](Vector const & a, Vector const & b) { return b - a; }, nb::is_operator()) + .def("__sub__", [](Vector const & a, std::vector const & b) { return a - b; }, nb::is_operator()) + .def("__rsub__", [](Vector const & a, std::vector const & b) { return b - a; }, nb::is_operator()) + .def("__mul__", [](Vector const & a, Vector const & b) { return a * b; }, nb::is_operator()) + .def("__mul__", [](Vector const & a, Scalar const & b) { return a * b; }, nb::is_operator()) + .def("__rmul__", [](Vector const & a, Scalar const & b) { return b * a; }, nb::is_operator()) + .def("__rmul__", [](Vector const & a, Vector const & b) { return b * a; }, nb::is_operator()) + .def("__mul__", [](Vector const & a, std::vector const & b) { return a * b; }, nb::is_operator()) + .def("__rmul__", [](Vector const & a, std::vector const & b) { return b * a; }, nb::is_operator()) + .def("__truediv__", [](Vector const & a, Vector const & b) { return a / b; }, nb::is_operator()) + .def("__truediv__", [](Vector const & a, Scalar const & b) { return a / b; }, nb::is_operator()) + .def("__rtruediv__", [](Vector const & a, Vector const & b) { return b / a; }, nb::is_operator()) + .def("__truediv__", [](Vector const & a, std::vector const & b) { return a / b; }, nb::is_operator()) + .def("__rtruediv__", [](Vector const & a, std::vector const & b) { return b / a; }, nb::is_operator()) + // Vector ↔ double. + .def("__add__", [](Vector const & a, double b) { return a + b; }, nb::is_operator()) + .def("__radd__", [](Vector const & a, double b) { return b + a; }, nb::is_operator()) + .def("__sub__", [](Vector const & a, double b) { return a - b; }, nb::is_operator()) + .def("__rsub__", [](Vector const & a, double b) { return b - a; }, nb::is_operator()) + .def("__mul__", [](Vector const & a, double b) { return a * b; }, nb::is_operator()) + .def("__rmul__", [](Vector const & a, double b) { return b * a; }, nb::is_operator()) + .def("__truediv__", [](Vector const & a, double b) { return a / b; }, nb::is_operator()) + .def("__rtruediv__", [](Vector const & a, double b) { return b / a; }, nb::is_operator()) + .def("sq", [](Vector x) { using alps::alea::sq; return sq(std::move(x)); }) + .def("cb", [](Vector x) { using alps::alea::cb; return cb(std::move(x)); }) + .def("sqrt", [](Vector x) { using alps::alea::sqrt; return sqrt(std::move(x)); }) + .def("cbrt", [](Vector x) { using alps::alea::cbrt; return cbrt(std::move(x)); }) + .def("exp", [](Vector x) { using alps::alea::exp; return exp(std::move(x)); }) + .def("log", [](Vector x) { using alps::alea::log; return log(std::move(x)); }) + .def("sin", [](Vector x) { using alps::alea::sin; return sin(std::move(x)); }) + .def("cos", [](Vector x) { using alps::alea::cos; return cos(std::move(x)); }) + .def("tan", [](Vector x) { using alps::alea::tan; return tan(std::move(x)); }) + .def("sinh", [](Vector x) { using alps::alea::sinh; return sinh(std::move(x)); }) + .def("cosh", [](Vector x) { using alps::alea::cosh; return cosh(std::move(x)); }) + .def("tanh", [](Vector x) { using alps::alea::tanh; return tanh(std::move(x)); }) + .def("set_bin_size", &Vector::set_bin_size) + .def("set_bin_number", &Vector::set_bin_number) + .def("discard_bins", &Vector::discard_bins) + .def("merge", static_cast(&Vector::merge)) + .def("save", static_cast(&Vector::save), + nb::arg("filename"), nb::arg("observable_name")) + .def("load", static_cast(&Vector::load), + nb::arg("filename"), nb::arg("observable_name")); +} diff --git a/bindings/python/pyalps/cpp/pytools.cpp b/bindings/python/pyalps/cpp/pytools.cpp new file mode 100644 index 000000000..3edc408ff --- /dev/null +++ b/bindings/python/pyalps/cpp/pytools.cpp @@ -0,0 +1,52 @@ +// Copyright (C) 1994-2009 by Ping Nang Ma , +// Matthias Troyer , +// Bela Bauer +// 2026 by the ALPS collaboration +// Part of the ALPS Project — see LICENSE.txt for full license text. +// SPDX-License-Identifier: MIT +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace nb = nanobind; +typedef boost::variate_generator > random_01; +class WrappedRNG : public random_01 +{ +public: + WrappedRNG(int seed = 0) + : random_01(boost::mt19937(seed), boost::uniform_01()) + { + } +}; +NB_MODULE(pytools_c, m) { + m.doc() = "ALPS tools bindings (nanobind)"; + m.def("convert2xml", + &alps::convert2xml, + "Convert an ALPS file to XML. Returns the path to the XML file."); + m.def("hdf5_name_encode", + &alps::hdf5_name_encode, + "Escape a string for use inside an HDF5 path name."); + m.def("hdf5_name_decode", + &alps::hdf5_name_decode, + "Un-escape a string taken from an HDF5 path name."); + m.def("search_xml_library_path", + &alps::search_xml_library_path, + "Resolve an ALPS library XML / XSL file to its full path."); + nb::class_(m, "rng", + "Mersenne-Twister uniform random number generator in [0, 1).") + .def(nb::init(), nb::arg("seed") = 0) + .def("__deepcopy__", + [](WrappedRNG const & self, nb::handle /*memo*/) { + return WrappedRNG(self); + }, + "Return a fresh copy of the RNG carrying the same state.") + .def("__call__", + static_cast( + &WrappedRNG::operator()), + "Return a uniform random number in [0, 1)."); +} diff --git a/bindings/python/pyalps/cpp/save_observable_to_hdf5.hpp b/bindings/python/pyalps/cpp/save_observable_to_hdf5.hpp new file mode 100644 index 000000000..556634686 --- /dev/null +++ b/bindings/python/pyalps/cpp/save_observable_to_hdf5.hpp @@ -0,0 +1,15 @@ +// Copyright (C) 2010 by Matthias Troyer , +// Part of the ALPS Project — see LICENSE.txt for full license text. +// SPDX-License-Identifier: MIT +#ifndef ALPS_PYTHON_VERY_LONG_FILENAME_FOR_SAVE_OBSERVABLE_TO_HDF5_HPP +#define ALPS_PYTHON_VERY_LONG_FILENAME_FOR_SAVE_OBSERVABLE_TO_HDF5_HPP +#include +namespace alps { namespace python { + + template void save_observable_to_hdf5(Obs const & obs, std::string const & filename) { + hdf5::archive ar(filename, "a"); + ar["/simulation/results/"+obs.representation()] << obs; + } + +} } // end namespace alps::python +#endif // ALPS_PYTHON_VERY_LONG_FILENAME_FOR_SAVE_OBSERVABLE_TO_HDF5_HPP diff --git a/lib/pyalps/__init__.py b/bindings/python/pyalps/src/pyalps/__init__.py similarity index 86% rename from lib/pyalps/__init__.py rename to bindings/python/pyalps/src/pyalps/__init__.py index a88834ea8..2992b679e 100644 --- a/lib/pyalps/__init__.py +++ b/bindings/python/pyalps/src/pyalps/__init__.py @@ -42,5 +42,14 @@ from .floatwitherror import FloatWithError from . import fit_wrapper +# Optional solver modules are present when the wheel was built from an ALPS +# checkout with application bindings enabled. +try: + from ._ext import cthyb, ctint + sys.modules[__name__ + ".cthyb"] = cthyb + sys.modules[__name__ + ".ctint"] = ctint +except ImportError: + pass + # For ALPS DWA Application # from dwa import * diff --git a/bindings/python/pyalps/src/pyalps/_ext/__init__.py b/bindings/python/pyalps/src/pyalps/_ext/__init__.py new file mode 100644 index 000000000..f3bf869bc --- /dev/null +++ b/bindings/python/pyalps/src/pyalps/_ext/__init__.py @@ -0,0 +1,4 @@ +# Copyright (C) 2026 by the ALPS collaboration +# SPDX-License-Identifier: MIT + +"""Compiled nanobind extensions for pyalps.""" diff --git a/lib/pyalps/alea.py b/bindings/python/pyalps/src/pyalps/alea.py similarity index 100% rename from lib/pyalps/alea.py rename to bindings/python/pyalps/src/pyalps/alea.py diff --git a/lib/pyalps/alea_detail.py b/bindings/python/pyalps/src/pyalps/alea_detail.py similarity index 100% rename from lib/pyalps/alea_detail.py rename to bindings/python/pyalps/src/pyalps/alea_detail.py diff --git a/lib/pyalps/apptest.py b/bindings/python/pyalps/src/pyalps/apptest.py similarity index 100% rename from lib/pyalps/apptest.py rename to bindings/python/pyalps/src/pyalps/apptest.py diff --git a/lib/pyalps/cxx.py b/bindings/python/pyalps/src/pyalps/cxx.py similarity index 80% rename from lib/pyalps/cxx.py rename to bindings/python/pyalps/src/pyalps/cxx.py index dff6bdfc2..6265f2133 100644 --- a/lib/pyalps/cxx.py +++ b/bindings/python/pyalps/src/pyalps/cxx.py @@ -33,28 +33,30 @@ ## while testing (absolute modules, available via PYTHONPATH) try: - from . import pyalea_c - from . import pymcdata_c - from . import pyngsapi_c - from . import pyngsbase_c - from . import pyngshdf5_c - from . import pyngsobservable_c - from . import pyngsobservables_c - from . import pyngsparams_c - from . import pyngsrandom01_c - from . import pyngsresult_c - from . import pyngsresults_c - from . import pytools_c + from ._ext import pyalea_c + from ._ext import pymcdata_c + from ._ext import pyngsbase_c + from ._ext import pyngsapi_c + from ._ext import pyngshdf5_c + from ._ext import pyngsobservable_c + from ._ext import pyngsobservables_c + from ._ext import pyngsparams_c + from ._ext import pyngsrandom01_c + from ._ext import pyngsaccumulator_c + from ._ext import pyngsresult_c + from ._ext import pyngsresults_c + from ._ext import pytools_c except ImportError: import pyalea_c import pymcdata_c - import pyngsapi_c import pyngsbase_c + import pyngsapi_c import pyngshdf5_c import pyngsobservable_c import pyngsobservables_c import pyngsparams_c import pyngsrandom01_c + import pyngsaccumulator_c import pyngsresult_c import pyngsresults_c import pytools_c diff --git a/lib/pyalps/dataset.py b/bindings/python/pyalps/src/pyalps/dataset.py similarity index 100% rename from lib/pyalps/dataset.py rename to bindings/python/pyalps/src/pyalps/dataset.py diff --git a/lib/pyalps/dict_intersect.py b/bindings/python/pyalps/src/pyalps/dict_intersect.py similarity index 100% rename from lib/pyalps/dict_intersect.py rename to bindings/python/pyalps/src/pyalps/dict_intersect.py diff --git a/lib/pyalps/dwa.py b/bindings/python/pyalps/src/pyalps/dwa.py similarity index 99% rename from lib/pyalps/dwa.py rename to bindings/python/pyalps/src/pyalps/dwa.py index 2745b6440..dbbc05850 100644 --- a/lib/pyalps/dwa.py +++ b/bindings/python/pyalps/src/pyalps/dwa.py @@ -35,10 +35,7 @@ import matplotlib; import matplotlib.pyplot; import pyalps; -try: - from .dwa_c import worldlines, bandstructure -except ImportError: - from dwa_c import worldlines, bandstructure +from ._ext.dwa_c import worldlines, bandstructure from functools import reduce diff --git a/lib/pyalps/fit_wrapper.py b/bindings/python/pyalps/src/pyalps/fit_wrapper.py similarity index 100% rename from lib/pyalps/fit_wrapper.py rename to bindings/python/pyalps/src/pyalps/fit_wrapper.py diff --git a/lib/pyalps/floatwitherror.py b/bindings/python/pyalps/src/pyalps/floatwitherror.py similarity index 100% rename from lib/pyalps/floatwitherror.py rename to bindings/python/pyalps/src/pyalps/floatwitherror.py diff --git a/lib/pyalps/hdf5.py b/bindings/python/pyalps/src/pyalps/hdf5.py similarity index 100% rename from lib/pyalps/hdf5.py rename to bindings/python/pyalps/src/pyalps/hdf5.py diff --git a/lib/pyalps/hlist.py b/bindings/python/pyalps/src/pyalps/hlist.py similarity index 100% rename from lib/pyalps/hlist.py rename to bindings/python/pyalps/src/pyalps/hlist.py diff --git a/lib/pyalps/lattice.py b/bindings/python/pyalps/src/pyalps/lattice.py similarity index 100% rename from lib/pyalps/lattice.py rename to bindings/python/pyalps/src/pyalps/lattice.py diff --git a/lib/pyalps/load.py b/bindings/python/pyalps/src/pyalps/load.py similarity index 100% rename from lib/pyalps/load.py rename to bindings/python/pyalps/src/pyalps/load.py diff --git a/lib/pyalps/math.py b/bindings/python/pyalps/src/pyalps/math.py similarity index 100% rename from lib/pyalps/math.py rename to bindings/python/pyalps/src/pyalps/math.py diff --git a/lib/pyalps/maxent.py b/bindings/python/pyalps/src/pyalps/maxent.py similarity index 95% rename from lib/pyalps/maxent.py rename to bindings/python/pyalps/src/pyalps/maxent.py index 8bf79ad14..2a7123634 100644 --- a/lib/pyalps/maxent.py +++ b/bindings/python/pyalps/src/pyalps/maxent.py @@ -26,8 +26,4 @@ # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # -try: - from .maxent_c import * -except ImportError: - from maxent_c import * - \ No newline at end of file +from ._ext.maxent_c import * diff --git a/lib/pyalps/mpi.py b/bindings/python/pyalps/src/pyalps/mpi.py similarity index 100% rename from lib/pyalps/mpi.py rename to bindings/python/pyalps/src/pyalps/mpi.py diff --git a/lib/pyalps/mpl_setup_macosx.py b/bindings/python/pyalps/src/pyalps/mpl_setup_macosx.py similarity index 100% rename from lib/pyalps/mpl_setup_macosx.py rename to bindings/python/pyalps/src/pyalps/mpl_setup_macosx.py diff --git a/lib/pyalps/mpl_setup_qt.py b/bindings/python/pyalps/src/pyalps/mpl_setup_qt.py similarity index 100% rename from lib/pyalps/mpl_setup_qt.py rename to bindings/python/pyalps/src/pyalps/mpl_setup_qt.py diff --git a/lib/pyalps/mpl_setup_tk.py b/bindings/python/pyalps/src/pyalps/mpl_setup_tk.py similarity index 100% rename from lib/pyalps/mpl_setup_tk.py rename to bindings/python/pyalps/src/pyalps/mpl_setup_tk.py diff --git a/lib/pyalps/natural_sort.py b/bindings/python/pyalps/src/pyalps/natural_sort.py similarity index 100% rename from lib/pyalps/natural_sort.py rename to bindings/python/pyalps/src/pyalps/natural_sort.py diff --git a/lib/pyalps/ngs.py b/bindings/python/pyalps/src/pyalps/ngs.py similarity index 81% rename from lib/pyalps/ngs.py rename to bindings/python/pyalps/src/pyalps/ngs.py index 9a39864e7..fba944af7 100644 --- a/lib/pyalps/ngs.py +++ b/bindings/python/pyalps/src/pyalps/ngs.py @@ -33,16 +33,13 @@ from collections.abc import MutableMapping else: from collections import MutableMapping -import types - from .cxx.pyngsparams_c import params -params.__bases__ = (MutableMapping, ) + params.__bases__ from .cxx.pyngsobservable_c import observable -class ObservableOperators: - def __lshift__(self, other): - self.append(other) -observable.__bases__ = (ObservableOperators, ) + observable.__bases__ +def _observable_lshift(self, other): + self.append(other) + return self +observable.__lshift__ = _observable_lshift class RealObservable: def __init__(self, name, binnum = 0): @@ -59,7 +56,6 @@ def addToObservables(self, observables): #rename this with new ALEA observables.createRealVectorObservable(self.name, self.binnum) from .cxx.pyngsobservables_c import observables -observables.__bases__ = (MutableMapping, ) + observables.__bases__ from .cxx.pyngsobservable_c import createRealObservable #remove this with new ALEA! from .cxx.pyngsobservable_c import createRealVectorObservable #remove this with new ALEA! @@ -68,7 +64,17 @@ def addToObservables(self, observables): #rename this with new ALEA from .cxx.pyngsresult_c import observable2result #remove this with new ALEA! from .cxx.pyngsresults_c import results -results.__bases__ = (MutableMapping, ) + results.__bases__ + +# Boost.Python allowed mutating extension-type base classes after creation. +# nanobind extension types use a different allocator/deallocator layout, so +# register them as virtual MutableMapping implementations and copy the mixin +# methods onto the concrete classes instead. +for _mapping_type in (params, observables, results): + MutableMapping.register(_mapping_type) + for _method in ("keys", "values", "items", "get", "pop", "popitem", + "clear", "update", "setdefault", "__eq__", "__ne__"): + if not hasattr(_mapping_type, _method): + setattr(_mapping_type, _method, getattr(MutableMapping, _method)) from .cxx.pyngsbase_c import mcbase diff --git a/lib/pyalps/plot.py b/bindings/python/pyalps/src/pyalps/plot.py similarity index 100% rename from lib/pyalps/plot.py rename to bindings/python/pyalps/src/pyalps/plot.py diff --git a/lib/pyalps/plot_core.py b/bindings/python/pyalps/src/pyalps/plot_core.py similarity index 100% rename from lib/pyalps/plot_core.py rename to bindings/python/pyalps/src/pyalps/plot_core.py diff --git a/lib/pyalps/pyalps_config.py b/bindings/python/pyalps/src/pyalps/pyalps_config.py similarity index 100% rename from lib/pyalps/pyalps_config.py rename to bindings/python/pyalps/src/pyalps/pyalps_config.py diff --git a/lib/pyalps/pyalps_config.py.in b/bindings/python/pyalps/src/pyalps/pyalps_config.py.in similarity index 51% rename from lib/pyalps/pyalps_config.py.in rename to bindings/python/pyalps/src/pyalps/pyalps_config.py.in index 599df9a7f..150ef0f5e 100644 --- a/lib/pyalps/pyalps_config.py.in +++ b/bindings/python/pyalps/src/pyalps/pyalps_config.py.in @@ -1,2 +1,2 @@ ALPS_XML_INSTALL_DIR="@CMAKE_INSTALL_PREFIX@/lib/xml" -ALPS_BIN_INSTALL_DIR="@CMAKE_INSTALL_PREFIX@/bin" \ No newline at end of file +ALPS_BIN_INSTALL_DIR="@CMAKE_INSTALL_PREFIX@/bin" diff --git a/lib/pyalps/pytools.py b/bindings/python/pyalps/src/pyalps/pytools.py similarity index 100% rename from lib/pyalps/pytools.py rename to bindings/python/pyalps/src/pyalps/pytools.py diff --git a/lib/pyalps/tools.py b/bindings/python/pyalps/src/pyalps/tools.py similarity index 100% rename from lib/pyalps/tools.py rename to bindings/python/pyalps/src/pyalps/tools.py diff --git a/lib/pyalps/CMakeLists.txt b/lib/pyalps/CMakeLists.txt deleted file mode 100644 index 2e4672079..000000000 --- a/lib/pyalps/CMakeLists.txt +++ /dev/null @@ -1,157 +0,0 @@ -# Copyright Matthias Troyer 2009 - 2010. -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the “Software”), -# to deal in the Software without restriction, including without limitation -# the rights to use, copy, modify, merge, publish, distribute, sublicense, -# and/or sell copies of the Software, and to permit persons to whom the -# Software is furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included -# in all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. - -# -# python exports -# - -set(ALPS_SHARED_CPPFLAGS PYALPS_EXPORTS=1) -set(ALPS_STATIC_CPPFLAGS "") - -if (ALPS_HAVE_PYTHON AND NOT ALPS_BUILD_LIBS_ONLY) - - set(OLD_SHARED ${BUILD_SHARED_LIBS}) - set(BUILD_SHARED_LIBS ON) - set(PYALEA_SOURCES ../../src/alps/python/pyalea.cpp ) - set(PYMCDATA_SOURCES ../../src/alps/python/pymcdata.cpp ) - set(PYTOOLS_SOURCES ../../src/alps/python/pytools.cpp) - - set(PYALPS_SOURCES pyalea_c pymcdata_c pytools_c pyngsparams_c pyngshdf5_c pyngsbase_c - pyngsobservable_c pyngsobservables_c pyngsresult_c pyngsresults_c pyngsapi_c pyngsrandom01_c - ) - - if(ALPS_NGS_USE_NEW_ALEA) - list(APPEND PYALPS_SOURCES pyngsaccumulator_c) - endif(ALPS_NGS_USE_NEW_ALEA) - - set (MAXENT_SOURCES ../../tool/maxent.cpp ../../tool/maxent_helper.cpp - ../../tool/maxent_simulation.cpp ../../tool/maxent_parms.cpp) - - set (CTHYB_SOURCES ../../applications/dmft/qmc/hybridization/hybmain.cpp - ../../applications/dmft/qmc/hybridization/hybsim.cpp - ../../applications/dmft/qmc/hybridization/hyblocal.cpp - ../../applications/dmft/qmc/hybridization/hybint.cpp - ../../applications/dmft/qmc/hybridization/hybfun.cpp - ../../applications/dmft/qmc/hybridization/hybretintfun.cpp - ../../applications/dmft/qmc/hybridization/hybmatrix.cpp - ../../applications/dmft/qmc/hybridization/hybmatrix_ft.cpp - ../../applications/dmft/qmc/hybridization/hybconfig.cpp - ../../applications/dmft/qmc/hybridization/hybupdates.cpp - ../../applications/dmft/qmc/hybridization/hybevaluate.cpp - ../../applications/dmft/qmc/hybridization/hybmeasurements.cpp) - set (CTINT_SOURCES ../../applications/dmft/qmc/interaction_expansion2/main.cpp - ../../applications/dmft/qmc/fouriertransform.C - ../../applications/dmft/qmc/interaction_expansion2/auxiliary.cpp - ../../applications/dmft/qmc/interaction_expansion2/observables.cpp - ../../applications/dmft/qmc/interaction_expansion2/fastupdate.cpp - ../../applications/dmft/qmc/interaction_expansion2/selfenergy.cpp - ../../applications/dmft/qmc/interaction_expansion2/solver.cpp - ../../applications/dmft/qmc/interaction_expansion2/io.cpp - ../../applications/dmft/qmc/interaction_expansion2/splines.cpp - ../../applications/dmft/qmc/interaction_expansion2/interaction_expansion.cpp - ../../applications/dmft/qmc/interaction_expansion2/measurements.cpp - ../../applications/dmft/qmc/interaction_expansion2/model.cpp) - - set(PYNGSPARAMS_SOURCES ../../src/alps/ngs/python/params.cpp) - set(PYNGSHDF5_SOURCES ../../src/alps/ngs/python/hdf5.cpp) - set(PYNGSBASE_SOURCES ../../src/alps/ngs/python/mcbase.cpp) - set(PYNGSOBSERVABLE_SOURCES ../../src/alps/ngs/python/observable.cpp) - set(PYNGSOBSERVABLES_SOURCES ../../src/alps/ngs/python/observables.cpp) - set(PYNGSRESULT_SOURCES ../../src/alps/ngs/python/result.cpp) - set(PYNGSRESULTS_SOURCES ../../src/alps/ngs/python/results.cpp) - set(PYNGSAPI_SOURCES ../../src/alps/ngs/python/api.cpp) - set(PYNGSRANDOM01_SOURCES ../../src/alps/ngs/python/random01.cpp) - set(PYNGSACCUMULATOR_SOURCES ../../src/alps/ngs/python/accumulator.cpp) - - if(LAPACK_FOUND AND ALPS_BUILD_APPLICATIONS) - set(PYALPS_SOURCES ${PYALPS_SOURCES} maxent_c dwa_c cthyb ctint) - python_add_module(maxent_c ${MAXENT_SOURCES}) - python_add_module(cthyb ${CTHYB_SOURCES}) - python_add_module(ctint ${CTINT_SOURCES}) - python_add_module(dwa_c ../../applications/qmc/dwa/python/dwa.cpp) - include_directories(../../applications/qmc/dwa) - include_directories(../../applications/dmft/qmc) - set_target_properties(maxent_c PROPERTIES COMPILE_FLAGS "-DBUILD_PYTHON_MODULE") - set_target_properties(cthyb PROPERTIES COMPILE_FLAGS "-DBUILD_PYTHON_MODULE") - set_target_properties(ctint PROPERTIES COMPILE_FLAGS "-DBUILD_PYTHON_MODULE") - endif(LAPACK_FOUND AND ALPS_BUILD_APPLICATIONS) - - python_add_module(pyalea_c ${PYALEA_SOURCES}) - python_add_module(pymcdata_c ${PYMCDATA_SOURCES}) - python_add_module(pytools_c ${PYTOOLS_SOURCES}) - python_add_module(pyngsparams_c ${PYNGSPARAMS_SOURCES}) - python_add_module(pyngshdf5_c ${PYNGSHDF5_SOURCES}) - python_add_module(pyngsbase_c ${PYNGSBASE_SOURCES}) - python_add_module(pyngsobservable_c ${PYNGSOBSERVABLE_SOURCES}) - python_add_module(pyngsobservables_c ${PYNGSOBSERVABLES_SOURCES}) - python_add_module(pyngsresult_c ${PYNGSRESULT_SOURCES}) - python_add_module(pyngsresults_c ${PYNGSRESULTS_SOURCES}) - python_add_module(pyngsapi_c ${PYNGSAPI_SOURCES}) - python_add_module(pyngsrandom01_c ${PYNGSRANDOM01_SOURCES}) - - if(ALPS_NGS_USE_NEW_ALEA) - python_add_module(pyngsaccumulator_c ${PYNGSACCUMULATOR_SOURCES}) - endif(ALPS_NGS_USE_NEW_ALEA) - - - - FOREACH (name ${PYALPS_SOURCES}) - if(BUILD_SHARED_LIBS) - set_target_properties(${name} PROPERTIES COMPILE_DEFINITIONS "${ALPS_SHARED_CPPFLAGS}") - set_target_properties(${name} PROPERTIES PREFIX "") - if(WIN32 AND NOT UNIX) - set_target_properties(${name} PROPERTIES SUFFIX ".pyd") - endif(WIN32 AND NOT UNIX) - endif(BUILD_SHARED_LIBS) - target_link_libraries(${name} ${LINK_LIBRARIES} ${BLAS_LIBRARY} ${LAPACK_LIBRARY} ${LAPACK_LINKER_FLAGS}) - if(ALPS_PYTHON_WHEEL) - target_link_libraries(${name} alps_python) - if(APPLE) - set_target_properties(${name} PROPERTIES INSTALL_RPATH "@loader_path/lib" ) - else(APPLE) - set_target_properties(${name} PROPERTIES INSTALL_RPATH "$ORIGIN/lib" ) - endif(APPLE) - else() - target_link_libraries(${name} alps) - if(APPLE) - set_target_properties(${name} PROPERTIES INSTALL_RPATH "@loader_path/../../.." ) - else(APPLE) - set_target_properties(${name} PROPERTIES INSTALL_RPATH "$ORIGIN/../../.." ) - endif(APPLE) - endif() - ENDFOREACH(name) - - ####################################################################### - # install - ####################################################################### - if(NOT ALPS_PYTHON_WHEEL) - install(TARGETS ${PYALPS_SOURCES} - COMPONENT python - RUNTIME DESTINATION ${ALPS_PYTHON_LIB_DEST_ROOT}/pyalps/bin - ARCHIVE DESTINATION ${ALPS_PYTHON_LIB_DEST_ROOT}/pyalps - LIBRARY DESTINATION ${ALPS_PYTHON_LIB_DEST_ROOT}/pyalps) - else(NOT ALPS_PYTHON_WHEEL) - install(TARGETS ${PYALPS_SOURCES} - COMPONENT python - RUNTIME DESTINATION pyalps/bin - ARCHIVE DESTINATION pyalps - LIBRARY DESTINATION pyalps) - endif(NOT ALPS_PYTHON_WHEEL) - set(BUILD_SHARED_LIBS ${OLD_SHARED}) -endif (ALPS_HAVE_PYTHON AND NOT ALPS_BUILD_LIBS_ONLY) diff --git a/pyproject.toml b/pyproject.toml index 17faed7e6..c8a0571c1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,85 +1,23 @@ [build-system] -requires = ["scikit-build-core", "numpy", "scipy"] +requires = ["scikit-build-core>=0.10", "nanobind>=2.10"] build-backend = "scikit_build_core.build" -[tool.scikit-build] -wheel.packages = ["python/pyalps"] -build.verbose = true -#build-dir = "./build_alps" -#build.tool-args = ["-j8", "-l13"] -logging.level = "DEBUG" - -[tool.scikit-build.cmake.define] -Boost_SRC_DIR = {env="Boost_SRC_DIR"} -CMAKE_CXX_FLAGS = "-fPIC -fpermissive -DBOOST_NO_AUTO_PTR -DBOOST_FILESYSTEM_NO_CXX20_ATOMIC_REF -DBOOST_TIMER_ENABLE_DEPRECATED" -CMAKE_C_FLAGS = "-fPIC" -ALPS_PYTHON_WHEEL = "ON" -ALPS_BUILD_FORTRAN = "ON" - -[[tool.scikit-build.overrides]] -if.platform-system = "^darwin" -cmake.define.CMAKE_CXX_FLAGS = "-fPIC -stdlib=libc++ -fpermissive -DBOOST_NO_AUTO_PTR -DBOOST_FILESYSTEM_NO_CXX20_ATOMIC_REF -DBOOST_TIMER_ENABLE_DEPRECATED" -cmake.define.Boost_SRC_DIR = {env="Boost_SRC_DIR"} -cmake.define.ALPS_BUILD_FORTRAN = "ON" -cmake.define.CMAKE_C_FLAGS = "-fPIC" -cmake.define.ALPS_PYTHON_WHEEL = "ON" - [project] name = "pyalps" version = "2.3.4b1" -authors = [ - { name="Sergei Iskakov", email="siskakov@umich.edu" }, - { name="Fei Lin", email="feilin.physics@gmail.com" } -] -license = {text = "MIT License"} - -dependencies = ["numpy", "scipy"] - description = "Python Applications and Libraries for Physics Simulations" -readme = "README-py.md" +readme = "bindings/python/pyalps/README.md" requires-python = ">=3.9" -classifiers = [ - "Development Status :: 5 - Production/Stable", - 'Intended Audience :: Science/Research', - 'Intended Audience :: Developers', - 'Programming Language :: C++', - 'Programming Language :: Python', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.9', - 'Programming Language :: Python :: 3.10', - 'Programming Language :: Python :: 3.11', - 'Programming Language :: Python :: 3.12', - 'Programming Language :: Python :: 3.13', - 'Programming Language :: Python :: 3 :: Only', - 'Programming Language :: Python :: Implementation :: CPython', - "Operating System :: POSIX", - "Operating System :: Unix", - "Operating System :: MacOS", -] - -[project.urls] -Homepage = "https://alps.comp-phys.com" -Issues = "https://github.com/ALPSim/ALPS/issues" +license = "MIT" +dependencies = ["numpy", "scipy"] +[tool.scikit-build] +cmake.source-dir = "bindings/python/pyalps" +wheel.packages = ["bindings/python/pyalps/src/pyalps"] +build.verbose = true -[project.optional-dependencies] -tests = [ - 'coverage>=5.0.3', - 'pytest', - 'pytest-benchmark[histogram]>=3.2.1', -] +[tool.scikit-build.cmake.define] +ALPS_DIR = { env = "ALPS_DIR" } [tool.cibuildwheel] -skip = ["*-musllinux*"] -test-requires = "pytest" -test-command = "pytest {project}/test" manylinux-x86_64-image = "manylinux_2_28" - -[tool.cibuildwheel.linux] -before-all = "dnf install -y epel-release; dnf config-manager --set-enabled powertools; dnf install -y fftw-devel hdf5-devel openblas-devel wget; pipx install patchelf==0.14.5.0 --force" -#before-build="" -test-command = "pytest {project}/test/pyalps" - -[tool.cibuildwheel.macos] -before-all = "brew reinstall hdf5 fftw gfortran" -test-command = "pytest {project}/test/pyalps" diff --git a/src/alps/CMakeLists.txt b/src/alps/CMakeLists.txt index 9c495dc88..462986ae3 100644 --- a/src/alps/CMakeLists.txt +++ b/src/alps/CMakeLists.txt @@ -22,7 +22,6 @@ # set(ALPS_SOURCES "") -set(ALPS_PYTHON_SOURCES "") set(ALPS_SHARED_CPPFLAGS ALPS_EXPORTS=1) set(ALPS_STATIC_CPPFLAGS "") @@ -74,10 +73,6 @@ set(ALPS_SOURCES set(ALPS_SOURCES ${ALPS_SOURCES} osiris/xdr.c osiris/xdr_array.c osiris/xdr_float.c osiris/xdr_stdio.c) endif (NOT ALPS_HAVE_RPC_XDR_H) - if (ALPS_BUILD_PYTHON) - set(ALPS_PYTHON_SOURCES ${ALPS_PYTHON_SOURCES} ngs/lib/get_numpy_type.cpp hdf5/python.cpp python/numpy_array.cpp) - endif (ALPS_BUILD_PYTHON) - # OpenMPI ULFM if (ALPS_NGS_OPENMPI_ULFM) set(ALPS_SOURCES ${ALPS_SOURCES} ngs/lib/ulfm.cpp) @@ -100,34 +95,12 @@ set(ALPS_SOURCES ${ALPS_SOURCES} ngs/lib/clone.cpp ngs/lib/clone_info.cpp ngs/lib/job.cpp ngs/lib/parapack.cpp ngs/lib/worker_factory.cpp ) -if(ALPS_HAVE_PYTHON) - if(ALPS_PYTHON_WHEEL) - set(ALPS_PYTHON_SOURCES ${ALPS_PYTHON_SOURCES} ${ALPS_SOURCES}) - add_library(alps_python ${ALPS_PYTHON_SOURCES}) - target_compile_definitions(alps_python PRIVATE ALPS_HAVE_PYTHON) - get_target_property(XXX alps_python COMPILE_DEFINITIONS) - message(STATUS "ALPS_PYTHON: ${XXX}") - if(ALPS_HAVE_BOOST_NUMPY) - target_compile_definitions(alps_python INTERFACE ALPS_HAVE_BOOST_NUMPY) - endif() - else() - set(ALPS_SOURCES ${ALPS_PYTHON_SOURCES} ${ALPS_SOURCES}) - endif() -endif() - add_library(alps ${ALPS_SOURCES}) find_package(HDF5) if (Boost_FOUND) # link to ${Boost_LIBRARIES} when precompiled Boost libraries found set(ALPS_LINK_LIBS ${Boost_LIBRARIES} ${HDF5_LIBRARIES}) # ${SZIP_LIBRARIES}) - if(PYTHONLIBS_FOUND) - if(ALPS_PYTHON_WHEEL AND PYTHON_VERSION VERSION_GREATER_EQUAL "3.13" AND APPLE) - set(ALPS_LINK_LIBS ${ALPS_LINK_LIBS} ${PYTHON_LIBRARY}) # ${PYTHON_EXTRA_LIBS}) - else(ALPS_PYTHON_WHEEL AND PYTHON_VERSION VERSION_GREATER_EQUAL "3.13" AND APPLE) - set(ALPS_LINK_LIBS ${ALPS_LINK_LIBS} ${PYTHON_LIBRARY} ${PYTHON_EXTRA_LIBS}) - endif(ALPS_PYTHON_WHEEL AND PYTHON_VERSION VERSION_GREATER_EQUAL "3.13" AND APPLE) - endif(PYTHONLIBS_FOUND) if(MPI_FOUND) set(ALPS_LINK_LIBS ${ALPS_LINK_LIBS} ${MPI_LIBRARIES}) if(MPI_EXTRA_LIBRARY) @@ -138,13 +111,6 @@ if (Boost_FOUND) else (Boost_FOUND) # "boost" target available when Boost libraries are built from source target_link_libraries(alps ${ALPS_BOOST_LIBRARY_NAME} ${HDF5_LIBRARIES}) # ${SZIP_LIBRARIES}) - if(ALPS_HAVE_PYTHON) - if(ALPS_PYTHON_WHEEL) - target_link_libraries(alps_python ${ALPS_BOOST_LIBRARY_NAME} ${ALPS_BOOST_PYTHON_LIBRARY_NAME} ${HDF5_LIBRARIES}) # ${SZIP_LIBRARIES}) - else() - target_link_libraries(alps ${ALPS_BOOST_PYTHON_LIBRARY_NAME}) # ${SZIP_LIBRARIES}) - endif() - endif() endif (Boost_FOUND) if(BUILD_SHARED_LIBS) @@ -156,25 +122,8 @@ if(BUILD_SHARED_LIBS) endif(HDF5_DEFINITIONS) set_target_properties(alps PROPERTIES COMPILE_DEFINITIONS "${ALPS_SHARED_CPPFLAGS}") - if(ALPS_HAVE_PYTHON) - if(ALPS_PYTHON_WHEEL) - set_target_properties(alps_python PROPERTIES COMPILE_DEFINITIONS "${ALPS_SHARED_CPPFLAGS}") - target_compile_definitions(alps_python PUBLIC ALPS_HAVE_PYTHON) - if(ALPS_HAVE_BOOST_NUMPY) - target_compile_definitions(alps_python PUBLIC ALPS_HAVE_BOOST_NUMPY) - endif() - else(ALPS_PYTHON_WHEEL) - target_compile_definitions(alps PUBLIC ALPS_HAVE_PYTHON) - if(ALPS_HAVE_BOOST_NUMPY) - target_compile_definitions(alps PUBLIC ALPS_HAVE_BOOST_NUMPY) - endif() - endif(ALPS_PYTHON_WHEEL) - endif() else(BUILD_SHARED_LIBS) set_target_properties(alps PROPERTIES COMPILE_DEFINITIONS "${ALPS_STATIC_CPPFLAGS}") - if(ALPS_HAVE_PYTHON) - set_target_properties(alps_python PROPERTIES COMPILE_DEFINITIONS "${ALPS_STATIC_CPPFLAGS}") - endif() endif(BUILD_SHARED_LIBS) @@ -185,12 +134,12 @@ if(MSVC) endif(MSVC) # Set soversion for library -if(NOT WIN32 AND NOT APPLE AND NOT ALPS_PYTHON_WHEEL) +if(NOT WIN32 AND NOT APPLE) set_target_properties(alps PROPERTIES SOVERSION "${ALPS_VERSION_MAJOR}" VERSION "${ALPS_VERSION_MAJOR}.${ALPS_VERSION_MINOR}.${ALPS_VERSION_PATCH}" ) -endif(NOT WIN32 AND NOT APPLE AND NOT ALPS_PYTHON_WHEEL) +endif(NOT WIN32 AND NOT APPLE) #boost librt linking @@ -207,7 +156,6 @@ endif() ####################################################################### # install ####################################################################### -if(NOT ALPS_PYTHON_WHEEL) install(TARGETS alps COMPONENT libraries ARCHIVE DESTINATION lib LIBRARY DESTINATION lib @@ -219,13 +167,3 @@ if(ALPS_BUILD_FORTRAN) LIBRARY DESTINATION lib RUNTIME DESTINATION bin) endif(ALPS_BUILD_FORTRAN) -else () - install(TARGETS alps_python COMPONENT libraries - ARCHIVE DESTINATION pyalps/lib - LIBRARY DESTINATION pyalps/lib - RUNTIME DESTINATION pyalps/bin) - install(TARGETS alps COMPONENT libraries - ARCHIVE DESTINATION pyalps/lib - LIBRARY DESTINATION pyalps/lib - RUNTIME DESTINATION pyalps/bin) -endif() diff --git a/src/alps/alea/mcanalyze.hpp b/src/alps/alea/mcanalyze.hpp index e5a36c30a..c8894eac8 100644 --- a/src/alps/alea/mcanalyze.hpp +++ b/src/alps/alea/mcanalyze.hpp @@ -341,7 +341,7 @@ typename average_type< typename TimeseriesType::value_type >::type mean(const Ti for (typename const_iterator_type::type iter = range_begin(timeseries); iter != range_end(timeseries); ++iter) OUT = OUT + *iter; - return OUT / double(size(timeseries)); + return OUT / double(alps::size(timeseries)); } @@ -355,7 +355,7 @@ typename average_type< typename TimeseriesType::value_type >::type variance(cons using std::pow; using alps::numeric::pow; - if (size(timeseries) < 2) boost::throw_exception(NotEnoughMeasurementsError()); + if (alps::size(timeseries) < 2) boost::throw_exception(NotEnoughMeasurementsError()); return_type _mean = mean(timeseries); return_type OUT; @@ -366,7 +366,7 @@ typename average_type< typename TimeseriesType::value_type >::type variance(cons OUT = OUT + pow(*iter-_mean, 2.); } - return OUT / double(size(timeseries) - 1); + return OUT / double(alps::size(timeseries) - 1); } @@ -380,7 +380,7 @@ mctimeseries< typename average_type< typename TimeseriesType::value_type >::type using boost::numeric::operators::operator/; using boost::numeric::operators::operator+; - std::size_t _size = size(timeseries); + std::size_t _size = alps::size(timeseries); average_type _mean = alps::alea::mean(timeseries); average_type _variance = alps::alea::variance(timeseries); mctimeseries< average_type > OUT; @@ -412,7 +412,7 @@ mctimeseries< typename average_type< typename TimeseriesType::value_type >::type using boost::numeric::operators::operator/; using boost::numeric::operators::operator+; - std::size_t _size = size(timeseries); + std::size_t _size = alps::size(timeseries); average_type _mean = mean(timeseries); average_type _variance = variance(timeseries); mctimeseries< average_type > OUT; @@ -511,7 +511,7 @@ typename average_type< typename TimeseriesType::value_type >::type error (const using alps::numeric::sqrt; using boost::numeric::operators::operator/; - return sqrt( variance(timeseries) / double(size(timeseries)) ); + return sqrt( variance(timeseries) / double(alps::size(timeseries)) ); } @@ -547,7 +547,7 @@ mctimeseries< typename average_type::type > using boost::numeric::operators::operator/; return_type _running_mean; - _running_mean.resize(size(timeseries) ); + _running_mean.resize(alps::size(timeseries) ); std::partial_sum(range_begin(timeseries), range_end(timeseries), _running_mean.begin(), alps::numeric::plus() ); @@ -565,13 +565,13 @@ mctimeseries< typename average_type::type > using boost::numeric::operators::operator/; mctimeseries _reverse_running_mean; - _reverse_running_mean.resize(size(timeseries) ); + _reverse_running_mean.resize(alps::size(timeseries) ); std::partial_sum(static_cast ::type> > (range_end(timeseries)), static_cast ::type> > (range_begin(timeseries)), static_cast ::type> > (_reverse_running_mean.end() ), alps::numeric::plus() ); - std::size_t count = size(timeseries); + std::size_t count = alps::size(timeseries); for (typename iterator_type::type iter = _reverse_running_mean.begin(); iter != _reverse_running_mean.end(); ++iter) *iter = *iter / count--; @@ -661,4 +661,3 @@ ALPS_MCANALYZE_IMPLEMENT_OSTREAM(mctimeseries_view) #endif - diff --git a/src/alps/ngs/numeric/vector.hpp b/src/alps/ngs/numeric/vector.hpp index 3fc6675a8..b55da395a 100644 --- a/src/alps/ngs/numeric/vector.hpp +++ b/src/alps/ngs/numeric/vector.hpp @@ -95,36 +95,12 @@ namespace alps { using boost::numeric::operators::operator+; return lhs + rhs; } - //------------------- operator + with scalar ------------------- - template - std::vector operator + (std::vector arg, T const & scalar) { - std::transform(arg.begin(), arg.end(), arg.begin(), boost::lambda::_1 + scalar); - return arg; - } - template - std::vector operator + (T const & scalar, std::vector arg) { - std::transform(arg.begin(), arg.end(), arg.begin(), scalar + boost::lambda::_1); - return arg; - } - //------------------- operator - ------------------- template std::vector operator - (std::vector const & lhs, std::vector const & rhs) { using boost::numeric::operators::operator-; return lhs - rhs; } - //------------------- operator + with scalar ------------------- - template - std::vector operator - (std::vector arg, T const & scalar) { - std::transform(arg.begin(), arg.end(), arg.begin(), boost::lambda::_1 + scalar); - return arg; - } - template - std::vector operator - (T const & scalar, std::vector arg) { - std::transform(arg.begin(), arg.end(), arg.begin(), scalar + boost::lambda::_1); - return arg; - } - //------------------- operator * vector-vector------------------- template std::vector operator * (std::vector const & lhs, std::vector const & rhs) { @@ -141,12 +117,14 @@ namespace alps { //------------------- operator + with scalar ------------------- template std::vector operator + (T const & scalar, std::vector lhs) { - std::transform(lhs.begin(), lhs.end(), lhs.begin(), bind1st(std::plus(), scalar)); + std::transform(lhs.begin(), lhs.end(), lhs.begin(), + [scalar](T const & value) { return scalar + value; }); return lhs; } template std::vector operator + (std::vector lhs, T const & scalar) { - std::transform(lhs.begin(), lhs.end(), lhs.begin(), bind2nd(std::plus(), scalar)); + std::transform(lhs.begin(), lhs.end(), lhs.begin(), + [scalar](T const & value) { return value + scalar; }); return lhs; } diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index bc1c49038..177b33c49 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -16,7 +16,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # DEALINGS IN THE SOFTWARE. -if(NOT ALPS_PYTHON_WHEEL AND NOT ALPS_BUILD_LIBS_ONLY) +if(NOT ALPS_BUILD_LIBS_ONLY) add_subdirectory(accumulator) add_subdirectory(alea) add_subdirectory(fixed_capacity) @@ -30,7 +30,6 @@ add_subdirectory(osiris) add_subdirectory(parameter) add_subdirectory(parapack) add_subdirectory(parser) -add_subdirectory(pyalps) add_subdirectory(random) add_subdirectory(utility) -endif() \ No newline at end of file +endif() diff --git a/test/pyalps/test_binding_surface.py b/test/pyalps/test_binding_surface.py new file mode 100644 index 000000000..fd62e4063 --- /dev/null +++ b/test/pyalps/test_binding_surface.py @@ -0,0 +1,152 @@ +#!/usr/bin/env python3 +# Copyright (C) 2026 by the ALPS collaboration +# SPDX-License-Identifier: MIT + +"""Lock the public pyalps extension surface after the nanobind migration.""" + +from __future__ import annotations + +import copy +import importlib +import os +import tempfile + +import numpy as np + + +def test_extension_import_surface(): + import pyalps + import pyalps.cxx as cxx + + expected = { + "pyalea_c", + "pymcdata_c", + "pytools_c", + "pyngsparams_c", + "pyngshdf5_c", + "pyngsbase_c", + "pyngsobservable_c", + "pyngsobservables_c", + "pyngsresult_c", + "pyngsresults_c", + "pyngsapi_c", + "pyngsrandom01_c", + "pyngsaccumulator_c", + } + assert pyalps is not None + assert expected <= set(vars(cxx)) + + +def test_cross_module_parameter_archive_and_rng_roundtrip(): + from pyalps.cxx import pyngshdf5_c, pyngsparams_c, pyngsrandom01_c + + with tempfile.TemporaryDirectory() as directory: + path = os.path.join(directory, "surface.h5") + params = pyngsparams_c.params() + params["integer"] = 42 + params["real"] = 3.25 + params["flag"] = True + params["text"] = "nanobind-lock" + + rng = pyngsrandom01_c.random01(91) + for _ in range(7): + rng() + + archive = pyngshdf5_c.hdf5_archive_impl(path, "w") + archive.create_group("/parameters") + archive.set_context("/parameters") + params.save(archive) + archive.set_context("/") + rng.save(archive) + del archive + + loaded = pyngsparams_c.params() + restored_rng = pyngsrandom01_c.random01(0) + archive = pyngshdf5_c.hdf5_archive_impl(path, "r") + archive.set_context("/parameters") + loaded.load(archive) + archive.set_context("/") + restored_rng.load(archive) + del archive + + assert sorted(loaded) == sorted(params) + assert int(loaded["integer"]) == 42 + assert float(loaded["real"]) == 3.25 + assert bool(loaded["flag"]) is True + assert str(loaded["text"]) == "nanobind-lock" + assert [rng() for _ in range(5)] == [restored_rng() for _ in range(5)] + + +def test_alea_numpy_and_mcdata_operators(): + from pyalps.cxx.pyalea_c import MCScalarTimeseries, RealObservable, mean, size + from pyalps.cxx.pymcdata_c import MCScalarData + + observable = RealObservable("energy") + for sample in (0.9, 1.0, 1.1, 1.0): + observable << sample + assert observable.count == 4 + assert abs(observable.mean - 1.0) < 1e-12 + assert observable.error >= 0 + + series = MCScalarTimeseries(np.asarray([1.0, 2.0, 3.0])) + assert size(series) == 3 + assert mean(series) == 2.0 + np.testing.assert_allclose(series.timeseries(), [1.0, 2.0, 3.0]) + + first = MCScalarData(1.0, 0.1) + second = MCScalarData(2.0, 0.2) + total = first + second + assert total.mean == 3.0 + assert total.error > 0 + duplicate = copy.deepcopy(total) + assert duplicate.mean == total.mean + assert duplicate.error == total.error + + +def test_ngs_observable_containers(): + from pyalps import ngs + + observables = ngs.observables() + observables.createRealObservable("magnetization") + observables["magnetization"] << 1.5 + assert "magnetization" in observables + assert ngs.observable2result(observables["magnetization"]).count == 1 + + +def test_name_encoding_roundtrip(): + from pyalps.cxx.pytools_c import hdf5_name_decode, hdf5_name_encode + + for value in ("plain", "with space", "slash/inside", "café"): + assert hdf5_name_decode(hdf5_name_encode(value)) == value + + +def test_accumulator_surface(): + from pyalps.cxx.pyngsaccumulator_c import error_accumulator + + accumulator = error_accumulator() + for sample in (1.0, 2.0, 3.0): + accumulator(sample) + result = accumulator.result() + assert result.count() == 3 + assert result.mean() == 2.0 + assert result.error() >= 0 + + +def test_optional_application_extension_surface(): + for name in ("maxent_c", "dwa_c", "cthyb", "ctint"): + module = importlib.import_module("pyalps._ext." + name) + assert module.__name__.endswith(name) + + +if __name__ == "__main__": + for test in ( + test_extension_import_surface, + test_cross_module_parameter_archive_and_rng_roundtrip, + test_alea_numpy_and_mcdata_operators, + test_ngs_observable_containers, + test_name_encoding_roundtrip, + test_accumulator_surface, + test_optional_application_extension_surface, + ): + test() + print("pyalps binding surface: green") diff --git a/tool/maxent.cpp b/tool/maxent.cpp index eb43d8d96..b3aaa6af2 100644 --- a/tool/maxent.cpp +++ b/tool/maxent.cpp @@ -59,11 +59,11 @@ bool stop_callback(boost::posix_time::ptime const & end_time) { #ifdef BUILD_PYTHON_MODULE -//compile it as a python module (requires boost::python library) -using namespace boost::python; +#include "dict_to_params.hpp" +namespace nb = nanobind; -void run_it(boost::python::dict parms_){ - alps::parameters_type::type parms(parms_); +void run_it(nb::dict const & parms_){ + alps::parameters_type::type parms = pyalps::params_from_dict(parms_); std::string out_file = boost::lexical_cast(parms["BASENAME"]|"results")+std::string(".out.h5"); #else @@ -104,9 +104,7 @@ void run_it(boost::python::dict parms_){ } #ifdef BUILD_PYTHON_MODULE - BOOST_PYTHON_MODULE(maxent_c) - { - def("AnalyticContinuation",run_it);//define python-callable run method - }; + NB_MODULE(maxent_c, m) { + m.def("AnalyticContinuation", run_it); + } #endif - diff --git a/tutorials/CMakeLists.txt b/tutorials/CMakeLists.txt index d88dc6974..bc38361a8 100644 --- a/tutorials/CMakeLists.txt +++ b/tutorials/CMakeLists.txt @@ -17,7 +17,7 @@ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # DEALINGS IN THE SOFTWARE. -if(NOT ALPS_PYTHON_WHEEL AND NOT ALPS_BUILD_LIBS_ONLY) +if(NOT ALPS_BUILD_LIBS_ONLY) install(DIRECTORY . DESTINATION tutorials COMPONENT tutorials FILES_MATCHING PATTERN "*.py" PATTERN "*.ipynb" PATTERN "*.sh" PATTERN "parm*" PATTERN "*params" PATTERN "*.ip" PATTERN "*.op" PATTERN "*.dat" PATTERN "*.parm" PATTERN "*.xml" PATTERN "*input*" PATTERN "*.pvsm" From ac886be8a283335902750dc8e1a070dffa92e1c1 Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Wed, 22 Jul 2026 13:20:31 -0500 Subject: [PATCH 10/51] build: retire legacy Python CMake paths --- .github/workflows/build_wheels.yml | 15 +- CMakeLists.txt | 1 - applications/diag/fulldiag/CMakeLists.txt | 11 - applications/diag/sparsediag/CMakeLists.txt | 9 - applications/dmft/qmc/CMakeLists.txt | 18 -- .../hybridization/Documentation/hybdoc.tex | 2 +- applications/dmrg/dmrg/CMakeLists.txt | 9 - applications/mc/simple/CMakeLists.txt | 11 +- applications/mc/spins/CMakeLists.txt | 11 - applications/qmc/checksign/CMakeLists.txt | 11 +- applications/qmc/dwa/CMakeLists.txt | 9 - applications/qmc/looper/CMakeLists.txt | 9 - applications/qmc/qwl/CMakeLists.txt | 13 +- applications/qmc/sse/CMakeLists.txt | 20 +- applications/qmc/sse4/CMakeLists.txt | 11 +- applications/qmc/worms/CMakeLists.txt | 15 +- bindings/python/pyalps/README.md | 1 + cmake/ALPSConfig.cmake.in | 11 - cmake/FindBoostForALPS.cmake | 87 ------ cmake/FindBoostSrc.cmake | 22 -- cmake/FindPythonMod.cmake | 275 ------------------ cmake/UseALPS.cmake | 9 - src/alps/config.h.in | 10 - src/boost/CMakeLists.txt | 101 +------ test/pyalps/CMakeLists.txt | 47 --- tool/CMakeLists.txt | 50 +--- .../code-07-mcmain-mcbase/CMakeLists.txt | 19 -- .../heisenberg/o_n_model/CMakeLists.txt | 20 -- 28 files changed, 28 insertions(+), 799 deletions(-) delete mode 100644 cmake/FindPythonMod.cmake delete mode 100644 test/pyalps/CMakeLists.txt diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 7b7fef3c3..fdf42bc3d 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -21,7 +21,6 @@ jobs: - { os: ubuntu-latest, target: "", arch: x86_64, homebrew: ''} #- { os: macos-13, target: "13.0" , arch: x86_64, homebrew: '/usr/local'} #DEPRECATED. Too old. - { os: macos-15, target: "15.0" , arch: arm64, homebrew: '/opt/homebrew'} - - { os: macos-26, target: "26.0" , arch: arm64, homebrew: '/opt/homebrew'} steps: - uses: actions/checkout@v7 @@ -45,7 +44,7 @@ jobs: CCACHE_NAMESPACE=pyalps-wheel CMAKE_ARGS="-DCMAKE_CXX_COMPILER_LAUNCHER=ccache" CIBW_BEFORE_ALL_LINUX: > - dnf install -y ccache cmake hdf5-devel openmpi-devel lapack-devel ninja-build && + dnf install -y ccache cmake hdf5-devel lapack-devel ninja-build && cmake -S {project} -B {project}/_build/cibw-alps -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX={project}/_build/cibw-install @@ -53,10 +52,11 @@ jobs: -DALPS_BUILD_LIBS_ONLY=ON -DALPS_BUILD_TESTS=OFF -DALPS_BUILD_EXAMPLES=OFF - -DALPS_BUILD_APPLICATIONS=OFF && + -DALPS_BUILD_APPLICATIONS=OFF + -DALPS_ENABLE_MPI=OFF && cmake --build {project}/_build/cibw-alps --target install -j2 CIBW_BEFORE_ALL_MACOS: > - brew install ccache cmake hdf5 open-mpi ninja && + brew install ccache cmake hdf5 ninja && cmake -S {project} -B {project}/_build/cibw-alps -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX={project}/_build/cibw-install @@ -65,6 +65,7 @@ jobs: -DALPS_BUILD_TESTS=OFF -DALPS_BUILD_EXAMPLES=OFF -DALPS_BUILD_APPLICATIONS=OFF + -DALPS_ENABLE_MPI=OFF -DHDF5_ROOT=${{ matrix.plat.homebrew }}/opt/hdf5 && cmake --build {project}/_build/cibw-alps --target install -j2 CIBW_ENVIRONMENT_MACOS: > @@ -74,6 +75,12 @@ jobs: CMAKE_ARGS="-DCMAKE_CXX_COMPILER_LAUNCHER=ccache" MACOSX_DEPLOYMENT_TARGET=${{ matrix.plat.target }} CXXFLAGS="-stdlib=libc++" + CIBW_REPAIR_WHEEL_COMMAND_LINUX: > + auditwheel repair -w {dest_dir} {wheel} && + auditwheel show {dest_dir}/*.whl + CIBW_REPAIR_WHEEL_COMMAND_MACOS: > + delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel} && + delocate-listdeps --all {dest_dir}/*.whl CIBW_TEST_REQUIRES: pytest CIBW_TEST_COMMAND: pytest -q {project}/test/pyalps diff --git a/CMakeLists.txt b/CMakeLists.txt index bbd89d8db..58db4fb56 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -273,7 +273,6 @@ ENDIF(HDF5_IS_PARALLEL) # Python bindings are built by the standalone scikit-build-core project in # bindings/python/pyalps. The C++ SDK deliberately has no Python dependency. -set(BUILD_BOOST_PYTHON OFF) # Boost Libraries find_package(BoostForALPS REQUIRED) diff --git a/applications/diag/fulldiag/CMakeLists.txt b/applications/diag/fulldiag/CMakeLists.txt index aa48df42e..bd1e3785f 100644 --- a/applications/diag/fulldiag/CMakeLists.txt +++ b/applications/diag/fulldiag/CMakeLists.txt @@ -27,18 +27,7 @@ if(LAPACK_FOUND) add_executable(fulldiag_evaluate fulldiag_evaluate.C) target_link_libraries(fulldiag fulldiag_impl) target_link_libraries(fulldiag_evaluate fulldiag_impl) - if(ALPS_PYTHON_WHEEL) - if(APPLE) - set_target_properties(fulldiag PROPERTIES INSTALL_RPATH "@loader_path/../lib" ) - set_target_properties(fulldiag_evaluate PROPERTIES INSTALL_RPATH "@loader_path/../lib" ) - else(APPLE) - set_target_properties(fulldiag PROPERTIES INSTALL_RPATH "$ORIGIN/../lib" ) - set_target_properties(fulldiag_evaluate PROPERTIES INSTALL_RPATH "$ORIGIN/../lib" ) - endif(APPLE) - install(TARGETS fulldiag fulldiag_evaluate RUNTIME DESTINATION pyalps/bin COMPONENT applications) - else() install(TARGETS fulldiag fulldiag_evaluate RUNTIME DESTINATION bin COMPONENT applications) - endif() else(LAPACK_FOUND) message(STATUS "fulldiag will not be built since lapack library has not been found") endif(LAPACK_FOUND) diff --git a/applications/diag/sparsediag/CMakeLists.txt b/applications/diag/sparsediag/CMakeLists.txt index 71f251adc..d3fd8f28a 100644 --- a/applications/diag/sparsediag/CMakeLists.txt +++ b/applications/diag/sparsediag/CMakeLists.txt @@ -22,16 +22,7 @@ if(LAPACK_FOUND) set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${LAPACK_LINKER_FLAGS}") add_executable(sparsediag sparsediag.C factory.C) target_link_libraries(sparsediag alps ${LAPACK_LIBRARY} ${BLAS_LIBRARY}) - if(ALPS_PYTHON_WHEEL) - if(APPLE) - set_target_properties(sparsediag PROPERTIES INSTALL_RPATH "@loader_path/../lib" ) - else(APPLE) - set_target_properties(sparsediag PROPERTIES INSTALL_RPATH "$ORIGIN/../lib" ) - endif(APPLE) - install(TARGETS sparsediag RUNTIME DESTINATION pyalps/bin COMPONENT applications) - else() install(TARGETS sparsediag RUNTIME DESTINATION bin COMPONENT applications) - endif() else(LAPACK_FOUND) message(STATUS "sparsediag will not be built since lapack library is not found") endif(LAPACK_FOUND) diff --git a/applications/dmft/qmc/CMakeLists.txt b/applications/dmft/qmc/CMakeLists.txt index aa95cfe07..394bec0a4 100644 --- a/applications/dmft/qmc/CMakeLists.txt +++ b/applications/dmft/qmc/CMakeLists.txt @@ -115,29 +115,11 @@ if(LAPACK_FOUND) add_executable(dmft_interaction_expansion_choice dmft_interaction_expansion_choice.C) set_property(TARGET dmft_interaction_expansion_choice PROPERTY LABELS dmft) add_alps_test(dmft_interaction_expansion_choice) -if(ALPS_PYTHON_WHEEL) - if(APPLE) - set_target_properties(dmft PROPERTIES INSTALL_RPATH "@loader_path/../lib" ) - set_target_properties(hirschfye PROPERTIES INSTALL_RPATH "@loader_path/../lib" ) - set_target_properties(hybridization PROPERTIES INSTALL_RPATH "@loader_path/../lib" ) - set_target_properties(interaction PROPERTIES INSTALL_RPATH "@loader_path/../lib" ) - else(APPLE) - set_target_properties(dmft PROPERTIES INSTALL_RPATH "$ORIGIN/../lib" ) - set_target_properties(hirschfye PROPERTIES INSTALL_RPATH "$ORIGIN/../lib" ) - set_target_properties(hybridization PROPERTIES INSTALL_RPATH "$ORIGIN/../lib" ) - set_target_properties(interaction PROPERTIES INSTALL_RPATH "$ORIGIN/../lib" ) - endif(APPLE) - install(TARGETS dmft RUNTIME DESTINATION pyalps/bin COMPONENT applications) - install(TARGETS hirschfye RUNTIME DESTINATION pyalps/bin COMPONENT applications) - install(TARGETS hybridization RUNTIME DESTINATION pyalps/bin COMPONENT applications) - install(TARGETS interaction RUNTIME DESTINATION pyalps/bin COMPONENT applications) -else() install(TARGETS dmft RUNTIME DESTINATION bin COMPONENT applications) install(TARGETS hirschfye RUNTIME DESTINATION bin COMPONENT applications) install(TARGETS hybridization RUNTIME DESTINATION bin COMPONENT applications) install(TARGETS interaction RUNTIME DESTINATION bin COMPONENT applications) install(FILES hybridization/Documentation/hybdoc.pdf DESTINATION doc) -endif() else(LAPACK_FOUND) message(STATUS "dmft will not be built since the lapack library has not been found") endif(LAPACK_FOUND) diff --git a/applications/dmft/qmc/hybridization/Documentation/hybdoc.tex b/applications/dmft/qmc/hybridization/Documentation/hybdoc.tex index 3ac25a4af..701bc2012 100644 --- a/applications/dmft/qmc/hybridization/Documentation/hybdoc.tex +++ b/applications/dmft/qmc/hybridization/Documentation/hybdoc.tex @@ -141,7 +141,7 @@ \subsubsection{Running the solver} \subsection{Python interface} \label{pythoninterface} -If ALPS is built with Python support (parameter \verb#ALPS_BUILD_PYTHON=ON#), the solver is also built as a Python module. It can directly be called from within a Python script. This provides a flexible framework which allows one to easily set up tasks ranging from calculations for multiple parameters to complex selfconsistency schemes. +The standalone pyalps wheel includes the solver module when built with application bindings enabled (the default). It can directly be called from within a Python script. This provides a flexible framework which allows one to easily set up tasks ranging from calculations for multiple parameters to complex selfconsistency schemes. Basic usage of the Python interface is illustrated by the following script, which repeats the previous example for the standalone executable: \begin{verbatim} diff --git a/applications/dmrg/dmrg/CMakeLists.txt b/applications/dmrg/dmrg/CMakeLists.txt index 034689236..18115bcff 100644 --- a/applications/dmrg/dmrg/CMakeLists.txt +++ b/applications/dmrg/dmrg/CMakeLists.txt @@ -26,16 +26,7 @@ else(ALPS_LLVM_WORKAROUND) set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${LAPACK_LINKER_FLAGS}") add_executable(dmrg dmrg.C factory.C) target_link_libraries(dmrg alps ${LAPACK_LIBRARY} ${BLAS_LIBRARY}) -if(ALPS_PYTHON_WHEEL) - install(TARGETS dmrg RUNTIME DESTINATION pyalps/bin COMPONENT applications) - if(APPLE) - set_target_properties(dmrg PROPERTIES INSTALL_RPATH "@loader_path/../lib" ) - else(APPLE) - set_target_properties(dmrg PROPERTIES INSTALL_RPATH "$ORIGIN/../lib" ) - endif(APPLE) -else() install(TARGETS dmrg RUNTIME DESTINATION bin COMPONENT applications) -endif() endif(ALPS_LLVM_WORKAROUND) else(LAPACK_FOUND) message(STATUS "dmrg will not be built since lapack library is not found") diff --git a/applications/mc/simple/CMakeLists.txt b/applications/mc/simple/CMakeLists.txt index 05471ee89..3680f49ae 100644 --- a/applications/mc/simple/CMakeLists.txt +++ b/applications/mc/simple/CMakeLists.txt @@ -19,16 +19,7 @@ add_executable(simplemc main.C evaluator.C ising.C xy.C heisenberg.C) target_link_libraries(simplemc alps) -if(ALPS_PYTHON_WHEEL) - if(APPLE) - set_target_properties(simplemc PROPERTIES INSTALL_RPATH "@loader_path/../lib" ) - else(APPLE) - set_target_properties(simplemc PROPERTIES INSTALL_RPATH "$ORIGIN/../lib" ) - endif(APPLE) - install(TARGETS simplemc RUNTIME DESTINATION pyalps/bin COMPONENT applications) -else() - install(TARGETS simplemc RUNTIME DESTINATION bin COMPONENT applications) -endif() +install(TARGETS simplemc RUNTIME DESTINATION bin COMPONENT applications) enable_testing() add_alps_test(simplemc_ising simplemc ising ising) add_alps_test(simplemc_xy simplemc xy xy) diff --git a/applications/mc/spins/CMakeLists.txt b/applications/mc/spins/CMakeLists.txt index e89ff4364..dcfb6d807 100644 --- a/applications/mc/spins/CMakeLists.txt +++ b/applications/mc/spins/CMakeLists.txt @@ -26,18 +26,7 @@ if(LAPACK_FOUND) add_executable(spinmc_evaluate spinmc_evaluate.C) target_link_libraries(spinmc spinmc_impl) target_link_libraries(spinmc_evaluate spinmc_impl) - if(ALPS_PYTHON_WHEEL) - if(APPLE) - set_target_properties(spinmc PROPERTIES INSTALL_RPATH "@loader_path/../lib" ) - set_target_properties(spinmc_evaluate PROPERTIES INSTALL_RPATH "@loader_path/../lib" ) - else(APPLE) - set_target_properties(spinmc PROPERTIES INSTALL_RPATH "$ORIGIN/../lib" ) - set_target_properties(spinmc_evaluate PROPERTIES INSTALL_RPATH "$ORIGIN/../lib" ) - endif(APPLE) - install(TARGETS spinmc spinmc_evaluate RUNTIME DESTINATION pyalps/bin COMPONENT applications) - else() install(TARGETS spinmc spinmc_evaluate RUNTIME DESTINATION bin COMPONENT applications) - endif() else(LAPACK_FOUND) message(STATUS "spins will not be built since lapack library is not found") endif(LAPACK_FOUND) diff --git a/applications/qmc/checksign/CMakeLists.txt b/applications/qmc/checksign/CMakeLists.txt index 90511ce0e..7aef774f1 100644 --- a/applications/qmc/checksign/CMakeLists.txt +++ b/applications/qmc/checksign/CMakeLists.txt @@ -19,13 +19,4 @@ add_executable(checksign checksign.C) target_link_libraries(checksign alps) -if(ALPS_PYTHON_WHEEL) - if(APPLE) - set_target_properties(checksign PROPERTIES INSTALL_RPATH "@loader_path/../lib" ) - else(APPLE) - set_target_properties(checksign PROPERTIES INSTALL_RPATH "$ORIGIN/../lib" ) - endif(APPLE) - install(TARGETS checksign RUNTIME DESTINATION pyalps/bin COMPONENT applications) -else() - install(TARGETS checksign RUNTIME DESTINATION bin COMPONENT applications) -endif() \ No newline at end of file +install(TARGETS checksign RUNTIME DESTINATION bin COMPONENT applications) diff --git a/applications/qmc/dwa/CMakeLists.txt b/applications/qmc/dwa/CMakeLists.txt index 242f17f49..94c9cc1f5 100644 --- a/applications/qmc/dwa/CMakeLists.txt +++ b/applications/qmc/dwa/CMakeLists.txt @@ -22,16 +22,7 @@ if(LAPACK_FOUND) set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${LAPACK_LINKER_FLAGS}") add_executable(dwa dwa.cpp) target_link_libraries(dwa alps ${LAPACK_LIBRARY} ${BLAS_LIBRARY}) - if(ALPS_PYTHON_WHEEL) - if(APPLE) - set_target_properties(dwa PROPERTIES INSTALL_RPATH "@loader_path/../lib" ) - else(APPLE) - set_target_properties(dwa PROPERTIES INSTALL_RPATH "$ORIGIN/../lib" ) - endif(APPLE) - install(TARGETS dwa RUNTIME DESTINATION pyalps/bin COMPONENT applications) - else() install(TARGETS dwa RUNTIME DESTINATION bin COMPONENT applications) - endif() else(LAPACK_FOUND) message(STATUS "dwa will not be built since lapack library has not been found") endif(LAPACK_FOUND) diff --git a/applications/qmc/looper/CMakeLists.txt b/applications/qmc/looper/CMakeLists.txt index dfdf50c88..1e3ddca04 100644 --- a/applications/qmc/looper/CMakeLists.txt +++ b/applications/qmc/looper/CMakeLists.txt @@ -23,16 +23,7 @@ if(LAPACK_FOUND) include_directories(${PROJECT_SOURCE_DIR}/applications/qmc/looper) add_executable(loop loop.C loop_custom.C loop_model.C path_integral.C sse.C) target_link_libraries(loop alps ${LAPACK_LIBRARY} ${BLAS_LIBRARY}) - if(ALPS_PYTHON_WHEEL) - if(APPLE) - set_target_properties(loop PROPERTIES INSTALL_RPATH "@loader_path/../lib" ) - else(APPLE) - set_target_properties(loop PROPERTIES INSTALL_RPATH "$ORIGIN/../lib" ) - endif(APPLE) - install(TARGETS loop RUNTIME DESTINATION pyalps/bin COMPONENT applications) - else() install(TARGETS loop RUNTIME DESTINATION bin COMPONENT applications) - endif() else(LAPACK_FOUND) message(STATUS "loop will not be built since lapack library is not found") endif(LAPACK_FOUND) diff --git a/applications/qmc/qwl/CMakeLists.txt b/applications/qmc/qwl/CMakeLists.txt index 6474dd5d4..eb7255733 100644 --- a/applications/qmc/qwl/CMakeLists.txt +++ b/applications/qmc/qwl/CMakeLists.txt @@ -22,15 +22,4 @@ add_executable(qwl_evaluate qwl_evaluate.C) target_link_libraries(qwl alps) target_link_libraries(qwl_evaluate alps) -if(ALPS_PYTHON_WHEEL) - if(APPLE) - set_target_properties(qwl PROPERTIES INSTALL_RPATH "@loader_path/../lib" ) - set_target_properties(qwl_evaluate PROPERTIES INSTALL_RPATH "@loader_path/../lib" ) - else(APPLE) - set_target_properties(qwl PROPERTIES INSTALL_RPATH "$ORIGIN/../lib" ) - set_target_properties(qwl_evaluate PROPERTIES INSTALL_RPATH "$ORIGIN/../lib" ) - endif(APPLE) - install(TARGETS qwl qwl_evaluate RUNTIME DESTINATION pyalps/bin COMPONENT applications) -else() - install(TARGETS qwl qwl_evaluate RUNTIME DESTINATION bin COMPONENT applications) -endif() +install(TARGETS qwl qwl_evaluate RUNTIME DESTINATION bin COMPONENT applications) diff --git a/applications/qmc/sse/CMakeLists.txt b/applications/qmc/sse/CMakeLists.txt index 86e9f2dfc..193621cf3 100644 --- a/applications/qmc/sse/CMakeLists.txt +++ b/applications/qmc/sse/CMakeLists.txt @@ -23,29 +23,11 @@ if(LPSolve_FOUND AND NOT MSVC) SSE.Directed.cpp SSE.Initialization.cpp SSE.Measurements.cpp SSE.Update.cpp SSE.cpp) target_link_libraries(dirloop_sse_v1 alps ${LPSolve_LIBRARIES}) - if(ALPS_PYTHON_WHEEL) - if(APPLE) - set_target_properties(dirloop_sse_v1 PROPERTIES INSTALL_RPATH "@loader_path/../lib" ) - else(APPLE) - set_target_properties(dirloop_sse_v1 PROPERTIES INSTALL_RPATH "$ORIGIN/../lib" ) - endif(APPLE) - install(TARGETS dirloop_sse_v1 RUNTIME DESTINATION pyalps/bin COMPONENT applications) - else() install(TARGETS dirloop_sse_v1 RUNTIME DESTINATION bin COMPONENT applications) - endif() endif(LPSolve_FOUND AND NOT MSVC) if (LPSolve_FOUND AND APPLE) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -idirafter /usr/include/malloc") endif(LPSolve_FOUND AND APPLE) add_executable(dirloop_sse_evaluate evaluate.C) target_link_libraries(dirloop_sse_evaluate alps) -if(ALPS_PYTHON_WHEEL) - if(APPLE) - set_target_properties(dirloop_sse_evaluate PROPERTIES INSTALL_RPATH "@loader_path/../lib" ) - else(APPLE) - set_target_properties(dirloop_sse_evaluate PROPERTIES INSTALL_RPATH "$ORIGIN/../lib" ) - endif(APPLE) - install(TARGETS dirloop_sse_evaluate RUNTIME DESTINATION pyalps/bin COMPONENT applications) -else() - install(TARGETS dirloop_sse_evaluate RUNTIME DESTINATION bin COMPONENT applications) -endif() \ No newline at end of file +install(TARGETS dirloop_sse_evaluate RUNTIME DESTINATION bin COMPONENT applications) diff --git a/applications/qmc/sse4/CMakeLists.txt b/applications/qmc/sse4/CMakeLists.txt index 3ad0ef331..996d86f5e 100644 --- a/applications/qmc/sse4/CMakeLists.txt +++ b/applications/qmc/sse4/CMakeLists.txt @@ -19,13 +19,4 @@ add_executable(dirloop_sse main.cc lp_sse.cpp) target_link_libraries(dirloop_sse alps) -if(ALPS_PYTHON_WHEEL) - if(APPLE) - set_target_properties(dirloop_sse PROPERTIES INSTALL_RPATH "@loader_path/../lib" ) - else(APPLE) - set_target_properties(dirloop_sse PROPERTIES INSTALL_RPATH "$ORIGIN/../lib" ) - endif(APPLE) - install(TARGETS dirloop_sse RUNTIME DESTINATION pyalps/bin COMPONENT applications) -else() - install(TARGETS dirloop_sse RUNTIME DESTINATION bin COMPONENT applications) -endif() \ No newline at end of file +install(TARGETS dirloop_sse RUNTIME DESTINATION bin COMPONENT applications) diff --git a/applications/qmc/worms/CMakeLists.txt b/applications/qmc/worms/CMakeLists.txt index 93247388e..823c5fe93 100644 --- a/applications/qmc/worms/CMakeLists.txt +++ b/applications/qmc/worms/CMakeLists.txt @@ -25,17 +25,4 @@ add_executable(worm_evaluate evaluate.C) target_link_libraries(worm worm_impl) target_link_libraries(worm_evaluate worm_impl) -if(ALPS_PYTHON_WHEEL) - if(APPLE) - set_target_properties(worm PROPERTIES INSTALL_RPATH "@loader_path/../lib" ) - set_target_properties(worm_evaluate PROPERTIES INSTALL_RPATH "@loader_path/../lib" ) - else(APPLE) - set_target_properties(worm PROPERTIES INSTALL_RPATH "$ORIGIN/../lib" ) - set_target_properties(worm_evaluate PROPERTIES INSTALL_RPATH "$ORIGIN/../lib" ) - endif(APPLE) - install(TARGETS worm RUNTIME DESTINATION pyalps/bin COMPONENT applications) - install(TARGETS worm_evaluate RUNTIME DESTINATION pyalps/bin COMPONENT applications) -else() - install(TARGETS worm RUNTIME DESTINATION bin COMPONENT applications) - install(TARGETS worm_evaluate RUNTIME DESTINATION bin COMPONENT applications) -endif() \ No newline at end of file +install(TARGETS worm worm_evaluate RUNTIME DESTINATION bin COMPONENT applications) diff --git a/bindings/python/pyalps/README.md b/bindings/python/pyalps/README.md index e4c3507f3..defebb61a 100644 --- a/bindings/python/pyalps/README.md +++ b/bindings/python/pyalps/README.md @@ -11,6 +11,7 @@ From the repository root: cmake -S . -B _build/alps -G Ninja \ -DCMAKE_INSTALL_PREFIX="$PWD/_build/install" \ -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ + -DALPS_ENABLE_MPI=OFF \ -DALPS_BUILD_LIBS_ONLY=ON cmake --build _build/alps --target install diff --git a/cmake/ALPSConfig.cmake.in b/cmake/ALPSConfig.cmake.in index fdb794cd7..cecdccdc0 100644 --- a/cmake/ALPSConfig.cmake.in +++ b/cmake/ALPSConfig.cmake.in @@ -67,16 +67,6 @@ set(ALPS_BLAS_LIBRARIES "@BLAS_LIBRARIES@") set(ALPS_BLAS_LIBRARY "@BLAS_LIBRARY@") set(ALPS_MKL_INCLUDE_DIR "@MKL_INCLUDE_DIR@") -# Python -set(ALPS_HAVE_PYTHON "@ALPS_HAVE_PYTHON@") -set(ALPS_PYTHON_INTERPRETER "@PYTHON_INTERPRETER@") -set(ALPS_PYTHON_INCLUDE_DIRS "@PYTHON_INCLUDE_DIRS@") -set(ALPS_PYTHON_NUMPY_INCLUDE_DIR "@PYTHON_NUMPY_INCLUDE_DIR@") -set(ALPS_PYTHON_LIBRARY "@PYTHON_LIBRARY@") -set(ALPS_PYTHON_SITE_PKG "@PYTHON_SITE_PKG@") -set(ALPS_PYTHON_EXTRA_LIBS "@PYTHON_EXTRA_LIBS@") -set(ALPS_PYTHON_LINK_FOR_SHARED "@PYTHON_LINK_FOR_SHARED@") - # FFTW set(ALPS_FFTW_LIBRARIES "@FFTW_LIBRARIES@") set(ALPS_FFTW_INCLUDE_DIR "@FFTW_INCLUDE_DIR@") @@ -133,4 +123,3 @@ set(ALPS_EXTRA_LIBRARIES "@ALPS_EXTRA_LIBRARIES@") # list of ALPS and dependent libraries set(ALPS_LIBRARIES alps ${ALPS_Boost_LIBRARIES} ${ALPS_EXTRA_LIBRARIES} CACHE STRING "List of ALPS and dependent libraries." FORCE) set(ALPS_FORTRAN_LIBRARIES alps_fortran CACHE STRING "List of ALPS-Fortran library." FORCE) - diff --git a/cmake/FindBoostForALPS.cmake b/cmake/FindBoostForALPS.cmake index 7038bb766..8fbed54b7 100644 --- a/cmake/FindBoostForALPS.cmake +++ b/cmake/FindBoostForALPS.cmake @@ -67,91 +67,6 @@ if(ALPS_USE_SYSTEM_BOOST) "Upgrade the system Boost installation or disable ALPS_USE_SYSTEM_BOOST.") endif() - # Save Boost_LIBRARIES now — a second find_package(Boost) call below - # (for the Python component) would overwrite this variable. - set(_alps_boost_libraries_saved ${Boost_LIBRARIES}) - - # Python component: library naming varies by Boost/distro version. - # Try python (e.g. python311), then python3, then python. - if(ALPS_HAVE_PYTHON) - set(_alps_python_component "") - set(_alps_python_library "") - foreach(_pycomp "python${PYVER}" "python3" "python") - find_package(Boost QUIET COMPONENTS ${_pycomp}) - if(Boost_${_pycomp}_FOUND) - # Capture Boost_LIBRARIES right here: after a single-component - # find_package it contains exactly that one library path. - set(_alps_python_library ${Boost_LIBRARIES}) - set(_alps_python_component ${_pycomp}) - break() - endif() - endforeach() - - # Restore the full library list (overwritten by the python find_package). - if(_alps_python_component) - message(STATUS "Found system Boost.Python component: ${_alps_python_component}") - set(Boost_LIBRARIES ${_alps_boost_libraries_saved} ${_alps_python_library}) - else() - message(WARNING - "System Boost.Python library not found (tried python${PYVER}, python3, python). " - "Python bindings will be disabled.") - set(Boost_LIBRARIES ${_alps_boost_libraries_saved}) - set(ALPS_HAVE_PYTHON OFF) - set(BUILD_BOOST_PYTHON OFF) - endif() - endif() - - # Set ALPS_HAVE_BOOST_NUMPY for Boost >= 1.63 (when boost::python::numpy - # was introduced). - if(Boost_VERSION_STRING VERSION_GREATER_EQUAL "1.63.0") - set(ALPS_HAVE_BOOST_NUMPY ON) - endif() - - # Scenario 3: system Boost 1.63-1.86 + NumPy >= 2.0. - # (evaluated below; set the flag early so the numpy lib search is guarded by it) - # boost::python::numpy in these versions uses deprecated NumPy C API - # removed in NumPy 2.0. Fall back to boost::python::numeric::array, - # which uses only the stable NumPy C API. - if(ALPS_HAVE_BOOST_NUMPY AND ALPS_HAVE_PYTHON) - EXEC_PYTHON_SCRIPT("import numpy; print(numpy.__version__)" _alps_numpy_ver) - message(STATUS "NumPy version: ${_alps_numpy_ver}") - if(_alps_numpy_ver VERSION_GREATER_EQUAL "2.0.0" AND - Boost_VERSION_STRING VERSION_LESS "1.87.0") - message(WARNING - "System Boost ${Boost_VERSION_STRING} does not support NumPy >= 2.0 " - "(requires Boost >= 1.87). " - "Falling back to boost::python::numeric::array. " - "Upgrade system Boost to >= 1.87 to silence this warning.") - set(ALPS_HAVE_BOOST_NUMPY OFF) - endif() - endif() - - # Boost.NumPy library: only link when ALPS_HAVE_BOOST_NUMPY is still ON - # after the scenario-3 check above. Library naming mirrors python: try - # numpy, numpy3, numpy. - if(ALPS_HAVE_BOOST_NUMPY AND ALPS_HAVE_PYTHON) - set(_alps_boost_libs_before_numpy ${Boost_LIBRARIES}) - set(_alps_numpy_lib_found "") - foreach(_npcomp "numpy${PYVER}" "numpy3" "numpy") - find_package(Boost QUIET COMPONENTS ${_npcomp}) - if(Boost_${_npcomp}_FOUND) - message(STATUS "Found system Boost.NumPy component: ${_npcomp}") - # Boost_LIBRARIES is now just the numpy lib — capture and restore. - set(_alps_numpy_library ${Boost_LIBRARIES}) - set(Boost_LIBRARIES ${_alps_boost_libs_before_numpy} ${_alps_numpy_library}) - set(_alps_numpy_lib_found TRUE) - break() - endif() - endforeach() - if(NOT _alps_numpy_lib_found) - message(WARNING - "System Boost.NumPy library not found (tried numpy${PYVER}, numpy3, numpy). " - "Falling back to boost::python::numeric::array.") - set(Boost_LIBRARIES ${_alps_boost_libs_before_numpy}) - set(ALPS_HAVE_BOOST_NUMPY OFF) - endif() - endif() - # Align Boost_INCLUDE_DIR (singular) used elsewhere in the build. set(Boost_INCLUDE_DIR ${Boost_INCLUDE_DIRS}) @@ -165,8 +80,6 @@ if(ALPS_USE_SYSTEM_BOOST) message(STATUS "Using system Boost ${Boost_VERSION_STRING}") message(STATUS " includes: ${Boost_INCLUDE_DIRS}") message(STATUS " libraries: ${Boost_LIBRARIES}") - message(STATUS " ALPS_HAVE_BOOST_NUMPY: ${ALPS_HAVE_BOOST_NUMPY}") - return() endif() # ALPS_USE_SYSTEM_BOOST diff --git a/cmake/FindBoostSrc.cmake b/cmake/FindBoostSrc.cmake index a9029a24b..76977602a 100644 --- a/cmake/FindBoostSrc.cmake +++ b/cmake/FindBoostSrc.cmake @@ -40,10 +40,6 @@ if (NOT DEFINED BUILD_BOOST_SYSTEM) set(BUILD_BOOST_SYSTEM TRUE) endif (NOT DEFINED BUILD_BOOST_SYSTEM) -if (NOT DEFINED BUILD_BOOST_PYTHON) - set(BUILD_BOOST_PYTHON TRUE) -endif(NOT DEFINED BUILD_BOOST_PYTHON) - if (NOT DEFINED BUILD_BOOST_THREAD) set(BUILD_BOOST_THREAD TRUE) endif (NOT DEFINED BUILD_BOOST_THREAD) @@ -95,11 +91,6 @@ if(Boost_INCLUDE_DIR) MATH(EXPR Boost_SUBMINOR_VERSION "${Boost_VERSION} % 100") endif(Boost_INCLUDE_DIR) -if(Boost_VERSION AND NOT Boost_VERSION LESS 106300) - # Boost Numpy is compiled if we have >= 1.63 - set(ALPS_HAVE_BOOST_NUMPY ON) -endif(Boost_VERSION AND NOT Boost_VERSION LESS 106300) - if(Boost_ROOT_DIR) message(STATUS "Found Boost Source: ${Boost_ROOT_DIR}") message(STATUS "Boost Version: ${Boost_MAJOR_VERSION}_${Boost_MINOR_VERSION}_${Boost_SUBMINOR_VERSION}") @@ -110,19 +101,6 @@ else(Boost_ROOT_DIR) message(FATAL_ERROR "Boost Source not Found") endif(Boost_ROOT_DIR) -if(BUILD_BOOST_PYTHON) - EXEC_PYTHON_SCRIPT ("import numpy; print(numpy.__version__)" numpy_ver) - MESSAGE(STATUS "numpy version ${numpy_ver}" ) - if(${numpy_ver} VERSION_GREATER_EQUAL "2.0.0" AND "${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION}.${Boost_SUBMINOR_VERSION}" VERSION_LESS "1.87.0" ) - message(WARNING - "Boost ${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION}.${Boost_SUBMINOR_VERSION} " - "does not support NumPy >= 2.0 (requires Boost >= 1.87). " - "Falling back to boost::python::numeric::array. " - "Upgrade to Boost >= 1.87 to silence this warning.") - set(ALPS_HAVE_BOOST_NUMPY OFF) - endif() -endif() - # Avoid auto link of Boost library add_definitions(-DBOOST_ALL_NO_LIB=1) if(BUILD_SHARED_LIBS) diff --git a/cmake/FindPythonMod.cmake b/cmake/FindPythonMod.cmake deleted file mode 100644 index cec93bf8a..000000000 --- a/cmake/FindPythonMod.cmake +++ /dev/null @@ -1,275 +0,0 @@ -# Copyright Olivier Parcollet and Matthias Troyer 2010. -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the “Software”), -# to deal in the Software without restriction, including without limitation -# the rights to use, copy, modify, merge, publish, distribute, sublicense, -# and/or sell copies of the Software, and to permit persons to whom the -# Software is furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included -# in all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. - -# -# Python settings : -# -# This module checks that : -# - the python interpreter is working and version >= 2.6 -# - it has modules : distutils, numpy, tables, scipy -# -# This module defines the variables -# - PYTHON_INTERPRETER : name of the python interpreter -# - PYTHON_INCLUDE_DIRS : include for compilation -# - PYTHON_NUMPY_INCLUDE_DIR : include for compilation with numpy -# - PYTHON_LIBRARY : link flags -# - PYTHON_SITE_PKG : path to the standard packages of the python interpreter -# - PYTHON_EXTRA_LIBS : libraries which must be linked in when embedding -# - PYTHON_LINK_FOR_SHARED : linking flags needed when building a shared lib for external modules - -message(STATUS "Search for Python") - -if (NOT PYTHON_INTERPRETER) - #find_program(PYTHON_INTERPRETER NAMES python3 python PATHS $ENV{PATH}) - if(ALPS_PYTHON_WHEEL OR ALPS_BUILD_LIBS_ONLY) - find_package(Python COMPONENTS Interpreter Development.Module REQUIRED) - set(PYTHON_LIBRARY Python::Module) - else(ALPS_PYTHON_WHEEL OR ALPS_BUILD_LIBS_ONLY) - find_package(Python COMPONENTS Interpreter Development REQUIRED) - set(PYTHON_LIBRARY Python::Python) - endif(ALPS_PYTHON_WHEEL OR ALPS_BUILD_LIBS_ONLY) - set(PYTHON_INTERPRETER ${Python_EXECUTABLE}) -message(STATUS "LIBS: ${Python_LIBRARY} ${Python_LIBRARIES}") - if (NOT PYTHON_INTERPRETER) - set (PYTHON_FOUND FALSE) - else(NOT PYTHON_INTERPRETER) - set(PYTHON_FOUND TRUE) - endif(NOT PYTHON_INTERPRETER) -else (NOT PYTHON_INTERPRETER) - set(PYTHON_FOUND TRUE) -endif (NOT PYTHON_INTERPRETER) - -set(PYTHON_MINIMAL_VERSION 3.9) - -if (WIN32) - MESSAGE (STATUS "Looking for PythonLibs") - find_package(PythonLibs) -endif (WIN32) - -IF (PYTHON_FOUND) - - MESSAGE (STATUS "Python interpreter ${PYTHON_INTERPRETER}") - # - # The function EXEC_PYTHON_SCRIPT executes the_script in python interpreter - # and set the variable of output_var_name in the calling scope - # - FUNCTION ( EXEC_PYTHON_SCRIPT the_script output_var_name) - EXECUTE_PROCESS(COMMAND ${PYTHON_INTERPRETER} -c "${the_script}" - OUTPUT_VARIABLE res RESULT_VARIABLE returncode OUTPUT_STRIP_TRAILING_WHITESPACE) - IF (NOT returncode EQUAL 0) - MESSAGE(FATAL_ERROR "The script : ${the_script} \n did not run properly in the Python interpreter. Check your python installation.") - ENDIF (NOT returncode EQUAL 0) - SET( ${output_var_name} ${res} PARENT_SCOPE) - ENDFUNCTION (EXEC_PYTHON_SCRIPT) - - # - # Check the interpreter and its version - # - EXEC_PYTHON_SCRIPT ("import sys, string; print(sys.version.split()[0])" PYTHON_VERSION) -# STRING(COMPARE GREATER ${PYTHON_MINIMAL_VERSION} ${PYTHON_VERSION} PYTHON_VERSION_NOT_OK) -# IF (PYTHON_VERSION_NOT_OK) - IF( ${PYTHON_VERSION} VERSION_LESS ${PYTHON_MINIMAL_VERSION} ) - MESSAGE(WARNING "Python intepreter version is ${PYTHON_VERSION} . It should be >= ${PYTHON_MINIMAL_VERSION}") - SET(PYTHON_FOUND FALSE) - ENDIF () - EXEC_PYTHON_SCRIPT("import sys; print('{}{}'.format(sys.version_info.major,sys.version_info.minor))" PYVER) # e.g. 27, 38 -ENDIF (PYTHON_FOUND) - -IF (PYTHON_FOUND) - if(PYTHON_VERSION VERSION_LESS "3.11") - EXEC_PYTHON_SCRIPT ("import distutils " nulle) # check that distutils is there... - else() - EXEC_PYTHON_SCRIPT ("import sysconfig " nulle) # check that distutils is there... - endif() - EXEC_PYTHON_SCRIPT ("import numpy" nulle) # check that numpy is there... - #EXEC_PYTHON_SCRIPT ("import scipy" nulle) # check that scipy is there... - #EXEC_PYTHON_SCRIPT ("import tables" nulle) # check that tables is there... - MESSAGE(STATUS "Python interpreter ok : version ${PYTHON_VERSION}" ) - - # - # Python function to normalize linker flags - # - # Goal: CMake has two requiriments on the library flags: - # 1. the string cannot start with a spaces - # 2. if the string starts with a slash, the argument is interpreted as *a single library name* or a list of libraries - # this is broken if the linker flags are, e.g. "/path/to/lib -framework MyFramework -sysroot /" - # --> we need to split the string into a list of elements starting with "/" or "-". - # TODO: there might be problems if some path contains spaces - set(PYFUNC_NORMALIZE_FLAGS "def normalize_flags(flags):\n flags=flags.strip()\n if flags[0]=='-':return flags\n parts=flags.split(' ', 1)\n if len(parts)>0:return parts[0].strip()+';'+normalize_flags(parts[1])\n return parts[0].strip()\n") - - # - # Check for Python include path - # - if(PYTHON_VERSION VERSION_LESS "3.11") - EXEC_PYTHON_SCRIPT ("import distutils ; from distutils.sysconfig import * ; print(distutils.sysconfig.get_python_inc())" PYTHON_INCLUDE_DIRS ) - else() - EXEC_PYTHON_SCRIPT ("import sysconfig ; print(sysconfig.get_path('include'))" PYTHON_INCLUDE_DIRS ) - endif() - message(STATUS "PYTHON_INCLUDE_DIRS = ${PYTHON_INCLUDE_DIRS}" ) - mark_as_advanced(PYTHON_INCLUDE_DIRS) - FIND_PATH(TEST_PYTHON_INCLUDE patchlevel.h PATHS ${PYTHON_INCLUDE_DIRS} NO_DEFAULT_PATH) - if (NOT TEST_PYTHON_INCLUDE) - message (ERROR "The Python header files have not been found. Please check that you installed the Python headers and not only the interpreter.") - endif (NOT TEST_PYTHON_INCLUDE) - - # - # include files for numpy - # - EXEC_PYTHON_SCRIPT ("import numpy;print(numpy.get_include())" PYTHON_NUMPY_INCLUDE_DIR) - MESSAGE(STATUS "PYTHON_NUMPY_INCLUDE_DIR = ${PYTHON_NUMPY_INCLUDE_DIR}" ) - mark_as_advanced(PYTHON_NUMPY_INCLUDE_DIR) - - # - # Check for site packages - # - if(PYTHON_VERSION VERSION_LESS "3.11") - EXEC_PYTHON_SCRIPT ("from distutils.sysconfig import * ;print(get_python_lib(0,0))" - PYTHON_SITE_PKG) - else() - EXEC_PYTHON_SCRIPT ("import sysconfig ; print(sysconfig.get_path('purelib'))" - PYTHON_SITE_PKG) - endif() - MESSAGE(STATUS "PYTHON_SITE_PKG = ${PYTHON_SITE_PKG}" ) - mark_as_advanced(PYTHON_SITE_PKG) - if (NOT WIN32) - if(NOT PYTHON_LIBRARY) - # - # Check for Python library path - # - #EXEC_PYTHON_SCRIPT ("import string; from distutils.sysconfig import * ;print string.join(get_config_vars('VERSION'))" PYTHON_VERSION_MAJOR_MINOR) - if(PYTHON_VERSION VERSION_LESS "3.11") - EXEC_PYTHON_SCRIPT ("import string; from distutils.sysconfig import *; print(' '.join(get_config_vars('LIBDIR')))" PYTHON_LIBRARY_BASE_PATH) - # this is the static libpython which is not always correct. it is better to give precedence to the shared one. - # EXEC_PYTHON_SCRIPT ("from distutils.sysconfig import *; print(get_config_vars('LIBRARY')[0])" PYTHON_LIBRARY_BASE_FILE) - EXEC_PYTHON_SCRIPT ("from distutils.sysconfig import *; print('libpython{}'.format(' '.join(get_config_vars('VERSION'))))" PYTHON_LIBRARY_BASE_FILE) - else() - - EXEC_PYTHON_SCRIPT ("import string; from sysconfig import *; print(' '.join(get_config_vars('LIBDIR')))" PYTHON_LIBRARY_BASE_PATH) - # this is the static libpython which is not always correct. it is better to give precedence to the shared one. - # EXEC_PYTHON_SCRIPT ("from distutils.sysconfig import *; print(get_config_vars('LIBRARY')[0])" PYTHON_LIBRARY_BASE_FILE) - EXEC_PYTHON_SCRIPT ("from sysconfig import *; print('libpython{}'.format(' '.join(get_config_vars('VERSION'))))" PYTHON_LIBRARY_BASE_FILE) - endif() - IF(BUILD_SHARED_LIBS) - FIND_FILE(PYTHON_LIBRARY NAMES "${PYTHON_LIBRARY_BASE_FILE}.so" PATHS ${PYTHON_LIBRARY_BASE_PATH}) - IF(NOT PYTHON_LIBRARY) - FIND_FILE(PYTHON_LIBRARY NAMES "${PYTHON_LIBRARY_BASE_FILE}m.so" PATHS ${PYTHON_LIBRARY_BASE_PATH}) - ENDIF(NOT PYTHON_LIBRARY) - IF(NOT PYTHON_LIBRARY) - FIND_FILE(PYTHON_LIBRARY NAMES "${PYTHON_LIBRARY_BASE_FILE}.a" PATHS ${PYTHON_LIBRARY_BASE_PATH}) - ENDIF(NOT PYTHON_LIBRARY) - IF(NOT PYTHON_LIBRARY) - FIND_FILE(PYTHON_LIBRARY NAMES "${PYTHON_LIBRARY_BASE_FILE}m.a" PATHS ${PYTHON_LIBRARY_BASE_PATH}) - ENDIF(NOT PYTHON_LIBRARY) - ELSE(BUILD_SHARED_LIBS) - FIND_FILE(PYTHON_LIBRARY NAMES "${PYTHON_LIBRARY_BASE_FILE}.a" PATHS ${PYTHON_LIBRARY_BASE_PATH}) - ENDIF(BUILD_SHARED_LIBS) - IF(NOT PYTHON_LIBRARY) - # On Debian/Ubuntu system, libpython*.so is located in /usr/lib/`gcc -print-multiarch` - execute_process(COMMAND gcc -print-multiarch OUTPUT_VARIABLE TRIPLES) - STRING(REGEX REPLACE "\n" "" TRIPLES ${TRIPLES}) - FIND_FILE(PYTHON_LIBRARY NAMES "${PYTHON_LIBRARY_BASE_FILE}.so" PATHS "/usr/lib/${TRIPLES}") - IF(NOT PYTHON_LIBRARY) - FIND_FILE(PYTHON_LIBRARY NAMES "${PYTHON_LIBRARY_BASE_FILE}.a" PATHS "/usr/lib/${TRIPLES}") - ENDIF(NOT PYTHON_LIBRARY) - ENDIF(NOT PYTHON_LIBRARY) - endif(NOT PYTHON_LIBRARY) - MESSAGE(STATUS "PYTHON_LIBRARY = ${PYTHON_LIBRARY}" ) - mark_as_advanced(PYTHON_LIBRARY) - - # - # libraries which must be linked in when embedding - # - if(NOT DEFINED PYTHON_EXTRA_LIBS) - if(PYTHON_VERSION VERSION_LESS "3.11") - EXEC_PYTHON_SCRIPT ("${PYFUNC_NORMALIZE_FLAGS}from distutils.sysconfig import * ;print( normalize_flags( str(get_config_var('LOCALMODLIBS')) + ' ' + str(get_config_var('LIBS')) + ' ' + str(get_config_var('LDFLAGS')) ))" - PYTHON_EXTRA_LIBS) - else() - EXEC_PYTHON_SCRIPT ("${PYFUNC_NORMALIZE_FLAGS}from sysconfig import * ;print( normalize_flags( str(get_config_var('LOCALMODLIBS')) + ' ' + str(get_config_var('LIBS')) + ' ' + str(get_config_var('LDFLAGS')) ))" - PYTHON_EXTRA_LIBS) - endif() - endif() - MESSAGE(STATUS "PYTHON_EXTRA_LIBS =${PYTHON_EXTRA_LIBS}" ) - mark_as_advanced(PYTHON_EXTRA_LIBS) - - # - # linking flags needed when embedding (building a shared lib) - # To BE RETESTED - # - if(PYTHON_VERSION VERSION_LESS "3.11") - EXEC_PYTHON_SCRIPT ("from distutils.sysconfig import *;print(get_config_var('LINKFORSHARED'))" - PYTHON_LINK_FOR_SHARED) - else() - EXEC_PYTHON_SCRIPT ("from sysconfig import *;print(get_config_var('LINKFORSHARED'))" - PYTHON_LINK_FOR_SHARED) - endif() - MESSAGE(STATUS "PYTHON_LINK_FOR_SHARED = ${PYTHON_LINK_FOR_SHARED}" ) - mark_as_advanced(PYTHON_LINK_FOR_SHARED) - endif(NOT WIN32) - - # Correction on Mac - IF(APPLE) - SET (PYTHON_LINK_FOR_SHARED -u _PyMac_Error -framework Python) - SET (PYTHON_LINK_MODULE -bundle -undefined dynamic_lookup) - ELSE(APPLE) - SET (PYTHON_LINK_MODULE -shared) - ENDIF(APPLE) -ENDIF (PYTHON_FOUND) - -set (PYTHONLIBS_FOUND ${PYTHON_FOUND}) - - -EXEC_PYTHON_SCRIPT("import sys; print('{}.{}'.format(sys.version_info.major,sys.version_info.minor))" PYVER) # e.g. 27, 38 -set(ALPS_PYTHON_LIB_DEST_ROOT lib/python${PYVER}/site-packages CACHE PATH "Module install path") - -# -# This function writes down a script to compile f2py modules -# indeed, one needs to use the f2py of the correct numpy module. -# -FUNCTION( WriteScriptToBuildF2pyModule filename fcompiler_desc modulename module_pyf_name filelist ) - # Copy all the files - EXECUTE_PROCESS(COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/${module_pyf_name} ${CMAKE_CURRENT_BINARY_DIR} ) - FOREACH( f ${filelist}) - EXECUTE_PROCESS(COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/${f} ${CMAKE_CURRENT_BINARY_DIR} ) - ENDFOREACH(f) - # write the script that will build the f2py extension - SET(filename ${CMAKE_CURRENT_BINARY_DIR}/${filename} ) - FILE(WRITE ${filename} "import sys\n") - FILE(APPEND ${filename} "from numpy.f2py import main\n") - FILE(APPEND ${filename} "sys.argv = [''] +'-c --fcompiler=${fcompiler_desc} -m ${modulename} ${modulename}.pyf ${filelist} -llapack'.split()\n") - FILE(APPEND ${filename} "main()\n") -ENDFUNCTION(WriteScriptToBuildF2pyModule) - -FUNCTION(PYTHON_ADD_MODULE _NAME ) - OPTION(PYTHON_ENABLE_MODULE_${_NAME} "Add module ${_NAME}" TRUE) - OPTION(PYTHON_MODULE_${_NAME}_BUILD_SHARED "Add module ${_NAME} shared" ${BUILD_SHARED_LIBS}) - - IF(PYTHON_ENABLE_MODULE_${_NAME}) - IF(PYTHON_MODULE_${_NAME}_BUILD_SHARED) - SET(PY_MODULE_TYPE MODULE) - ELSE(PYTHON_MODULE_${_NAME}_BUILD_SHARED) - SET(PY_MODULE_TYPE STATIC) - SET_PROPERTY(GLOBAL APPEND PROPERTY PY_STATIC_MODULES_LIST ${_NAME}) - ENDIF(PYTHON_MODULE_${_NAME}_BUILD_SHARED) - - SET_PROPERTY(GLOBAL APPEND PROPERTY PY_MODULES_LIST ${_NAME}) - ADD_LIBRARY(${_NAME} ${PY_MODULE_TYPE} ${ARGN}) -# TARGET_LINK_LIBRARIES(${_NAME} ${PYTHON_LIBRARIES}) - - ENDIF(PYTHON_ENABLE_MODULE_${_NAME}) -ENDFUNCTION(PYTHON_ADD_MODULE) diff --git a/cmake/UseALPS.cmake b/cmake/UseALPS.cmake index 0b4160df0..1e9c5b356 100644 --- a/cmake/UseALPS.cmake +++ b/cmake/UseALPS.cmake @@ -57,15 +57,6 @@ if(NOT ALPS_USE_FILE_INCLUDED) set(BLAS_LIBRARY ${ALPS_BLAS_LIBRARY}) set(MKL_INCLUDE_DIR ${ALPS_MKL_INCLUDE_DIR}) - # Python - set(PYTHON_INTERPRETER ${ALPS_PYTHON_INTERPRETER}) - set(PYTHON_INCLUDE_DIRS ${ALPS_PYTHON_INCLUDE_DIRS}) - set(PYTHON_NUMPY_INCLUDE_DIR ${ALPS_PYTHON_NUMPY_INCLUDE_DIR}) - set(PYTHON_LIBRARY ${ALPS_PYTHON_LIBRARY}) - set(PYTHON_SITE_PKG ${ALPS_PYTHON_SITE_PKG}) - set(PYTHON_EXTRA_LIBS ${ALPS_PYTHON_EXTRA_LIBS}) - set(PYTHON_LINK_FOR_SHARED ${ALPS_PYTHON_LINK_FOR_SHARED}) - # FFTW set(FFTW_LIBRARIES ${ALPS_FFTW_LIBRARIES}) set(FFTW_INCLUDE_DIR ${ALPS_FFTW_INCLUDE_DIR}) diff --git a/src/alps/config.h.in b/src/alps/config.h.in index 813cb0a7d..4f1972085 100644 --- a/src/alps/config.h.in +++ b/src/alps/config.h.in @@ -136,16 +136,6 @@ // Define to 1 if you use Xerces C++ XML parser by Apache Software Foundation. #cmakedefine ALPS_HAVE_XERCES_PARSER -// -// Python -// - -// Define to 1 if you have Python on your system. -//#cmakedefine ALPS_HAVE_PYTHON - -// Define to 1 if Boost Numpy (>=1.63) is available -//#cmakedefine ALPS_HAVE_BOOST_NUMPY - // // OpenMP // diff --git a/src/boost/CMakeLists.txt b/src/boost/CMakeLists.txt index 30274bb1a..fb8fb09af 100644 --- a/src/boost/CMakeLists.txt +++ b/src/boost/CMakeLists.txt @@ -22,10 +22,7 @@ # set(BOOST_SOURCES "") -set(BOOST_PYTHON_SOURCES "") -set(BOOST_MPI_PYTHON_SOURCES "") set(BOOST_LINK_LIBS "") -set(BOOST_PYTHON_LINK_LIBS "") # Boost.Date_Time if(BUILD_BOOST_DATE_TIME) @@ -169,40 +166,6 @@ if(BUILD_BOOST_SERIALIZATION) add_definitions(-DBOOST_SERIALIZATION_DYN_LINK=1) endif(BUILD_BOOST_SERIALIZATION) -# Boost.Python -if(BUILD_BOOST_PYTHON) - if(PYTHON_VERSION GREATER 3 AND Boost_MAJOR_VERSION EQUAL 1 AND Boost_MINOR_VERSION LESS 63) - message(WARNING "Python 3 support requires Boost 1.63.0 or newer. Previous versions might build but have sporadic segemtation faults at the end of the execution.") - endif() - if(ALPS_PYTHON_WHEEL AND PYTHON_VERSION VERSION_GREATER_EQUAL "3.13" AND APPLE) - set(BOOST_PYTHON_LINK_LIBS ${BOOST_LINK_LIBS} ${PYTHON_LIBRARY}) # ${PYTHON_EXTRA_LIBS}) - else(ALPS_PYTHON_WHEEL AND PYTHON_VERSION VERSION_GREATER_EQUAL "3.13" AND APPLE) - set(BOOST_PYTHON_LINK_LIBS ${BOOST_LINK_LIBS} ${PYTHON_LIBRARY} ${PYTHON_EXTRA_LIBS}) - endif(ALPS_PYTHON_WHEEL AND PYTHON_VERSION VERSION_GREATER_EQUAL "3.13" AND APPLE) - set(DIRECTORY "${Boost_ROOT_DIR}/libs/python/src") - set(SOURCES dict.cpp errors.cpp exec.cpp import.cpp list.cpp long.cpp - module.cpp numeric.cpp object_operators.cpp object_protocol.cpp slice.cpp - str.cpp tuple.cpp wrapper.cpp converter/arg_to_python_base.cpp - converter/builtin_converters.cpp converter/from_python.cpp - converter/registry.cpp converter/type_id.cpp object/class.cpp - object/enum.cpp object/function.cpp object/function_doc_signature.cpp - object/inheritance.cpp object/iterator.cpp object/life_support.cpp - object/pickle_support.cpp object/stl_iterator.cpp - ) - if(Boost_MAJOR_VERSION EQUAL 1 AND Boost_MINOR_VERSION GREATER 62 AND ALPS_HAVE_BOOST_NUMPY) - set(SOURCES ${SOURCES} - numpy/dtype.cpp numpy/matrix.cpp numpy/ndarray.cpp - numpy/numpy.cpp numpy/scalars.cpp numpy/ufunc.cpp - ) - endif(Boost_MAJOR_VERSION EQUAL 1 AND Boost_MINOR_VERSION GREATER 62 AND ALPS_HAVE_BOOST_NUMPY) - foreach(S ${SOURCES}) - if(EXISTS ${DIRECTORY}/${S}) - set(BOOST_PYTHON_SOURCES ${BOOST_PYTHON_SOURCES} ${DIRECTORY}/${S}) - endif(EXISTS ${DIRECTORY}/${S}) - endforeach(S) - add_definitions(-DBOOST_PYTHON_SOURCE) -endif(BUILD_BOOST_PYTHON) - # Boost.System if(BUILD_BOOST_SYSTEM) set(DIRECTORY "${Boost_ROOT_DIR}/libs/system/src") @@ -261,43 +224,6 @@ if(BUILD_BOOST_THREAD) endif(BUILD_BOOST_THREAD) -# Boost.MPI Python bindings -if (BUILD_BOOST_MPI AND BUILD_BOOST_PYTHON AND Boost_ROOT_DIR) - set(DIRECTORY "${Boost_ROOT_DIR}/libs/mpi/src/python") - set(SOURCES collectives.cpp py_communicator.cpp datatypes.cpp - documentation.cpp py_environment.cpp py_nonblocking.cpp py_exception.cpp - py_request.cpp skeleton_and_content.cpp status.cpp py_timer.cpp serialize.cpp - ) - foreach(S ${SOURCES}) - if(EXISTS ${DIRECTORY}/${S}) - set(BOOST_MPI_PYTHON_SOURCES ${BOOST_MPI_PYTHON_SOURCES} ${DIRECTORY}/${S}) - endif(EXISTS ${DIRECTORY}/${S}) - endforeach(S) - - # renmae mpi module to mpi_c - set(BOOST_MPI_PYTHON_SOURCES ${BOOST_MPI_PYTHON_SOURCES} mpi/module.cpp) - - if (BOOST_MPI_PYTHON_SOURCES) - python_add_module(mpi_c ${BOOST_MPI_PYTHON_SOURCES}) - if(BUILD_SHARED_LIBS) - set_target_properties(mpi_c PROPERTIES COMPILE_DEFINITIONS "${ALPS_SHARED_CPPFLAGS}") - if(WIN32 AND NOT UNIX) - set_target_properties(mpi_c PROPERTIES SUFFIX ".pyd") - endif(WIN32 AND NOT UNIX) - endif (BUILD_SHARED_LIBS) - - set_target_properties(mpi_c PROPERTIES PREFIX "") - target_link_libraries(mpi_c ${ALPS_BOOST_LIBRARY_NAME} ${ALPS_BOOST_PYTHON_LIBRARY_NAME} ${BOOST_LINK_LIBS} ${BOOST_PYTHON_LINK_LIBS}) - - install(TARGETS mpi_c COMPONENT python - RUNTIME DESTINATION bin - ARCHIVE DESTINATION ${ALPS_PYTHON_LIB_DEST_ROOT}/pyalps - LIBRARY DESTINATION ${ALPS_PYTHON_LIB_DEST_ROOT}/pyalps) - endif(BOOST_MPI_PYTHON_SOURCES) - -endif (BUILD_BOOST_MPI AND BUILD_BOOST_PYTHON AND Boost_ROOT_DIR) - - ####################################################################### # install ####################################################################### @@ -307,10 +233,6 @@ endif (BUILD_BOOST_MPI AND BUILD_BOOST_PYTHON AND Boost_ROOT_DIR) if (NOT Boost_FOUND) add_library(${ALPS_BOOST_LIBRARY_NAME} ${BOOST_SOURCES}) target_link_libraries(${ALPS_BOOST_LIBRARY_NAME} ${BOOST_LINK_LIBS}) - if(BUILD_BOOST_PYTHON) - add_library(${ALPS_BOOST_PYTHON_LIBRARY_NAME} ${BOOST_PYTHON_SOURCES}) - target_link_libraries(${ALPS_BOOST_PYTHON_LIBRARY_NAME} ${BOOST_PYTHON_LINK_LIBS}) - endif() # Boost.Test if(BUILD_BOOST_TEST) set(DIRECTORY "${Boost_ROOT_DIR}/libs/test/src") @@ -390,32 +312,15 @@ if (NOT Boost_FOUND) COMMAND ${CMAKE_COMMAND} -E copy ${LIB_NAME} ${PROJECT_BINARY_DIR}/bin) endif(MSVC) - if(NOT ALPS_PYTHON_WHEEL) install(TARGETS ${ALPS_BOOST_LIBRARY_NAME} COMPONENT libraries RUNTIME DESTINATION bin ARCHIVE DESTINATION lib LIBRARY DESTINATION lib) - if(BUILD_BOOST_PYTHON) - install(TARGETS ${ALPS_BOOST_PYTHON_LIBRARY_NAME} COMPONENT libraries - RUNTIME DESTINATION bin - ARCHIVE DESTINATION lib - LIBRARY DESTINATION lib) - endif() - if (ALPS_INSTALL_BOOST_TEST) - install(TARGETS boost_unit_test_framework boost_test_exec_monitor boost_prg_exec_monitor + if (ALPS_INSTALL_BOOST_TEST) + install(TARGETS boost_unit_test_framework boost_test_exec_monitor boost_prg_exec_monitor COMPONENT libraries RUNTIME DESTINATION bin ARCHIVE DESTINATION lib LIBRARY DESTINATION lib) - endif(ALPS_INSTALL_BOOST_TEST) - else () - install(TARGETS ${ALPS_BOOST_LIBRARY_NAME} COMPONENT libraries - RUNTIME DESTINATION pyalps/bin - ARCHIVE DESTINATION pyalps/lib - LIBRARY DESTINATION pyalps/lib) - install(TARGETS ${ALPS_BOOST_PYTHON_LIBRARY_NAME} COMPONENT libraries - RUNTIME DESTINATION pyalps/bin - ARCHIVE DESTINATION pyalps/lib - LIBRARY DESTINATION pyalps/lib) - endif() + endif(ALPS_INSTALL_BOOST_TEST) endif (NOT Boost_FOUND) diff --git a/test/pyalps/CMakeLists.txt b/test/pyalps/CMakeLists.txt deleted file mode 100644 index f1c5271e3..000000000 --- a/test/pyalps/CMakeLists.txt +++ /dev/null @@ -1,47 +0,0 @@ -# Copyright Matthias Troyer, Synge Todo and Lukas Gamper 2009 - 2010. -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the “Software”), -# to deal in the Software without restriction, including without limitation -# the rights to use, copy, modify, merge, publish, distribute, sublicense, -# and/or sell copies of the Software, and to permit persons to whom the -# Software is furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included -# in all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. - -include_directories(${PROJECT_BINARY_DIR}/src) -include_directories(${PROJECT_SOURCE_DIR}/src) -include_directories(${Boost_ROOT_DIR}) - -#add_executable(loadobs loadobs.cpp) -#add_dependencies(loadobs alps) -#target_link_libraries(loadobs alps) -#add_alps_test(loadobs) - -enable_testing() -if (ALPS_BUILD_PYTHON AND BUILD_SHARED_LIBS) -# FOREACH (name pyioarchive pyhdf5io numpylarge pyparams hlist_test mcdata pyhdf5 mcanalyze, accumulators) - FOREACH (name pyioarchive pyhdf5io_test pyparams_test hlist_test mcdata_test pyhdf5_test mcanalyze) - add_test(python_${name} - ${CMAKE_COMMAND} - -Dpython_interpreter=${PYTHON_INTERPRETER} - -Dcmd=${name}.py - -Dinput=${name} - -Doutput=${name} - -Dpythonpath=${PROJECT_BINARY_DIR}/lib/pyalps:${PROJECT_SOURCE_DIR}/lib - -Dsourcedir=${CMAKE_CURRENT_SOURCE_DIR} - -Dbinarydir=${CMAKE_CURRENT_BINARY_DIR} - -Dcmddir=${CMAKE_CURRENT_SOURCE_DIR} - -P ${CMAKE_CURRENT_SOURCE_DIR}/run_python_test.cmake - ) - set_property(TEST python_${name} PROPERTY LABELS pyalps) - ENDFOREACH(name) -ENDIF(ALPS_BUILD_PYTHON AND BUILD_SHARED_LIBS) diff --git a/tool/CMakeLists.txt b/tool/CMakeLists.txt index 519386439..f90b0f4b4 100644 --- a/tool/CMakeLists.txt +++ b/tool/CMakeLists.txt @@ -76,25 +76,14 @@ endif(SQLite_FOUND) endif(UNIX AND NOT WIN32) # -# lattice-preview and helper program -# + # lattice-preview and helper program + # configure_file(config.py.in ${CMAKE_CURRENT_BINARY_DIR}/config.py) - if(WIN32 AND NOT UNIX AND ALPS_BUILD_PYTHON) - # in the function add_pi_executable is not present ... - option(ALPS_HAS_CMAKE_PI_MACROS "Ignore the PI macros if they are not present" ON) - mark_as_advanced(ALPS_HAS_CMAKE_PI_MACROS) - if (ALPS_HAS_CMAKE_PI_MACROS) - add_pi_executable(lattice-preview preview.py ${CMAKE_CURRENT_BINARY_DIR}/config.py license.py) - file(GLOB pi_generated_files ${CMAKE_CURRENT_BINARY_DIR}/lattice-preview/*) - install(FILES ${pi_generated_files} DESTINATION bin COMPONENT tools) - endif (ALPS_HAS_CMAKE_PI_MACROS) - else(WIN32 AND NOT UNIX) - configure_file(lattice-preview.in ${CMAKE_CURRENT_BINARY_DIR}/lattice-preview) - install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/lattice-preview DESTINATION bin COMPONENT tools) - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/config.py preview.py license.py - DESTINATION lib/python/alps COMPONENT tools) - endif(WIN32 AND NOT UNIX AND ALPS_BUILD_PYTHON) + configure_file(lattice-preview.in ${CMAKE_CURRENT_BINARY_DIR}/lattice-preview) + install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/lattice-preview DESTINATION bin COMPONENT tools) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/config.py preview.py license.py + DESTINATION lib/python/alps COMPONENT tools) # # Analytical continuation with MaxEnt @@ -114,30 +103,3 @@ endif(SQLite_FOUND) target_link_libraries(maxent_linear_grid_numeric alps ${LAPACK_LIBRARY} ${BLAS_LIBRARY}) add_alps_test(maxent_linear_grid_numeric) endif(LAPACK_FOUND) - - # - # alpspython script - # - - set(ALPSPYTHON_CONFIGURED FALSE) - if(PYTHON_INTERPRETER) - if (NOT WIN32) - set(PYTHONPATH "${ALPS_PYTHON_LIB_DEST_ROOT}") - set(PYTHONBIN "${PYTHON_INTERPRETER}") - string(CONFIGURE [[ - set(PROJECT_SOURCE_DIR "@PROJECT_SOURCE_DIR@") - set(PYTHONBIN "@PYTHONBIN@") - set(PYTHONPATH "${CMAKE_INSTALL_PREFIX}/@PYTHONPATH@") - message(STATUS ": ${PYTHONPATH}") - message(STATUS ": ${PYTHONBIN}") - configure_file(${PROJECT_SOURCE_DIR}/tool/alpspython.in ${CMAKE_INSTALL_PREFIX}/bin/alpspython ) - ]] install_script @ONLY) - install(CODE ${install_script}) - else (NOT WIN32) - set(PYTHONPATH "%HOMEDRIVE%\\Program Files\\ALPS\\lib;%HOMEDRIVE%\\Program Files (x86)\\ALPS\\lib") - set(PYTHONBIN "python") - configure_file(alpspython.bat.in ${PROJECT_BINARY_DIR}/tool/alpspython.bat) - install(PROGRAMS ${PROJECT_BINARY_DIR}/tool/alpspython.bat DESTINATION bin COMPONENT tools) - endif (NOT WIN32) - set(ALPSPYTHON_CONFIGURED TRUE) - endif(PYTHON_INTERPRETER) diff --git a/tutorials/code-07-mcmain-mcbase/CMakeLists.txt b/tutorials/code-07-mcmain-mcbase/CMakeLists.txt index 12ad7d69b..34090a0b9 100644 --- a/tutorials/code-07-mcmain-mcbase/CMakeLists.txt +++ b/tutorials/code-07-mcmain-mcbase/CMakeLists.txt @@ -24,22 +24,3 @@ if (MPI_FOUND) target_link_libraries(mpi_pscan ${ALPS_LIBRARIES}) endif (MPI_FOUND) - -if (ALPS_HAVE_PYTHON) - - # rule for generating python export - set_property(GLOBAL APPEND PROPERTY PY_MODULES_LIST ising_c) - if(BUILD_SHARED_LIBS) - add_library(ising_c MODULE ising.cpp export.cpp) - set_target_properties(ising_c PROPERTIES COMPILE_DEFINITIONS "${ALPS_SHARED_CPPFLAGS}") - if(WIN32 AND NOT UNIX) - set_target_properties(ising_c PROPERTIES SUFFIX ".pyd") - endif(WIN32 AND NOT UNIX) - else(BUILD_SHARED_LIBS) - set_property(GLOBAL APPEND PROPERTY PY_STATIC_MODULES_LIST ising_c) - add_library(ising_c STATIC ising.cpp export.cpp) - endif (BUILD_SHARED_LIBS) - set_target_properties(ising_c PROPERTIES PREFIX "") - target_link_libraries(ising_c ${ALPS_LIBRARIES}) - -endif (ALPS_HAVE_PYTHON) diff --git a/tutorials/code-07-mcmain-mcbase/heisenberg/o_n_model/CMakeLists.txt b/tutorials/code-07-mcmain-mcbase/heisenberg/o_n_model/CMakeLists.txt index 4b5ea3948..e9346dae7 100644 --- a/tutorials/code-07-mcmain-mcbase/heisenberg/o_n_model/CMakeLists.txt +++ b/tutorials/code-07-mcmain-mcbase/heisenberg/o_n_model/CMakeLists.txt @@ -15,23 +15,3 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${bench_flags}") # rule for generating the heisenberg example program add_executable(heisenberg heisenberg.cpp) target_link_libraries(heisenberg ${ALPS_LIBRARIES}) - - -if (ALPS_HAVE_PYTHON) - - # rule for generating python export - set_property(GLOBAL APPEND PROPERTY PY_MODULES_LIST pyndsim) - if(BUILD_SHARED_LIBS) - add_library(pyndsim MODULE EXCLUDE_FROM_ALL export.cpp) - set_target_properties(pyndsim PROPERTIES COMPILE_DEFINITIONS "${ALPS_SHARED_CPPFLAGS}") - if(WIN32 AND NOT UNIX) - set_target_properties(pyndsim PROPERTIES SUFFIX ".pyd") - endif(WIN32 AND NOT UNIX) - else(BUILD_SHARED_LIBS) - set_property(GLOBAL APPEND PROPERTY PY_STATIC_MODULES_LIST pyndsim) - add_library(pyndsim STATIC EXCLUDE_FROM_ALL export.cpp) - endif (BUILD_SHARED_LIBS) - set_target_properties(pyndsim PROPERTIES PREFIX "") - target_link_libraries(pyndsim ${ALPS_LIBRARIES}) - -endif (ALPS_HAVE_PYTHON) From 5ef8fd6cd926210816cee5a1012a5027d0b52bec Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Wed, 22 Jul 2026 13:27:23 -0500 Subject: [PATCH 11/51] build: relocate pyalps project metadata --- .github/workflows/build_wheels.yml | 4 ++- README-py.md | 50 --------------------------- bindings/python/pyalps/CMakeLists.txt | 20 ++++++----- bindings/python/pyalps/LICENSE.txt | 19 ++++++++++ bindings/python/pyalps/README.md | 20 ++++++++--- bindings/python/pyalps/pyproject.toml | 32 +++++++++++++++++ pyproject.toml | 23 ------------ 7 files changed, 81 insertions(+), 87 deletions(-) delete mode 100644 README-py.md create mode 100644 bindings/python/pyalps/LICENSE.txt create mode 100644 bindings/python/pyalps/pyproject.toml delete mode 100644 pyproject.toml diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index fdf42bc3d..967a74f32 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -34,6 +34,8 @@ jobs: - name: Build wheels uses: pypa/cibuildwheel@v2.22.0 + with: + package-dir: bindings/python/pyalps env: CIBW_BUILD: cp39-* cp310-* cp311-* cp312-* cp313-* CIBW_ARCHS: ${{ matrix.plat.arch }} @@ -97,7 +99,7 @@ jobs: - uses: actions/checkout@v7 - name: Build sdist - run: pipx run build --sdist + run: pipx run build --sdist --outdir dist bindings/python/pyalps - uses: actions/upload-artifact@v7 with: diff --git a/README-py.md b/README-py.md deleted file mode 100644 index 4bd2da976..000000000 --- a/README-py.md +++ /dev/null @@ -1,50 +0,0 @@ -[![ALPS CI/CD](https://github.com/ALPSim/legacy/actions/workflows/build.yml/badge.svg)](https://github.com/ALPSim/legacy/actions/workflows/build.yml) - -## Python Algorithms and Libraries for Physics Simulations - -This is python packages for `Algorithms and Libraries for Physics Simulations` project. For more information check [README.txt](https://pypi.org/project/pyalps/2.3.3/README.txt). - -### Installation instruction from binaries - -1. pyALPS can be installed on most Linux and MacOS mcachines from prebuilt biniaries available on [PyPi](https://pypi.org/project/pyalps). -pyALPS can be installed using `pip` Python package manager: - -``` -pip install pyalps -``` - -### Installation instruction from sources - -1. Prerequisites - - CMake > 3.18 - - Boost sources >= 1.76 - - BLAS/LAPACK - - HDF5 - - MPI - - Python >= 3.9 - - Python 3.13 requires Boost version 1.87 or later - - Earlier versions maybe also work but unsupported - - C++ compiler (build has been tested on GCC 10.5 through 14.2) - - GNU Make or Ninja build system - -You need to download and unpack boost library: -``` -wget https://archives.boost.io/release/1.86.0/source/boost_1_86_0.tar.gz -tar -xzf boost_1_86_0.tar.gz -``` -Here we download `boost v1.86.0`, we have tested ALPS with versions `1.76.0` and `1.86.0`. - -2. Downloading and building sources -``` -git clone https://github.com/alpsim/ALPS ALPS -cd ALPS -Boost_SRC_DIR=`pwd`/../boost_1_86_0 python3 -m build --wheel -``` -This will download the most recent version of ALPS from the github repository, and build pyALPS python package. - -3. Installation - -Based on the version of the Python used to build pyALPS, the corresponding Python wheel will be created and stored in `dist` subdirectory. It can be installed using `pip`: -``` -pip install dist/pyalps-.whl -``` diff --git a/bindings/python/pyalps/CMakeLists.txt b/bindings/python/pyalps/CMakeLists.txt index f7db44eec..e56847456 100644 --- a/bindings/python/pyalps/CMakeLists.txt +++ b/bindings/python/pyalps/CMakeLists.txt @@ -22,6 +22,10 @@ list(PREPEND CMAKE_PREFIX_PATH "${_nanobind_cmake_dir}") find_package(nanobind 2.10 CONFIG REQUIRED) get_filename_component(_repo_root "${CMAKE_CURRENT_SOURCE_DIR}/../../.." ABSOLUTE) +set(_alps_source_root "${_repo_root}") +if(NOT EXISTS "${_alps_source_root}/tool/maxent.cpp") + set(_alps_source_root "${CMAKE_CURRENT_SOURCE_DIR}/_vendor") +endif() set(_bindings "${CMAKE_CURRENT_SOURCE_DIR}/cpp") link_directories(${ALPS_LIBRARY_DIRS}) @@ -67,19 +71,19 @@ nanobind_add_module(pyngsrandom01_c NB_STATIC "${_bindings}/ngs/random01.cpp") nanobind_add_module(pyngsaccumulator_c NB_STATIC "${_bindings}/ngs/accumulator.cpp") if(PYALPS_BUILD_APPLICATIONS) - if(NOT EXISTS "${_repo_root}/tool/maxent.cpp") + if(NOT EXISTS "${_alps_source_root}/tool/maxent.cpp") message(FATAL_ERROR - "PYALPS_BUILD_APPLICATIONS requires an ALPS source checkout. " + "PYALPS_BUILD_APPLICATIONS requires an ALPS source checkout or pyalps sdist. " "Configure with -DPYALPS_BUILD_APPLICATIONS=OFF for the core-only package.") endif() - set(_dmft "${_repo_root}/applications/dmft/qmc") + set(_dmft "${_alps_source_root}/applications/dmft/qmc") nanobind_add_module(maxent_c NB_STATIC - "${_repo_root}/tool/maxent.cpp" - "${_repo_root}/tool/maxent_helper.cpp" - "${_repo_root}/tool/maxent_simulation.cpp" - "${_repo_root}/tool/maxent_parms.cpp") + "${_alps_source_root}/tool/maxent.cpp" + "${_alps_source_root}/tool/maxent_helper.cpp" + "${_alps_source_root}/tool/maxent_simulation.cpp" + "${_alps_source_root}/tool/maxent_parms.cpp") nanobind_add_module(cthyb NB_STATIC "${_dmft}/hybridization/hybmain.cpp" @@ -116,7 +120,7 @@ if(PYALPS_BUILD_APPLICATIONS) target_compile_definitions(${_target} PRIVATE BUILD_PYTHON_MODULE) target_include_directories(${_target} PRIVATE "${_bindings}" "${_dmft}") endforeach() - target_include_directories(dwa_c PRIVATE "${_repo_root}/applications/qmc/dwa") + target_include_directories(dwa_c PRIVATE "${_alps_source_root}/applications/qmc/dwa") endif() foreach(_target IN LISTS _pyalps_targets) diff --git a/bindings/python/pyalps/LICENSE.txt b/bindings/python/pyalps/LICENSE.txt new file mode 100644 index 000000000..7a715fb42 --- /dev/null +++ b/bindings/python/pyalps/LICENSE.txt @@ -0,0 +1,19 @@ +Copyright 2003-2025 ALPS Collaboration + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the “Software”), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/bindings/python/pyalps/README.md b/bindings/python/pyalps/README.md index defebb61a..7071f4e3d 100644 --- a/bindings/python/pyalps/README.md +++ b/bindings/python/pyalps/README.md @@ -1,9 +1,16 @@ # pyalps -Legacy-compatible Python bindings for ALPS, built as a standalone -`scikit-build-core` project using nanobind. The C++ ALPS library must be -built and installed separately; point `ALPS_DIR` at its `share/alps` -package directory when building this wheel. +Python applications and libraries for the Algorithms and Libraries for +Physics Simulations (ALPS) project. Binary wheels are available from PyPI: + +```sh +python -m pip install pyalps +``` + +The bindings are built as a standalone `scikit-build-core` project using +nanobind. A source build requires CMake 3.18 or newer, a C++17 compiler, +BLAS/LAPACK, HDF5, and an installed ALPS C++ SDK. Point `ALPS_DIR` at the +SDK's `share/alps` package directory. From the repository root: @@ -17,9 +24,12 @@ cmake --build _build/alps --target install ALPS_DIR="$PWD/_build/install/share/alps" \ CMAKE_ARGS="-DCMAKE_CXX_COMPILER_LAUNCHER=ccache" \ - python -m build --wheel + python -m build --wheel bindings/python/pyalps ``` +The wheel is written to `bindings/python/pyalps/dist` and can be installed +with `python -m pip install`. + `PYALPS_BUILD_APPLICATIONS=ON` is the default and preserves the MaxEnt, DWA, CT-HYB, and CT-INT extension modules. Set it to `OFF` through CMake configuration for a smaller core-only developer build. diff --git a/bindings/python/pyalps/pyproject.toml b/bindings/python/pyalps/pyproject.toml new file mode 100644 index 000000000..d2de3e273 --- /dev/null +++ b/bindings/python/pyalps/pyproject.toml @@ -0,0 +1,32 @@ +[build-system] +requires = ["scikit-build-core>=1.0", "nanobind>=2.10"] +build-backend = "scikit_build_core.build" + +[project] +name = "pyalps" +version = "2.3.4b1" +description = "Python Applications and Libraries for Physics Simulations" +readme = "README.md" +requires-python = ">=3.9" +license = "MIT" +dependencies = ["numpy", "scipy"] + +[tool.scikit-build] +cmake.source-dir = "." +wheel.packages = ["src/pyalps"] +wheel.license-files = ["LICENSE.txt"] +build.verbose = true + +[tool.scikit-build.cmake.define] +ALPS_DIR = { env = "ALPS_DIR" } + +# Application bindings compile selected legacy application sources. Preserve +# those sources when this subproject is distributed independently of the +# repository checkout so wheels can also be rebuilt from the sdist. +[tool.scikit-build.sdist.force-include] +"../../../applications/dmft/qmc" = "_vendor/applications/dmft/qmc" +"../../../applications/qmc/dwa" = "_vendor/applications/qmc/dwa" +"../../../tool" = "_vendor/tool" + +[tool.cibuildwheel] +manylinux-x86_64-image = "manylinux_2_28" diff --git a/pyproject.toml b/pyproject.toml deleted file mode 100644 index c8a0571c1..000000000 --- a/pyproject.toml +++ /dev/null @@ -1,23 +0,0 @@ -[build-system] -requires = ["scikit-build-core>=0.10", "nanobind>=2.10"] -build-backend = "scikit_build_core.build" - -[project] -name = "pyalps" -version = "2.3.4b1" -description = "Python Applications and Libraries for Physics Simulations" -readme = "bindings/python/pyalps/README.md" -requires-python = ">=3.9" -license = "MIT" -dependencies = ["numpy", "scipy"] - -[tool.scikit-build] -cmake.source-dir = "bindings/python/pyalps" -wheel.packages = ["bindings/python/pyalps/src/pyalps"] -build.verbose = true - -[tool.scikit-build.cmake.define] -ALPS_DIR = { env = "ALPS_DIR" } - -[tool.cibuildwheel] -manylinux-x86_64-image = "manylinux_2_28" From 39cad3d006c547caa96b07a696627c61f0f9feaa Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Wed, 22 Jul 2026 13:47:34 -0500 Subject: [PATCH 12/51] build: retain macos 26 wheel coverage --- .github/workflows/build_wheels.yml | 1 + bindings/python/pyalps/LICENSE.txt | 19 ------------------- bindings/python/pyalps/pyproject.toml | 3 ++- 3 files changed, 3 insertions(+), 20 deletions(-) delete mode 100644 bindings/python/pyalps/LICENSE.txt diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 967a74f32..e3ba1ca5a 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -21,6 +21,7 @@ jobs: - { os: ubuntu-latest, target: "", arch: x86_64, homebrew: ''} #- { os: macos-13, target: "13.0" , arch: x86_64, homebrew: '/usr/local'} #DEPRECATED. Too old. - { os: macos-15, target: "15.0" , arch: arm64, homebrew: '/opt/homebrew'} + - { os: macos-26, target: "26.0" , arch: arm64, homebrew: '/opt/homebrew'} steps: - uses: actions/checkout@v7 diff --git a/bindings/python/pyalps/LICENSE.txt b/bindings/python/pyalps/LICENSE.txt deleted file mode 100644 index 7a715fb42..000000000 --- a/bindings/python/pyalps/LICENSE.txt +++ /dev/null @@ -1,19 +0,0 @@ -Copyright 2003-2025 ALPS Collaboration - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the “Software”), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL -THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/bindings/python/pyalps/pyproject.toml b/bindings/python/pyalps/pyproject.toml index d2de3e273..f0403cc3e 100644 --- a/bindings/python/pyalps/pyproject.toml +++ b/bindings/python/pyalps/pyproject.toml @@ -14,7 +14,7 @@ dependencies = ["numpy", "scipy"] [tool.scikit-build] cmake.source-dir = "." wheel.packages = ["src/pyalps"] -wheel.license-files = ["LICENSE.txt"] +wheel.force-include = { "LICENSE.txt" = "${SKBUILD_METADATA_DIR}/licenses/LICENSE.txt" } build.verbose = true [tool.scikit-build.cmake.define] @@ -24,6 +24,7 @@ ALPS_DIR = { env = "ALPS_DIR" } # those sources when this subproject is distributed independently of the # repository checkout so wheels can also be rebuilt from the sdist. [tool.scikit-build.sdist.force-include] +"../../../LICENSE.txt" = "LICENSE.txt" "../../../applications/dmft/qmc" = "_vendor/applications/dmft/qmc" "../../../applications/qmc/dwa" = "_vendor/applications/qmc/dwa" "../../../tool" = "_vendor/tool" From e06a9621e80134f6b1f4f7edf7114cc8d72a5bf8 Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Wed, 22 Jul 2026 13:59:31 -0500 Subject: [PATCH 13/51] fix: modernize pyalps Python compatibility --- .github/workflows/build_wheels.yml | 4 +- bindings/python/pyalps/CMakeLists.txt | 2 +- bindings/python/pyalps/README.md | 8 ++-- bindings/python/pyalps/pyproject.toml | 8 +++- bindings/python/pyalps/src/pyalps/__init__.py | 7 --- bindings/python/pyalps/src/pyalps/apptest.py | 6 +-- .../pyalps/src/pyalps/dict_intersect.py | 16 ++++--- bindings/python/pyalps/src/pyalps/dwa.py | 35 +++++++-------- bindings/python/pyalps/src/pyalps/ngs.py | 7 +-- bindings/python/pyalps/src/pyalps/tools.py | 22 +++++----- requirements.txt | 2 - test/pyalps/test_binding_surface.py | 43 +++++++++++++++++++ 12 files changed, 97 insertions(+), 63 deletions(-) delete mode 100644 requirements.txt diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index e3ba1ca5a..9df18bb1e 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -34,11 +34,11 @@ jobs: restore-keys: pyalps-ccache-${{ runner.os }}-${{ matrix.plat.arch }}- - name: Build wheels - uses: pypa/cibuildwheel@v2.22.0 + uses: pypa/cibuildwheel@v3.4.1 with: package-dir: bindings/python/pyalps env: - CIBW_BUILD: cp39-* cp310-* cp311-* cp312-* cp313-* + CIBW_BUILD: cp310-* cp311-* cp312-* cp313-* cp314-* CIBW_ARCHS: ${{ matrix.plat.arch }} CIBW_ARCHS_MACOS: ${{ matrix.plat.arch }} CIBW_ENVIRONMENT: > diff --git a/bindings/python/pyalps/CMakeLists.txt b/bindings/python/pyalps/CMakeLists.txt index e56847456..ba658bba9 100644 --- a/bindings/python/pyalps/CMakeLists.txt +++ b/bindings/python/pyalps/CMakeLists.txt @@ -11,7 +11,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) find_package(ALPS REQUIRED CONFIG) -find_package(Python 3.9 REQUIRED COMPONENTS Interpreter Development.Module) +find_package(Python 3.10 REQUIRED COMPONENTS Interpreter Development.Module) execute_process( COMMAND "${Python_EXECUTABLE}" -m nanobind --cmake_dir diff --git a/bindings/python/pyalps/README.md b/bindings/python/pyalps/README.md index 7071f4e3d..dbde7cdf7 100644 --- a/bindings/python/pyalps/README.md +++ b/bindings/python/pyalps/README.md @@ -7,10 +7,12 @@ Physics Simulations (ALPS) project. Binary wheels are available from PyPI: python -m pip install pyalps ``` +Install `pyalps[plot]` to use the Matplotlib plotting helpers. + The bindings are built as a standalone `scikit-build-core` project using -nanobind. A source build requires CMake 3.18 or newer, a C++17 compiler, -BLAS/LAPACK, HDF5, and an installed ALPS C++ SDK. Point `ALPS_DIR` at the -SDK's `share/alps` package directory. +nanobind. A source build requires Python 3.10 or newer, CMake 3.18 or newer, +a C++17 compiler, BLAS/LAPACK, HDF5, and an installed ALPS C++ SDK. Point +`ALPS_DIR` at the SDK's `share/alps` package directory. From the repository root: diff --git a/bindings/python/pyalps/pyproject.toml b/bindings/python/pyalps/pyproject.toml index f0403cc3e..1becb4ccb 100644 --- a/bindings/python/pyalps/pyproject.toml +++ b/bindings/python/pyalps/pyproject.toml @@ -7,9 +7,13 @@ name = "pyalps" version = "2.3.4b1" description = "Python Applications and Libraries for Physics Simulations" readme = "README.md" -requires-python = ">=3.9" +requires-python = ">=3.10" license = "MIT" -dependencies = ["numpy", "scipy"] +dependencies = ["numpy>=1.26", "scipy>=1.13"] + +[project.optional-dependencies] +plot = ["matplotlib>=3.8"] +test = ["pytest>=8"] [tool.scikit-build] cmake.source-dir = "." diff --git a/bindings/python/pyalps/src/pyalps/__init__.py b/bindings/python/pyalps/src/pyalps/__init__.py index 2992b679e..c70dd433c 100644 --- a/bindings/python/pyalps/src/pyalps/__init__.py +++ b/bindings/python/pyalps/src/pyalps/__init__.py @@ -28,13 +28,6 @@ # **************************************************************************** import sys -import os.path -if sys.platform == 'darwin' and not os.path.exists(os.path.expanduser('~/.matplotlib/matplotlibrc')): - try: - import matplotlib - matplotlib.use('macosx') - except ImportError: - pass from .dataset import * from .tools import * diff --git a/bindings/python/pyalps/src/pyalps/apptest.py b/bindings/python/pyalps/src/pyalps/apptest.py index 02476c784..30389bbc0 100644 --- a/bindings/python/pyalps/src/pyalps/apptest.py +++ b/bindings/python/pyalps/src/pyalps/apptest.py @@ -485,8 +485,9 @@ def checkProperties( testfile, reffile ): del tprop['filename'] del rprop['filename'] - if cmp(tprop, rprop) == 0: return True - else: return False + if tprop.keys() != rprop.keys(): + return False + return all(np.array_equal(tprop[key], rprop[key]) for key in tprop) def compareTest( testinputfile, outputs, tmpdir, tstart, compMethod='auto' ): @@ -798,4 +799,3 @@ def createTest( script, inputs=None, outputs=None, prefix=None, refdir='./ref' ) f.close() os.chmod(scriptname_prefixed, 0o755) - diff --git a/bindings/python/pyalps/src/pyalps/dict_intersect.py b/bindings/python/pyalps/src/pyalps/dict_intersect.py index 3a683e808..c80df81d6 100644 --- a/bindings/python/pyalps/src/pyalps/dict_intersect.py +++ b/bindings/python/pyalps/src/pyalps/dict_intersect.py @@ -28,6 +28,12 @@ import numpy as np +def _values_equal(left, right): + try: + return bool(np.all(left == right)) + except (TypeError, ValueError): + return False + def dict_intersect(dicts): """ computes the intersection of a list of dicts @@ -42,12 +48,8 @@ def dict_intersect(dicts): take = True val0 = dicts[0][key] for idict in dicts: - try: - if val0 != idict[key]: - take = False - except: - if np.all(val0 != idict[key]): - take = False + if not _values_equal(val0, idict[key]): + take = False if take: ret[key] = dicts[0][key] return ret @@ -62,7 +64,7 @@ def dict_difference(dicts): take = True val0 = dicts[0][key] for idict in dicts: - if val0 != idict[key]: + if not _values_equal(val0, idict[key]): take = False if not take: ret.append(key) diff --git a/bindings/python/pyalps/src/pyalps/dwa.py b/bindings/python/pyalps/src/pyalps/dwa.py index dbbc05850..44f974696 100644 --- a/bindings/python/pyalps/src/pyalps/dwa.py +++ b/bindings/python/pyalps/src/pyalps/dwa.py @@ -31,9 +31,6 @@ import os; from . import math; import numpy; -import scipy; -import matplotlib; -import matplotlib.pyplot; import pyalps; from ._ext.dwa_c import worldlines, bandstructure from functools import reduce @@ -103,8 +100,8 @@ def thermalized(h5_outfile, observables, tolerance=0.01, simplified=False, inclu timeseries = pyalps.hdf5.archive(h5_outfile, 'r')["/simulation/results/" + observable]['timeseries']['data']; mean = timeseries.mean(); - index = scipy.linspace(0, timeseries.size-1, timeseries.size); - timeseries = scipy.polyval(scipy.polyfit(index, timeseries, 1), index); # timeseries get fitted + index = numpy.linspace(0, timeseries.size-1, timeseries.size); + timeseries = numpy.polyval(numpy.polyfit(index, timeseries, 1), index); # timeseries get fitted percentage_increment = (timeseries[-1] - timeseries[0])/mean; result = abs(percentage_increment) < tolerance; @@ -203,6 +200,8 @@ def extract_worldlines(infile, outfile=None): return wl; def show_worldlines(wl=None, reshape=None, at=None, scatter_plot=False, Nmax=20, linewidth=2, linespace=0.1): + import matplotlib.pyplot as plt + if wl == None: return; @@ -228,15 +227,15 @@ def show_worldlines(wl=None, reshape=None, at=None, scatter_plot=False, Nmax=20, wl_coordinates.append([idx,wl_time[idx][idx2]]); [wl_coordinates_site, wl_coordinates_time] = numpy.array(wl_coordinates).transpose(); - matplotlib.pyplot.figure(frameon=False); - matplotlib.pyplot.xticks(range(wl_idx.size), wl_idx); - matplotlib.pyplot.yticks([0,1]); - matplotlib.pyplot.xlim(-0.5, wl_idx.size-0.5); - matplotlib.pyplot.ylim(-0.05,1.05); + plt.figure(frameon=False); + plt.xticks(range(wl_idx.size), wl_idx); + plt.yticks([0,1]); + plt.xlim(-0.5, wl_idx.size-0.5); + plt.ylim(-0.05,1.05); if scatter_plot: - matplotlib.pyplot.scatter(wl_coordinates_site, wl_coordinates_time); - matplotlib.pyplot.show(); + plt.scatter(wl_coordinates_site, wl_coordinates_time); + plt.show(); return; wl_state_segments = []; @@ -272,23 +271,23 @@ def show_worldlines(wl=None, reshape=None, at=None, scatter_plot=False, Nmax=20, for wl_n_state_segment in wl_n_state_segments[0]: [segment_site, segment_time] = numpy.array(wl_n_state_segment).transpose(); - matplotlib.pyplot.plot(segment_site, segment_time, '--k', linewidth=linewidth); + plt.plot(segment_site, segment_time, '--k', linewidth=linewidth); for wl_n_state_segment in wl_n_state_segments[1]: [segment_site, segment_time] = numpy.array(wl_n_state_segment).transpose(); - matplotlib.pyplot.plot(segment_site, segment_time, '-k', linewidth=linewidth); + plt.plot(segment_site, segment_time, '-k', linewidth=linewidth); for n in range(2,Nmax+1): for wl_n_state_segment in wl_n_state_segments[n]: [segment_site, segment_time] = numpy.array(wl_n_state_segment).transpose(); for m in range(n): - matplotlib.pyplot.plot(segment_site - (m - (n-1)/2.)*linespace, segment_time, '-k', linewidth=2); + plt.plot(segment_site - (m - (n-1)/2.)*linespace, segment_time, '-k', linewidth=2); for wl_vertex_segment in wl_vertex_segments: [segment_site, segment_time] = numpy.array(wl_vertex_segment).transpose(); - matplotlib.pyplot.plot(segment_site, segment_time, '-k', linewidth=linewidth); + plt.plot(segment_site, segment_time, '-k', linewidth=linewidth); - matplotlib.pyplot.show(); + plt.show(); return; def recursiveRun(cmd, cmd_lang='command_line', follow_up_script=None, end_script=None, n=None, break_if=None, break_elseif=None, write_status=None, loc=None, loc0=None, batch_submit=False, batch_cmd_prefix=None, batch_run_directory=None, batch_run_script='run.script', batch_next_run_script=None, batch_run_now=False, batch_noRun=False): @@ -509,5 +508,3 @@ def summaryReport(h5_outfile): - - diff --git a/bindings/python/pyalps/src/pyalps/ngs.py b/bindings/python/pyalps/src/pyalps/ngs.py index fba944af7..f4dcb1815 100644 --- a/bindings/python/pyalps/src/pyalps/ngs.py +++ b/bindings/python/pyalps/src/pyalps/ngs.py @@ -27,12 +27,7 @@ # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # -import sys - -if sys.version_info[:2] >= (3, 8): - from collections.abc import MutableMapping -else: - from collections import MutableMapping +from collections.abc import MutableMapping from .cxx.pyngsparams_c import params from .cxx.pyngsobservable_c import observable diff --git a/bindings/python/pyalps/src/pyalps/tools.py b/bindings/python/pyalps/src/pyalps/tools.py index ee60690d9..cac8d7a1f 100644 --- a/bindings/python/pyalps/src/pyalps/tools.py +++ b/bindings/python/pyalps/src/pyalps/tools.py @@ -36,6 +36,7 @@ import sys import glob from . import math +import numpy as np import scipy.stats import copy @@ -231,7 +232,7 @@ def evaluateQWL(infiles, appname='qwl_evaluate', DELTA_T=None, T_MIN=None, T_MAX cmdline += make_list(infiles) res = executeCommand(cmdline) if res != 0: - raise Excpetion("Execution error in evaluateQWL: " + str(res)) + raise RuntimeError("Execution error in evaluateQWL: " + str(res)) datasets = [] for infile in infiles: datasets.append([]) @@ -566,9 +567,9 @@ def checkSteadyState(sets=None, outfile=None, observable=None, confidenceInterva else: ts = pyalps.loadTimeSeries(outfile, observable); ### y N = ts.size; - idx = scipy.linspace(1, N, N); ### x + idx = np.linspace(1, N, N); ### x - beta1 = scipy.polyfit(idx, ts, 1)[0]; ### slope + beta1 = np.polyfit(idx, ts, 1)[0]; ### slope ts_std = np.std(ts, ddof=1); ### unbiased estimate of standard deviation in y beta1_std = math.sqrt((12.*ts_std*ts_std)/(N * (N*N-1))); ### unbiased estimate of standard deviation in slope @@ -852,7 +853,7 @@ def stringListToList(inList): #find number of bracketed items (they come in pairs) numbrackets=dum.count('[') if numbrackets==0 : - unbracketed=map(float,dum.replace('[','').replace(']','').replace(' ','').split(',')) + unbracketed=list(map(float,dum.replace('[','').replace(']','').replace(' ','').split(','))) for q in unbracketed: outList.append([q]) elif numbrackets>0: @@ -862,16 +863,16 @@ def stringListToList(inList): startInd=dum.find('[',count) finishInd=dum.find(']', count) if startInd>count: - unbracketed=map(float,(dum[count:startInd-1].replace('[','').replace(']','')\ - .replace(' ','').split(','))) + unbracketed=list(map(float,(dum[count:startInd-1].replace('[','').replace(']','')\ + .replace(' ','').split(',')))) for q in unbracketed: outList.append([q]) - outList.append(map(float,dum[startInd:finishInd+1].replace('[','').\ - replace(']','').replace(' ','').split(','))) + outList.append(list(map(float,dum[startInd:finishInd+1].replace('[','').\ + replace(']','').replace(' ','').split(',')))) count=finishInd+2 if len(dum)-count>0: - unbracketed=map(float,dum[count:len(dum)].replace('[','').replace(']','')\ - .replace(' ','').split(',')) + unbracketed=list(map(float,dum[count:len(dum)].replace('[','').replace(']','')\ + .replace(' ','').split(','))) for q in unbracketed: outList.append([q]) else: @@ -1065,4 +1066,3 @@ def CycleMarkers (data, foreach, q.props['line'] = all[key] + '-' return data - diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 92825131a..000000000 --- a/requirements.txt +++ /dev/null @@ -1,2 +0,0 @@ -numpy<2.1 -scipy \ No newline at end of file diff --git a/test/pyalps/test_binding_surface.py b/test/pyalps/test_binding_surface.py index fd62e4063..091913c22 100644 --- a/test/pyalps/test_binding_surface.py +++ b/test/pyalps/test_binding_surface.py @@ -10,6 +10,7 @@ import importlib import os import tempfile +from types import SimpleNamespace import numpy as np @@ -138,6 +139,48 @@ def test_optional_application_extension_surface(): assert module.__name__.endswith(name) +def test_current_python_numpy_and_scipy_compatibility(monkeypatch): + import pyalps + import pyalps.dwa as dwa + + assert callable(dwa.thermalized) + + parsed = pyalps.stringListToList("[1,[2,3],4]") + assert parsed == [[1.0], [2.0, 3.0], [4.0]] + + shared = pyalps.dict_intersect([ + {"array": np.array([1, 2]), "scalar": 3}, + {"array": np.array([1, 2]), "scalar": 3}, + ]) + np.testing.assert_array_equal(shared["array"], [1, 2]) + assert shared["scalar"] == 3 + + monkeypatch.setattr( + pyalps, + "loadTimeSeries", + lambda *_args: np.array([1.0, 1.1, 0.9, 1.0]), + ) + steady = pyalps.checkSteadyState(outfile="unused.h5", observable="energy") + assert isinstance(steady["value"], (bool, np.bool_)) + + +def test_python3_property_comparison(monkeypatch): + import pyalps + import pyalps.apptest as apptest + + properties = { + "test.h5": {"vector": np.array([1, 2]), "value": 3}, + "reference.h5": {"vector": np.array([1, 2]), "value": 3}, + } + + class Loader: + def GetProperties(self, filenames): + return [SimpleNamespace(props=properties[filenames[0]].copy())] + + monkeypatch.setattr(pyalps.load, "Hdf5Loader", Loader) + assert apptest.checkProperties("test.h5", "reference.h5") + + if __name__ == "__main__": for test in ( test_extension_import_surface, From 5d26ff251ecfff1955cb77af5d8e62aa6378a68e Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Wed, 22 Jul 2026 15:51:10 -0500 Subject: [PATCH 14/51] fix: resolve wheel ALPS_DIR via $(pwd) in cibuildwheel env CIBW_ENVIRONMENT does not expand the {project} placeholder (only before-all/before-build/test/repair commands do), so ALPS_DIR and CCACHE_DIR were set to the literal string "{project}/...". The wheel build's find_package(ALPS REQUIRED CONFIG) then could not locate the ALPSConfig.cmake installed by CIBW_BEFORE_ALL, failing CMake configure. Use $(pwd), which cibuildwheel evaluates in the build environment (cwd=/project in the Linux container, repo root on macOS) to the same directory where _build/cibw-install lives. Validated end-to-end with a local manylinux_2_28_aarch64 build: wheel builds, repairs, 14 tests pass. Co-Authored-By: Claude Opus 4.8 --- .github/workflows/build_wheels.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 9df18bb1e..3dbb28f68 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -42,8 +42,8 @@ jobs: CIBW_ARCHS: ${{ matrix.plat.arch }} CIBW_ARCHS_MACOS: ${{ matrix.plat.arch }} CIBW_ENVIRONMENT: > - ALPS_DIR={project}/_build/cibw-install/share/alps - CCACHE_DIR={project}/_build/ccache + ALPS_DIR=$(pwd)/_build/cibw-install/share/alps + CCACHE_DIR=$(pwd)/_build/ccache CCACHE_NAMESPACE=pyalps-wheel CMAKE_ARGS="-DCMAKE_CXX_COMPILER_LAUNCHER=ccache" CIBW_BEFORE_ALL_LINUX: > @@ -72,8 +72,8 @@ jobs: -DHDF5_ROOT=${{ matrix.plat.homebrew }}/opt/hdf5 && cmake --build {project}/_build/cibw-alps --target install -j2 CIBW_ENVIRONMENT_MACOS: > - ALPS_DIR={project}/_build/cibw-install/share/alps - CCACHE_DIR={project}/_build/ccache + ALPS_DIR=$(pwd)/_build/cibw-install/share/alps + CCACHE_DIR=$(pwd)/_build/ccache CCACHE_NAMESPACE=pyalps-wheel CMAKE_ARGS="-DCMAKE_CXX_COMPILER_LAUNCHER=ccache" MACOSX_DEPLOYMENT_TARGET=${{ matrix.plat.target }} From 59469d3079cd9198a5d481cc419db7f9c9e67c3b Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Wed, 22 Jul 2026 16:42:07 -0500 Subject: [PATCH 15/51] fix: build pyalps musllinux wheels via libtirpc XDR musllinux (Alpine/musl) lacks dnf, glibc's SunRPC/XDR, and execinfo. Branch before_all to apk; install libtirpc for ALPS's system-XDR path (ALPS_HAVE_RPC_XDR_H) and disable the execinfo backtrace. Validated end-to-end on musllinux_1_2_aarch64: wheel builds, auditwheel bundles libtirpc, 14/14 tests pass. Co-Authored-By: Claude Opus 4.8 --- .github/workflows/build_wheels.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 3dbb28f68..4d331c15a 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -46,8 +46,18 @@ jobs: CCACHE_DIR=$(pwd)/_build/ccache CCACHE_NAMESPACE=pyalps-wheel CMAKE_ARGS="-DCMAKE_CXX_COMPILER_LAUNCHER=ccache" + # manylinux (AlmaLinux/glibc) uses dnf and glibc's SunRPC/XDR + execinfo. + # musllinux (Alpine/musl) has neither: install libtirpc for the system + # XDR path (ALPS_HAVE_RPC_XDR_H) and disable the execinfo backtrace. CIBW_BEFORE_ALL_LINUX: > - dnf install -y ccache cmake hdf5-devel lapack-devel ninja-build && + if command -v dnf >/dev/null 2>&1; + then dnf install -y ccache cmake hdf5-devel lapack-devel ninja-build; EXTRA=; + else apk add --no-cache ccache ninja-is-really-ninja hdf5-dev lapack-dev libtirpc-dev; + ln -sf /usr/include/tirpc/rpc /usr/include/rpc; + ln -sf /usr/include/tirpc/netconfig.h /usr/include/netconfig.h; + export CXXFLAGS="-DALPS_NGS_NO_STACKTRACE"; + EXTRA="-DALPS_HAVE_RPC_XDR_H=1 -DCMAKE_CXX_STANDARD_LIBRARIES=-ltirpc"; + fi && cmake -S {project} -B {project}/_build/cibw-alps -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX={project}/_build/cibw-install @@ -56,7 +66,8 @@ jobs: -DALPS_BUILD_TESTS=OFF -DALPS_BUILD_EXAMPLES=OFF -DALPS_BUILD_APPLICATIONS=OFF - -DALPS_ENABLE_MPI=OFF && + -DALPS_ENABLE_MPI=OFF + $EXTRA && cmake --build {project}/_build/cibw-alps --target install -j2 CIBW_BEFORE_ALL_MACOS: > brew install ccache cmake hdf5 ninja && From d46a0af0604d0053e845b5bb1d0786623d97a1ec Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Mon, 17 Aug 2026 15:07:19 -0500 Subject: [PATCH 16/51] docs: drop license disclaimer sentence from CITATION.md Co-Authored-By: Claude Fable 5 --- CITATION.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CITATION.md b/CITATION.md index 5d81cfa04..2f2ecf96c 100644 --- a/CITATION.md +++ b/CITATION.md @@ -1,6 +1,6 @@ # Citing ALPS -If ALPS contributes to published research, please cite the framework papers below and any method-specific paper relevant to the application you used. Citation is requested as scholarly acknowledgement; it is not a condition of the MIT license in [`LICENSE.txt`](LICENSE.txt). +If ALPS contributes to published research, please cite the framework papers below and any method-specific paper relevant to the application you used. ## Framework papers From 3876e018037b035863a76a22bebda3fd85a238e4 Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Mon, 17 Aug 2026 17:13:05 -0500 Subject: [PATCH 17/51] Rescope licensing cleanup to semantic changes only Reduce the MIT-license cleanup to the changes that need human review, deferring the ~220 mechanical header swaps to follow-up script-driven passes: - Delete the obsolete license-preamble templates and generator scripts (config/preamble*.in, config/update_preamble*). - Remove the legacy ALPS license check from alps_inspect (script/license_check.cpp and its registration in inspect.cpp). - Update user-visible license messages to MIT in alps::print_copyright/print_license, and delegate to alps::print_license where callers duplicated the old wording (parapack, looper). - Drop a stale "consult the web page for license details" line and reword the nonexistent "ALPS cite-me license" as a citation request. - Align README-package.txt, the Debian copyright file, the looper HTML docs, and the ja ED-03 notebook output with the repository MIT license. Co-Authored-By: Claude Fable 5 --- README-package.txt | 40 +++--- .../dmft/qmc/interaction_expansion2/io.cpp | 2 +- applications/dmft/qmc/main.C | 1 - applications/qmc/looper/doc/index.html | 9 +- applications/qmc/looper/looper/version.h | 2 +- config/debian/sid/copyright | 10 +- config/preamble-light.in | 39 ----- config/preamble.in | 28 ---- config/preamble_py.in | 28 ---- config/update_preamble | 136 ------------------ config/update_preamble_py | 136 ------------------ script/CMakeLists.txt | 2 +- script/inspect.cpp | 10 +- script/license_check.cpp | 58 -------- src/alps/ngs/lib/parapack.cpp | 2 +- src/alps/parapack/parapack.C | 2 +- src/alps/utility/copyright.cpp | 8 +- src/alps/utility/copyright.hpp | 2 +- tutorials/notebook/ja/ED-03_Spectra.ipynb | 4 +- 19 files changed, 39 insertions(+), 480 deletions(-) delete mode 100644 config/preamble-light.in delete mode 100644 config/preamble.in delete mode 100644 config/preamble_py.in delete mode 100755 config/update_preamble delete mode 100755 config/update_preamble_py delete mode 100644 script/license_check.cpp diff --git a/README-package.txt b/README-package.txt index e52b7432c..ffb6aefec 100644 --- a/README-package.txt +++ b/README-package.txt @@ -1,31 +1,33 @@ The ALPS project (Algorithms and Libraries for Physics Simulations) aims at providing generic parallel algorithms for classical and quantum lattice models and provides utility classes and algorithm for many other problems. It strives to increase software reuse in the physics community. -The ALPS Libraries are published under the ALPS Application License; you can use, redistribute it and/or modify it under the terms of the license, either version 1 or (at your option) any later version. +The ALPS Libraries are distributed under the MIT License. -You should have received a copy of the ALPS Library License along with the ALPS Libraries; see the file LICENSE.txt. If not, the license is also available from http://alps.comp-phys.org/. +The full license text is provided in LICENSE.txt and is also available at +https://github.com/ALPSim/ALPS/blob/master/LICENSE.txt. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +The software is provided without warranty; see LICENSE.txt for the complete +terms. -Any publication for which one of the following libraries are used has to -acknowledge the use of the ALPS libraries, and the papers listed below: +If you use one of the following libraries in a publication, please acknowledge +the ALPS libraries and cite the papers listed below: When alps/model.h or any header in alps/model was used: -reference the web page http://alps.comp-phys.org/ and cite the publication: +reference the web page https://alps.comp-phys.org/ and cite the publication: A.F. Albuquerque et al., J. of Magn. and Magn. Materials 310, 1187 (2007) B. Bauer et al., J. Stat. Mech. (2011) P05001 When alps/lattice.h or any header in alps/lattice was used: -reference the web page http://alps.comp-phys.org/ and cite the publication: +reference the web page https://alps.comp-phys.org/ and cite the publication: A.F. Albuquerque et al., J. of Magn. and Magn. Materials 310, 1187 (2007) B. Bauer et al., J. Stat. Mech. (2011) P05001 When alps/alea.h or any header in alps/alea was used: -reference the web page http://alps.comp-phys.org/ and cite the publications: +reference the web page https://alps.comp-phys.org/ and cite the publications: A.F. Albuquerque et al., J. of Magn. and Magn. Materials 310, 1187 (2007) B. Bauer et al., J. Stat. Mech. (2011) P05001 When alps/scheduler.h or any header in alps/scheduler was used: -reference the web page http://alps.comp-phys.org/ and cite the publications: +reference the web page https://alps.comp-phys.org/ and cite the publications: A.F. Albuquerque et al., J. of Magn. and Magn. Materials 310, 1187 (2007) B. Bauer et al., J. Stat. Mech. (2011) P05001 M. Troyer et al., Lecture Notes in Computer Science, Vol. 1505, p. 191 (1998). @@ -35,14 +37,14 @@ subdirectories alps/parser, alps/osiris, alps/random do not carry any citation requirement but acknowledgment of the ALPS project is encouraged. * When the SSE quantum Monte Carlo program sse or sse_mpi was used: - - reference the ALPS web page http://alps.comp-phys.org/ + - reference the ALPS web page https://alps.comp-phys.org/ - and cite the publications: A.F. Albuquerque et al., J. of Magn. and Magn. Materials 310, 1187 (2007). B. Bauer et al., J. Stat. Mech. (2011) P05001 * When the loop quantum Monte Carlo program loop or loop_mpi was used: - reference the ALPS and ALPS/looper web pages - http://alps.comp-phys.org/ + https://alps.comp-phys.org/ http://wistaria.comp-phys.org/alps-looper/ - and cite the publications: S. Todo and K. Kato, Phys. Rev. Lett. 87 047203 (2001). @@ -51,26 +53,26 @@ citation requirement but acknowledgment of the ALPS project is encouraged. * When the classical Monte Carlo program spinmc or spinmc_mpi was used: - - reference the ALPS web page http://alps.comp-phys.org/ + - reference the ALPS web page https://alps.comp-phys.org/ - and cite the publications: A.F. Albuquerque et al., J. of Magn. and Magn. Materials 310, 1187 (2007). B. Bauer et al., J. Stat. Mech. (2011) P05001 * When the diagonalization programs fulldiag, sparsediag or fulldiag_mpi was used: - - reference the ALPS web page http://alps.comp-phys.org/ + - reference the ALPS web page https://alps.comp-phys.org/ - and cite the publications: A.F. Albuquerque et al., J. of Magn. and Magn. Materials 310, 1187 (2007). B. Bauer et al., J. Stat. Mech. (2011) P05001 * When the worm quantum Monte Carlo program is used: - - reference the ALPS web page http://alps.comp-phys.org/ + - reference the ALPS web page https://alps.comp-phys.org/ - and cite the publications: A.F. Albuquerque et al., J. of Magn. and Magn. Materials 310, 1187 (2007). B. Bauer et al., J. Stat. Mech. (2011) P05001 * When the quantum Wang-Landau program is used: - - reference the ALPS web page http://alps.comp-phys.org/ + - reference the ALPS web page https://alps.comp-phys.org/ - and cite the publications: M. Troyer, S. Wessel, and F. Alet, Phys. Rev. Lett. 90, 120201 (2003). A.F. Albuquerque et al., J. of Magn. and Magn. Materials 310, 1187 (2007). @@ -83,13 +85,8 @@ citation requirement but acknowledgment of the ALPS project is encouraged. - cite the ALPS DMFT publication (contact the authors for a current reference): E. Gull, P. Werner, S. Fuchs, B. Surer, T. Pruschke, and M. Troyer, submitted to Computer Physics Communications. - Copyright ALPS collaboration 2002 - 2010 - 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) - Since some of the references are to preprints we would like to ask you -to check the ALPS web page http://alps.comp-phys.org/ for updates. +to check the ALPS web page https://alps.comp-phys.org/ for updates. ------------------------------------ This binary installer package comes with other libraries distributed under their own license terms: @@ -124,4 +121,3 @@ This work was partially produced at the University of California, Lawrence Liver DISCLAIMER: This work was prepared as an account of work sponsored by an agency of the United States Government. Neither the United States Government nor the University of California nor any of their employees, makes any warranty, express or implied, or assumes any liability or responsibility for the accuracy, completeness, or usefulness of any information, apparatus, product, or process disclosed, or represents that its use would not infringe privately- owned rights. Reference herein to any specific commercial products, process, or service by trade name, trademark, manufacturer, or otherwise, does not necessarily constitute or imply its endorsement, recommendation, or favoring by the United States Government or the University of California. The views and opinions of authors expressed herein do not necessarily state or reflect those of the United States Government or the University of California, and shall not be used for advertising or product endorsement purposes. ------------------------------------- - diff --git a/applications/dmft/qmc/interaction_expansion2/io.cpp b/applications/dmft/qmc/interaction_expansion2/io.cpp index a3863de70..612ceb600 100644 --- a/applications/dmft/qmc/interaction_expansion2/io.cpp +++ b/applications/dmft/qmc/interaction_expansion2/io.cpp @@ -69,7 +69,7 @@ void InteractionExpansion::print(std::ostream &os){ os<<"***********************************************************************************************************"<Measurements

License

-

The license -allows the use of the applications for non-commercial scientific use -provided that the use of the ALPS/looper Library and the ALPS -Libraries is acknowledged, and the papers listed below are referenced -in any scientific publication. For detail please see the ALPS -Applications Licence.

+

ALPS is distributed under the MIT License. +If ALPS/looper contributes to published research, please acknowledge its use +and cite the relevant papers listed below.

  • reference
    • http://alps.comp-phys.org/
    • diff --git a/applications/qmc/looper/looper/version.h b/applications/qmc/looper/looper/version.h index 19f1aabf3..4a5370469 100644 --- a/applications/qmc/looper/looper/version.h +++ b/applications/qmc/looper/looper/version.h @@ -57,7 +57,7 @@ inline std::ostream& print_copyright(std::ostream& os = std::cout) { } inline std::ostream& print_license(std::ostream& os = std::cout) { - os << "Please look at the file LICENSE for the license conditions.\n"; + alps::print_license(os); return os; } diff --git a/config/debian/sid/copyright b/config/debian/sid/copyright index 2016f1c7b..e833a804c 100644 --- a/config/debian/sid/copyright +++ b/config/debian/sid/copyright @@ -5,7 +5,7 @@ This work was packaged for Debian by: It was downloaded from: - + Upstream Author(s): @@ -17,13 +17,11 @@ Copyright: License: - ALPS LIBRARY LICENSE version 1.1 - see LICENCE.txt. - ALPS APPLICATION LICENCE version 1.0 - see LICENCE-package.txt. + MIT + See LICENSE.txt. The Debian packaging is: Copyright (C) 2010-2015 Ryo IGARASHI and Synge Todo - and is licensed under the ALPS LIBRARY LICENCE version 1.1. + and is licensed under the MIT License. diff --git a/config/preamble-light.in b/config/preamble-light.in deleted file mode 100644 index 3203dab12..000000000 --- a/config/preamble-light.in +++ /dev/null @@ -1,39 +0,0 @@ -/***************************************************************************** -* -* ALPS Project: Algorithms and Libraries for Physics Simulations -* -* ALPS Light Libraries -* -* @COPYRIGHT@ -* -* This software is part of the "ALPS Light" Libraries, public-domain -* part of the ALPS Libraries. If you need the full functionality of -* the ALPS Libraries, such as Lattice, Model, Scheduler, etc, please -* use the full version of ALPS Libraries, which is available from -* http://alps.comp-phys.org/. -* -* Permission is hereby granted, free of charge, to any person or organization -* obtaining a copy of the software and accompanying documentation covered by -* this license (the "Software") to use, reproduce, display, distribute, -* execute, and transmit the Software, and to prepare derivative works of the -* Software, and to permit third-parties to whom the Software is furnished to -* do so, all subject to the following: -* -* The copyright notices in the Software and this entire statement, including -* the above license grant, this restriction and the following disclaimer, -* must be included in all copies of the Software, in whole or in part, and -* all derivative works of the Software, unless such copies or derivative -* works are solely in the form of machine-executable object code generated by -* a source language processor. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -* SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -* FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. -* -*****************************************************************************/ - -/* @ID@ */ diff --git a/config/preamble.in b/config/preamble.in deleted file mode 100644 index d6cbb782c..000000000 --- a/config/preamble.in +++ /dev/null @@ -1,28 +0,0 @@ -/***************************************************************************** -* -* ALPS Project: Algorithms and Libraries for Physics Simulations -* -* ALPS Libraries -* -* @COPYRIGHT@ -* -* This software is part of the ALPS libraries, published under the ALPS -* Library License; you can use, redistribute it and/or modify it under -* the terms of the license, either version 1 or (at your option) any later -* version. -* -* You should have received a copy of the ALPS Library License along with -* the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -* available from http://alps.comp-phys.org/. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -* SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -* FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. -* -*****************************************************************************/ - -/* @ID@ */ diff --git a/config/preamble_py.in b/config/preamble_py.in deleted file mode 100644 index 226831af7..000000000 --- a/config/preamble_py.in +++ /dev/null @@ -1,28 +0,0 @@ -############################################################################## -# -# ALPS Project: Algorithms and Libraries for Physics Simulations -# -# ALPS Libraries -# -# @COPYRIGHT@ -# -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. -# -############################################################################## - -# @ID@ diff --git a/config/update_preamble b/config/update_preamble deleted file mode 100755 index 95c4b2522..000000000 --- a/config/update_preamble +++ /dev/null @@ -1,136 +0,0 @@ -#!/usr/bin/perl - -# Script for updating preamble of *.h and *.C -# -# Usage: -# update_preamble.pl [-l] [files] -# Options: -# -l : use preamble for light version instead of full version - -# written by Synge Todo - -$basedir = $0; -$basedir =~ s/[a-zA-Z\_\.]+$//; - -if (@ARGV[0] ne '-l') { - # ALPS full version - $skel = join('', $basedir, "preamble.in"); -} else { - # ALPS-light - shift @ARGV; - $skel = join('', $basedir, "preamble-light.in"); -} -if (!-f $skel) { - die "Couldn't find $skel."; -} - -foreach $file (@ARGV) { - if (-f $file) { - $file_new = "$file.$$.tmp"; - - # scan - $year0 = ""; - $year1 = ""; - $id = ""; - @authors = (); - @emails = (); - $finish_preamble = 0; - $skip = 0; - $print_id = 0; - open(ORIG, "< $file") || die "Couldn't open $file"; - open(NEW, "> $file_new") || die "Couldn't open $file_new"; - foreach $line () { - chomp($line); - $line =~ s/\t/ /g; - $line =~ s/\s+$//g; - if ($finish_preamble == 0) { - if ($line =~ /^\s*\*\s+Copyright.+([0-9]{4})-([0-9]{4})\s+by\s+(\S\C+)\s+\<([a-zA-Z0-9\.\-_]+@[a-zA-Z0-9\.\-_]+)\>/) { - $year0 = $1; - $year1 = $2; - @authors[$#authors+1] = $3; - @emails[$#emails+1] = $4; - } elsif ($line =~ /^\s*\*\s+Copyright.+([0-9]{4})\s+by\s+(\S\C+)\s+\<([a-zA-Z0-9\.\-_]+@[a-zA-Z0-9\.\-_]+)\>/) { - $year0 = $1; - @authors[$#authors+1] = $2; - @emails[$#emails+1] = $3; - } elsif ($line =~ /^\s*\*\s+(\S\C+)\s+\<([a-zA-Z0-9\.\-_]+@[a-zA-Z0-9\.\-_]+)\>/) { - @authors[$#authors + 1] = $1; - @emails[$#emails + 1] = $2; - } elsif ($line =~ /(\$Id\:\C+\$)/) { - $id = $1; - } elsif ($line =~ /(^\s*$)|(^$)|(^\*)|(^ \*)|(^\/\*)/) { - ## nothing to do - } else { - $finish_preamble = 1; - } - - if ($finish_preamble == 1) { - if ($year0 eq "" || @authors[0] eq "") { - ## Year and authors not found. Skip this file. - $skip = 1; - } else { - if ($year1 eq $year0) { $year1 = ""; } - # if ($id eq "") { $id = join("", "\$I", "d: \$"); } - - ## print out preamble - open(SKEL, "< $skel") || die "Couldn't open $skel"; - foreach $sk () { - chomp($sk); - if ($sk =~ /\@COPYRIGHT\@/) { - if ($year1) { - print NEW "* Copyright (C) $year0-$year1 by @authors[0] <@emails[0]>"; - } else { - print NEW "* Copyright (C) $year0 by @authors[0] <@emails[0]>"; - } - if ($#authors > 0) { print NEW ","; } - print NEW "\n"; - for ($i = 1; $i <= $#authors; $i++) { - if ($year1) { - print NEW "* @authors[$i] <@emails[$i]>"; - } else { - print NEW "* @authors[$i] <@emails[$i]>"; - } - if ($i < $#authors) { print NEW ","; } - print NEW "\n"; - } - } elsif ($sk =~ /\@ID\@/) { - if ($id ne "") { - $sk =~ s/\@ID\@/$id/; - print NEW "$sk\n"; - $print_id=1; - } - } else { - print NEW "$sk\n"; - } - } - if ($print_id == 1) { - print NEW "\n"; - } - } - } - } - - if ($skip == 0 && $finish_preamble == 1) { - print NEW "$line\n"; - } - } - close(ORIG); - close(NEW); - - if ($skip ==0) { - system("diff $file $file_new > /dev/null"); - if ($? == 256) { - unlink $file; - rename $file_new, $file; - print "$file is updated.\n"; - } else { - unlink $file_new; - } - } else { - print "$file does not obey ALPS standard. Skipped.\n"; - unlink $file_new; - } - } else { - print "Couldn't open $file. Skipped.\n"; - } -} diff --git a/config/update_preamble_py b/config/update_preamble_py deleted file mode 100755 index 046da2949..000000000 --- a/config/update_preamble_py +++ /dev/null @@ -1,136 +0,0 @@ -#!/usr/bin/perl - -# Script for updating preamble of *.h and *.C -# -# Usage: -# update_preamble.pl [-l] [files] -# Options: -# -l : use preamble for light version instead of full version - -# written by Synge Todo - -$basedir = $0; -$basedir =~ s/[a-zA-Z\_\.]+$//; - -if (@ARGV[0] ne '-l') { - # ALPS full version - $skel = join('', $basedir, "preamble_py.in"); -} else { - # ALPS-light - shift @ARGV; - $skel = join('', $basedir, "preamble-light.in"); -} -if (!-f $skel) { - die "Couldn't find $skel."; -} - -foreach $file (@ARGV) { - if (-f $file) { - $file_new = "$file.$$.tmp"; - - # scan - $year0 = ""; - $year1 = ""; - $id = ""; - @authors = (); - @emails = (); - $finish_preamble = 0; - $skip = 0; - $print_id = 0; - open(ORIG, "< $file") || die "Couldn't open $file"; - open(NEW, "> $file_new") || die "Couldn't open $file_new"; - foreach $line () { - chomp($line); - $line =~ s/\t/ /g; - $line =~ s/\s+$//g; - if ($finish_preamble == 0) { - if ($line =~ /^\s*\#\s+Copyright.+([0-9]{4})-([0-9]{4})\s+by\s+(\S\C+)\s+\<([a-zA-Z0-9\.\-_]+@[a-zA-Z0-9\.\-_]+)\>/) { - $year0 = $1; - $year1 = $2; - @authors[$#authors+1] = $3; - @emails[$#emails+1] = $4; - } elsif ($line =~ /^\s*\#\s+Copyright.+([0-9]{4})\s+by\s+(\S\C+)\s+\<([a-zA-Z0-9\.\-_]+@[a-zA-Z0-9\.\-_]+)\>/) { - $year0 = $1; - @authors[$#authors+1] = $2; - @emails[$#emails+1] = $3; - } elsif ($line =~ /^\s*\#\s+(\S\C+)\s+\<([a-zA-Z0-9\.\-_]+@[a-zA-Z0-9\.\-_]+)\>/) { - @authors[$#authors + 1] = $1; - @emails[$#emails + 1] = $2; - } elsif ($line =~ /(\$Id\:\C+\$)/) { - $id = $1; - } elsif ($line =~ /(^\s*$)|(^$)|(^\#)|(^ \#)|(^\/\#)/) { - ## nothing to do - } else { - $finish_preamble = 1; - } - - if ($finish_preamble == 1) { - if ($year0 eq "" || @authors[0] eq "") { - ## Year and authors not found. Skip this file. - $skip = 1; - } else { - if ($year1 eq $year0) { $year1 = ""; } - # if ($id eq "") { $id = join("", "\$I", "d: \$"); } - - ## print out preamble - open(SKEL, "< $skel") || die "Couldn't open $skel"; - foreach $sk () { - chomp($sk); - if ($sk =~ /\@COPYRIGHT\@/) { - if ($year1) { - print NEW "# Copyright (C) $year0-$year1 by @authors[0] <@emails[0]>"; - } else { - print NEW "# Copyright (C) $year0 by @authors[0] <@emails[0]>"; - } - if ($#authors > 0) { print NEW ","; } - print NEW "\n"; - for ($i = 1; $i <= $#authors; $i++) { - if ($year1) { - print NEW "# @authors[$i] <@emails[$i]>"; - } else { - print NEW "# @authors[$i] <@emails[$i]>"; - } - if ($i < $#authors) { print NEW ","; } - print NEW "\n"; - } - } elsif ($sk =~ /\@ID\@/) { - if ($id ne "") { - $sk =~ s/\@ID\@/$id/; - print NEW "$sk\n"; - $print_id=1; - } - } else { - print NEW "$sk\n"; - } - } - if ($print_id == 1) { - print NEW "\n"; - } - } - } - } - - if ($skip == 0 && $finish_preamble == 1) { - print NEW "$line\n"; - } - } - close(ORIG); - close(NEW); - - if ($skip ==0) { - system("diff $file $file_new > /dev/null"); - if ($? == 256) { - unlink $file; - rename $file_new, $file; - print "$file is updated.\n"; - } else { - unlink $file_new; - } - } else { - print "$file does not obey ALPS standard. Skipped.\n"; - unlink $file_new; - } - } else { - print "Couldn't open $file. Skipped.\n"; - } -} diff --git a/script/CMakeLists.txt b/script/CMakeLists.txt index 6fa7c7b7b..a5ac69146 100644 --- a/script/CMakeLists.txt +++ b/script/CMakeLists.txt @@ -18,7 +18,7 @@ # DEALINGS IN THE SOFTWARE. -set(ALPS_INSPECT_SOURCES end_check.cpp license_check.cpp path_name_check.cpp +set(ALPS_INSPECT_SOURCES end_check.cpp path_name_check.cpp inspect.cpp tab_check.cpp) set(INSPECT_SOURCES deprecated_macro_check.cpp link_check.cpp crlf_check.cpp unnamed_namespace_check.cpp ascii_check.cpp copyright_check.cpp minmax_check.cpp apple_macro_check.cpp diff --git a/script/inspect.cpp b/script/inspect.cpp index 1badedec9..c7b6803d1 100644 --- a/script/inspect.cpp +++ b/script/inspect.cpp @@ -48,7 +48,6 @@ const char* boost_no_inspect = "boost-" "no-inspect"; #include "copyright_check.hpp" #include "crlf_check.hpp" #include "end_check.hpp" -#include "license_check.hpp" #include "link_check.hpp" #include "path_name_check.hpp" #include "tab_check.hpp" @@ -635,7 +634,6 @@ namespace const char * options() { return - " -license\n" " -copyright\n" " -crlf\n" " -end\n" @@ -820,7 +818,6 @@ int cpp_main( int argc_param, char * argv_param[] ) return 0; } - bool license_ck = true; bool copyright_ck = true; bool crlf_ck = true; bool end_ck = true; @@ -861,7 +858,6 @@ int cpp_main( int argc_param, char * argv_param[] ) if ( argc > 1 && *argv[1] == '-' ) { - license_ck = false; copyright_ck = false; crlf_ck = false; end_ck = false; @@ -879,9 +875,7 @@ int cpp_main( int argc_param, char * argv_param[] ) bool invalid_options = false; for(; argc > 1; --argc, ++argv ) { - if ( std::strcmp( argv[1], "-license" ) == 0 ) - license_ck = true; - else if ( std::strcmp( argv[1], "-copyright" ) == 0 ) + if ( std::strcmp( argv[1], "-copyright" ) == 0 ) copyright_ck = true; else if ( std::strcmp( argv[1], "-crlf" ) == 0 ) crlf_ck = true; @@ -926,8 +920,6 @@ int cpp_main( int argc_param, char * argv_param[] ) // leaving, due to destruction of the inspector_list object inspector_list inspectors; - if ( license_ck ) - inspectors.push_back( inspector_element( new boost::inspect::license_check ) ); if ( copyright_ck ) inspectors.push_back( inspector_element( new boost::inspect::copyright_check ) ); if ( crlf_ck ) diff --git a/script/license_check.cpp b/script/license_check.cpp deleted file mode 100644 index aa67c5b34..000000000 --- a/script/license_check.cpp +++ /dev/null @@ -1,58 +0,0 @@ -// license_check implementation --------------------------------------------// - -// Copyright Beman Dawes 2002-2003. -// 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 "boost/regex.hpp" -#include "license_check.hpp" - -namespace -{ - boost::regex license_regex( - //~ The next two lines change the regex so that it detects when the license - //~ doesn't follow the prefered statement. Disabled because it currently - //~ generates a large number of issues. - //~ "Distributed[\\s\\W]+" - //~ "under[\\s\\W]+the[\\s\\W]+" - "boost[\\s\\W]+software[\\s\\W]+license", - boost::regbase::normal | boost::regbase::icase); - - boost::regex alps_license_regex( - //~ The next two lines change the regex so that it detects when the license - //~ doesn't follow the prefered statement. Disabled because it currently - //~ generates a large number of issues. - //~ "Distributed[\\s\\W]+" - //~ "under[\\s\\W]+the[\\s\\W]+" - "ALPS.*License", - boost::regbase::normal | boost::regbase::icase); - -} // unnamed namespace - -namespace boost -{ - namespace inspect - { - license_check::license_check() : m_files_with_errors(0) - { - } - - void license_check::inspect( - const string & library_name, - const path & full_path, // example: c:/foo/boost/filesystem/path.hpp - const string & contents ) // contents of file to be inspected - { - if (contents.find( "boostinspect:" "nolicense" ) != string::npos) return; - - if ( !boost::regex_search( contents, license_regex ) && - !boost::regex_search( contents, alps_license_regex ) ) - { - ++m_files_with_errors; - error( library_name, full_path, name() ); - } - } - } // namespace inspect -} // namespace boost - - diff --git a/src/alps/ngs/lib/parapack.cpp b/src/alps/ngs/lib/parapack.cpp index 211d87120..1ab980efe 100644 --- a/src/alps/ngs/lib/parapack.cpp +++ b/src/alps/ngs/lib/parapack.cpp @@ -223,7 +223,7 @@ void print_copyright(std::ostream& os) { } void print_license(std::ostream& os) { - os << "Please look at the file LICENSE for the license conditions.\n"; + alps::print_license(os); } std::string alps_version() { diff --git a/src/alps/parapack/parapack.C b/src/alps/parapack/parapack.C index 9ef8d7b2b..6af8af39a 100644 --- a/src/alps/parapack/parapack.C +++ b/src/alps/parapack/parapack.C @@ -219,7 +219,7 @@ void print_copyright(std::ostream& os) { } void print_license(std::ostream& os) { - os << "Please look at the file LICENSE for the license conditions.\n"; + alps::print_license(os); } std::string alps_version() { diff --git a/src/alps/utility/copyright.cpp b/src/alps/utility/copyright.cpp index 7cf8e0819..e57aeb5a6 100644 --- a/src/alps/utility/copyright.cpp +++ b/src/alps/utility/copyright.cpp @@ -35,16 +35,18 @@ void alps::print_copyright(std::ostream& out) { out << "based on the ALPS libraries version " << ALPS_VERSION << "\n"; - out << " available from http://alps.comp-phys.org/\n"; + out << " available from https://alps.comp-phys.org/\n"; out << " copyright (c) 1994-" << ALPS_YEAR << " by the ALPS collaboration.\n"; - out << " Consult the web page for license details.\n"; + out << " Licensed under the MIT License.\n"; + out << " License text: https://github.com/ALPSim/ALPS/blob/master/LICENSE.txt\n"; out << " For details see the publication: \n" << " B. Bauer et al., J. Stat. Mech. (2011) P05001.\n\n"; } void alps::print_license(std::ostream& out) { - out << "Please look at the file LICENSE.txt for the license conditions\n"; + out << "Licensed under the MIT License.\n"; + out << "License text: https://github.com/ALPSim/ALPS/blob/master/LICENSE.txt\n"; } std::string alps::version() { return ALPS_VERSION; } diff --git a/src/alps/utility/copyright.hpp b/src/alps/utility/copyright.hpp index d47fa81b5..8961da423 100644 --- a/src/alps/utility/copyright.hpp +++ b/src/alps/utility/copyright.hpp @@ -46,7 +46,7 @@ namespace alps { /// \param out the output stream to which the copyright statement should be written ALPS_DECL void print_copyright(std::ostream& out); -/// print the ALPS license +/// print the ALPS license information /// \param out the output stream to which the license should be written ALPS_DECL void print_license(std::ostream& out); diff --git a/tutorials/notebook/ja/ED-03_Spectra.ipynb b/tutorials/notebook/ja/ED-03_Spectra.ipynb index a34b3cf2a..8959d4245 100644 --- a/tutorials/notebook/ja/ED-03_Spectra.ipynb +++ b/tutorials/notebook/ja/ED-03_Spectra.ipynb @@ -82,7 +82,7 @@ "based on the ALPS libraries version 2.2.b3-r7527\n", " available from http://alps.comp-phys.org/\n", " copyright (c) 1994-2013 by the ALPS collaboration.\n", - " Consult the web page for license details.\n", + " Licensed under the MIT License; see LICENSE.txt.\n", " For details see the publication: \n", " B. Bauer et al., J. Stat. Mech. (2011) P05001.\n", "\n", @@ -461,4 +461,4 @@ "metadata": {} } ] -} \ No newline at end of file +} From 3962a8a887e87575391996292870de0fa644bafa Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Mon, 17 Aug 2026 17:38:14 -0500 Subject: [PATCH 18/51] Add relicense.py; show MIT license in the lattice-preview About dialog script/relicense.py mechanically replaces obsolete ALPS Library/Application license blocks and full MIT text in headers explicitly identified as ALPS Project headers. It emits a concise ALPS Project link and SPDX MIT notice while preserving copyright attribution, boxed comment edges, line endings, and unclassified or third-party notices. The generated sweep is kept in follow-up PR #124 so it can be reviewed by rerunning the script. tool/license.py (the lattice-preview About dialog) embedded the full text of the ALPS LIBRARY LICENSE v1.1 and displayed it to users; replace it with the MIT license text matching LICENSE.txt. Its comment header is left for the mechanical sweep. Co-Authored-By: Claude Fable 5 --- script/relicense.py | 184 ++++++++++++++++++++++++++++++++++++++++++++ tool/license.py | 31 ++------ 2 files changed, 189 insertions(+), 26 deletions(-) create mode 100644 script/relicense.py diff --git a/script/relicense.py b/script/relicense.py new file mode 100644 index 000000000..457cc7239 --- /dev/null +++ b/script/relicense.py @@ -0,0 +1,184 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: MIT +"""Replace ALPS license boilerplate with project and SPDX notices. + +The repository is MIT-licensed (see LICENSE.txt), but many files still carry +either boilerplate referring to the superseded "ALPS Library License" or +"ALPS Application License" (see issue #108), or a full copy of the MIT text +inside an ALPS Project header. This script rewrites those blocks mechanically +so the resulting sweep can be reviewed by re-running the script instead of +reading every changed file: + + python3 script/relicense.py # dry run: list affected files + python3 script/relicense.py --write # rewrite files in place + python3 script/relicense.py --check # exit 1 if rewrites remain + +The rewrite rule: a recognized contiguous license comment block ending at the +line matching "DEALINGS IN THE SOFTWARE." is replaced by two concise lines: + + ALPS Project: https://alps.comp-phys.org/ + SPDX-License-Identifier: MIT + +Recognized blocks start with either "This software is part of the ALPS ..." or +the MIT permission grant. Full MIT blocks are rewritten only when a nearby +comment line identifies the header as part of the ALPS Project; unclassified +and third-party notices are left intact. The comment leader and the right +edge of boxed headers are preserved, as are copyright attribution lines above +the block. Legacy license phrases in any other form are never modified; they +are reported for manual attention. + +The script is idempotent and only inspects text files; it operates on +raw bytes so files with non-UTF-8 author names are passed through +unchanged apart from the replaced block. +""" + +import argparse +import re +import sys +from pathlib import Path + +COMMENT_LEADER = rb"[ \t]*(?:#\*?|//+|\*|!)" +LEGACY_START_RE = re.compile( + rb"^(?P" + COMMENT_LEADER + rb")[ \t]+This software is part of the ALPS", + re.IGNORECASE | re.MULTILINE, +) +MIT_START_RE = re.compile( + rb"^(?P" + COMMENT_LEADER + + rb")[ \t]+Permission is hereby granted, free of charge, " + + rb"to any person[ \t]+obtaining", + re.IGNORECASE | re.MULTILINE, +) +PROJECT_HEADER_RE = re.compile( + rb"^" + COMMENT_LEADER + + rb"[ \t]+ALPS(?:[ \t]+[A-Za-z]+)?[ \t]+Project\b", + re.IGNORECASE | re.MULTILINE, +) +BOX_PAD_RE = re.compile(rb"[ \t]{2,}(?P\*#|[*#])[ \t]*$") +END_RE = re.compile(rb"DEALINGS IN THE SOFTWARE", re.IGNORECASE) +LEGACY_RE = re.compile( + rb"ALPS[ \t]+(?:Librar(?:y|ies)|Applications?)[ \t]+Licen[cs]e", + re.IGNORECASE, +) +SPDX = b"SPDX-License-Identifier: MIT" +PROJECT = b"ALPS Project: https://alps.comp-phys.org/" + +# The recognized legacy and MIT blocks are at most 21 lines. +MAX_BLOCK_LINES = 25 +PROJECT_LOOKBACK_LINES = 40 + +SKIP_DIRS = {".git", ".hg", "build", "__pycache__"} +SELF = Path(__file__).resolve() + + +def rewrite(data): + """Return (new_data, replaced_blocks) for one file's bytes.""" + lines = data.splitlines(keepends=True) + out = [] + replaced = 0 + i = 0 + while i < len(lines): + m = LEGACY_START_RE.match(lines[i]) + if not m: + m = MIT_START_RE.match(lines[i]) + header = b"".join(lines[max(0, i - PROJECT_LOOKBACK_LINES):i]) + if m and not PROJECT_HEADER_RE.search(header): + m = None + if m: + for j in range(i, min(i + MAX_BLOCK_LINES, len(lines))): + if END_RE.search(lines[j]): + eol = b"\r\n" if lines[j].endswith(b"\r\n") else b"\n" + # Preserve the right edge of boxed comment blocks. + content = lines[i].rstrip(b"\r\n") + pad = BOX_PAD_RE.search(content) + for notice in (PROJECT, SPDX): + replacement = m.group("lead") + b" " + notice + suffix = pad.group("suffix") if pad else b"" + if (pad and len(replacement) + < len(content.rstrip()) - len(suffix)): + width = len(content.rstrip()) + replacement += ( + b" " * (width - len(suffix) - len(replacement)) + + suffix + ) + out.append(replacement + eol) + replaced += 1 + i = j + 1 + break + else: + out.append(lines[i]) + i += 1 + else: + out.append(lines[i]) + i += 1 + return b"".join(out), replaced + + +def candidate_files(paths): + for root in paths: + root = Path(root) + files = [root] if root.is_file() else sorted( + p for p in root.rglob("*") + if p.is_file() and not p.is_symlink() + and not (SKIP_DIRS & set(p.parts)) + ) + for path in files: + if path.resolve() == SELF: + continue + data = path.read_bytes() + if b"\0" in data[:8192]: # binary + continue + if (LEGACY_RE.search(data) or LEGACY_START_RE.search(data) + or MIT_START_RE.search(data)): + yield path, data + + +def main(): + parser = argparse.ArgumentParser(description=__doc__.splitlines()[0]) + parser.add_argument("paths", nargs="*", default=["."], + help="files or directories to process (default: .)") + parser.add_argument("--write", action="store_true", + help="rewrite files in place (default: dry run)") + parser.add_argument("--check", action="store_true", + help="report rewriteable or unhandled ALPS license " + "blocks and exit 1 if any are found") + args = parser.parse_args() + + rewritten, pending, manual = [], [], [] + for path, data in candidate_files(args.paths or ["."]): + new_data, replaced = rewrite(data) + if args.check: + if replaced: + pending.append((path, replaced)) + if LEGACY_RE.search(new_data): + manual.append(path) + continue + if replaced: + rewritten.append((path, replaced)) + if args.write: + path.write_bytes(new_data) + if LEGACY_RE.search(new_data): + manual.append(path) + + if args.check: + for path, replaced in pending: + print(f"rewriteable ALPS license block remains: {path} " + f"({replaced} block(s))") + for path in manual: + print(f"legacy license phrase remains: {path}") + failures = set(path for path, _ in pending) | set(manual) + print(f"{len(failures)} file(s) with rewriteable or unhandled " + "ALPS license blocks") + return 1 if failures else 0 + + verb = "rewrote" if args.write else "would rewrite" + for path, replaced in rewritten: + print(f"{verb} {path} ({replaced} block(s))") + print(f"{verb} {len(rewritten)} file(s)") + for path in manual: + print(f"needs manual attention (legacy phrase outside the standard " + f"block): {path}") + return 0 + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/tool/license.py b/tool/license.py index 15a6541b7..f148c7143 100644 --- a/tool/license.py +++ b/tool/license.py @@ -31,36 +31,15 @@ alpsDescription = """The ALPS project (Algorithms and Libraries for Physics Simulations) is an open source effort aiming at providing high-end simulation codes for strongly correlated quantum mechanical systems as well as C++ libraries for simplifying the development of such code. ALPS strives to increase software reuse in the physics community.""" -alpsLicense = """ALPS LIBRARY LICENSE version 1.1 -Copyright (C) 2003-2005 Ian McCulloch. Everyone is permitted to copy and distribute this license document. +alpsLicense = """MIT License -This License applies to any software containing a notice placed by the copyright holder saying that it may be distributed under the terms of the ALPS Library License version 1.1. Such software is herein referred to as the "Library". This license grants permission to use, reproduce, display, distribute, execute and transmit the Library, and to prepare derivative works of the Library, and to permit others to do so for non-commercial academic use, all subject to the following conditions: +Copyright 2003-2025 ALPS Collaboration -1. In any scientific publication based wholly or in part on the Library, the use of the Library must be acknowledged and the publications listed in the accompanying CITATIONS.txt document must be cited. +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -2. You may copy and distribute verbatim copies of the Library in the form that you received it, as long as all copyright notices and references to this license and warranty disclaimer are kept intact, and all recipients also receive a copy of this license, warranty disclaimer and CITATIONS.txt document. +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -3. You may modify your copy or copies of the Library, thus forming a work based on the Library, and use, copy or distribute such modified works under the terms of sections 1 and 2 above, provided that you also meet all of these conditions: - -a. You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. - -b. All citations listed in the CITATIONS.txt document that refer to sections of the Library that exist in the modified work must be preserved irrespective of the extent of the modification. - -c. You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Library or any part thereof, to be licensed as a whole at no charge to all third parties under terms compatible with this License. - -4. This Software, or modifications under section 3 above, may be distributed in object code or executable form, provided that you meet all of these conditions: - -a. This complete License, warranty disclaimer and accompanying CITATIONS.txt document is included. - -b. The executable program is accompanied with the complete machine-readable source code to the Library as used in the executable, which must be distributed under the terms of sections 2 and 3 above. Alternatively, you may provide instructions for obtaining the source code at no cost (for example, a hyper-text link). - -5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is not a derivative work of the Library, and therefore falls outside the scope of this License. - -However, linking such a work with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library). The executable is therefore covered by this License. Section 4 states terms for distribution of such executables. - -6. You must cause executable programs that utilize this Library to print or display, when started in the most basic way, a prominent announcement including a copyright notice and citation requirements as listed in the accompanying CITATIONS.txt document. If the executable program utilizes the Library in a modified form (under section 3 above), then the announcement must state this. Exception: if the announcement would not normally be visible to the user, or the announcement would interfere with normal operations of the executable application, then the executable program is not required to print an announcement. - -THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.""" +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.""" class AboutThisSoftware(wx.Frame): def __init__(self, parent, name, version = config.version(), copyright = config.copyright()): From 0e42f4b855765abfa1c2c70303b66f1fc101f228 Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Mon, 17 Aug 2026 18:38:49 -0500 Subject: [PATCH 19/51] Replace ALPS license boilerplate with project and SPDX notices --- applications/diag/diag.h | 19 ++----------------- applications/diag/fulldiag/factory.C | 19 ++----------------- applications/diag/fulldiag/factory.h | 19 ++----------------- applications/diag/fulldiag/fulldiag.C | 19 ++----------------- applications/diag/fulldiag/fulldiag.h | 19 ++----------------- .../diag/fulldiag/fulldiag_evaluate.C | 19 ++----------------- applications/diag/fulldiag/measurementplots.h | 19 ++----------------- applications/diag/fulldiagfqhe/fqheed.cpp | 19 ++----------------- applications/diag/fulldiagfqhe/states_lll.c | 18 ++---------------- .../fulldiagfqhe/states_lll_mz_minus_one.c | 18 ++---------------- .../diag/fulldiagfqhe/vector_of_primes.c | 18 ++---------------- applications/diag/sparsediag/factory.C | 19 ++----------------- applications/diag/sparsediag/factory.h | 19 ++----------------- applications/diag/sparsediag/sparsediag.C | 19 ++----------------- applications/diag/sparsediag/sparsediag.h | 19 ++----------------- applications/dmft/qmc/U_matrix.h | 19 ++----------------- applications/dmft/qmc/alps_solver.C | 19 ++----------------- applications/dmft/qmc/alps_solver.h | 19 ++----------------- applications/dmft/qmc/auxiliaryfunctions.C | 19 ++----------------- applications/dmft/qmc/bandstructure.C | 19 ++----------------- applications/dmft/qmc/bandstructure.h | 19 ++----------------- applications/dmft/qmc/externalsolver.C | 19 ++----------------- applications/dmft/qmc/externalsolver.h | 19 ++----------------- applications/dmft/qmc/fouriertransform.C | 19 ++----------------- applications/dmft/qmc/fouriertransform.h | 19 ++----------------- applications/dmft/qmc/green_function.h | 19 ++----------------- applications/dmft/qmc/hilberttransformer.C | 19 ++----------------- applications/dmft/qmc/hilberttransformer.h | 19 ++----------------- applications/dmft/qmc/hirschfyeaux.h | 19 ++----------------- applications/dmft/qmc/hirschfyesim.C | 19 ++----------------- applications/dmft/qmc/hirschfyesim.h | 19 ++----------------- applications/dmft/qmc/hybridization/hyb.hpp | 19 ++----------------- .../dmft/qmc/hybridization/hybblasmatrix.hpp | 19 ++----------------- .../dmft/qmc/hybridization/hybconfig.cpp | 19 ++----------------- .../dmft/qmc/hybridization/hybconfig.hpp | 19 ++----------------- .../dmft/qmc/hybridization/hybevaluate.cpp | 19 ++----------------- .../dmft/qmc/hybridization/hybevaluate.hpp | 19 ++----------------- .../dmft/qmc/hybridization/hybfun.cpp | 19 ++----------------- .../dmft/qmc/hybridization/hybfun.hpp | 19 ++----------------- .../dmft/qmc/hybridization/hybint.cpp | 19 ++----------------- .../dmft/qmc/hybridization/hybint.hpp | 19 ++----------------- .../dmft/qmc/hybridization/hyblocal.cpp | 19 ++----------------- .../dmft/qmc/hybridization/hyblocal.hpp | 19 ++----------------- .../dmft/qmc/hybridization/hybmain.cpp | 19 ++----------------- .../dmft/qmc/hybridization/hybmatrix.cpp | 19 ++----------------- .../dmft/qmc/hybridization/hybmatrix.hpp | 19 ++----------------- .../dmft/qmc/hybridization/hybmatrix_ft.cpp | 19 ++----------------- .../qmc/hybridization/hybmeasurements.cpp | 19 ++----------------- .../dmft/qmc/hybridization/hybretintfun.cpp | 19 ++----------------- .../dmft/qmc/hybridization/hybretintfun.hpp | 19 ++----------------- .../dmft/qmc/hybridization/hybsegment.hpp | 19 ++----------------- .../dmft/qmc/hybridization/hybsim.cpp | 19 ++----------------- .../dmft/qmc/hybridization/hybupdates.cpp | 19 ++----------------- .../qmc/interaction_expansion/auxiliary.cpp | 19 ++----------------- .../qmc/interaction_expansion/fastupdate.cpp | 19 ++----------------- .../interaction_expansion/green_matrix.hpp | 19 ++----------------- .../interaction_expansion.cpp | 19 ++----------------- .../interaction_expansion.hpp | 19 ++----------------- .../dmft/qmc/interaction_expansion/io.cpp | 19 ++----------------- .../interaction_expansion/measurements.cpp | 19 ++----------------- .../dmft/qmc/interaction_expansion/model.cpp | 19 ++----------------- .../qmc/interaction_expansion/observables.cpp | 19 ++----------------- .../qmc/interaction_expansion/operator.hpp | 19 ++----------------- .../qmc/interaction_expansion/selfenergy.cpp | 19 ++----------------- .../dmft/qmc/interaction_expansion/solver.cpp | 19 ++----------------- .../qmc/interaction_expansion/splines.cpp | 19 ++----------------- .../qmc/interaction_expansion2/auxiliary.cpp | 19 ++----------------- .../qmc/interaction_expansion2/fastupdate.cpp | 19 ++----------------- .../interaction_expansion2/green_matrix.hpp | 19 ++----------------- .../interaction_expansion.cpp | 19 ++----------------- .../interaction_expansion.hpp | 19 ++----------------- .../dmft/qmc/interaction_expansion2/io.cpp | 19 ++----------------- .../dmft/qmc/interaction_expansion2/main.cpp | 19 ++----------------- .../interaction_expansion2/measurements.cpp | 19 ++----------------- .../dmft/qmc/interaction_expansion2/model.cpp | 19 ++----------------- .../interaction_expansion2/observables.cpp | 19 ++----------------- .../qmc/interaction_expansion2/operator.hpp | 19 ++----------------- .../qmc/interaction_expansion2/selfenergy.cpp | 19 ++----------------- .../qmc/interaction_expansion2/solver.cpp | 19 ++----------------- .../qmc/interaction_expansion2/splines.cpp | 19 ++----------------- applications/dmft/qmc/main.C | 19 ++----------------- applications/dmft/qmc/selfconsistency.C | 19 ++----------------- applications/dmft/qmc/selfconsistency.h | 19 ++----------------- applications/dmft/qmc/solver.h | 19 ++----------------- applications/dmft/qmc/solver_main.C | 19 ++----------------- applications/dmft/qmc/types.h | 19 ++----------------- applications/dmft/qmc/xml.h | 19 ++----------------- applications/dmrg/dmrg/dmrg.C | 19 ++----------------- applications/dmrg/dmrg/dmrg.h | 19 ++----------------- applications/dmrg/dmrg/dmtk/array_util.h | 19 ++----------------- applications/dmrg/dmrg/dmtk/basis.h | 19 ++----------------- applications/dmrg/dmrg/dmtk/bits.h | 19 ++----------------- applications/dmrg/dmrg/dmtk/block.h | 19 ++----------------- applications/dmrg/dmrg/dmtk/block_matrix.h | 19 ++----------------- applications/dmrg/dmrg/dmtk/conj.h | 19 ++----------------- applications/dmrg/dmrg/dmtk/constants.h | 19 ++----------------- .../dmrg/dmrg/dmtk/cslice_implement.h | 19 ++----------------- applications/dmrg/dmrg/dmtk/ctimer.h | 19 ++----------------- applications/dmrg/dmrg/dmtk/dmtk.h | 19 ++----------------- applications/dmrg/dmrg/dmtk/enums.h | 19 ++----------------- applications/dmrg/dmrg/dmtk/globals.h | 19 ++----------------- .../dmrg/dmrg/dmtk/gslice_implement.h | 19 ++----------------- applications/dmrg/dmrg/dmtk/gslice_iter.h | 19 ++----------------- applications/dmrg/dmrg/dmtk/hami.h | 19 ++----------------- applications/dmrg/dmrg/dmtk/lanczos.cc | 18 ++---------------- .../dmrg/dmrg/dmtk/lapack_interface.h | 19 ++----------------- applications/dmrg/dmrg/dmtk/lattice.h | 19 ++----------------- applications/dmrg/dmrg/dmtk/matrix.h | 19 ++----------------- .../dmrg/dmrg/dmtk/matrix_implement.h | 19 ++----------------- applications/dmrg/dmrg/dmtk/meta.h | 19 ++----------------- applications/dmrg/dmrg/dmtk/operators.h | 19 ++----------------- applications/dmrg/dmrg/dmtk/qn.h | 19 ++----------------- applications/dmrg/dmrg/dmtk/range.h | 19 ++----------------- applications/dmrg/dmrg/dmtk/slice_implement.h | 19 ++----------------- applications/dmrg/dmrg/dmtk/slice_iter.h | 19 ++----------------- applications/dmrg/dmrg/dmtk/state.h | 19 ++----------------- applications/dmrg/dmrg/dmtk/state_slice.h | 19 ++----------------- applications/dmrg/dmrg/dmtk/subspace.h | 19 ++----------------- applications/dmrg/dmrg/dmtk/system.h | 19 ++----------------- applications/dmrg/dmrg/dmtk/util.h | 19 ++----------------- applications/dmrg/dmrg/dmtk/vector.h | 19 ++----------------- .../dmrg/dmrg/dmtk/vector_implement.h | 19 ++----------------- applications/dmrg/dmrg/factory.C | 19 ++----------------- applications/dmrg/dmrg/factory.h | 19 ++----------------- applications/mc/simple/evaluator.C | 19 ++----------------- applications/mc/simple/evaluator.h | 19 ++----------------- applications/mc/simple/heisenberg.C | 19 ++----------------- applications/mc/simple/heisenberg.h | 19 ++----------------- applications/mc/simple/ising.C | 19 ++----------------- applications/mc/simple/ising.h | 19 ++----------------- applications/mc/simple/main.C | 19 ++----------------- applications/mc/simple/vtk.h | 19 ++----------------- applications/mc/simple/xy.C | 19 ++----------------- applications/mc/simple/xy.h | 19 ++----------------- applications/mc/spins/abstract_fitter.C | 19 ++----------------- applications/mc/spins/abstractspinsim.h | 19 ++----------------- applications/mc/spins/base_incr_fitter.C | 19 ++----------------- applications/mc/spins/clusterupdate.h | 19 ++----------------- applications/mc/spins/connect.h | 19 ++----------------- applications/mc/spins/dummy_fitter.C | 19 ++----------------- applications/mc/spins/est_grad_fitter.C | 19 ++----------------- applications/mc/spins/factory.h | 19 ++----------------- applications/mc/spins/faststack.h | 19 ++----------------- applications/mc/spins/fit.C | 19 ++----------------- applications/mc/spins/fitter.h | 19 ++----------------- applications/mc/spins/fitting_scheduler.C | 19 ++----------------- applications/mc/spins/fitting_scheduler.h | 19 ++----------------- applications/mc/spins/helper.h | 19 ++----------------- applications/mc/spins/ising.h | 19 ++----------------- applications/mc/spins/lapack.h | 19 ++----------------- applications/mc/spins/localupdate.h | 19 ++----------------- applications/mc/spins/matrices.h | 19 ++----------------- applications/mc/spins/on.h | 19 ++----------------- applications/mc/spins/potts.h | 19 ++----------------- applications/mc/spins/spinmc.C | 19 ++----------------- applications/mc/spins/spinmc_evaluate.C | 19 ++----------------- applications/mc/spins/spinmc_factory.C | 19 ++----------------- applications/mc/spins/spinsim.h | 19 ++----------------- applications/mc/spins/tinyvec.h | 19 ++----------------- applications/mc/spins/xy.h | 19 ++----------------- applications/qmc/checksign/checksign.C | 19 ++----------------- applications/qmc/dwa/bandstructure.hpp | 19 ++----------------- applications/qmc/dwa/dwa.cpp | 19 ++----------------- applications/qmc/dwa/dwa.hpp | 19 ++----------------- applications/qmc/dwa/python/dwa.cpp | 19 ++----------------- applications/qmc/dwa/worldlines.hpp | 19 ++----------------- applications/qmc/looper/loop.C | 19 ++----------------- applications/qmc/looper/loop_config.h | 19 ++----------------- applications/qmc/looper/loop_custom.C | 19 ++----------------- applications/qmc/looper/loop_model.C | 19 ++----------------- .../qmc/looper/looper/alternating_tensor.h | 19 ++----------------- applications/qmc/looper/looper/cluster.h | 19 ++----------------- applications/qmc/looper/looper/correlation.h | 19 ++----------------- applications/qmc/looper/looper/crop.h | 19 ++----------------- applications/qmc/looper/looper/custom.h | 19 ++----------------- applications/qmc/looper/looper/custom_impl.h | 19 ++----------------- .../qmc/looper/looper/divide_if_positive.h | 19 ++----------------- applications/qmc/looper/looper/evaluator.h | 19 ++----------------- .../qmc/looper/looper/evaluator_impl.h | 19 ++----------------- applications/qmc/looper/looper/graph.h | 19 ++----------------- applications/qmc/looper/looper/graph_impl.h | 19 ++----------------- .../qmc/looper/looper/integer_range.h | 19 ++----------------- applications/qmc/looper/looper/lapack.h | 19 ++----------------- applications/qmc/looper/looper/lattice.h | 19 ++----------------- applications/qmc/looper/looper/location.h | 19 ++----------------- .../qmc/looper/looper/location_impl.h | 19 ++----------------- applications/qmc/looper/looper/matrix.h | 19 ++----------------- applications/qmc/looper/looper/measurement.h | 19 ++----------------- applications/qmc/looper/looper/model.h | 19 ++----------------- applications/qmc/looper/looper/model_impl.h | 19 ++----------------- .../qmc/looper/looper/model_parameter.h | 19 ++----------------- applications/qmc/looper/looper/montecarlo.h | 19 ++----------------- applications/qmc/looper/looper/operator.h | 19 ++----------------- applications/qmc/looper/looper/permutation.h | 19 ++----------------- applications/qmc/looper/looper/power.h | 19 ++----------------- .../qmc/looper/looper/random_choice.h | 19 ++----------------- applications/qmc/looper/looper/stiffness.h | 19 ++----------------- .../qmc/looper/looper/susceptibility.h | 19 ++----------------- applications/qmc/looper/looper/temperature.h | 19 ++----------------- applications/qmc/looper/looper/time.h | 19 ++----------------- applications/qmc/looper/looper/type.h | 19 ++----------------- applications/qmc/looper/looper/union_find.h | 19 ++----------------- applications/qmc/looper/looper/version.h | 19 ++----------------- applications/qmc/looper/looper/weight.h | 19 ++----------------- applications/qmc/looper/looper/weight_impl.h | 19 ++----------------- applications/qmc/looper/path_integral.C | 19 ++----------------- applications/qmc/looper/sse.C | 19 ++----------------- applications/qmc/qmc.h | 19 ++----------------- applications/qmc/qmc.ngs.h | 19 ++----------------- applications/qmc/qwl/qwl.C | 19 ++----------------- applications/qmc/qwl/qwl_evaluate.C | 19 ++----------------- applications/qmc/qwl/qwl_histogram.h | 19 ++----------------- applications/qmc/qwl/qwl_sse.h | 19 ++----------------- applications/qmc/sse/SSE.Classes.hpp | 19 ++----------------- applications/qmc/sse/SSE.Directed.cpp | 19 ++----------------- applications/qmc/sse/SSE.Initialization.cpp | 19 ++----------------- applications/qmc/sse/SSE.Measurements.cpp | 19 ++----------------- applications/qmc/sse/SSE.Update.cpp | 19 ++----------------- applications/qmc/sse/SSE.cpp | 19 ++----------------- applications/qmc/sse/SSE.hpp | 19 ++----------------- applications/qmc/sse/evaluate.C | 19 ++----------------- applications/qmc/sse2/SSE.Classes.hpp | 19 ++----------------- applications/qmc/sse2/SSE.Directed.cpp | 19 ++----------------- applications/qmc/sse2/SSE.Histogram.hpp | 19 ++----------------- applications/qmc/sse2/SSE.Initialization.cpp | 19 ++----------------- applications/qmc/sse2/SSE.Measurements.cpp | 19 ++----------------- applications/qmc/sse2/SSE.Update.cpp | 19 ++----------------- applications/qmc/sse2/SSE.cpp | 19 ++----------------- applications/qmc/sse2/SSE.hpp | 19 ++----------------- applications/qmc/sse4/lattice.h | 19 ++----------------- applications/qmc/sse4/lp_sse.cpp | 19 ++----------------- applications/qmc/sse4/lp_sse.h | 19 ++----------------- applications/qmc/sse4/measurement.h | 19 ++----------------- applications/qmc/sse4/model.h | 19 ++----------------- applications/qmc/sse4/sse.h | 19 ++----------------- applications/qmc/sse4/sse_alg.h | 19 ++----------------- applications/qmc/sse4/sse_alg_def.h | 19 ++----------------- applications/qmc/sse4/sse_worm_prob.h | 19 ++----------------- applications/qmc/worms/WKink.h | 19 ++----------------- applications/qmc/worms/WModel.C | 19 ++----------------- applications/qmc/worms/WRun.C | 19 ++----------------- applications/qmc/worms/WRun.h | 19 ++----------------- applications/qmc/worms/Wcheck.C | 19 ++----------------- applications/qmc/worms/Wdostep.C | 19 ++----------------- applications/qmc/worms/Winit.C | 19 ++----------------- applications/qmc/worms/Wmeas.C | 19 ++----------------- applications/qmc/worms/cyclic_iterator.h | 19 ++----------------- applications/qmc/worms/evaluate.C | 19 ++----------------- applications/qmc/worms/main.C | 19 ++----------------- applications/qmc/worms/random.h | 19 ++----------------- applications/qmc/worms/time_struct.h | 19 ++----------------- example/alea/example_autocorrelation.cpp | 19 ++----------------- example/alea/example_autocorrelation.py | 18 ++---------------- example/alea/example_error.cpp | 19 ++----------------- example/alea/example_error.py | 18 ++---------------- example/alea/example_mean.cpp | 19 ++----------------- example/alea/example_mean.py | 18 ++---------------- example/alea/example_running_mean.cpp | 19 ++----------------- example/alea/example_running_mean.py | 18 ++---------------- example/alea/example_variance.cpp | 19 ++----------------- example/alea/example_variance.py | 18 ++---------------- example/fortran/hello/hello_impl.f90 | 18 ++---------------- example/fortran/hello/main.C | 19 ++----------------- example/fortran/ising/ising_impl.f90 | 18 ++---------------- example/fortran/ising/main.C | 19 ++----------------- example/hdf5/enum_as_class.cpp | 19 ++----------------- example/hdf5/enum_vectorizable.cpp | 19 ++----------------- example/hdf5/pair_int_vectorizable.cpp | 19 ++----------------- example/ietl/arnoldi1.h | 19 ++----------------- example/ietl/arnoldi1_complex.cpp | 19 ++----------------- example/ietl/arnoldi1_real.cpp | 19 ++----------------- example/model/matrix.h | 19 ++----------------- example/model/print_numeric.cpp | 19 ++----------------- example/model/print_numeric2.cpp | 19 ++----------------- example/model/print_numeric3.cpp | 19 ++----------------- example/model/print_symbolic.cpp | 19 ++----------------- example/model/print_symbolic2.cpp | 19 ++----------------- example/model/print_symbolic3.cpp | 19 ++----------------- example/ngs/alea/custom_accum.hpp | 19 ++----------------- example/ngs/alea/example_accumulator.cpp | 19 ++----------------- example/ngs/alea/example_accumulator_set.cpp | 19 ++----------------- example/ngs/alea/example_custom_accum.cpp | 19 ++----------------- example/ngs/alea/example_histogram.cpp | 19 ++----------------- example/ngs/alea/example_new_input_op.cpp | 19 ++----------------- example/ngs/alea/example_vector_operators.cpp | 19 ++----------------- example/ngs/alea/test_alps_multi_array.cpp | 19 ++----------------- example/parapack/exchange/ising.C | 19 ++----------------- example/parapack/exchange/loop.C | 19 ++----------------- example/parapack/exchange/main.C | 19 ++----------------- example/parapack/heisenberg/heisenberg.C | 19 ++----------------- example/parapack/heisenberg/heisenberg.h | 19 ++----------------- example/parapack/ising/ising.C | 19 ++----------------- example/parapack/ising/ising.h | 19 ++----------------- example/parapack/loop/loop.C | 19 ++----------------- example/parapack/loop/loop.h | 19 ++----------------- example/parapack/loop/main.C | 19 ++----------------- example/parapack/loop/union_find.h | 19 ++----------------- example/parapack/multiple/ising.C | 19 ++----------------- example/parapack/multiple/ising.h | 19 ++----------------- example/parapack/multiple/main.C | 19 ++----------------- example/parapack/single/ising.C | 19 ++----------------- example/parapack/single/ising.h | 19 ++----------------- example/parapack/single/main.C | 19 ++----------------- example/parapack/wanglandau/main.C | 19 ++----------------- example/parapack/wanglandau/wanglandau.C | 19 ++----------------- example/parapack/wanglandau/wanglandau.h | 19 ++----------------- example/sampling/fleas.h | 19 ++----------------- example/sampling/fleas_correlated.C | 19 ++----------------- example/sampling/fleas_direct.C | 19 ++----------------- example/sampling/fleas_independent.C | 19 ++----------------- example/sampling/fleas_simpleminded.C | 19 ++----------------- example/sampling/fleas_uncorrelated.C | 19 ++----------------- example/scheduler/evaluate.C | 19 ++----------------- example/scheduler/evaluate2.C | 19 ++----------------- example/scheduler/ising.C | 19 ++----------------- example/scheduler/ising.h | 19 ++----------------- example/scheduler/ising2.C | 19 ++----------------- example/scheduler/ising2.h | 19 ++----------------- example/scheduler/main.C | 19 ++----------------- example/scheduler/main2.C | 19 ++----------------- example/scheduler/main3.C | 19 ++----------------- lib/mpi.py | 19 ++----------------- lib/pyalps/__init__.py | 19 ++----------------- lib/pyalps/alea.py | 19 ++----------------- lib/pyalps/alea_detail.py | 19 ++----------------- lib/pyalps/apptest.py | 19 ++----------------- lib/pyalps/cxx.py | 19 ++----------------- lib/pyalps/dataset.py | 19 ++----------------- lib/pyalps/dict_intersect.py | 19 ++----------------- lib/pyalps/dwa.py | 19 ++----------------- lib/pyalps/fit_wrapper.py | 19 ++----------------- lib/pyalps/floatwitherror.py | 19 ++----------------- lib/pyalps/hdf5.py | 19 ++----------------- lib/pyalps/hlist.py | 19 ++----------------- lib/pyalps/load.py | 19 ++----------------- lib/pyalps/math.py | 19 ++----------------- lib/pyalps/maxent.py | 19 ++----------------- lib/pyalps/mpi.py | 19 ++----------------- lib/pyalps/mpl_setup_macosx.py | 19 ++----------------- lib/pyalps/mpl_setup_qt.py | 19 ++----------------- lib/pyalps/mpl_setup_tk.py | 19 ++----------------- lib/pyalps/ngs.py | 19 ++----------------- lib/pyalps/plot.py | 19 ++----------------- lib/pyalps/plot_core.py | 19 ++----------------- lib/pyalps/pytools.py | 19 ++----------------- lib/pyalps/tools.py | 19 ++----------------- script/compile.py | 18 ++---------------- src/alps/alea.h | 19 ++----------------- src/alps/alea/abstractbinning.h | 19 ++----------------- src/alps/alea/abstractsimpleobservable.h | 19 ++----------------- src/alps/alea/abstractsimpleobservable.ipp | 19 ++----------------- src/alps/alea/convergence.hpp | 19 ++----------------- src/alps/alea/detailedbinning.h | 19 ++----------------- src/alps/alea/histogram.h | 19 ++----------------- src/alps/alea/histogramdata.h | 19 ++----------------- src/alps/alea/histogrameval.h | 19 ++----------------- src/alps/alea/mcanalyze.hpp | 19 ++----------------- src/alps/alea/mcdata.hpp | 19 ++----------------- src/alps/alea/nan.C | 19 ++----------------- src/alps/alea/nan.h | 19 ++----------------- src/alps/alea/nobinning.h | 19 ++----------------- src/alps/alea/observable.C | 19 ++----------------- src/alps/alea/observable.h | 19 ++----------------- src/alps/alea/observable_fwd.hpp | 19 ++----------------- src/alps/alea/observablefactory.C | 19 ++----------------- src/alps/alea/observablefactory.h | 19 ++----------------- src/alps/alea/observableset.C | 19 ++----------------- src/alps/alea/observableset.h | 19 ++----------------- src/alps/alea/observableset_p.h | 19 ++----------------- src/alps/alea/output_helper.h | 19 ++----------------- src/alps/alea/recordableobservable.h | 19 ++----------------- src/alps/alea/signedobservable.h | 19 ++----------------- src/alps/alea/simplebinning.h | 19 ++----------------- src/alps/alea/simpleobsdata.h | 19 ++----------------- src/alps/alea/simpleobservable.h | 19 ++----------------- src/alps/alea/simpleobservable.ipp | 19 ++----------------- src/alps/alea/simpleobseval.h | 19 ++----------------- src/alps/alea/simpleobseval.ipp | 19 ++----------------- src/alps/alea/type_tag.hpp | 19 ++----------------- src/alps/alea/value_with_error.hpp | 19 ++----------------- src/alps/cctype.h | 19 ++----------------- src/alps/check_schedule.hpp | 19 ++----------------- src/alps/config.h.in | 19 ++----------------- src/alps/expression.h | 19 ++----------------- src/alps/expression/block.h | 19 ++----------------- src/alps/expression/evaluatable.h | 19 ++----------------- src/alps/expression/evaluate.h | 19 ++----------------- src/alps/expression/evaluate_helper.h | 19 ++----------------- src/alps/expression/evaluator.C | 19 ++----------------- src/alps/expression/evaluator.h | 19 ++----------------- src/alps/expression/expression.h | 19 ++----------------- src/alps/expression/expression_fwd.h | 19 ++----------------- src/alps/expression/factor.h | 19 ++----------------- src/alps/expression/function.h | 19 ++----------------- src/alps/expression/number.h | 19 ++----------------- src/alps/expression/parameterevaluator.h | 19 ++----------------- src/alps/expression/symbol.h | 19 ++----------------- src/alps/expression/term.h | 19 ++----------------- src/alps/expression/traits.h | 19 ++----------------- src/alps/factory.h | 19 ++----------------- src/alps/fixed_capacity/checking.h | 19 ++----------------- src/alps/fixed_capacity/deque_detail.h | 19 ++----------------- src/alps/fixed_capacity/uninitialized_array.h | 19 ++----------------- src/alps/fixed_capacity_deque.h | 19 ++----------------- src/alps/fixed_capacity_fwd.h | 19 ++----------------- src/alps/fixed_capacity_traits.h | 19 ++----------------- src/alps/fixed_capacity_vector.h | 19 ++----------------- src/alps/fortran/alps_fortran.h | 19 ++----------------- src/alps/fortran/fortran_wrapper.h | 19 ++----------------- src/alps/fortran/fwrapper_impl.C | 19 ++----------------- src/alps/fortran/fwrapper_impl.h | 19 ++----------------- src/alps/functional.h | 19 ++----------------- src/alps/graph/canonical_graph.hpp | 19 ++----------------- src/alps/graph/canonical_properties.hpp | 19 ++----------------- .../graph/canonical_properties_traits.hpp | 19 ++----------------- src/alps/graph/detail/assert_helpers.hpp | 19 ++----------------- .../detail/canonical_properties_impl.hpp | 19 ++----------------- src/alps/graph/detail/helper_functions.hpp | 19 ++----------------- .../graph/detail/lattice_constant_impl.hpp | 19 ++----------------- src/alps/graph/detail/shared_queue.hpp | 19 ++----------------- src/alps/graph/is_embeddable.hpp | 19 ++----------------- src/alps/graph/lattice_constant.hpp | 19 ++----------------- src/alps/graph/lattice_constant_debug.hpp | 19 ++----------------- src/alps/graph/subgraph_generator.hpp | 19 ++----------------- src/alps/graph/subgraphs.hpp | 19 ++----------------- src/alps/graph/utils.hpp | 19 ++----------------- src/alps/hdf5.hpp | 19 ++----------------- src/alps/hdf5/archive.cpp | 19 ++----------------- src/alps/hdf5/archive.hpp | 19 ++----------------- src/alps/hdf5/array.hpp | 19 ++----------------- src/alps/hdf5/complex.hpp | 19 ++----------------- src/alps/hdf5/errors.hpp | 19 ++----------------- src/alps/hdf5/map.hpp | 19 ++----------------- src/alps/hdf5/matrix.hpp | 19 ++----------------- src/alps/hdf5/multi_array.hpp | 19 ++----------------- src/alps/hdf5/numeric_vector.hpp | 19 ++----------------- src/alps/hdf5/pair.hpp | 19 ++----------------- src/alps/hdf5/pointer.hpp | 19 ++----------------- src/alps/hdf5/python.cpp | 19 ++----------------- src/alps/hdf5/python.hpp | 19 ++----------------- src/alps/hdf5/shared_array.hpp | 19 ++----------------- src/alps/hdf5/stdarray.hpp | 19 ++----------------- src/alps/hdf5/tuple.hpp | 19 ++----------------- src/alps/hdf5/ublas/matrix.hpp | 19 ++----------------- src/alps/hdf5/ublas/vector.hpp | 19 ++----------------- src/alps/hdf5/valarray.hpp | 19 ++----------------- src/alps/hdf5/vector.hpp | 19 ++----------------- src/alps/lambda.hpp | 19 ++----------------- src/alps/lattice.h | 19 ++----------------- src/alps/lattice/bond_compare.h | 19 ++----------------- src/alps/lattice/boundary.h | 19 ++----------------- src/alps/lattice/cell_traits.h | 19 ++----------------- src/alps/lattice/coordinate_traits.h | 19 ++----------------- src/alps/lattice/coordinategraph.h | 19 ++----------------- src/alps/lattice/coordinatelattice.h | 19 ++----------------- src/alps/lattice/dimensional_traits.h | 19 ++----------------- src/alps/lattice/disorder.C | 19 ++----------------- src/alps/lattice/disorder.h | 19 ++----------------- src/alps/lattice/graph.h | 19 ++----------------- src/alps/lattice/graph_helper.h | 19 ++----------------- src/alps/lattice/graph_traits.h | 19 ++----------------- src/alps/lattice/graphproperties.h | 19 ++----------------- src/alps/lattice/hypercubic.h | 19 ++----------------- src/alps/lattice/lattice.h | 19 ++----------------- src/alps/lattice/latticedescriptor.C | 19 ++----------------- src/alps/lattice/latticedescriptor.h | 19 ++----------------- src/alps/lattice/latticegraph.h | 19 ++----------------- src/alps/lattice/latticegraphdescriptor.C | 19 ++----------------- src/alps/lattice/latticegraphdescriptor.h | 19 ++----------------- src/alps/lattice/latticelibrary.C | 19 ++----------------- src/alps/lattice/latticelibrary.h | 19 ++----------------- src/alps/lattice/parity.h | 19 ++----------------- src/alps/lattice/point_traits.h | 19 ++----------------- src/alps/lattice/propertymap.h | 19 ++----------------- src/alps/lattice/simplecell.h | 19 ++----------------- src/alps/lattice/simplelattice.h | 19 ++----------------- src/alps/lattice/unitcell.C | 19 ++----------------- src/alps/lattice/unitcell.h | 19 ++----------------- src/alps/mcbase.cpp | 19 ++----------------- src/alps/mcbase.hpp | 19 ++----------------- src/alps/mcmpiadapter.hpp | 19 ++----------------- src/alps/model.h | 19 ++----------------- src/alps/model/basisdescriptor.h | 19 ++----------------- src/alps/model/basisstates.h | 19 ++----------------- src/alps/model/blochbasisstates.h | 19 ++----------------- src/alps/model/bondoperator.h | 19 ++----------------- src/alps/model/bondterm.C | 19 ++----------------- src/alps/model/bondterm.h | 19 ++----------------- src/alps/model/default_term.h | 19 ++----------------- src/alps/model/globaloperator.C | 19 ++----------------- src/alps/model/globaloperator.h | 19 ++----------------- src/alps/model/half_integer.h | 19 ++----------------- src/alps/model/hamiltonian.h | 19 ++----------------- src/alps/model/hamiltonian_matrix.hpp | 19 ++----------------- src/alps/model/integer_state.h | 19 ++----------------- src/alps/model/model_helper.h | 19 ++----------------- src/alps/model/modellibrary.C | 19 ++----------------- src/alps/model/modellibrary.h | 19 ++----------------- src/alps/model/operator.h | 19 ++----------------- src/alps/model/operatordescriptor.h | 19 ++----------------- src/alps/model/operatorsubstitution.h | 19 ++----------------- src/alps/model/quantumnumber.h | 19 ++----------------- src/alps/model/sign.h | 19 ++----------------- src/alps/model/sitebasisdescriptor.h | 19 ++----------------- src/alps/model/sitebasisstates.h | 19 ++----------------- src/alps/model/siteoperator.h | 19 ++----------------- src/alps/model/sitestate.h | 19 ++----------------- src/alps/model/siteterm.C | 19 ++----------------- src/alps/model/siteterm.h | 19 ++----------------- src/alps/model/substitute.h | 19 ++----------------- src/alps/multi_array.hpp | 19 ++----------------- src/alps/multi_array/functions.hpp | 19 ++----------------- src/alps/multi_array/io.hpp | 19 ++----------------- src/alps/multi_array/multi_array.hpp | 19 ++----------------- src/alps/multi_array/operators.hpp | 19 ++----------------- src/alps/multi_array/serialization.hpp | 19 ++----------------- src/alps/ngs.hpp | 19 ++----------------- src/alps/ngs/accumulator.hpp | 19 ++----------------- src/alps/ngs/accumulator/accumulator.cpp | 19 ++----------------- src/alps/ngs/accumulator/accumulator.hpp | 19 ++----------------- .../accumulator/deprecated/accumulator.hpp | 19 ++----------------- .../accumulator/accumulator_impl.hpp | 19 ++----------------- .../deprecated/accumulator/arguments.hpp | 19 ++----------------- .../deprecated/accumulator_set.hpp | 19 ++----------------- src/alps/ngs/accumulator/deprecated/alea.hpp | 19 ++----------------- .../deprecated/alea/accumulator_set.cpp | 19 ++----------------- .../deprecated/alea/result_set.cpp | 19 ++----------------- .../deprecated/feature/autocorrelation.hpp | 19 ++----------------- .../deprecated/feature/converged.hpp | 19 ++----------------- .../accumulator/deprecated/feature/error.hpp | 19 ++----------------- .../deprecated/feature/feature_traits.hpp | 19 ++----------------- .../deprecated/feature/features.hpp | 19 ++----------------- .../deprecated/feature/fixed_size_binning.hpp | 19 ++----------------- .../deprecated/feature/generate_property.hpp | 19 ++----------------- .../deprecated/feature/histogram.hpp | 19 ++----------------- .../deprecated/feature/log_binning.hpp | 19 ++----------------- .../deprecated/feature/max_num_binning.hpp | 19 ++----------------- .../accumulator/deprecated/feature/mean.hpp | 19 ++----------------- .../accumulator/deprecated/feature/tags.hpp | 19 ++----------------- .../accumulator/deprecated/feature/tau.hpp | 19 ++----------------- .../deprecated/feature/value_type.hpp | 19 ++----------------- .../accumulator/deprecated/feature/weight.hpp | 19 ++----------------- .../ngs/accumulator/deprecated/features.hpp | 19 ++----------------- .../ngs/accumulator/deprecated/result.hpp | 19 ++----------------- .../ngs/accumulator/deprecated/result_set.hpp | 19 ++----------------- .../wrapper/accumulator_wrapper.hpp | 19 ++----------------- .../deprecated/wrapper/base_wrapper.hpp | 19 ++----------------- .../deprecated/wrapper/derived_wrapper.hpp | 19 ++----------------- .../wrapper/result_type_wrapper.hpp | 19 ++----------------- .../deprecated/wrapper/result_wrapper.hpp | 19 ++----------------- src/alps/ngs/accumulator/feature.hpp | 19 ++----------------- .../accumulator/feature/binning_analysis.hpp | 19 ++----------------- src/alps/ngs/accumulator/feature/count.hpp | 19 ++----------------- src/alps/ngs/accumulator/feature/error.hpp | 19 ++----------------- .../accumulator/feature/max_num_binning.hpp | 19 ++----------------- src/alps/ngs/accumulator/feature/mean.hpp | 19 ++----------------- src/alps/ngs/accumulator/feature/weight.hpp | 19 ++----------------- .../ngs/accumulator/feature/weight_holder.hpp | 19 ++----------------- src/alps/ngs/accumulator/parameter.hpp | 19 ++----------------- src/alps/ngs/accumulator/wrappers.hpp | 19 ++----------------- src/alps/ngs/api.hpp | 19 ++----------------- src/alps/ngs/boost_mpi.hpp | 19 ++----------------- src/alps/ngs/boost_python.hpp | 19 ++----------------- src/alps/ngs/cast.hpp | 19 ++----------------- src/alps/ngs/config.hpp | 19 ++----------------- src/alps/ngs/detail/export_sim_to_python.hpp | 19 ++----------------- src/alps/ngs/detail/extract_from_pyobject.hpp | 19 ++----------------- src/alps/ngs/detail/get_numpy_type.hpp | 19 ++----------------- src/alps/ngs/detail/paramiterator.hpp | 19 ++----------------- src/alps/ngs/detail/paramproxy.hpp | 19 ++----------------- src/alps/ngs/detail/params_impl_base.hpp | 19 ++----------------- src/alps/ngs/detail/paramvalue.hpp | 19 ++----------------- src/alps/ngs/detail/paramvalue_reader.hpp | 19 ++----------------- src/alps/ngs/detail/remove_cvr.hpp | 19 ++----------------- src/alps/ngs/detail/tcpsession.hpp | 19 ++----------------- src/alps/ngs/detail/type_wrapper.hpp | 19 ++----------------- src/alps/ngs/hash.hpp | 19 ++----------------- src/alps/ngs/lib/api.cpp | 19 ++----------------- src/alps/ngs/lib/clone.cpp | 19 ++----------------- src/alps/ngs/lib/clone_info.cpp | 19 ++----------------- src/alps/ngs/lib/get_numpy_type.cpp | 19 ++----------------- src/alps/ngs/lib/job.cpp | 19 ++----------------- .../ngs/lib/make_deprecated_parameters.cpp | 19 ++----------------- src/alps/ngs/lib/make_parameters_from_xml.cpp | 19 ++----------------- src/alps/ngs/lib/mcobservable.cpp | 19 ++----------------- src/alps/ngs/lib/mcobservables.cpp | 19 ++----------------- src/alps/ngs/lib/mcoptions.cpp | 19 ++----------------- src/alps/ngs/lib/mcresult.cpp | 19 ++----------------- src/alps/ngs/lib/mcresult_impl_base.ipp | 18 ++---------------- src/alps/ngs/lib/mcresult_impl_derived.ipp | 18 ++---------------- src/alps/ngs/lib/mcresults.cpp | 19 ++----------------- src/alps/ngs/lib/observablewrappers.cpp | 19 ++----------------- src/alps/ngs/lib/paramproxy.cpp | 19 ++----------------- src/alps/ngs/lib/params.cpp | 19 ++----------------- src/alps/ngs/lib/paramvalue.cpp | 19 ++----------------- src/alps/ngs/lib/parapack.cpp | 19 ++----------------- src/alps/ngs/lib/short_print.cpp | 19 ++----------------- src/alps/ngs/lib/signal.cpp | 19 ++----------------- src/alps/ngs/lib/sleep.cpp | 19 ++----------------- src/alps/ngs/lib/stacktrace.cpp | 19 ++----------------- src/alps/ngs/lib/ulfm.cpp | 19 ++----------------- src/alps/ngs/lib/worker_factory.cpp | 19 ++----------------- src/alps/ngs/make_deprecated_parameters.hpp | 19 ++----------------- src/alps/ngs/make_parameters_from_xml.hpp | 19 ++----------------- src/alps/ngs/mcobservable.hpp | 19 ++----------------- src/alps/ngs/mcobservables.hpp | 19 ++----------------- src/alps/ngs/mcoptions.hpp | 19 ++----------------- src/alps/ngs/mcresult.hpp | 19 ++----------------- src/alps/ngs/mcresults.hpp | 19 ++----------------- src/alps/ngs/mpi.hpp | 19 ++----------------- src/alps/ngs/mutex.hpp | 19 ++----------------- src/alps/ngs/numeric.hpp | 19 ++----------------- src/alps/ngs/numeric/array.hpp | 19 ++----------------- src/alps/ngs/numeric/detail.hpp | 19 ++----------------- src/alps/ngs/numeric/inf.hpp | 19 ++----------------- src/alps/ngs/numeric/multi_array.hpp | 19 ++----------------- src/alps/ngs/numeric/vector.hpp | 19 ++----------------- src/alps/ngs/observablewrappers.hpp | 19 ++----------------- src/alps/ngs/params.hpp | 19 ++----------------- src/alps/ngs/parapack/clone.h | 19 ++----------------- src/alps/ngs/parapack/clone_info.h | 19 ++----------------- src/alps/ngs/parapack/clone_info_p.h | 19 ++----------------- src/alps/ngs/parapack/clone_proxy.h | 19 ++----------------- src/alps/ngs/parapack/job.h | 19 ++----------------- src/alps/ngs/parapack/job_p.h | 19 ++----------------- src/alps/ngs/parapack/params_p.h | 19 ++----------------- src/alps/ngs/parapack/parapack.h | 19 ++----------------- src/alps/ngs/parapack/simulation_p.h | 19 ++----------------- src/alps/ngs/parapack/worker_factory.h | 19 ++----------------- src/alps/ngs/python/accumulator.cpp | 19 ++----------------- src/alps/ngs/python/api.cpp | 19 ++----------------- src/alps/ngs/python/hdf5.cpp | 19 ++----------------- src/alps/ngs/python/mcbase.cpp | 19 ++----------------- src/alps/ngs/python/observable.cpp | 19 ++----------------- src/alps/ngs/python/observables.cpp | 19 ++----------------- src/alps/ngs/python/params.cpp | 19 ++----------------- src/alps/ngs/python/random01.cpp | 19 ++----------------- src/alps/ngs/python/result.cpp | 19 ++----------------- src/alps/ngs/python/results.cpp | 19 ++----------------- src/alps/ngs/random01.hpp | 19 ++----------------- src/alps/ngs/result.hpp | 19 ++----------------- .../ngs/scheduler/proto/controlthreadsim.hpp | 19 ++----------------- src/alps/ngs/scheduler/proto/mcbase.hpp | 19 ++----------------- src/alps/ngs/scheduler/proto/mpisim.hpp | 19 ++----------------- src/alps/ngs/scheduler/proto/mpisim_ulfm.hpp | 19 ++----------------- src/alps/ngs/scheduler/proto/tcpserver.hpp | 19 ++----------------- src/alps/ngs/scheduler/tcpserver.hpp | 19 ++----------------- src/alps/ngs/short_print.hpp | 19 ++----------------- src/alps/ngs/signal.hpp | 19 ++----------------- src/alps/ngs/sleep.hpp | 19 ++----------------- src/alps/ngs/stacktrace.hpp | 19 ++----------------- src/alps/ngs/stringify.hpp | 19 ++----------------- src/alps/ngs/thread_exceptions.hpp | 19 ++----------------- src/alps/ngs/ulfm.hpp | 19 ++----------------- src/alps/numeric/abs2.hpp | 19 ++----------------- src/alps/numeric/accumulate_if.hpp | 19 ++----------------- src/alps/numeric/binomial.hpp | 19 ++----------------- src/alps/numeric/checked_divide.hpp | 19 ++----------------- src/alps/numeric/conj.hpp | 19 ++----------------- src/alps/numeric/deprecated/vector.hpp | 19 ++----------------- .../numeric/detail/deprecated/blasheader.hpp | 19 ++----------------- .../numeric/detail/deprecated/blasmacros.h | 19 ++----------------- .../detail/deprecated/general_matrix.hpp | 19 ++----------------- src/alps/numeric/detail/deprecated/matrix.hpp | 19 ++----------------- src/alps/numeric/detail/deprecated/vector.hpp | 19 ++----------------- src/alps/numeric/diagonal_matrix.hpp | 19 ++----------------- src/alps/numeric/double2int.hpp | 19 ++----------------- src/alps/numeric/fourier.hpp | 19 ++----------------- src/alps/numeric/functional.hpp | 19 ++----------------- src/alps/numeric/imag.hpp | 19 ++----------------- src/alps/numeric/is_equal.hpp | 19 ++----------------- src/alps/numeric/is_negative.hpp | 19 ++----------------- src/alps/numeric/is_nonzero.hpp | 19 ++----------------- src/alps/numeric/is_positive.hpp | 19 ++----------------- src/alps/numeric/is_zero.hpp | 19 ++----------------- src/alps/numeric/isinf.hpp | 19 ++----------------- src/alps/numeric/isnan.hpp | 19 ++----------------- src/alps/numeric/matrix.hpp | 19 ++----------------- src/alps/numeric/matrix/algorithms.hpp | 19 ++----------------- src/alps/numeric/matrix/column_view.hpp | 19 ++----------------- src/alps/numeric/matrix/conj.hpp | 19 ++----------------- .../auto_deduce_multiply_return_type.hpp | 19 ++----------------- .../detail/auto_deduce_plus_return_type.hpp | 19 ++----------------- src/alps/numeric/matrix/detail/blasmacros.hpp | 19 ++----------------- .../matrix/detail/column_view_adaptor.hpp | 19 ++----------------- .../numeric/matrix/detail/debug_output.hpp | 19 ++----------------- .../numeric/matrix/detail/matrix_adaptor.hpp | 19 ++----------------- .../numeric/matrix/detail/print_matrix.hpp | 19 ++----------------- .../numeric/matrix/detail/print_vector.hpp | 19 ++----------------- .../matrix/detail/transpose_view_adaptor.hpp | 19 ++----------------- .../numeric/matrix/detail/vector_adaptor.hpp | 19 ++----------------- src/alps/numeric/matrix/entity.hpp | 19 ++----------------- .../numeric/matrix/exchange_value_type.hpp | 19 ++----------------- src/alps/numeric/matrix/gemm.hpp | 19 ++----------------- src/alps/numeric/matrix/gemv.hpp | 19 ++----------------- .../numeric/matrix/is_blas_dispatchable.hpp | 19 ++----------------- src/alps/numeric/matrix/matrix.hpp | 19 ++----------------- src/alps/numeric/matrix/matrix.ipp | 19 ++----------------- .../matrix/matrix_concept_archetype.hpp | 19 ++----------------- .../numeric/matrix/matrix_concept_check.hpp | 19 ++----------------- .../matrix/matrix_element_iterator.hpp | 19 ++----------------- src/alps/numeric/matrix/matrix_interface.hpp | 19 ++----------------- src/alps/numeric/matrix/matrix_traits.hpp | 19 ++----------------- .../numeric/matrix/operators/multiply.hpp | 19 ++----------------- .../matrix/operators/multiply_matrix.hpp | 19 ++----------------- .../matrix/operators/multiply_scalar.hpp | 19 ++----------------- .../numeric/matrix/operators/op_assign.hpp | 19 ++----------------- .../matrix/operators/op_assign_matrix.hpp | 19 ++----------------- .../matrix/operators/op_assign_vector.hpp | 19 ++----------------- .../numeric/matrix/operators/plus_minus.hpp | 19 ++----------------- .../matrix/resizable_matrix_concept_check.hpp | 19 ++----------------- .../matrix/resizable_matrix_interface.hpp | 19 ++----------------- src/alps/numeric/matrix/scalar_product.hpp | 19 ++----------------- src/alps/numeric/matrix/strided_iterator.hpp | 19 ++----------------- src/alps/numeric/matrix/transpose.hpp | 19 ++----------------- src/alps/numeric/matrix/transpose_view.hpp | 19 ++----------------- .../numeric/matrix/ublas_sparse_functions.hpp | 19 ++----------------- src/alps/numeric/matrix/vector.hpp | 19 ++----------------- src/alps/numeric/matrix/vector_interface.hpp | 19 ++----------------- src/alps/numeric/matrix_as_vector.hpp | 19 ++----------------- src/alps/numeric/outer_product.hpp | 19 ++----------------- src/alps/numeric/polynomial.hpp | 19 ++----------------- src/alps/numeric/real.hpp | 19 ++----------------- src/alps/numeric/regression.hpp | 19 ++----------------- src/alps/numeric/round.hpp | 19 ++----------------- src/alps/numeric/scalar_product.hpp | 19 ++----------------- src/alps/numeric/sequence_comparisons.hpp | 19 ++----------------- src/alps/numeric/set_negative_0.hpp | 19 ++----------------- src/alps/numeric/special_functions.hpp | 19 ++----------------- src/alps/numeric/update_minmax.hpp | 19 ++----------------- src/alps/numeric/valarray_functions.hpp | 19 ++----------------- src/alps/numeric/vector_functions.hpp | 19 ++----------------- .../numeric/vector_valarray_conversion.hpp | 19 ++----------------- src/alps/osiris.h | 19 ++----------------- src/alps/osiris/archivedump.h | 19 ++----------------- src/alps/osiris/boost/array.h | 19 ++----------------- src/alps/osiris/boost/ublas.h | 19 ++----------------- src/alps/osiris/buffer.C | 19 ++----------------- src/alps/osiris/buffer.h | 19 ++----------------- src/alps/osiris/comm.C | 19 ++----------------- src/alps/osiris/comm.h | 19 ++----------------- src/alps/osiris/dump.C | 19 ++----------------- src/alps/osiris/dump.h | 19 ++----------------- src/alps/osiris/dumparchive.C | 19 ++----------------- src/alps/osiris/dumparchive.h | 19 ++----------------- src/alps/osiris/mpdump.C | 19 ++----------------- src/alps/osiris/mpdump.h | 19 ++----------------- src/alps/osiris/process.C | 19 ++----------------- src/alps/osiris/process.h | 19 ++----------------- src/alps/osiris/std/deque.h | 19 ++----------------- src/alps/osiris/std/impl.h | 19 ++----------------- src/alps/osiris/std/list.h | 19 ++----------------- src/alps/osiris/std/map.h | 19 ++----------------- src/alps/osiris/std/pair.h | 19 ++----------------- src/alps/osiris/std/set.h | 19 ++----------------- src/alps/osiris/std/stack.h | 19 ++----------------- src/alps/osiris/std/string.h | 19 ++----------------- src/alps/osiris/std/valarray.h | 19 ++----------------- src/alps/osiris/std/vector.h | 19 ++----------------- src/alps/osiris/xdrcore.C | 19 ++----------------- src/alps/osiris/xdrdump.C | 19 ++----------------- src/alps/osiris/xdrdump.h | 19 ++----------------- src/alps/parameter.h | 19 ++----------------- src/alps/parameter/parameter.C | 19 ++----------------- src/alps/parameter/parameter.h | 19 ++----------------- src/alps/parameter/parameter_p.h | 19 ++----------------- src/alps/parameter/parameterlist.C | 19 ++----------------- src/alps/parameter/parameterlist.h | 19 ++----------------- src/alps/parameter/parameterlist_p.h | 19 ++----------------- src/alps/parameter/parameters.C | 19 ++----------------- src/alps/parameter/parameters.h | 19 ++----------------- src/alps/parameter/parameters_p.h | 19 ++----------------- src/alps/parapack/clone.C | 19 ++----------------- src/alps/parapack/clone.h | 19 ++----------------- src/alps/parapack/clone_info.C | 19 ++----------------- src/alps/parapack/clone_info.h | 19 ++----------------- src/alps/parapack/clone_info_p.h | 19 ++----------------- src/alps/parapack/clone_proxy.h | 19 ++----------------- src/alps/parapack/clone_timer.h | 19 ++----------------- src/alps/parapack/exchange.h | 19 ++----------------- src/alps/parapack/exchange_multi.h | 19 ++----------------- src/alps/parapack/exp_number.h | 19 ++----------------- src/alps/parapack/filelock.C | 19 ++----------------- src/alps/parapack/filelock.h | 19 ++----------------- src/alps/parapack/footprint.h | 19 ++----------------- src/alps/parapack/integer_range.h | 19 ++----------------- src/alps/parapack/job.C | 19 ++----------------- src/alps/parapack/job.h | 19 ++----------------- src/alps/parapack/job_p.h | 19 ++----------------- src/alps/parapack/logger.C | 19 ++----------------- src/alps/parapack/logger.h | 19 ++----------------- src/alps/parapack/mc_worker.C | 19 ++----------------- src/alps/parapack/mc_worker.h | 19 ++----------------- src/alps/parapack/measurement.C | 19 ++----------------- src/alps/parapack/measurement.h | 19 ++----------------- src/alps/parapack/montecarlo.h | 19 ++----------------- src/alps/parapack/option.C | 19 ++----------------- src/alps/parapack/option.h | 19 ++----------------- src/alps/parapack/parapack.C | 19 ++----------------- src/alps/parapack/parapack.h | 19 ++----------------- src/alps/parapack/permutation.h | 19 ++----------------- src/alps/parapack/process.h | 19 ++----------------- src/alps/parapack/process_impl.C | 19 ++----------------- src/alps/parapack/queue.C | 19 ++----------------- src/alps/parapack/queue.h | 19 ++----------------- src/alps/parapack/rng_helper.C | 19 ++----------------- src/alps/parapack/rng_helper.h | 19 ++----------------- src/alps/parapack/simulation_p.h | 19 ++----------------- src/alps/parapack/temperature_scan.h | 19 ++----------------- src/alps/parapack/types.C | 19 ++----------------- src/alps/parapack/types.h | 19 ++----------------- src/alps/parapack/util.C | 19 ++----------------- src/alps/parapack/util.h | 19 ++----------------- src/alps/parapack/version.C | 19 ++----------------- src/alps/parapack/version.h | 19 ++----------------- src/alps/parapack/wanglandau.h | 19 ++----------------- src/alps/parapack/worker.h | 19 ++----------------- src/alps/parapack/worker_factory.C | 19 ++----------------- src/alps/parapack/worker_factory.h | 19 ++----------------- src/alps/parseargs.cpp | 19 ++----------------- src/alps/parseargs.hpp | 19 ++----------------- src/alps/parser/parser.C | 19 ++----------------- src/alps/parser/parser.h | 19 ++----------------- src/alps/parser/xmlattributes.C | 19 ++----------------- src/alps/parser/xmlattributes.h | 19 ++----------------- src/alps/parser/xmlhandler.C | 19 ++----------------- src/alps/parser/xmlhandler.h | 19 ++----------------- src/alps/parser/xmlparser.C | 19 ++----------------- src/alps/parser/xmlparser.h | 19 ++----------------- src/alps/parser/xmlstream.C | 19 ++----------------- src/alps/parser/xmlstream.h | 19 ++----------------- src/alps/parser/xslt_path.C | 19 ++----------------- src/alps/parser/xslt_path.h | 19 ++----------------- src/alps/plot.h | 19 ++----------------- src/alps/progress_callback.hpp | 19 ++----------------- src/alps/python/make_copy.hpp | 19 ++----------------- src/alps/python/numpy_array.cpp | 19 ++----------------- src/alps/python/numpy_array.hpp | 19 ++----------------- src/alps/python/numpy_import.hpp | 19 ++----------------- src/alps/python/pyalea.cpp | 19 ++----------------- src/alps/python/pymcdata.cpp | 19 ++----------------- src/alps/python/pytools.cpp | 19 ++----------------- src/alps/python/save_observable_to_hdf5.hpp | 19 ++----------------- src/alps/random.h | 19 ++----------------- src/alps/random/buffered_rng.h | 19 ++----------------- src/alps/random/pseudo_des.h | 19 ++----------------- src/alps/random/random_choice.hpp | 19 ++----------------- src/alps/random/rngfactory.C | 19 ++----------------- src/alps/random/rngfactory.h | 19 ++----------------- src/alps/random/seed.h | 19 ++----------------- src/alps/random/uniform_on_sphere_n.h | 19 ++----------------- src/alps/scheduler.h | 19 ++----------------- src/alps/scheduler/abstract_task.C | 19 ++----------------- src/alps/scheduler/convert.h | 19 ++----------------- src/alps/scheduler/convertxdr.C | 19 ++----------------- src/alps/scheduler/diag.hpp | 19 ++----------------- src/alps/scheduler/factory.C | 19 ++----------------- src/alps/scheduler/factory.h | 19 ++----------------- src/alps/scheduler/info.C | 19 ++----------------- src/alps/scheduler/info.h | 19 ++----------------- src/alps/scheduler/master_scheduler.C | 19 ++----------------- src/alps/scheduler/measurement_operators.C | 19 ++----------------- src/alps/scheduler/measurement_operators.h | 19 ++----------------- src/alps/scheduler/montecarlo.C | 19 ++----------------- src/alps/scheduler/montecarlo.h | 19 ++----------------- src/alps/scheduler/mpp_scheduler.C | 19 ++----------------- src/alps/scheduler/options.C | 19 ++----------------- src/alps/scheduler/options.h | 19 ++----------------- src/alps/scheduler/remote_task.C | 19 ++----------------- src/alps/scheduler/remote_worker.C | 19 ++----------------- src/alps/scheduler/scheduler.C | 19 ++----------------- src/alps/scheduler/scheduler.h | 19 ++----------------- src/alps/scheduler/serial_scheduler.C | 19 ++----------------- src/alps/scheduler/signal.C | 19 ++----------------- src/alps/scheduler/signal.hpp | 19 ++----------------- src/alps/scheduler/single_scheduler.C | 19 ++----------------- src/alps/scheduler/slave_task.C | 19 ++----------------- src/alps/scheduler/task.C | 19 ++----------------- src/alps/scheduler/task.h | 19 ++----------------- src/alps/scheduler/types.h | 19 ++----------------- src/alps/scheduler/worker.C | 19 ++----------------- src/alps/scheduler/worker.h | 19 ++----------------- src/alps/scheduler/workertask.C | 19 ++----------------- src/alps/stop_callback.cpp | 19 ++----------------- src/alps/stop_callback.hpp | 19 ++----------------- src/alps/stringvalue.h | 19 ++----------------- src/alps/type_traits/average_type.hpp | 19 ++----------------- src/alps/type_traits/change_value_type.hpp | 19 ++----------------- src/alps/type_traits/covariance_type.hpp | 19 ++----------------- src/alps/type_traits/element_type.hpp | 19 ++----------------- src/alps/type_traits/has_value_type.hpp | 19 ++----------------- src/alps/type_traits/is_complex.hpp | 19 ++----------------- src/alps/type_traits/is_scalar.hpp | 19 ++----------------- src/alps/type_traits/is_sequence.hpp | 19 ++----------------- src/alps/type_traits/is_symbolic.hpp | 19 ++----------------- src/alps/type_traits/iterator_type.hpp | 19 ++----------------- src/alps/type_traits/norm_type.hpp | 19 ++----------------- src/alps/type_traits/param_type.hpp | 19 ++----------------- src/alps/type_traits/real_type.hpp | 19 ++----------------- src/alps/type_traits/slice.hpp | 19 ++----------------- src/alps/type_traits/type_tag.hpp | 19 ++----------------- src/alps/utility/assign.hpp | 19 ++----------------- src/alps/utility/bitops.hpp | 19 ++----------------- src/alps/utility/copyright.cpp | 19 ++----------------- src/alps/utility/copyright.hpp | 19 ++----------------- src/alps/utility/data.hpp | 19 ++----------------- src/alps/utility/factory.hpp | 19 ++----------------- src/alps/utility/make_copy.hpp | 19 ++----------------- src/alps/utility/numeric_cast.hpp | 19 ++----------------- src/alps/utility/os.cpp | 19 ++----------------- src/alps/utility/os.hpp | 19 ++----------------- src/alps/utility/resize.hpp | 19 ++----------------- src/alps/utility/set_zero.hpp | 19 ++----------------- src/alps/utility/size.hpp | 19 ++----------------- src/alps/utility/vectorio.hpp | 19 ++----------------- src/alps/utility/vmusage.cpp | 19 ++----------------- src/alps/utility/vmusage.hpp | 19 ++----------------- src/alps/version.h.in | 19 ++----------------- src/alps/xml.h | 19 ++----------------- src/boost/classic_spirit.hpp | 18 ++---------------- src/boost/function_objects.hpp | 18 ++---------------- src/boost/throw_exception.C | 18 ++---------------- src/ietl/bandlanczos.h | 19 ++----------------- src/ietl/bicgstabl.h | 19 ++----------------- src/ietl/cg.h | 19 ++----------------- src/ietl/complex.h | 19 ++----------------- src/ietl/config.h.in | 19 ++----------------- src/ietl/fmatrix.h | 19 ++----------------- src/ietl/gmres.h | 19 ++----------------- src/ietl/ietl2lapack.h | 19 ++----------------- src/ietl/interface/blas.h | 19 ++----------------- src/ietl/interface/blitz.h | 19 ++----------------- src/ietl/interface/mtl.h | 19 ++----------------- src/ietl/interface/ublas.h | 19 ++----------------- src/ietl/interface/valarray.h | 19 ++----------------- src/ietl/inverse.h | 19 ++----------------- src/ietl/iteration.h | 19 ++----------------- src/ietl/jacobi.h | 19 ++----------------- src/ietl/jd.h | 19 ++----------------- src/ietl/krylov_wrapper.h | 19 ++----------------- src/ietl/lanczos.h | 19 ++----------------- src/ietl/matrix.h | 19 ++----------------- src/ietl/power.h | 19 ++----------------- src/ietl/rayleigh.h | 19 ++----------------- src/ietl/tmatrix.h | 19 ++----------------- src/ietl/traits.h | 19 ++----------------- src/ietl/vectorspace.h | 19 ++----------------- test/accumulator/count.cpp | 19 ++----------------- test/accumulator/mean.cpp | 19 ++----------------- test/alea/binned_data.C | 19 ++----------------- test/alea/complexobservable.C | 19 ++----------------- test/alea/detailedbinning.C | 19 ++----------------- test/alea/dumpbench.C | 19 ++----------------- test/alea/histogram.C | 19 ++----------------- test/alea/histogram2.C | 19 ++----------------- test/alea/mcanalyze.C | 19 ++----------------- test/alea/mcdata.C | 19 ++----------------- test/alea/mcdata2.C | 19 ++----------------- test/alea/mcdata_transform_variance.C | 19 ++----------------- test/alea/observableset_hdf5.C | 19 ++----------------- test/alea/observableset_mpi.C | 19 ++----------------- test/alea/observableset_xml.C | 19 ++----------------- test/alea/signed.C | 19 ++----------------- test/alea/simpleobseval.C | 19 ++----------------- test/alea/testobservableset.C | 19 ++----------------- test/alea/vectorobseval.C | 19 ++----------------- test/fixed_capacity/fixed_capacity_deque.C | 19 ++----------------- test/fixed_capacity/fixed_capacity_traits.C | 19 ++----------------- test/fixed_capacity/fixed_capacity_vector.C | 19 ++----------------- test/fixed_capacity/test_deque.C | 19 ++----------------- test/fixed_capacity/test_main.h | 19 ++----------------- test/fixed_capacity/test_vector.C | 19 ++----------------- test/fixed_capacity/timing_queue.C | 19 ++----------------- test/fixed_capacity/timing_stack.C | 19 ++----------------- test/fixed_capacity/timing_vector.C | 19 ++----------------- .../canonical_label_random_graphs_test.cpp | 19 ++----------------- test/graph/canonical_label_test.cpp | 19 ++----------------- ...nical_label_with_color_symmetries_test.cpp | 19 ++----------------- test/graph/colored_lattice_constant_test.cpp | 19 ++----------------- test/graph/colored_lattice_constant_test2.cpp | 19 ++----------------- test/graph/embedding_test.cpp | 19 ++----------------- test/graph/generate_random_graph.hpp | 19 ++----------------- ..._embeddable_with_color_symmetries_test.cpp | 19 ++----------------- test/graph/iso_simple.cpp | 19 ++----------------- test/graph/lattice_constant_matrix.cpp | 19 ++----------------- test/graph/lattice_constant_square_test.cpp | 19 ++----------------- test/graph/lattice_constant_tri_test.cpp | 19 ++----------------- test/graph/orbit_test.cpp | 19 ++----------------- test/graph/subgraph_generator_test.cpp | 19 ++----------------- .../subgraph_generator_test_colored_edges.cpp | 19 ++----------------- ...subgraph_generator_test_colored_edges2.cpp | 19 ++----------------- ..._generator_test_colored_edges_with_sym.cpp | 19 ++----------------- ...generator_test_colored_edges_with_sym2.cpp | 19 ++----------------- test/graph/utils_test.cpp | 19 ++----------------- test/hdf5/creator.hpp | 19 ++----------------- test/hdf5/hdf5_bool.cpp | 19 ++----------------- test/hdf5/hdf5_complex.cpp | 19 ++----------------- test/hdf5/hdf5_copy.cpp | 19 ++----------------- test/hdf5/hdf5_exceptions.cpp | 19 ++----------------- test/hdf5/hdf5_family.cpp | 19 ++----------------- test/hdf5/hdf5_fortran_string.cpp | 19 ++----------------- test/hdf5/hdf5_ising.cpp | 19 ++----------------- test/hdf5/hdf5_large.cpp | 19 ++----------------- test/hdf5/hdf5_memory.cpp | 19 ++----------------- test/hdf5/hdf5_misc.cpp | 19 ++----------------- test/hdf5/hdf5_multi_array.cpp | 19 ++----------------- test/hdf5/hdf5_multiarchive.cpp | 19 ++----------------- test/hdf5/hdf5_observableset.cpp | 19 ++----------------- test/hdf5/hdf5_omp.cpp | 19 ++----------------- test/hdf5/hdf5_pair.cpp | 19 ++----------------- test/hdf5/hdf5_parms.cpp | 19 ++----------------- test/hdf5/hdf5_real_complex.cpp | 19 ++----------------- test/hdf5/hdf5_real_complex_matrix.cpp | 19 ++----------------- test/hdf5/hdf5_real_complex_vec.cpp | 19 ++----------------- test/hdf5/hdf5_replace.cpp | 19 ++----------------- test/hdf5/hdf5_valgrind.cpp | 19 ++----------------- test/hdf5/hdf5_vecveccplx.cpp | 19 ++----------------- test/hdf5/hdf5_vecvecdbl.cpp | 19 ++----------------- test/hdf5/type_check.cpp.in | 18 ++---------------- test/lattice/coloring.C | 19 ++----------------- test/lattice/example1.C | 19 ++----------------- test/lattice/example10.C | 19 ++----------------- test/lattice/example11.C | 19 ++----------------- test/lattice/example2.C | 19 ++----------------- test/lattice/example3.C | 19 ++----------------- test/lattice/example4.C | 19 ++----------------- test/lattice/example5.C | 19 ++----------------- test/lattice/example6.C | 19 ++----------------- test/lattice/example7.C | 19 ++----------------- test/lattice/example8.C | 19 ++----------------- test/lattice/example9.C | 19 ++----------------- test/lattice/label.C | 19 ++----------------- test/lattice/parity.C | 19 ++----------------- test/model/example1.C | 19 ++----------------- test/model/example10.C | 19 ++----------------- test/model/example11.C | 19 ++----------------- test/model/example12.C | 19 ++----------------- test/model/example13.C | 19 ++----------------- test/model/example14.C | 19 ++----------------- test/model/example15.C | 19 ++----------------- test/model/example16.C | 19 ++----------------- test/model/example17.C | 19 ++----------------- test/model/example18.C | 19 ++----------------- test/model/example2.C | 19 ++----------------- test/model/example3.C | 19 ++----------------- test/model/example4.C | 19 ++----------------- test/model/example5.C | 19 ++----------------- test/model/example6.C | 19 ++----------------- test/model/example7.C | 19 ++----------------- test/model/example8.C | 19 ++----------------- test/model/example9.C | 19 ++----------------- test/ngs/alea/error_archetype.hpp | 19 ++----------------- test/ngs/alea/hist_archetype.hpp | 19 ++----------------- test/ngs/alea/mean_archetype.hpp | 19 ++----------------- test/ngs/alea/ngs_alea_compare.cpp | 19 ++----------------- test/ngs/alea/ngs_alea_count_test_compile.cpp | 19 ++----------------- test/ngs/alea/ngs_alea_count_test_runtime.cpp | 19 ++----------------- test/ngs/alea/ngs_alea_ctor_test_compile.cpp | 19 ++----------------- test/ngs/alea/ngs_alea_ctor_test_runtime.cpp | 19 ++----------------- test/ngs/alea/ngs_alea_error_test_compile.cpp | 19 ++----------------- test/ngs/alea/ngs_alea_error_test_runtime.cpp | 19 ++----------------- .../alea/ngs_alea_fix_size_test_compile.cpp | 19 ++----------------- .../alea/ngs_alea_fix_size_test_runtime.cpp | 19 ++----------------- test/ngs/alea/ngs_alea_log_test_compile.cpp | 19 ++----------------- test/ngs/alea/ngs_alea_log_test_runtime.cpp | 19 ++----------------- .../alea/ngs_alea_max_num_test_compile.cpp | 19 ++----------------- .../alea/ngs_alea_max_num_test_runtime.cpp | 19 ++----------------- test/ngs/alea/ngs_alea_mean_test_compile.cpp | 19 ++----------------- test/ngs/alea/ngs_alea_mean_test_runtime.cpp | 19 ++----------------- test/ngs/alea/ngs_alea_next.cpp | 19 ++----------------- .../ngs/alea/ngs_alea_stream_test_compile.cpp | 19 ++----------------- .../ngs/alea/ngs_alea_stream_test_runtime.cpp | 19 ++----------------- test/ngs/alea/ngs_alea_value_type_test.cpp | 19 ++----------------- test/ngs/alea/ngs_alea_weight_type_test.cpp | 19 ++----------------- .../alea/ngs_alea_wrapper_test_compile.cpp | 19 ++----------------- .../alea/ngs_alea_wrapper_test_runtime.cpp | 19 ++----------------- test/ngs/ngs_hash.cpp | 19 ++----------------- test/ngs/ngs_hdf5.cpp | 19 ++----------------- test/ngs/params/assign.cpp | 19 ++----------------- test/ngs/params/default.cpp | 19 ++----------------- test/ngs/params/ordering.cpp | 19 ++----------------- test/ngs/params/stream.cpp | 19 ++----------------- test/ngs/params/todo.cpp | 19 ++----------------- test/ngs/scheduler/sum_mpi.cpp | 19 ++----------------- test/ngs/scheduler/sum_single.cpp | 19 ++----------------- test/numeric/accumulate_if.C | 19 ++----------------- test/numeric/matrix_algorithms.C | 19 ++----------------- test/numeric/matrix_column_view.C | 19 ++----------------- .../matrix_deprecated_hdf5_format_test.C | 19 ++----------------- test/numeric/matrix_hdf5.C | 19 ++----------------- test/numeric/matrix_kron.C | 19 ++----------------- test/numeric/matrix_transpose_view.C | 19 ++----------------- test/numeric/matrix_unit_tests.C | 19 ++----------------- test/numeric/matrix_unit_tests.hpp | 19 ++----------------- test/numeric/real_tests.C | 19 ++----------------- test/numeric/vector_functions.C | 19 ++----------------- test/numeric/vector_valarray_conversion.C | 19 ++----------------- test/osiris/boostdump.C | 19 ++----------------- test/osiris/boostdump2.C | 19 ++----------------- test/osiris/boostdump3.C | 19 ++----------------- test/osiris/boostdump4.C | 19 ++----------------- test/osiris/os.C | 19 ++----------------- test/osiris/sizeof.C | 19 ++----------------- test/osiris/xdrdump.C | 19 ++----------------- test/osiris/xdrdump2.C | 19 ++----------------- test/parameter/expression.C | 19 ++----------------- test/parameter/expression2.C | 19 ++----------------- test/parameter/flatten.C | 19 ++----------------- test/parameter/parameter.C | 19 ++----------------- test/parameter/parameterlist.C | 19 ++----------------- test/parameter/parameterlist_xml.C | 19 ++----------------- test/parameter/parameters.C | 19 ++----------------- test/parameter/parameters_hdf5.C | 19 ++----------------- test/parameter/parameters_mpi.C | 19 ++----------------- test/parameter/parameters_xml.C | 19 ++----------------- test/parapack/clone_info.C | 19 ++----------------- test/parapack/clone_mpi.C | 19 ++----------------- test/parapack/clone_phase.C | 19 ++----------------- test/parapack/clone_timer.C | 19 ++----------------- test/parapack/collect_mpi.C | 19 ++----------------- test/parapack/comm_mpi.C | 19 ++----------------- test/parapack/exmc_optimize.C | 19 ++----------------- test/parapack/exp_number.C | 19 ++----------------- test/parapack/filelock_mpi.C | 19 ++----------------- test/parapack/footprint.C | 19 ++----------------- test/parapack/halt_mpi.C | 19 ++----------------- test/parapack/id2string.C | 19 ++----------------- test/parapack/info_test.C | 19 ++----------------- test/parapack/info_test_mpi.C | 19 ++----------------- test/parapack/integer_range.C | 19 ++----------------- test/parapack/linear_regression.C | 19 ++----------------- test/parapack/merge.C | 19 ++----------------- test/parapack/percentage.C | 19 ++----------------- test/parapack/process_mpi.C | 19 ++----------------- test/parapack/temperature_scan.C | 19 ++----------------- test/parapack/time.C | 19 ++----------------- test/parapack/version.C | 19 ++----------------- test/parapack/wl_weight.C | 19 ++----------------- test/parapack/worker_mpi.C | 19 ++----------------- test/parser/xmlhandler.C | 19 ++----------------- test/parser/xmlparser.C | 19 ++----------------- test/parser/xmlstream.C | 19 ++----------------- test/pyalps/hlist_test.py | 18 ++---------------- test/pyalps/loadobs.cpp | 19 ++----------------- test/pyalps/loadobs.py | 18 ++---------------- test/pyalps/mcanalyze.py | 18 ++---------------- test/pyalps/mcdata_test.py | 18 ++---------------- test/pyalps/numpylarge.py | 18 ++---------------- test/pyalps/pyhdf5_test.py | 18 ++---------------- test/pyalps/pyhdf5io_test.py | 18 ++---------------- test/pyalps/pyioarchive.py | 18 ++---------------- test/pyalps/pyparams_test.py | 18 ++---------------- test/random/random_choice.C | 19 ++----------------- test/random/uniform_on_sphere_n.C | 19 ++----------------- test/utility/bitops.cpp | 19 ++----------------- test/utility/vmusage.cpp | 19 ++----------------- tool/alea/mcanalyze_tools.hpp | 19 ++----------------- tool/alea/mcanalyze_tools.ipp | 19 ++----------------- tool/alea/mcanalyze_tools.py | 19 ++----------------- tool/alea/mean.cpp | 19 ++----------------- tool/alea/mean.py | 19 ++----------------- tool/alea/variance.cpp | 19 ++----------------- tool/alea/variance.py | 19 ++----------------- tool/archive.cpp | 19 ++----------------- tool/archive_index.cpp | 19 ++----------------- tool/archive_index.hpp | 19 ++----------------- tool/archive_node.cpp | 19 ++----------------- tool/archive_node.hpp | 19 ++----------------- tool/archive_plot.cpp | 19 ++----------------- tool/archive_plot.hpp | 19 ++----------------- tool/archive_sqlite.cpp | 19 ++----------------- tool/archive_sqlite.hpp | 19 ++----------------- tool/archive_xml.cpp | 19 ++----------------- tool/archive_xml.hpp | 19 ++----------------- tool/compactrun.C | 19 ++----------------- tool/config.py.in | 18 ++---------------- tool/convert2xml.C | 19 ++----------------- tool/default_model.hpp | 18 ++---------------- tool/lattice2xml.C | 19 ++----------------- tool/license.py | 18 ++---------------- tool/maxent.cpp | 18 ++---------------- tool/maxent.hpp | 18 ++---------------- tool/maxent_helper.cpp | 18 ++---------------- tool/maxent_parms.cpp | 18 ++---------------- tool/maxent_parms.hpp | 18 ++---------------- tool/maxent_simulation.cpp | 18 ++---------------- tool/p2h5.cpp | 19 ++----------------- tool/parameter2hdf5.C | 19 ++----------------- tool/parameter2xml.C | 19 ++----------------- tool/pconfig.C | 19 ++----------------- tool/pevaluate.C | 19 ++----------------- tool/poutput.C | 19 ++----------------- tool/preview.py | 18 ++---------------- tool/printgraph.C | 19 ++----------------- tool/snap2vtk.C | 19 ++----------------- tool/txt2archive.C | 19 ++----------------- tool/xml2archive.C | 19 ++----------------- tutorials/code-01-python/ising-skeleton.py | 18 ++---------------- tutorials/code-01-python/solution/ising.py | 18 ++---------------- .../code-01-python/solution/ising_binder.py | 18 ++---------------- tutorials/code-01-python/solution/run.py | 18 ++---------------- tutorials/code-02-c++/ising-skeleton.cpp | 18 ++---------------- tutorials/code-02-c++/solution/ising.cpp | 18 ++---------------- tutorials/code-06-mcmain-c++/ising.cpp | 18 ++---------------- tutorials/code-06-mcmain-c++/ising.hpp | 18 ++---------------- tutorials/code-06-mcmain-c++/main.cpp | 18 ++---------------- tutorials/code-07-mcmain-mcbase/export.cpp | 18 ++---------------- tutorials/code-07-mcmain-mcbase/export.py | 18 ++---------------- .../heisenberg/1d_lattice/single.cpp | 18 ++---------------- .../heisenberg/nd_lattice/single.cpp | 18 ++---------------- .../heisenberg/o_n_model/heisenberg.cpp | 18 ++---------------- tutorials/code-07-mcmain-mcbase/ising.cpp | 18 ++---------------- tutorials/code-07-mcmain-mcbase/ising.hpp | 18 ++---------------- tutorials/code-07-mcmain-mcbase/mpi.cpp | 18 ++---------------- tutorials/code-07-mcmain-mcbase/mpi_pscan.cpp | 18 ++---------------- tutorials/code-07-mcmain-mcbase/single.cpp | 18 ++---------------- tutorials/code-08-mcmain-python/ising.py | 18 ++---------------- tutorials/code-08-mcmain-python/main.py | 18 ++---------------- .../code-09-mcmain-python-hybrid/ising.py | 18 ++---------------- .../code-09-mcmain-python-hybrid/main.py | 18 ++---------------- tutorials/dmft-02-hybridization/tutorial2.py | 18 ++---------------- .../dmft-02-hybridization/tutorial2_long.py | 18 ++---------------- .../dmft-02-hybridization/tutorial2eval.py | 18 ++---------------- tutorials/dmft-03-interaction/tutorial3.py | 18 ++---------------- .../dmft-03-interaction/tutorial3_long.py | 18 ++---------------- .../dmft-03-interaction/tutorial3eval.py | 18 ++---------------- tutorials/dmft-04-mott/tutorial4a.py | 18 ++---------------- tutorials/dmft-04-mott/tutorial4b.py | 18 ++---------------- tutorials/dmft-05-osmt/tutorial5a.py | 18 ++---------------- tutorials/dmft-05-osmt/tutorial5b.py | 18 ++---------------- .../dmft-06-paramagnet/hyb/tutorial6a.py | 18 ++---------------- .../dmft-06-paramagnet/int/tutorial6b.py | 18 ++---------------- tutorials/dmft-07-hirschfye/tutorial7.py | 18 ++---------------- tutorials/dmft-07-hirschfye/tutorial7_long.py | 18 ++---------------- tutorials/dmft-07-hirschfye/tutorial7eval.py | 18 ++---------------- tutorials/dmft-08-lattices/DOS/DOS_Bethe.py | 18 ++---------------- tutorials/dmft-08-lattices/DOS/DOS_Cubic.py | 18 ++---------------- .../dmft-08-lattices/DOS/DOS_Hexagonal.py | 18 ++---------------- tutorials/dmft-08-lattices/DOS/DOS_Square.py | 18 ++---------------- tutorials/dmft-08-lattices/tutorial8a.py | 18 ++---------------- tutorials/dmft-08-lattices/tutorial8b.py | 18 ++---------------- .../build_lattice.py | 18 ++---------------- .../dmrg-03-ground-state-energies/spin_one.py | 18 ++---------------- .../spin_one_half.py | 18 ++---------------- .../spin_one_half_multiple.py | 18 ++---------------- .../spin_one_multiple.py | 18 ++---------------- tutorials/dmrg-04-gaps/spin_one_gap.py | 18 ++---------------- .../dmrg-04-gaps/spin_one_gap_multiple.py | 18 ++---------------- tutorials/dmrg-04-gaps/spin_one_half_gap.py | 18 ++---------------- .../spin_one_half_gap_multiple.py | 18 ++---------------- .../dmrg-04-gaps/spin_one_half_triplet.py | 18 ++---------------- tutorials/dmrg-04-gaps/spin_one_triplet.py | 18 ++---------------- .../build_lattice.py | 18 ++---------------- .../dmrg-05-local-observables/spin_one.py | 18 ++---------------- .../spin_one_capped.py | 18 ++---------------- .../spin_one_half.py | 18 ++---------------- .../spin_one_uniform.py | 18 ++---------------- tutorials/dmrg-06-correlations/spin_one.py | 18 ++---------------- .../dmrg-06-correlations/spin_one_half.py | 18 ++---------------- tutorials/dwa-01-bosons/tutorial1a.py | 18 ++---------------- tutorials/dwa-01-bosons/tutorial1b.py | 18 ++---------------- .../dwa-02-density-profile/tutorial2a.py | 18 ++---------------- .../dwa-02-density-profile/tutorial2b.py | 18 ++---------------- tutorials/ed-01-sparsediag/tutorial1a.py | 18 ++---------------- tutorials/ed-02-gaps/tutorial2a.py | 18 ++---------------- tutorials/ed-02-gaps/tutorial2b.py | 18 ++---------------- tutorials/ed-02-gaps/tutorial2c.py | 18 ++---------------- tutorials/ed-03-1dspectra/chain.py | 18 ++---------------- tutorials/ed-03-1dspectra/dimers.py | 18 ++---------------- tutorials/ed-03-1dspectra/ladder.py | 18 ++---------------- tutorials/ed-04-criticality/heisenberg.py | 18 ++---------------- tutorials/ed-04-criticality/ising.py | 18 ++---------------- tutorials/ed-05-nnn-chain/nnn-crit-pt.py | 18 ++---------------- tutorials/ed-05-nnn-chain/nnn-heisenberg.py | 18 ++---------------- tutorials/ed-06-fulldiag/tutorial6a.py | 18 ++---------------- tutorials/ed-06-fulldiag/tutorial6b.py | 18 ++---------------- tutorials/ed-06-fulldiag/tutorial6c.py | 18 ++---------------- tutorials/ed-06-fulldiag/tutorial6d.py | 18 ++---------------- .../hybridization-01-python/tutorial1.py | 18 ++---------------- tutorials/hybridization-02-kondo/tutorial2.py | 18 ++---------------- .../tutorial3.py | 18 ++---------------- .../tutorial4a.py | 18 ++---------------- .../tutorial4b.py | 18 ++---------------- .../tutorial4c.py | 18 ++---------------- tutorials/intro-01-basics/tutorial-binder.py | 18 ++---------------- .../intro-01-basics/tutorial-evaluate.py | 18 ++---------------- tutorials/intro-01-basics/tutorial-full.py | 18 ++---------------- tutorials/intro-01-basics/tutorial-gnuplot.py | 18 ++---------------- .../intro-01-basics/tutorial-graceplot.py | 18 ++---------------- .../intro-01-basics/tutorial-magnetization.py | 18 ++---------------- .../intro-01-basics/tutorial-prepareinput.py | 18 ++---------------- .../intro-01-basics/tutorial-runsimulation.py | 18 ++---------------- tutorials/intro-01-basics/tutorial-text.py | 18 ++---------------- .../mc-01-autocorrelations/tutorial1a.py | 18 ++---------------- .../mc-01-autocorrelations/tutorial1b.py | 18 ++---------------- .../tutorial1a.py | 18 ++---------------- .../mc-02-susceptibilities/tutorial2a.py | 18 ++---------------- .../mc-02-susceptibilities/tutorial2b.py | 18 ++---------------- .../mc-02-susceptibilities/tutorial2c.py | 18 ++---------------- .../mc-02-susceptibilities/tutorial2d.py | 18 ++---------------- .../mc-02-susceptibilities/tutorial2full.py | 18 ++---------------- tutorials/mc-03-magnetization/tutorial3a.py | 18 ++---------------- tutorials/mc-03-magnetization/tutorial3b.py | 18 ++---------------- .../mc-03-magnetization/tutorial3full.py | 18 ++---------------- tutorials/mc-04-measurements/tutorial4.py | 18 ++---------------- tutorials/mc-05-bosons/tutorial5a.py | 18 ++---------------- tutorials/mc-05-bosons/tutorial5b.py | 18 ++---------------- tutorials/mc-06-qwl/tutorial6a.py | 18 ++---------------- tutorials/mc-06-qwl/tutorial6b.py | 18 ++---------------- tutorials/mc-06-qwl/tutorial6c.py | 18 ++---------------- tutorials/mc-06-qwl/tutorial6d.py | 18 ++---------------- .../mc-07-phase-transition/tutorial7a.py | 18 ++---------------- .../mc-07-phase-transition/tutorial7b.py | 18 ++---------------- .../tutorial8a.py | 18 ++---------------- .../tutorial8b.py | 18 ++---------------- .../tutorial8c.py | 18 ++---------------- .../tutorial8d.py | 18 ++---------------- tutorials/mc-09-snapshot/plot9a.py | 18 ++---------------- tutorials/ngs/1_accumulator_only/ising.cpp | 18 ++---------------- tutorials/ngs/1_accumulator_only/ising.hpp | 18 ++---------------- tutorials/ngs/1_accumulator_only/main.cpp | 18 ++---------------- tutorials/ngs/2_single_core/ising.cpp | 18 ++---------------- tutorials/ngs/2_single_core/ising.hpp | 18 ++---------------- tutorials/ngs/2_single_core/main.cpp | 18 ++---------------- tutorials/ngs/3_mpi/ising.cpp | 18 ++---------------- tutorials/ngs/3_mpi/ising.hpp | 18 ++---------------- tutorials/ngs/3_mpi/main.cpp | 18 ++---------------- tutorials/ngs/4_mpi_pscan/ising.cpp | 18 ++---------------- tutorials/ngs/4_mpi_pscan/ising.hpp | 18 ++---------------- tutorials/ngs/4_mpi_pscan/main.cpp | 18 ++---------------- tutorials/ngs/5_export_python/export2py.cpp | 18 ++---------------- tutorials/ngs/5_export_python/ising.cpp | 18 ++---------------- tutorials/ngs/5_export_python/ising.hpp | 18 ++---------------- tutorials/ngs/5_export_python/main.py | 18 ++---------------- tutorials/ngs/6_python_native/ising.py | 18 ++---------------- tutorials/ngs/6_python_native/main.py | 18 ++---------------- tutorials/ngs/7_python_extend/ising.py | 18 ++---------------- tutorials/ngs/7_python_extend/main.py | 18 ++---------------- tutorials/notebook/ja/tutorial_ed01a.py | 18 ++---------------- tutorials/notebook/ja/tutorial_ed02a.py | 18 ++---------------- tutorials/notebook/ja/tutorial_ed02b.py | 18 ++---------------- tutorials/notebook/ja/tutorial_ed02c.py | 18 ++---------------- tutorials/notebook/ja/tutorial_ed03a.py | 18 ++---------------- tutorials/notebook/ja/tutorial_ed03b.py | 18 ++---------------- tutorials/notebook/ja/tutorial_ed03c.py | 18 ++---------------- tutorials/notebook/ja/tutorial_ed04a.py | 18 ++---------------- tutorials/notebook/ja/tutorial_ed04b.py | 18 ++---------------- tutorials/notebook/ja/tutorial_ed05b.py | 18 ++---------------- tutorials/notebook/ja/tutorial_ed06a.py | 18 ++---------------- tutorials/notebook/ja/tutorial_ed06b.py | 18 ++---------------- tutorials/notebook/ja/tutorial_ed06c.py | 18 ++---------------- tutorials/notebook/ja/tutorial_ed06d.py | 18 ++---------------- tutorials/notebook/ja/tutorial_mc01a_1.py | 18 ++---------------- tutorials/notebook/ja/tutorial_mc01a_2.py | 18 ++---------------- tutorials/notebook/ja/tutorial_mc01b.py | 18 ++---------------- tutorials/notebook/ja/tutorial_mc02a.py | 18 ++---------------- tutorials/notebook/ja/tutorial_mc02b.py | 18 ++---------------- tutorials/notebook/ja/tutorial_mc02c.py | 18 ++---------------- tutorials/notebook/ja/tutorial_mc02d.py | 18 ++---------------- tutorials/notebook/ja/tutorial_mc02full.py | 18 ++---------------- tutorials/notebook/ja/tutorial_mc03a.py | 18 ++---------------- tutorials/notebook/ja/tutorial_mc03b.py | 18 ++---------------- tutorials/notebook/ja/tutorial_mc03full.py | 18 ++---------------- tutorials/notebook/ja/tutorial_mc04.py | 18 ++---------------- tutorials/notebook/ja/tutorial_mc05a.py | 18 ++---------------- tutorials/notebook/ja/tutorial_mc05b.py | 18 ++---------------- tutorials/notebook/ja/tutorial_mc06a.py | 18 ++---------------- tutorials/notebook/ja/tutorial_mc06b.py | 18 ++---------------- tutorials/notebook/ja/tutorial_mc06c.py | 18 ++---------------- tutorials/notebook/ja/tutorial_mc06d.py | 18 ++---------------- tutorials/notebook/ja/tutorial_mc07a.py | 18 ++---------------- tutorials/notebook/ja/tutorial_mc07b.py | 18 ++---------------- tutorials/notebook/ja/tutorial_mc08a.py | 18 ++---------------- tutorials/notebook/ja/tutorial_mc08b.py | 18 ++---------------- tutorials/notebook/ja/tutorial_mc08c.py | 18 ++---------------- tutorials/test_py.py | 18 ++---------------- 1376 files changed, 2752 insertions(+), 23176 deletions(-) diff --git a/applications/diag/diag.h b/applications/diag/diag.h index ad2cbaa4b..a1f752cff 100644 --- a/applications/diag/diag.h +++ b/applications/diag/diag.h @@ -5,23 +5,8 @@ * Copyright (C) 1994-2006 by Matthias Troyer , * Andreas Honecker * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/diag/fulldiag/factory.C b/applications/diag/fulldiag/factory.C index f7a13a1d3..fd22516ce 100644 --- a/applications/diag/fulldiag/factory.C +++ b/applications/diag/fulldiag/factory.C @@ -5,23 +5,8 @@ * Copyright (C) 1994-2006 by Matthias Troyer , * Andreas Honecker * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/diag/fulldiag/factory.h b/applications/diag/fulldiag/factory.h index bd9c92add..ec5e6df5b 100644 --- a/applications/diag/fulldiag/factory.h +++ b/applications/diag/fulldiag/factory.h @@ -4,23 +4,8 @@ * * Copyright (C) 1994-2003 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/diag/fulldiag/fulldiag.C b/applications/diag/fulldiag/fulldiag.C index 03217b2c0..e254b5412 100644 --- a/applications/diag/fulldiag/fulldiag.C +++ b/applications/diag/fulldiag/fulldiag.C @@ -5,23 +5,8 @@ * Copyright (C) 1994-2005 by Matthias Troyer , * Andreas Honecker * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/diag/fulldiag/fulldiag.h b/applications/diag/fulldiag/fulldiag.h index cca995f96..261aa0a4b 100644 --- a/applications/diag/fulldiag/fulldiag.h +++ b/applications/diag/fulldiag/fulldiag.h @@ -5,23 +5,8 @@ * Copyright (C) 1994-2009 by Matthias Troyer , * Andreas Honecker * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/diag/fulldiag/fulldiag_evaluate.C b/applications/diag/fulldiag/fulldiag_evaluate.C index e189c1244..8f1cca7de 100644 --- a/applications/diag/fulldiag/fulldiag_evaluate.C +++ b/applications/diag/fulldiag/fulldiag_evaluate.C @@ -5,23 +5,8 @@ * Copyright (C) 2002-2009 by Matthias Troyer , * Andreas Honecker * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/diag/fulldiag/measurementplots.h b/applications/diag/fulldiag/measurementplots.h index f8b5b64bf..8d8f7c7e7 100644 --- a/applications/diag/fulldiag/measurementplots.h +++ b/applications/diag/fulldiag/measurementplots.h @@ -5,23 +5,8 @@ * Copyright (C) 1994-2009 by Matthias Troyer , * Andreas Honecker * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/diag/fulldiagfqhe/fqheed.cpp b/applications/diag/fulldiagfqhe/fqheed.cpp index 4934d5785..5b4aa3db4 100644 --- a/applications/diag/fulldiagfqhe/fqheed.cpp +++ b/applications/diag/fulldiagfqhe/fqheed.cpp @@ -4,23 +4,8 @@ * * Copyright (C) 2012 by Vito Scarola * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/diag/fulldiagfqhe/states_lll.c b/applications/diag/fulldiagfqhe/states_lll.c index 346349222..27e1e0810 100644 --- a/applications/diag/fulldiagfqhe/states_lll.c +++ b/applications/diag/fulldiagfqhe/states_lll.c @@ -4,22 +4,8 @@ * * Copyright (C) 2012 by Vito Scarola * - * This software is part of the ALPS Applications, published under the ALPS - * Application License; you can use, redistribute it and/or modify it under - * the terms of the license, either version 1 or (at your option) any later - * version. - * - * You should have received a copy of the ALPS Application License along with - * the ALPS Applications; see the file LICENSE.txt. If not, the license is also - * available from http://alps.comp-phys.org/. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT - * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE - * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - * DEALINGS IN THE SOFTWARE. + * ALPS Project: https://alps.comp-phys.org/ + * SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/diag/fulldiagfqhe/states_lll_mz_minus_one.c b/applications/diag/fulldiagfqhe/states_lll_mz_minus_one.c index a2032084f..3604b9c4e 100644 --- a/applications/diag/fulldiagfqhe/states_lll_mz_minus_one.c +++ b/applications/diag/fulldiagfqhe/states_lll_mz_minus_one.c @@ -4,22 +4,8 @@ * * Copyright (C) 2012 by Vito Scarola * - * This software is part of the ALPS Applications, published under the ALPS - * Application License; you can use, redistribute it and/or modify it under - * the terms of the license, either version 1 or (at your option) any later - * version. - * - * You should have received a copy of the ALPS Application License along with - * the ALPS Applications; see the file LICENSE.txt. If not, the license is also - * available from http://alps.comp-phys.org/. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT - * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE - * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - * DEALINGS IN THE SOFTWARE. + * ALPS Project: https://alps.comp-phys.org/ + * SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/diag/fulldiagfqhe/vector_of_primes.c b/applications/diag/fulldiagfqhe/vector_of_primes.c index 0844d35da..388fa7966 100644 --- a/applications/diag/fulldiagfqhe/vector_of_primes.c +++ b/applications/diag/fulldiagfqhe/vector_of_primes.c @@ -4,22 +4,8 @@ * * Copyright (C) 2012 by Vito Scarola * - * This software is part of the ALPS Applications, published under the ALPS - * Application License; you can use, redistribute it and/or modify it under - * the terms of the license, either version 1 or (at your option) any later - * version. - * - * You should have received a copy of the ALPS Application License along with - * the ALPS Applications; see the file LICENSE.txt. If not, the license is also - * available from http://alps.comp-phys.org/. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT - * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE - * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - * DEALINGS IN THE SOFTWARE. + * ALPS Project: https://alps.comp-phys.org/ + * SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/diag/sparsediag/factory.C b/applications/diag/sparsediag/factory.C index fad128d4c..517ff9213 100644 --- a/applications/diag/sparsediag/factory.C +++ b/applications/diag/sparsediag/factory.C @@ -4,23 +4,8 @@ * * Copyright (C) 1994-2006 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/diag/sparsediag/factory.h b/applications/diag/sparsediag/factory.h index 727d9ccf9..be85287c7 100644 --- a/applications/diag/sparsediag/factory.h +++ b/applications/diag/sparsediag/factory.h @@ -4,23 +4,8 @@ * * Copyright (C) 1994-2004 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/diag/sparsediag/sparsediag.C b/applications/diag/sparsediag/sparsediag.C index aa9f16d42..30dd47cb8 100644 --- a/applications/diag/sparsediag/sparsediag.C +++ b/applications/diag/sparsediag/sparsediag.C @@ -4,23 +4,8 @@ * * Copyright (C) 1994-2004 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/diag/sparsediag/sparsediag.h b/applications/diag/sparsediag/sparsediag.h index e65a0f933..9ca217a60 100644 --- a/applications/diag/sparsediag/sparsediag.h +++ b/applications/diag/sparsediag/sparsediag.h @@ -4,23 +4,8 @@ * * Copyright (C) 1994-2005 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/U_matrix.h b/applications/dmft/qmc/U_matrix.h index 97e328983..b43ae2e8e 100644 --- a/applications/dmft/qmc/U_matrix.h +++ b/applications/dmft/qmc/U_matrix.h @@ -8,23 +8,8 @@ * Matthias Troyer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/alps_solver.C b/applications/dmft/qmc/alps_solver.C index c4e057d6f..a122478e2 100644 --- a/applications/dmft/qmc/alps_solver.C +++ b/applications/dmft/qmc/alps_solver.C @@ -8,23 +8,8 @@ * Matthias Troyer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/alps_solver.h b/applications/dmft/qmc/alps_solver.h index af1766317..3844d0506 100644 --- a/applications/dmft/qmc/alps_solver.h +++ b/applications/dmft/qmc/alps_solver.h @@ -8,23 +8,8 @@ * Matthias Troyer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/auxiliaryfunctions.C b/applications/dmft/qmc/auxiliaryfunctions.C index c5a8baeb8..cdfcfc890 100644 --- a/applications/dmft/qmc/auxiliaryfunctions.C +++ b/applications/dmft/qmc/auxiliaryfunctions.C @@ -8,23 +8,8 @@ * Matthias Troyer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/bandstructure.C b/applications/dmft/qmc/bandstructure.C index 62789576e..328d06ee3 100644 --- a/applications/dmft/qmc/bandstructure.C +++ b/applications/dmft/qmc/bandstructure.C @@ -6,23 +6,8 @@ * 2012 - 2013 by Jakub Imriska * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/bandstructure.h b/applications/dmft/qmc/bandstructure.h index 986dbc14b..eba9d7537 100644 --- a/applications/dmft/qmc/bandstructure.h +++ b/applications/dmft/qmc/bandstructure.h @@ -5,23 +5,8 @@ * Copyright (C) 2013 by Jakub Imriska * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/externalsolver.C b/applications/dmft/qmc/externalsolver.C index 23dba56dd..edf418566 100644 --- a/applications/dmft/qmc/externalsolver.C +++ b/applications/dmft/qmc/externalsolver.C @@ -8,23 +8,8 @@ * Matthias Troyer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/externalsolver.h b/applications/dmft/qmc/externalsolver.h index 7923653ff..5c7cd94d9 100644 --- a/applications/dmft/qmc/externalsolver.h +++ b/applications/dmft/qmc/externalsolver.h @@ -8,23 +8,8 @@ * Matthias Troyer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/fouriertransform.C b/applications/dmft/qmc/fouriertransform.C index 9a72f4b05..955ce2c91 100644 --- a/applications/dmft/qmc/fouriertransform.C +++ b/applications/dmft/qmc/fouriertransform.C @@ -8,23 +8,8 @@ * Matthias Troyer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/fouriertransform.h b/applications/dmft/qmc/fouriertransform.h index 203f48525..c596e316a 100644 --- a/applications/dmft/qmc/fouriertransform.h +++ b/applications/dmft/qmc/fouriertransform.h @@ -8,23 +8,8 @@ * Matthias Troyer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/green_function.h b/applications/dmft/qmc/green_function.h index d58141d01..6548ca597 100644 --- a/applications/dmft/qmc/green_function.h +++ b/applications/dmft/qmc/green_function.h @@ -8,23 +8,8 @@ * Sebastian Fuchs * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/hilberttransformer.C b/applications/dmft/qmc/hilberttransformer.C index 18e984078..4ef993916 100644 --- a/applications/dmft/qmc/hilberttransformer.C +++ b/applications/dmft/qmc/hilberttransformer.C @@ -8,23 +8,8 @@ * Sebastian Fuchs * 2012-2013 by Jakub Imriska * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/hilberttransformer.h b/applications/dmft/qmc/hilberttransformer.h index 9ff6b1224..c4b48aa3a 100644 --- a/applications/dmft/qmc/hilberttransformer.h +++ b/applications/dmft/qmc/hilberttransformer.h @@ -9,23 +9,8 @@ * 2012 - 2013 by Jakub Imriska * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/hirschfyeaux.h b/applications/dmft/qmc/hirschfyeaux.h index f531a142b..de0e4dff2 100644 --- a/applications/dmft/qmc/hirschfyeaux.h +++ b/applications/dmft/qmc/hirschfyeaux.h @@ -7,23 +7,8 @@ * Matthias Troyer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/hirschfyesim.C b/applications/dmft/qmc/hirschfyesim.C index 7168381fe..a90eefc3f 100644 --- a/applications/dmft/qmc/hirschfyesim.C +++ b/applications/dmft/qmc/hirschfyesim.C @@ -8,23 +8,8 @@ * Matthias Troyer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/hirschfyesim.h b/applications/dmft/qmc/hirschfyesim.h index 4adaff667..b3ecd339a 100644 --- a/applications/dmft/qmc/hirschfyesim.h +++ b/applications/dmft/qmc/hirschfyesim.h @@ -7,23 +7,8 @@ * Matthias Troyer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/hybridization/hyb.hpp b/applications/dmft/qmc/hybridization/hyb.hpp index 8ad36143c..e0fa481fb 100644 --- a/applications/dmft/qmc/hybridization/hyb.hpp +++ b/applications/dmft/qmc/hybridization/hyb.hpp @@ -7,23 +7,8 @@ * based on an earlier version by Philipp Werner and Emanuel Gull * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ #ifndef HYB_HPP diff --git a/applications/dmft/qmc/hybridization/hybblasmatrix.hpp b/applications/dmft/qmc/hybridization/hybblasmatrix.hpp index 9d9d361f8..f80a43938 100644 --- a/applications/dmft/qmc/hybridization/hybblasmatrix.hpp +++ b/applications/dmft/qmc/hybridization/hybblasmatrix.hpp @@ -7,23 +7,8 @@ * based on an earlier version by Philipp Werner and Emanuel Gull * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ #ifndef HYB_BLAS_MATRIX diff --git a/applications/dmft/qmc/hybridization/hybconfig.cpp b/applications/dmft/qmc/hybridization/hybconfig.cpp index 725d6330b..9eb7f1cab 100644 --- a/applications/dmft/qmc/hybridization/hybconfig.cpp +++ b/applications/dmft/qmc/hybridization/hybconfig.cpp @@ -7,23 +7,8 @@ * based on an earlier version by Philipp Werner and Emanuel Gull * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/hybridization/hybconfig.hpp b/applications/dmft/qmc/hybridization/hybconfig.hpp index 374cd7b14..f487fc193 100644 --- a/applications/dmft/qmc/hybridization/hybconfig.hpp +++ b/applications/dmft/qmc/hybridization/hybconfig.hpp @@ -7,23 +7,8 @@ * based on an earlier version by Philipp Werner and Emanuel Gull * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ #ifndef HYB_CONFIG_HPP diff --git a/applications/dmft/qmc/hybridization/hybevaluate.cpp b/applications/dmft/qmc/hybridization/hybevaluate.cpp index f1e5a8149..c73e1ee88 100644 --- a/applications/dmft/qmc/hybridization/hybevaluate.cpp +++ b/applications/dmft/qmc/hybridization/hybevaluate.cpp @@ -9,23 +9,8 @@ * based on an earlier version by Philipp Werner and Emanuel Gull * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/hybridization/hybevaluate.hpp b/applications/dmft/qmc/hybridization/hybevaluate.hpp index 287b4a98e..a2a1bb231 100644 --- a/applications/dmft/qmc/hybridization/hybevaluate.hpp +++ b/applications/dmft/qmc/hybridization/hybevaluate.hpp @@ -8,23 +8,8 @@ * based on an earlier version by Philipp Werner and Emanuel Gull * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ #ifndef HYB_EVALUATE diff --git a/applications/dmft/qmc/hybridization/hybfun.cpp b/applications/dmft/qmc/hybridization/hybfun.cpp index fdd11f243..e7c220dad 100644 --- a/applications/dmft/qmc/hybridization/hybfun.cpp +++ b/applications/dmft/qmc/hybridization/hybfun.cpp @@ -7,23 +7,8 @@ * based on an earlier version by Philipp Werner and Emanuel Gull * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/hybridization/hybfun.hpp b/applications/dmft/qmc/hybridization/hybfun.hpp index 4f7d77ce9..81735c20c 100644 --- a/applications/dmft/qmc/hybridization/hybfun.hpp +++ b/applications/dmft/qmc/hybridization/hybfun.hpp @@ -7,23 +7,8 @@ * based on an earlier version by Philipp Werner and Emanuel Gull * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/hybridization/hybint.cpp b/applications/dmft/qmc/hybridization/hybint.cpp index 87c68dac6..95470c857 100644 --- a/applications/dmft/qmc/hybridization/hybint.cpp +++ b/applications/dmft/qmc/hybridization/hybint.cpp @@ -7,23 +7,8 @@ * based on an earlier version by Philipp Werner and Emanuel Gull * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/hybridization/hybint.hpp b/applications/dmft/qmc/hybridization/hybint.hpp index fc28deb2c..caf8c9675 100644 --- a/applications/dmft/qmc/hybridization/hybint.hpp +++ b/applications/dmft/qmc/hybridization/hybint.hpp @@ -7,23 +7,8 @@ * based on an earlier version by Philipp Werner and Emanuel Gull * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/hybridization/hyblocal.cpp b/applications/dmft/qmc/hybridization/hyblocal.cpp index 72f86fbf9..f4be98496 100644 --- a/applications/dmft/qmc/hybridization/hyblocal.cpp +++ b/applications/dmft/qmc/hybridization/hyblocal.cpp @@ -8,23 +8,8 @@ * based on an earlier version by Philipp Werner and Emanuel Gull * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/hybridization/hyblocal.hpp b/applications/dmft/qmc/hybridization/hyblocal.hpp index fdd3d9dc2..654a7ca6e 100644 --- a/applications/dmft/qmc/hybridization/hyblocal.hpp +++ b/applications/dmft/qmc/hybridization/hyblocal.hpp @@ -8,23 +8,8 @@ * based on an earlier version by Philipp Werner and Emanuel Gull * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ #ifndef LOCAL_CONFIG_HPP diff --git a/applications/dmft/qmc/hybridization/hybmain.cpp b/applications/dmft/qmc/hybridization/hybmain.cpp index 0cf697b76..d02b7d5f2 100644 --- a/applications/dmft/qmc/hybridization/hybmain.cpp +++ b/applications/dmft/qmc/hybridization/hybmain.cpp @@ -8,23 +8,8 @@ * based on an earlier version by Philipp Werner and Emanuel Gull * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/hybridization/hybmatrix.cpp b/applications/dmft/qmc/hybridization/hybmatrix.cpp index c95c2b335..5f7a052a2 100644 --- a/applications/dmft/qmc/hybridization/hybmatrix.cpp +++ b/applications/dmft/qmc/hybridization/hybmatrix.cpp @@ -8,23 +8,8 @@ * based on an earlier version by Philipp Werner and Emanuel Gull * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/hybridization/hybmatrix.hpp b/applications/dmft/qmc/hybridization/hybmatrix.hpp index 32ea1d97a..6dcbb1cf0 100644 --- a/applications/dmft/qmc/hybridization/hybmatrix.hpp +++ b/applications/dmft/qmc/hybridization/hybmatrix.hpp @@ -8,23 +8,8 @@ * based on an earlier version by Philipp Werner and Emanuel Gull * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ #ifndef HYB_MATRIX diff --git a/applications/dmft/qmc/hybridization/hybmatrix_ft.cpp b/applications/dmft/qmc/hybridization/hybmatrix_ft.cpp index f7c155632..d6a62682d 100644 --- a/applications/dmft/qmc/hybridization/hybmatrix_ft.cpp +++ b/applications/dmft/qmc/hybridization/hybmatrix_ft.cpp @@ -8,23 +8,8 @@ * based on an earlier version by Philipp Werner and Emanuel Gull * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/hybridization/hybmeasurements.cpp b/applications/dmft/qmc/hybridization/hybmeasurements.cpp index 20e85f94f..d9d6ad561 100644 --- a/applications/dmft/qmc/hybridization/hybmeasurements.cpp +++ b/applications/dmft/qmc/hybridization/hybmeasurements.cpp @@ -8,23 +8,8 @@ * based on an earlier version by Philipp Werner and Emanuel Gull * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/hybridization/hybretintfun.cpp b/applications/dmft/qmc/hybridization/hybretintfun.cpp index e9a7d4b96..6017aa5b2 100644 --- a/applications/dmft/qmc/hybridization/hybretintfun.cpp +++ b/applications/dmft/qmc/hybridization/hybretintfun.cpp @@ -7,23 +7,8 @@ * based on an earlier version by Philipp Werner and Emanuel Gull * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/hybridization/hybretintfun.hpp b/applications/dmft/qmc/hybridization/hybretintfun.hpp index 9174f8e5b..34097327d 100644 --- a/applications/dmft/qmc/hybridization/hybretintfun.hpp +++ b/applications/dmft/qmc/hybridization/hybretintfun.hpp @@ -7,23 +7,8 @@ * based on an earlier version by Philipp Werner and Emanuel Gull * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/hybridization/hybsegment.hpp b/applications/dmft/qmc/hybridization/hybsegment.hpp index 81f0628c1..9610198d7 100644 --- a/applications/dmft/qmc/hybridization/hybsegment.hpp +++ b/applications/dmft/qmc/hybridization/hybsegment.hpp @@ -7,23 +7,8 @@ * based on an earlier version by Philipp Werner and Emanuel Gull * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ #ifndef HYB_SEG_HPP diff --git a/applications/dmft/qmc/hybridization/hybsim.cpp b/applications/dmft/qmc/hybridization/hybsim.cpp index 48ab68974..7a79c498d 100644 --- a/applications/dmft/qmc/hybridization/hybsim.cpp +++ b/applications/dmft/qmc/hybridization/hybsim.cpp @@ -8,23 +8,8 @@ * based on an earlier version by Philipp Werner and Emanuel Gull * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ #ifndef HYB_SIM_MAIN diff --git a/applications/dmft/qmc/hybridization/hybupdates.cpp b/applications/dmft/qmc/hybridization/hybupdates.cpp index 5ef026009..2c4b1b90f 100644 --- a/applications/dmft/qmc/hybridization/hybupdates.cpp +++ b/applications/dmft/qmc/hybridization/hybupdates.cpp @@ -7,23 +7,8 @@ * based on an earlier version by Philipp Werner and Emanuel Gull * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ #include diff --git a/applications/dmft/qmc/interaction_expansion/auxiliary.cpp b/applications/dmft/qmc/interaction_expansion/auxiliary.cpp index db1b84698..2ecad0e18 100644 --- a/applications/dmft/qmc/interaction_expansion/auxiliary.cpp +++ b/applications/dmft/qmc/interaction_expansion/auxiliary.cpp @@ -8,23 +8,8 @@ * Matthias Troyer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/interaction_expansion/fastupdate.cpp b/applications/dmft/qmc/interaction_expansion/fastupdate.cpp index acc618f2e..60717cd09 100644 --- a/applications/dmft/qmc/interaction_expansion/fastupdate.cpp +++ b/applications/dmft/qmc/interaction_expansion/fastupdate.cpp @@ -8,23 +8,8 @@ * Matthias Troyer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/interaction_expansion/green_matrix.hpp b/applications/dmft/qmc/interaction_expansion/green_matrix.hpp index ec8fe43e8..1e61358b1 100644 --- a/applications/dmft/qmc/interaction_expansion/green_matrix.hpp +++ b/applications/dmft/qmc/interaction_expansion/green_matrix.hpp @@ -8,23 +8,8 @@ * Matthias Troyer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/interaction_expansion/interaction_expansion.cpp b/applications/dmft/qmc/interaction_expansion/interaction_expansion.cpp index ddee38348..2f039e3c2 100644 --- a/applications/dmft/qmc/interaction_expansion/interaction_expansion.cpp +++ b/applications/dmft/qmc/interaction_expansion/interaction_expansion.cpp @@ -8,23 +8,8 @@ * Matthias Troyer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/interaction_expansion/interaction_expansion.hpp b/applications/dmft/qmc/interaction_expansion/interaction_expansion.hpp index 18f791da3..04c048cc2 100644 --- a/applications/dmft/qmc/interaction_expansion/interaction_expansion.hpp +++ b/applications/dmft/qmc/interaction_expansion/interaction_expansion.hpp @@ -8,23 +8,8 @@ * Matthias Troyer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/interaction_expansion/io.cpp b/applications/dmft/qmc/interaction_expansion/io.cpp index b40a5e8ed..d4f6092d7 100644 --- a/applications/dmft/qmc/interaction_expansion/io.cpp +++ b/applications/dmft/qmc/interaction_expansion/io.cpp @@ -8,23 +8,8 @@ * Matthias Troyer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/interaction_expansion/measurements.cpp b/applications/dmft/qmc/interaction_expansion/measurements.cpp index 1c6ef7795..86c8297a8 100644 --- a/applications/dmft/qmc/interaction_expansion/measurements.cpp +++ b/applications/dmft/qmc/interaction_expansion/measurements.cpp @@ -8,23 +8,8 @@ * Matthias Troyer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/interaction_expansion/model.cpp b/applications/dmft/qmc/interaction_expansion/model.cpp index fdb35846a..dea8693c2 100644 --- a/applications/dmft/qmc/interaction_expansion/model.cpp +++ b/applications/dmft/qmc/interaction_expansion/model.cpp @@ -8,23 +8,8 @@ * Matthias Troyer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/interaction_expansion/observables.cpp b/applications/dmft/qmc/interaction_expansion/observables.cpp index 9035bc176..1c24e4c84 100644 --- a/applications/dmft/qmc/interaction_expansion/observables.cpp +++ b/applications/dmft/qmc/interaction_expansion/observables.cpp @@ -8,23 +8,8 @@ * Matthias Troyer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/interaction_expansion/operator.hpp b/applications/dmft/qmc/interaction_expansion/operator.hpp index ed719b16a..6280d7fd7 100644 --- a/applications/dmft/qmc/interaction_expansion/operator.hpp +++ b/applications/dmft/qmc/interaction_expansion/operator.hpp @@ -8,23 +8,8 @@ * Matthias Troyer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/interaction_expansion/selfenergy.cpp b/applications/dmft/qmc/interaction_expansion/selfenergy.cpp index c334650e0..9940ca7d0 100644 --- a/applications/dmft/qmc/interaction_expansion/selfenergy.cpp +++ b/applications/dmft/qmc/interaction_expansion/selfenergy.cpp @@ -8,23 +8,8 @@ * Matthias Troyer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/interaction_expansion/solver.cpp b/applications/dmft/qmc/interaction_expansion/solver.cpp index 980e8e15b..cdca1102c 100644 --- a/applications/dmft/qmc/interaction_expansion/solver.cpp +++ b/applications/dmft/qmc/interaction_expansion/solver.cpp @@ -8,23 +8,8 @@ * Matthias Troyer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/interaction_expansion/splines.cpp b/applications/dmft/qmc/interaction_expansion/splines.cpp index da0f910a6..43f4060eb 100644 --- a/applications/dmft/qmc/interaction_expansion/splines.cpp +++ b/applications/dmft/qmc/interaction_expansion/splines.cpp @@ -8,23 +8,8 @@ * Matthias Troyer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/interaction_expansion2/auxiliary.cpp b/applications/dmft/qmc/interaction_expansion2/auxiliary.cpp index 3bf1993a9..d0303cc21 100644 --- a/applications/dmft/qmc/interaction_expansion2/auxiliary.cpp +++ b/applications/dmft/qmc/interaction_expansion2/auxiliary.cpp @@ -8,23 +8,8 @@ * Matthias Troyer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/interaction_expansion2/fastupdate.cpp b/applications/dmft/qmc/interaction_expansion2/fastupdate.cpp index fb233ae5f..7f68f0a74 100644 --- a/applications/dmft/qmc/interaction_expansion2/fastupdate.cpp +++ b/applications/dmft/qmc/interaction_expansion2/fastupdate.cpp @@ -8,23 +8,8 @@ * Matthias Troyer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/interaction_expansion2/green_matrix.hpp b/applications/dmft/qmc/interaction_expansion2/green_matrix.hpp index 55bcd9bee..7cc30c785 100644 --- a/applications/dmft/qmc/interaction_expansion2/green_matrix.hpp +++ b/applications/dmft/qmc/interaction_expansion2/green_matrix.hpp @@ -8,23 +8,8 @@ * Matthias Troyer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/interaction_expansion2/interaction_expansion.cpp b/applications/dmft/qmc/interaction_expansion2/interaction_expansion.cpp index bfee39afa..94979708e 100644 --- a/applications/dmft/qmc/interaction_expansion2/interaction_expansion.cpp +++ b/applications/dmft/qmc/interaction_expansion2/interaction_expansion.cpp @@ -8,23 +8,8 @@ * Matthias Troyer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/interaction_expansion2/interaction_expansion.hpp b/applications/dmft/qmc/interaction_expansion2/interaction_expansion.hpp index bd7255a54..2c591d1c0 100644 --- a/applications/dmft/qmc/interaction_expansion2/interaction_expansion.hpp +++ b/applications/dmft/qmc/interaction_expansion2/interaction_expansion.hpp @@ -8,23 +8,8 @@ * Matthias Troyer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/interaction_expansion2/io.cpp b/applications/dmft/qmc/interaction_expansion2/io.cpp index 612ceb600..bd9aba21e 100644 --- a/applications/dmft/qmc/interaction_expansion2/io.cpp +++ b/applications/dmft/qmc/interaction_expansion2/io.cpp @@ -8,23 +8,8 @@ * Matthias Troyer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/interaction_expansion2/main.cpp b/applications/dmft/qmc/interaction_expansion2/main.cpp index a9fcf1672..da462c34b 100644 --- a/applications/dmft/qmc/interaction_expansion2/main.cpp +++ b/applications/dmft/qmc/interaction_expansion2/main.cpp @@ -5,23 +5,8 @@ * Copyright (C) 2005 - 2010 by Emanuel Gull , * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/interaction_expansion2/measurements.cpp b/applications/dmft/qmc/interaction_expansion2/measurements.cpp index 9a82e208b..e1cbee5b9 100644 --- a/applications/dmft/qmc/interaction_expansion2/measurements.cpp +++ b/applications/dmft/qmc/interaction_expansion2/measurements.cpp @@ -8,23 +8,8 @@ * Matthias Troyer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/interaction_expansion2/model.cpp b/applications/dmft/qmc/interaction_expansion2/model.cpp index 2d33d25d8..a600e71d3 100644 --- a/applications/dmft/qmc/interaction_expansion2/model.cpp +++ b/applications/dmft/qmc/interaction_expansion2/model.cpp @@ -8,23 +8,8 @@ * Matthias Troyer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/interaction_expansion2/observables.cpp b/applications/dmft/qmc/interaction_expansion2/observables.cpp index 3f64b8f06..774c239f1 100644 --- a/applications/dmft/qmc/interaction_expansion2/observables.cpp +++ b/applications/dmft/qmc/interaction_expansion2/observables.cpp @@ -8,23 +8,8 @@ * Matthias Troyer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/interaction_expansion2/operator.hpp b/applications/dmft/qmc/interaction_expansion2/operator.hpp index 722277aed..bf7f64a1a 100644 --- a/applications/dmft/qmc/interaction_expansion2/operator.hpp +++ b/applications/dmft/qmc/interaction_expansion2/operator.hpp @@ -8,23 +8,8 @@ * Matthias Troyer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/interaction_expansion2/selfenergy.cpp b/applications/dmft/qmc/interaction_expansion2/selfenergy.cpp index 339b690a5..f63dfec52 100644 --- a/applications/dmft/qmc/interaction_expansion2/selfenergy.cpp +++ b/applications/dmft/qmc/interaction_expansion2/selfenergy.cpp @@ -8,23 +8,8 @@ * Matthias Troyer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/interaction_expansion2/solver.cpp b/applications/dmft/qmc/interaction_expansion2/solver.cpp index ee3962a5f..db443c978 100644 --- a/applications/dmft/qmc/interaction_expansion2/solver.cpp +++ b/applications/dmft/qmc/interaction_expansion2/solver.cpp @@ -8,23 +8,8 @@ * Matthias Troyer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/interaction_expansion2/splines.cpp b/applications/dmft/qmc/interaction_expansion2/splines.cpp index 6b96fdf1b..e9051fb1f 100644 --- a/applications/dmft/qmc/interaction_expansion2/splines.cpp +++ b/applications/dmft/qmc/interaction_expansion2/splines.cpp @@ -8,23 +8,8 @@ * Matthias Troyer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/main.C b/applications/dmft/qmc/main.C index 66994a9e1..4038b774e 100644 --- a/applications/dmft/qmc/main.C +++ b/applications/dmft/qmc/main.C @@ -9,23 +9,8 @@ * 2012 - 2013 by Jakub Imriska * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/selfconsistency.C b/applications/dmft/qmc/selfconsistency.C index a61f1d406..d730f1596 100644 --- a/applications/dmft/qmc/selfconsistency.C +++ b/applications/dmft/qmc/selfconsistency.C @@ -9,23 +9,8 @@ * 2012 - 2013 by Jakub Imriska * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/selfconsistency.h b/applications/dmft/qmc/selfconsistency.h index a85f6535c..a28ad97ce 100644 --- a/applications/dmft/qmc/selfconsistency.h +++ b/applications/dmft/qmc/selfconsistency.h @@ -8,23 +8,8 @@ * Matthias Troyer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/solver.h b/applications/dmft/qmc/solver.h index b6cd77eb0..f27a3503d 100644 --- a/applications/dmft/qmc/solver.h +++ b/applications/dmft/qmc/solver.h @@ -8,23 +8,8 @@ * Matthias Troyer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/solver_main.C b/applications/dmft/qmc/solver_main.C index d5d983ab8..989ec7b23 100644 --- a/applications/dmft/qmc/solver_main.C +++ b/applications/dmft/qmc/solver_main.C @@ -8,23 +8,8 @@ * Matthias Troyer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/types.h b/applications/dmft/qmc/types.h index 0a6e55cd7..ad37465ef 100644 --- a/applications/dmft/qmc/types.h +++ b/applications/dmft/qmc/types.h @@ -7,23 +7,8 @@ * Matthias Troyer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmft/qmc/xml.h b/applications/dmft/qmc/xml.h index aa550dabf..dfa5c6085 100644 --- a/applications/dmft/qmc/xml.h +++ b/applications/dmft/qmc/xml.h @@ -8,23 +8,8 @@ * Matthias Troyer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmrg/dmrg/dmrg.C b/applications/dmrg/dmrg/dmrg.C index e753d103c..7633a43d7 100644 --- a/applications/dmrg/dmrg/dmrg.C +++ b/applications/dmrg/dmrg/dmrg.C @@ -5,23 +5,8 @@ * Copyright (C) 2006 -2010 by Adrian Feiguin * Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmrg/dmrg/dmrg.h b/applications/dmrg/dmrg/dmrg.h index 3490973b1..6e55fb9e3 100644 --- a/applications/dmrg/dmrg/dmrg.h +++ b/applications/dmrg/dmrg/dmrg.h @@ -4,23 +4,8 @@ * * Copyright (C) 1994-2006 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmrg/dmrg/dmtk/array_util.h b/applications/dmrg/dmrg/dmtk/array_util.h index fb9e8985d..b2e26ac80 100644 --- a/applications/dmrg/dmrg/dmtk/array_util.h +++ b/applications/dmrg/dmrg/dmtk/array_util.h @@ -4,23 +4,8 @@ * * Copyright (C) 2006 -2010 by Adrian Feiguin * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmrg/dmrg/dmtk/basis.h b/applications/dmrg/dmrg/dmtk/basis.h index c002407f8..76aedf7b9 100644 --- a/applications/dmrg/dmrg/dmtk/basis.h +++ b/applications/dmrg/dmrg/dmtk/basis.h @@ -4,23 +4,8 @@ * * Copyright (C) 2006 -2010 by Adrian Feiguin * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmrg/dmrg/dmtk/bits.h b/applications/dmrg/dmrg/dmtk/bits.h index f1e35759a..58ac1decc 100644 --- a/applications/dmrg/dmrg/dmtk/bits.h +++ b/applications/dmrg/dmrg/dmtk/bits.h @@ -4,23 +4,8 @@ * * Copyright (C) 2006 -2010 by Adrian Feiguin * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmrg/dmrg/dmtk/block.h b/applications/dmrg/dmrg/dmtk/block.h index 6d7d039af..e9065f1e9 100644 --- a/applications/dmrg/dmrg/dmtk/block.h +++ b/applications/dmrg/dmrg/dmtk/block.h @@ -4,23 +4,8 @@ * * Copyright (C) 2006 -2010 by Adrian Feiguin * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmrg/dmrg/dmtk/block_matrix.h b/applications/dmrg/dmrg/dmtk/block_matrix.h index 5de2c465c..a4081adb2 100644 --- a/applications/dmrg/dmrg/dmtk/block_matrix.h +++ b/applications/dmrg/dmrg/dmtk/block_matrix.h @@ -4,23 +4,8 @@ * * Copyright (C) 2006 -2010 by Adrian Feiguin * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmrg/dmrg/dmtk/conj.h b/applications/dmrg/dmrg/dmtk/conj.h index 9da99b4a9..2af3bcba4 100644 --- a/applications/dmrg/dmrg/dmtk/conj.h +++ b/applications/dmrg/dmrg/dmtk/conj.h @@ -4,23 +4,8 @@ * * Copyright (C) 2006 -2010 by Adrian Feiguin * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmrg/dmrg/dmtk/constants.h b/applications/dmrg/dmrg/dmtk/constants.h index 55cb2de0c..022693e4d 100644 --- a/applications/dmrg/dmrg/dmtk/constants.h +++ b/applications/dmrg/dmrg/dmtk/constants.h @@ -4,23 +4,8 @@ * * Copyright (C) 2006 -2010 by Adrian Feiguin * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmrg/dmrg/dmtk/cslice_implement.h b/applications/dmrg/dmrg/dmtk/cslice_implement.h index 41ea15584..93eefe914 100644 --- a/applications/dmrg/dmrg/dmtk/cslice_implement.h +++ b/applications/dmrg/dmrg/dmtk/cslice_implement.h @@ -4,23 +4,8 @@ * * Copyright (C) 2006 -2010 by Adrian Feiguin * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmrg/dmrg/dmtk/ctimer.h b/applications/dmrg/dmrg/dmtk/ctimer.h index 7e58edea0..d554b5839 100644 --- a/applications/dmrg/dmrg/dmtk/ctimer.h +++ b/applications/dmrg/dmrg/dmtk/ctimer.h @@ -4,23 +4,8 @@ * * Copyright (C) 2006 -2010 by Adrian Feiguin * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmrg/dmrg/dmtk/dmtk.h b/applications/dmrg/dmrg/dmtk/dmtk.h index 0c3039574..8ea21d661 100644 --- a/applications/dmrg/dmrg/dmtk/dmtk.h +++ b/applications/dmrg/dmrg/dmtk/dmtk.h @@ -4,23 +4,8 @@ * * Copyright (C) 2006 -2010 by Adrian Feiguin * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmrg/dmrg/dmtk/enums.h b/applications/dmrg/dmrg/dmtk/enums.h index f634321f8..64264343a 100644 --- a/applications/dmrg/dmrg/dmtk/enums.h +++ b/applications/dmrg/dmrg/dmtk/enums.h @@ -4,23 +4,8 @@ * * Copyright (C) 2006 -2010 by Adrian Feiguin * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmrg/dmrg/dmtk/globals.h b/applications/dmrg/dmrg/dmtk/globals.h index 48a21b589..b6158eb0c 100644 --- a/applications/dmrg/dmrg/dmtk/globals.h +++ b/applications/dmrg/dmrg/dmtk/globals.h @@ -4,23 +4,8 @@ * * Copyright (C) 2006 -2010 by Adrian Feiguin * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmrg/dmrg/dmtk/gslice_implement.h b/applications/dmrg/dmrg/dmtk/gslice_implement.h index 3dd95e387..7e3ec30a5 100644 --- a/applications/dmrg/dmrg/dmtk/gslice_implement.h +++ b/applications/dmrg/dmrg/dmtk/gslice_implement.h @@ -4,23 +4,8 @@ * * Copyright (C) 2006 -2010 by Adrian Feiguin * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmrg/dmrg/dmtk/gslice_iter.h b/applications/dmrg/dmrg/dmtk/gslice_iter.h index 099b6b63d..a733a1371 100644 --- a/applications/dmrg/dmrg/dmtk/gslice_iter.h +++ b/applications/dmrg/dmrg/dmtk/gslice_iter.h @@ -4,23 +4,8 @@ * * Copyright (C) 2006 -2010 by Adrian Feiguin * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmrg/dmrg/dmtk/hami.h b/applications/dmrg/dmrg/dmtk/hami.h index 8afa4b14e..ac8958357 100644 --- a/applications/dmrg/dmrg/dmtk/hami.h +++ b/applications/dmrg/dmrg/dmtk/hami.h @@ -4,23 +4,8 @@ * * Copyright (C) 2006 -2010 by Adrian Feiguin * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmrg/dmrg/dmtk/lanczos.cc b/applications/dmrg/dmrg/dmtk/lanczos.cc index 7a72e202b..540d77707 100644 --- a/applications/dmrg/dmrg/dmtk/lanczos.cc +++ b/applications/dmrg/dmrg/dmtk/lanczos.cc @@ -4,22 +4,8 @@ * * Copyright (C) 2006 -2010 by Adrian Feiguin * -* This software is part of the ALPS Applications, published under the ALPS -* Application License; you can use, redistribute it and/or modify it under -* the terms of the license, either version 1 or (at your option) any later -* version. -* -* You should have received a copy of the ALPS Application License along with -* the ALPS Applications; see the file LICENSE.txt. If not, the license is also -* available from http://alps.comp-phys.org/. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -* SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -* FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmrg/dmrg/dmtk/lapack_interface.h b/applications/dmrg/dmrg/dmtk/lapack_interface.h index a3375bc64..89275e136 100644 --- a/applications/dmrg/dmrg/dmtk/lapack_interface.h +++ b/applications/dmrg/dmrg/dmtk/lapack_interface.h @@ -4,23 +4,8 @@ * * Copyright (C) 2006 -2010 by Adrian Feiguin * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmrg/dmrg/dmtk/lattice.h b/applications/dmrg/dmrg/dmtk/lattice.h index fadac1c7b..599e9b908 100644 --- a/applications/dmrg/dmrg/dmtk/lattice.h +++ b/applications/dmrg/dmrg/dmtk/lattice.h @@ -4,23 +4,8 @@ * * Copyright (C) 2006 -2010 by Adrian Feiguin * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmrg/dmrg/dmtk/matrix.h b/applications/dmrg/dmrg/dmtk/matrix.h index b59c142b8..96cb7b421 100644 --- a/applications/dmrg/dmrg/dmtk/matrix.h +++ b/applications/dmrg/dmrg/dmtk/matrix.h @@ -4,23 +4,8 @@ * * Copyright (C) 2006 -2010 by Adrian Feiguin * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmrg/dmrg/dmtk/matrix_implement.h b/applications/dmrg/dmrg/dmtk/matrix_implement.h index f812d8a26..527eee27e 100644 --- a/applications/dmrg/dmrg/dmtk/matrix_implement.h +++ b/applications/dmrg/dmrg/dmtk/matrix_implement.h @@ -4,23 +4,8 @@ * * Copyright (C) 2006 -2010 by Adrian Feiguin * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmrg/dmrg/dmtk/meta.h b/applications/dmrg/dmrg/dmtk/meta.h index 19717e58c..1be6d8d29 100644 --- a/applications/dmrg/dmrg/dmtk/meta.h +++ b/applications/dmrg/dmrg/dmtk/meta.h @@ -4,23 +4,8 @@ * * Copyright (C) 2006 -2010 by Adrian Feiguin * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmrg/dmrg/dmtk/operators.h b/applications/dmrg/dmrg/dmtk/operators.h index 0937cdab0..0259ed98a 100644 --- a/applications/dmrg/dmrg/dmtk/operators.h +++ b/applications/dmrg/dmrg/dmtk/operators.h @@ -4,23 +4,8 @@ * * Copyright (C) 2006 -2010 by Adrian Feiguin * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmrg/dmrg/dmtk/qn.h b/applications/dmrg/dmrg/dmtk/qn.h index a0df769d3..08eda7fc3 100644 --- a/applications/dmrg/dmrg/dmtk/qn.h +++ b/applications/dmrg/dmrg/dmtk/qn.h @@ -4,23 +4,8 @@ * * Copyright (C) 2006 -2010 by Adrian Feiguin * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmrg/dmrg/dmtk/range.h b/applications/dmrg/dmrg/dmtk/range.h index a62911acc..de214bb49 100644 --- a/applications/dmrg/dmrg/dmtk/range.h +++ b/applications/dmrg/dmrg/dmtk/range.h @@ -4,23 +4,8 @@ * * Copyright (C) 2006 -2010 by Adrian Feiguin * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmrg/dmrg/dmtk/slice_implement.h b/applications/dmrg/dmrg/dmtk/slice_implement.h index 9549f68bd..68a2f45e5 100644 --- a/applications/dmrg/dmrg/dmtk/slice_implement.h +++ b/applications/dmrg/dmrg/dmtk/slice_implement.h @@ -4,23 +4,8 @@ * * Copyright (C) 2006 -2010 by Adrian Feiguin * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmrg/dmrg/dmtk/slice_iter.h b/applications/dmrg/dmrg/dmtk/slice_iter.h index 91b9ae233..24003e213 100644 --- a/applications/dmrg/dmrg/dmtk/slice_iter.h +++ b/applications/dmrg/dmrg/dmtk/slice_iter.h @@ -4,23 +4,8 @@ * * Copyright (C) 2006 -2010 by Adrian Feiguin * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmrg/dmrg/dmtk/state.h b/applications/dmrg/dmrg/dmtk/state.h index 3dd34e830..d349b95ed 100644 --- a/applications/dmrg/dmrg/dmtk/state.h +++ b/applications/dmrg/dmrg/dmtk/state.h @@ -4,23 +4,8 @@ * * Copyright (C) 2006 -2010 by Adrian Feiguin * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmrg/dmrg/dmtk/state_slice.h b/applications/dmrg/dmrg/dmtk/state_slice.h index 53133f866..d8cd534ad 100644 --- a/applications/dmrg/dmrg/dmtk/state_slice.h +++ b/applications/dmrg/dmrg/dmtk/state_slice.h @@ -4,23 +4,8 @@ * * Copyright (C) 2006 -2010 by Adrian Feiguin * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmrg/dmrg/dmtk/subspace.h b/applications/dmrg/dmrg/dmtk/subspace.h index 9777f351b..41488da80 100644 --- a/applications/dmrg/dmrg/dmtk/subspace.h +++ b/applications/dmrg/dmrg/dmtk/subspace.h @@ -4,23 +4,8 @@ * * Copyright (C) 2006 -2010 by Adrian Feiguin * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmrg/dmrg/dmtk/system.h b/applications/dmrg/dmrg/dmtk/system.h index 523a18021..f1bc6260b 100644 --- a/applications/dmrg/dmrg/dmtk/system.h +++ b/applications/dmrg/dmrg/dmtk/system.h @@ -4,23 +4,8 @@ * * Copyright (C) 2006 -2010 by Adrian Feiguin * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmrg/dmrg/dmtk/util.h b/applications/dmrg/dmrg/dmtk/util.h index 71a94f6b2..055b5762c 100644 --- a/applications/dmrg/dmrg/dmtk/util.h +++ b/applications/dmrg/dmrg/dmtk/util.h @@ -4,23 +4,8 @@ * * Copyright (C) 2006 -2010 by Adrian Feiguin * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmrg/dmrg/dmtk/vector.h b/applications/dmrg/dmrg/dmtk/vector.h index f2f5a4603..0cbf0ba08 100644 --- a/applications/dmrg/dmrg/dmtk/vector.h +++ b/applications/dmrg/dmrg/dmtk/vector.h @@ -4,23 +4,8 @@ * * Copyright (C) 2006 -2010 by Adrian Feiguin * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmrg/dmrg/dmtk/vector_implement.h b/applications/dmrg/dmrg/dmtk/vector_implement.h index 59913f1cb..08ee1fd72 100644 --- a/applications/dmrg/dmrg/dmtk/vector_implement.h +++ b/applications/dmrg/dmrg/dmtk/vector_implement.h @@ -4,23 +4,8 @@ * * Copyright (C) 2006 -2010 by Adrian Feiguin * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmrg/dmrg/factory.C b/applications/dmrg/dmrg/factory.C index 243337b2c..87018232c 100644 --- a/applications/dmrg/dmrg/factory.C +++ b/applications/dmrg/dmrg/factory.C @@ -5,23 +5,8 @@ * Copyright (C) 1994-2010 by Matthias Troyer , * Adrian Feiguin * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/dmrg/dmrg/factory.h b/applications/dmrg/dmrg/factory.h index 0854f09e3..b80896c00 100644 --- a/applications/dmrg/dmrg/factory.h +++ b/applications/dmrg/dmrg/factory.h @@ -4,23 +4,8 @@ * * Copyright (C) 1994-2010 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/mc/simple/evaluator.C b/applications/mc/simple/evaluator.C index 1046a497c..e6a3b3522 100644 --- a/applications/mc/simple/evaluator.C +++ b/applications/mc/simple/evaluator.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2015 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/mc/simple/evaluator.h b/applications/mc/simple/evaluator.h index 5b0012d72..b65bf3cee 100644 --- a/applications/mc/simple/evaluator.h +++ b/applications/mc/simple/evaluator.h @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2015 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/mc/simple/heisenberg.C b/applications/mc/simple/heisenberg.C index f5e73b621..d49d6ffca 100644 --- a/applications/mc/simple/heisenberg.C +++ b/applications/mc/simple/heisenberg.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2015 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/mc/simple/heisenberg.h b/applications/mc/simple/heisenberg.h index 88b18f566..3acddb25e 100644 --- a/applications/mc/simple/heisenberg.h +++ b/applications/mc/simple/heisenberg.h @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2015 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/mc/simple/ising.C b/applications/mc/simple/ising.C index 06183b58b..909e013eb 100644 --- a/applications/mc/simple/ising.C +++ b/applications/mc/simple/ising.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2015 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/mc/simple/ising.h b/applications/mc/simple/ising.h index 11152fef5..7fe23648b 100644 --- a/applications/mc/simple/ising.h +++ b/applications/mc/simple/ising.h @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2015 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/mc/simple/main.C b/applications/mc/simple/main.C index 9247190b8..b40fd3c91 100644 --- a/applications/mc/simple/main.C +++ b/applications/mc/simple/main.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2015 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/mc/simple/vtk.h b/applications/mc/simple/vtk.h index e111f0b84..593a2cdd7 100644 --- a/applications/mc/simple/vtk.h +++ b/applications/mc/simple/vtk.h @@ -6,23 +6,8 @@ * * Copyright (C) 2012-2015 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/mc/simple/xy.C b/applications/mc/simple/xy.C index 01b4519d4..838e4de8b 100644 --- a/applications/mc/simple/xy.C +++ b/applications/mc/simple/xy.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2015 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/mc/simple/xy.h b/applications/mc/simple/xy.h index 72ad8b9bb..af50c31a0 100644 --- a/applications/mc/simple/xy.h +++ b/applications/mc/simple/xy.h @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2015 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/mc/spins/abstract_fitter.C b/applications/mc/spins/abstract_fitter.C index 1342b49a0..40b212f7c 100644 --- a/applications/mc/spins/abstract_fitter.C +++ b/applications/mc/spins/abstract_fitter.C @@ -5,23 +5,8 @@ * Copyright (C) 2005 by Matthias Troyer , * Andreas Streich * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/mc/spins/abstractspinsim.h b/applications/mc/spins/abstractspinsim.h index 0f948c68d..29c3a457a 100644 --- a/applications/mc/spins/abstractspinsim.h +++ b/applications/mc/spins/abstractspinsim.h @@ -5,23 +5,8 @@ * Copyright (C) 1999-2009 by Matthias Troyer , * Fabian Stoeckli * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/mc/spins/base_incr_fitter.C b/applications/mc/spins/base_incr_fitter.C index 612bc886e..c2660c62b 100644 --- a/applications/mc/spins/base_incr_fitter.C +++ b/applications/mc/spins/base_incr_fitter.C @@ -5,23 +5,8 @@ * Copyright (C) 2005 by Matthias Troyer , * Andreas Streich * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/mc/spins/clusterupdate.h b/applications/mc/spins/clusterupdate.h index 011aed149..a8b0a0d6c 100644 --- a/applications/mc/spins/clusterupdate.h +++ b/applications/mc/spins/clusterupdate.h @@ -5,23 +5,8 @@ * Copyright (C) 1999-2006 by Matthias Troyer , * Fabian Stoeckli * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/mc/spins/connect.h b/applications/mc/spins/connect.h index 998209a9d..2fb206214 100644 --- a/applications/mc/spins/connect.h +++ b/applications/mc/spins/connect.h @@ -4,23 +4,8 @@ * * Copyright (C) 1999-2003 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/mc/spins/dummy_fitter.C b/applications/mc/spins/dummy_fitter.C index 73ef97018..93a584569 100644 --- a/applications/mc/spins/dummy_fitter.C +++ b/applications/mc/spins/dummy_fitter.C @@ -5,23 +5,8 @@ * Copyright (C) 2005 by Matthias Troyer , * Andreas Streich * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/mc/spins/est_grad_fitter.C b/applications/mc/spins/est_grad_fitter.C index fbd5eada8..364c3e034 100644 --- a/applications/mc/spins/est_grad_fitter.C +++ b/applications/mc/spins/est_grad_fitter.C @@ -6,23 +6,8 @@ * Walter Gander , * Andreas Streich * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/mc/spins/factory.h b/applications/mc/spins/factory.h index d16579720..f96db2234 100644 --- a/applications/mc/spins/factory.h +++ b/applications/mc/spins/factory.h @@ -4,23 +4,8 @@ * * Copyright (C) 2003 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/mc/spins/faststack.h b/applications/mc/spins/faststack.h index 34cb92b0e..d78389049 100644 --- a/applications/mc/spins/faststack.h +++ b/applications/mc/spins/faststack.h @@ -4,23 +4,8 @@ * * Copyright (C) 1999-2003 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/mc/spins/fit.C b/applications/mc/spins/fit.C index 5fa080594..a72187180 100644 --- a/applications/mc/spins/fit.C +++ b/applications/mc/spins/fit.C @@ -5,23 +5,8 @@ * Copyright (C) 2005 by Matthias Troyer , * Andreas Streich * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/mc/spins/fitter.h b/applications/mc/spins/fitter.h index 27fae0ab1..5fd11380a 100644 --- a/applications/mc/spins/fitter.h +++ b/applications/mc/spins/fitter.h @@ -5,23 +5,8 @@ * Copyright (C) 2005 by Matthias Troyer , * Andreas Streich * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/mc/spins/fitting_scheduler.C b/applications/mc/spins/fitting_scheduler.C index 53df5ca89..74f7d9d4b 100644 --- a/applications/mc/spins/fitting_scheduler.C +++ b/applications/mc/spins/fitting_scheduler.C @@ -5,23 +5,8 @@ * Copyright (C) 2005 by Matthias Troyer , * Andreas Streich * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/mc/spins/fitting_scheduler.h b/applications/mc/spins/fitting_scheduler.h index a00591c47..1ffc5e0a1 100644 --- a/applications/mc/spins/fitting_scheduler.h +++ b/applications/mc/spins/fitting_scheduler.h @@ -5,23 +5,8 @@ * Copyright (C) 2005 by Matthias Troyer , * Andreas Streich * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/mc/spins/helper.h b/applications/mc/spins/helper.h index b1e80237a..5b5202d45 100644 --- a/applications/mc/spins/helper.h +++ b/applications/mc/spins/helper.h @@ -4,23 +4,8 @@ * * Copyright (C) by Andreas Streich * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/mc/spins/ising.h b/applications/mc/spins/ising.h index 81d1f77b8..a80c7772c 100644 --- a/applications/mc/spins/ising.h +++ b/applications/mc/spins/ising.h @@ -5,23 +5,8 @@ * Copyright (C) 1999-2003 by Matthias Troyer , * Fabian Stoeckli * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/mc/spins/lapack.h b/applications/mc/spins/lapack.h index fee45ea61..68cd6e073 100644 --- a/applications/mc/spins/lapack.h +++ b/applications/mc/spins/lapack.h @@ -4,23 +4,8 @@ * * Copyright (C) 1997-2009 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/mc/spins/localupdate.h b/applications/mc/spins/localupdate.h index 571de389e..e4e232daa 100644 --- a/applications/mc/spins/localupdate.h +++ b/applications/mc/spins/localupdate.h @@ -5,23 +5,8 @@ * Copyright (C) 1999-2006 by Matthias Troyer , * Fabian Stoeckli * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/mc/spins/matrices.h b/applications/mc/spins/matrices.h index 6df8faae7..9d1ecb959 100644 --- a/applications/mc/spins/matrices.h +++ b/applications/mc/spins/matrices.h @@ -5,23 +5,8 @@ * Copyright (C) 2005 by Matthias Troyer , * Andreas Streich * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/mc/spins/on.h b/applications/mc/spins/on.h index 003d576b6..5bf0dcb6e 100644 --- a/applications/mc/spins/on.h +++ b/applications/mc/spins/on.h @@ -5,23 +5,8 @@ * Copyright (C) 1999-2006 by Matthias Troyer , * Fabian Stoeckli * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/mc/spins/potts.h b/applications/mc/spins/potts.h index 008ffe651..3cbd52d71 100644 --- a/applications/mc/spins/potts.h +++ b/applications/mc/spins/potts.h @@ -5,23 +5,8 @@ * Copyright (C) 1999-2003 by Matthias Troyer , * Fabian Stoeckli * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/mc/spins/spinmc.C b/applications/mc/spins/spinmc.C index ca872a94f..f9677ac79 100644 --- a/applications/mc/spins/spinmc.C +++ b/applications/mc/spins/spinmc.C @@ -5,23 +5,8 @@ * Copyright (C) 1994-2003 by Fabien Alet , * Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/mc/spins/spinmc_evaluate.C b/applications/mc/spins/spinmc_evaluate.C index 8e11f0e57..415049fb1 100644 --- a/applications/mc/spins/spinmc_evaluate.C +++ b/applications/mc/spins/spinmc_evaluate.C @@ -4,23 +4,8 @@ * * Copyright (C) 2003-2004 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/mc/spins/spinmc_factory.C b/applications/mc/spins/spinmc_factory.C index fda5ede5a..2bc3534b0 100644 --- a/applications/mc/spins/spinmc_factory.C +++ b/applications/mc/spins/spinmc_factory.C @@ -5,23 +5,8 @@ * Copyright (C) 2009 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/mc/spins/spinsim.h b/applications/mc/spins/spinsim.h index 9e85fbc84..275e49a9f 100644 --- a/applications/mc/spins/spinsim.h +++ b/applications/mc/spins/spinsim.h @@ -5,23 +5,8 @@ * Copyright (C) 1999-2003 by Matthias Troyer , * Fabian Stoeckli * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/mc/spins/tinyvec.h b/applications/mc/spins/tinyvec.h index a558fd039..4a64c5eb3 100644 --- a/applications/mc/spins/tinyvec.h +++ b/applications/mc/spins/tinyvec.h @@ -4,23 +4,8 @@ * * Copyright (C) 2003 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/mc/spins/xy.h b/applications/mc/spins/xy.h index ed7165ab0..7c9c8b20f 100644 --- a/applications/mc/spins/xy.h +++ b/applications/mc/spins/xy.h @@ -4,23 +4,8 @@ * * Copyright (C) 1999-2003 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/checksign/checksign.C b/applications/qmc/checksign/checksign.C index e724caa88..76c6eb788 100644 --- a/applications/qmc/checksign/checksign.C +++ b/applications/qmc/checksign/checksign.C @@ -4,23 +4,8 @@ * * Copyright (C) 2003-2006 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/dwa/bandstructure.hpp b/applications/qmc/dwa/bandstructure.hpp index b48ce7af4..3518ec684 100644 --- a/applications/qmc/dwa/bandstructure.hpp +++ b/applications/qmc/dwa/bandstructure.hpp @@ -6,23 +6,8 @@ * Lode Pollet , * Ping Nang Ma * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/dwa/dwa.cpp b/applications/qmc/dwa/dwa.cpp index ca534c953..058c95466 100644 --- a/applications/qmc/dwa/dwa.cpp +++ b/applications/qmc/dwa/dwa.cpp @@ -9,23 +9,8 @@ * Lode Pollet , * Ping Nang Ma * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/dwa/dwa.hpp b/applications/qmc/dwa/dwa.hpp index 1193854fd..0519e562a 100644 --- a/applications/qmc/dwa/dwa.hpp +++ b/applications/qmc/dwa/dwa.hpp @@ -7,23 +7,8 @@ * Lode Pollet , * Ping Nang Ma * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/dwa/python/dwa.cpp b/applications/qmc/dwa/python/dwa.cpp index 3bd73c96c..9ada2d294 100644 --- a/applications/qmc/dwa/python/dwa.cpp +++ b/applications/qmc/dwa/python/dwa.cpp @@ -6,23 +6,8 @@ * Lode Pollet , * Ping Nang Ma * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/dwa/worldlines.hpp b/applications/qmc/dwa/worldlines.hpp index 63fc6f931..06874c4a4 100644 --- a/applications/qmc/dwa/worldlines.hpp +++ b/applications/qmc/dwa/worldlines.hpp @@ -7,23 +7,8 @@ * Lode Pollet , * Ping Nang Ma * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/looper/loop.C b/applications/qmc/looper/loop.C index f8e741889..b742f2373 100644 --- a/applications/qmc/looper/loop.C +++ b/applications/qmc/looper/loop.C @@ -4,23 +4,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/looper/loop_config.h b/applications/qmc/looper/loop_config.h index 12a9b9d66..bd47553c3 100644 --- a/applications/qmc/looper/loop_config.h +++ b/applications/qmc/looper/loop_config.h @@ -4,23 +4,8 @@ * * Copyright (C) 1997-2008 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/looper/loop_custom.C b/applications/qmc/looper/loop_custom.C index 08a210071..4f1415560 100644 --- a/applications/qmc/looper/loop_custom.C +++ b/applications/qmc/looper/loop_custom.C @@ -4,23 +4,8 @@ * * Copyright (C) 1997-2007 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/looper/loop_model.C b/applications/qmc/looper/loop_model.C index dc5171ef8..8276349b1 100644 --- a/applications/qmc/looper/loop_model.C +++ b/applications/qmc/looper/loop_model.C @@ -4,23 +4,8 @@ * * Copyright (C) 1997-2006 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/looper/looper/alternating_tensor.h b/applications/qmc/looper/looper/alternating_tensor.h index 2cc782eac..5d10367d3 100644 --- a/applications/qmc/looper/looper/alternating_tensor.h +++ b/applications/qmc/looper/looper/alternating_tensor.h @@ -4,23 +4,8 @@ * * Copyright (C) 1997-2006 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/looper/looper/cluster.h b/applications/qmc/looper/looper/cluster.h index be52effaf..e6e520dea 100644 --- a/applications/qmc/looper/looper/cluster.h +++ b/applications/qmc/looper/looper/cluster.h @@ -4,23 +4,8 @@ * * Copyright (C) 1997-2008 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/looper/looper/correlation.h b/applications/qmc/looper/looper/correlation.h index b18f60a61..df29b0628 100644 --- a/applications/qmc/looper/looper/correlation.h +++ b/applications/qmc/looper/looper/correlation.h @@ -4,23 +4,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/looper/looper/crop.h b/applications/qmc/looper/looper/crop.h index 92ee720e6..eef7175ee 100644 --- a/applications/qmc/looper/looper/crop.h +++ b/applications/qmc/looper/looper/crop.h @@ -4,23 +4,8 @@ * * Copyright (C) 1997-2006 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/looper/looper/custom.h b/applications/qmc/looper/looper/custom.h index 02a37134e..790c68c25 100644 --- a/applications/qmc/looper/looper/custom.h +++ b/applications/qmc/looper/looper/custom.h @@ -4,23 +4,8 @@ * * Copyright (C) 1997-2009 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/looper/looper/custom_impl.h b/applications/qmc/looper/looper/custom_impl.h index 6028f19e8..0881bbd43 100644 --- a/applications/qmc/looper/looper/custom_impl.h +++ b/applications/qmc/looper/looper/custom_impl.h @@ -4,23 +4,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/looper/looper/divide_if_positive.h b/applications/qmc/looper/looper/divide_if_positive.h index ec44186b3..9abe0885b 100644 --- a/applications/qmc/looper/looper/divide_if_positive.h +++ b/applications/qmc/looper/looper/divide_if_positive.h @@ -4,23 +4,8 @@ * * Copyright (C) 1997-2006 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/looper/looper/evaluator.h b/applications/qmc/looper/looper/evaluator.h index e323f7d7d..c636c1fed 100644 --- a/applications/qmc/looper/looper/evaluator.h +++ b/applications/qmc/looper/looper/evaluator.h @@ -4,23 +4,8 @@ * * Copyright (C) 2003-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/looper/looper/evaluator_impl.h b/applications/qmc/looper/looper/evaluator_impl.h index 186410203..3e245f84e 100644 --- a/applications/qmc/looper/looper/evaluator_impl.h +++ b/applications/qmc/looper/looper/evaluator_impl.h @@ -4,23 +4,8 @@ * * Copyright (C) 2003-2008 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/looper/looper/graph.h b/applications/qmc/looper/looper/graph.h index 50492f174..0fc82bbae 100644 --- a/applications/qmc/looper/looper/graph.h +++ b/applications/qmc/looper/looper/graph.h @@ -4,23 +4,8 @@ * * Copyright (C) 1997-2007 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/looper/looper/graph_impl.h b/applications/qmc/looper/looper/graph_impl.h index 15182b809..41ca29cc6 100644 --- a/applications/qmc/looper/looper/graph_impl.h +++ b/applications/qmc/looper/looper/graph_impl.h @@ -4,23 +4,8 @@ * * Copyright (C) 1997-2007 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/looper/looper/integer_range.h b/applications/qmc/looper/looper/integer_range.h index 377e3f345..b22f40538 100644 --- a/applications/qmc/looper/looper/integer_range.h +++ b/applications/qmc/looper/looper/integer_range.h @@ -4,23 +4,8 @@ * * Copyright (C) 1997-2007 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/looper/looper/lapack.h b/applications/qmc/looper/looper/lapack.h index 2a4bd3c67..d0d8425c3 100644 --- a/applications/qmc/looper/looper/lapack.h +++ b/applications/qmc/looper/looper/lapack.h @@ -4,23 +4,8 @@ * * Copyright (C) 1997-2006 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/looper/looper/lattice.h b/applications/qmc/looper/looper/lattice.h index 6039c2355..05a7a09f3 100644 --- a/applications/qmc/looper/looper/lattice.h +++ b/applications/qmc/looper/looper/lattice.h @@ -4,23 +4,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/looper/looper/location.h b/applications/qmc/looper/looper/location.h index 20396126e..91598b720 100644 --- a/applications/qmc/looper/looper/location.h +++ b/applications/qmc/looper/looper/location.h @@ -4,23 +4,8 @@ * * Copyright (C) 1997-2007 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/looper/looper/location_impl.h b/applications/qmc/looper/looper/location_impl.h index c562503f6..ffe852702 100644 --- a/applications/qmc/looper/looper/location_impl.h +++ b/applications/qmc/looper/looper/location_impl.h @@ -4,23 +4,8 @@ * * Copyright (C) 1997-2007 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/looper/looper/matrix.h b/applications/qmc/looper/looper/matrix.h index 1aae78618..b71670767 100644 --- a/applications/qmc/looper/looper/matrix.h +++ b/applications/qmc/looper/looper/matrix.h @@ -4,23 +4,8 @@ * * Copyright (C) 1997-2007 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/looper/looper/measurement.h b/applications/qmc/looper/looper/measurement.h index 5f1e5e015..debfdf333 100644 --- a/applications/qmc/looper/looper/measurement.h +++ b/applications/qmc/looper/looper/measurement.h @@ -4,23 +4,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/looper/looper/model.h b/applications/qmc/looper/looper/model.h index 741b339a3..4f8ea9759 100644 --- a/applications/qmc/looper/looper/model.h +++ b/applications/qmc/looper/looper/model.h @@ -4,23 +4,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/looper/looper/model_impl.h b/applications/qmc/looper/looper/model_impl.h index 8b0c99e96..131a340a3 100644 --- a/applications/qmc/looper/looper/model_impl.h +++ b/applications/qmc/looper/looper/model_impl.h @@ -4,23 +4,8 @@ * * Copyright (C) 1997-2009 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/looper/looper/model_parameter.h b/applications/qmc/looper/looper/model_parameter.h index 4596d77a4..0bc7b97ac 100644 --- a/applications/qmc/looper/looper/model_parameter.h +++ b/applications/qmc/looper/looper/model_parameter.h @@ -4,23 +4,8 @@ * * Copyright (C) 1997-2009 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/looper/looper/montecarlo.h b/applications/qmc/looper/looper/montecarlo.h index d43d2b9ac..126b16cbe 100644 --- a/applications/qmc/looper/looper/montecarlo.h +++ b/applications/qmc/looper/looper/montecarlo.h @@ -4,23 +4,8 @@ * * Copyright (C) 1997-2009 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/looper/looper/operator.h b/applications/qmc/looper/looper/operator.h index e8a4f56d7..9d5a971fb 100644 --- a/applications/qmc/looper/looper/operator.h +++ b/applications/qmc/looper/looper/operator.h @@ -4,23 +4,8 @@ * * Copyright (C) 1997-2007 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/looper/looper/permutation.h b/applications/qmc/looper/looper/permutation.h index 79b678acb..fe2b7fa6b 100644 --- a/applications/qmc/looper/looper/permutation.h +++ b/applications/qmc/looper/looper/permutation.h @@ -4,23 +4,8 @@ * * Copyright (C) 1997-2006 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/looper/looper/power.h b/applications/qmc/looper/looper/power.h index fd8d217fd..a0585bc2c 100644 --- a/applications/qmc/looper/looper/power.h +++ b/applications/qmc/looper/looper/power.h @@ -4,23 +4,8 @@ * * Copyright (C) 1997-2006 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/looper/looper/random_choice.h b/applications/qmc/looper/looper/random_choice.h index 91138aade..708d8b86c 100644 --- a/applications/qmc/looper/looper/random_choice.h +++ b/applications/qmc/looper/looper/random_choice.h @@ -4,23 +4,8 @@ * * Copyright (C) 1997-2008 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/looper/looper/stiffness.h b/applications/qmc/looper/looper/stiffness.h index 8d5098338..85f3b7c73 100644 --- a/applications/qmc/looper/looper/stiffness.h +++ b/applications/qmc/looper/looper/stiffness.h @@ -4,23 +4,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/looper/looper/susceptibility.h b/applications/qmc/looper/looper/susceptibility.h index d933e4582..9a11c66b1 100644 --- a/applications/qmc/looper/looper/susceptibility.h +++ b/applications/qmc/looper/looper/susceptibility.h @@ -4,23 +4,8 @@ * * Copyright (C) 1997-2009 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/looper/looper/temperature.h b/applications/qmc/looper/looper/temperature.h index dd12e230f..622c8bf0f 100644 --- a/applications/qmc/looper/looper/temperature.h +++ b/applications/qmc/looper/looper/temperature.h @@ -4,23 +4,8 @@ * * Copyright (C) 1997-2007 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/looper/looper/time.h b/applications/qmc/looper/looper/time.h index cd1b9adee..184baed81 100644 --- a/applications/qmc/looper/looper/time.h +++ b/applications/qmc/looper/looper/time.h @@ -4,23 +4,8 @@ * * Copyright (C) 1997-2009 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/looper/looper/type.h b/applications/qmc/looper/looper/type.h index de08581a2..6e727d053 100644 --- a/applications/qmc/looper/looper/type.h +++ b/applications/qmc/looper/looper/type.h @@ -4,23 +4,8 @@ * * Copyright (C) 1997-2006 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/looper/looper/union_find.h b/applications/qmc/looper/looper/union_find.h index 040472638..247cfaca3 100644 --- a/applications/qmc/looper/looper/union_find.h +++ b/applications/qmc/looper/looper/union_find.h @@ -4,23 +4,8 @@ * * Copyright (C) 1997-2008 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/looper/looper/version.h b/applications/qmc/looper/looper/version.h index 4a5370469..c0704e4d6 100644 --- a/applications/qmc/looper/looper/version.h +++ b/applications/qmc/looper/looper/version.h @@ -4,23 +4,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/looper/looper/weight.h b/applications/qmc/looper/looper/weight.h index 9bb362f4c..a27bf9f72 100644 --- a/applications/qmc/looper/looper/weight.h +++ b/applications/qmc/looper/looper/weight.h @@ -4,23 +4,8 @@ * * Copyright (C) 1997-2007 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/looper/looper/weight_impl.h b/applications/qmc/looper/looper/weight_impl.h index f0bd59b7d..76bc89b12 100644 --- a/applications/qmc/looper/looper/weight_impl.h +++ b/applications/qmc/looper/looper/weight_impl.h @@ -4,23 +4,8 @@ * * Copyright (C) 1997-2009 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/looper/path_integral.C b/applications/qmc/looper/path_integral.C index c8b1be340..b558012ad 100644 --- a/applications/qmc/looper/path_integral.C +++ b/applications/qmc/looper/path_integral.C @@ -4,23 +4,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/looper/sse.C b/applications/qmc/looper/sse.C index c187668df..1f2997d03 100644 --- a/applications/qmc/looper/sse.C +++ b/applications/qmc/looper/sse.C @@ -4,23 +4,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/qmc.h b/applications/qmc/qmc.h index 9d65a0eaf..1e65e75ac 100644 --- a/applications/qmc/qmc.h +++ b/applications/qmc/qmc.h @@ -5,23 +5,8 @@ * Copyright (C) 2001-2006 by Fabien Alet , * Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/qmc.ngs.h b/applications/qmc/qmc.ngs.h index 80199c684..57eb129ba 100644 --- a/applications/qmc/qmc.ngs.h +++ b/applications/qmc/qmc.ngs.h @@ -6,23 +6,8 @@ * Matthias Troyer , * Ping Nang Ma * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/qwl/qwl.C b/applications/qmc/qwl/qwl.C index 3f70009b2..54a65dea8 100644 --- a/applications/qmc/qwl/qwl.C +++ b/applications/qmc/qwl/qwl.C @@ -4,23 +4,8 @@ * * Copyright (C) 2004 by Stefan Wessel * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/qwl/qwl_evaluate.C b/applications/qmc/qwl/qwl_evaluate.C index b25a44c4f..1e964e10f 100644 --- a/applications/qmc/qwl/qwl_evaluate.C +++ b/applications/qmc/qwl/qwl_evaluate.C @@ -4,23 +4,8 @@ * * Copyright (C) 2004-2006 by Stefan Wessel * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/qwl/qwl_histogram.h b/applications/qmc/qwl/qwl_histogram.h index bc1fff5dc..27ae04706 100644 --- a/applications/qmc/qwl/qwl_histogram.h +++ b/applications/qmc/qwl/qwl_histogram.h @@ -4,23 +4,8 @@ * * Copyright (C) 2004 by Stefan Wessel * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/qwl/qwl_sse.h b/applications/qmc/qwl/qwl_sse.h index cf561e2e8..d0b8b40af 100644 --- a/applications/qmc/qwl/qwl_sse.h +++ b/applications/qmc/qwl/qwl_sse.h @@ -4,23 +4,8 @@ * * Copyright (C) 2004-2005 by Stefan Wessel * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/sse/SSE.Classes.hpp b/applications/qmc/sse/SSE.Classes.hpp index cb7524784..65a787c38 100644 --- a/applications/qmc/sse/SSE.Classes.hpp +++ b/applications/qmc/sse/SSE.Classes.hpp @@ -5,23 +5,8 @@ * Copyright (C) 2001-2003 by Fabien Alet , * Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/sse/SSE.Directed.cpp b/applications/qmc/sse/SSE.Directed.cpp index 5a1c04039..56b09234f 100644 --- a/applications/qmc/sse/SSE.Directed.cpp +++ b/applications/qmc/sse/SSE.Directed.cpp @@ -5,23 +5,8 @@ * Copyright (C) 2001-2006 by Fabien Alet , * Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/sse/SSE.Initialization.cpp b/applications/qmc/sse/SSE.Initialization.cpp index 3e1541db1..9a4d2a9e1 100644 --- a/applications/qmc/sse/SSE.Initialization.cpp +++ b/applications/qmc/sse/SSE.Initialization.cpp @@ -5,23 +5,8 @@ * Copyright (C) 2001-2006 by Fabien Alet , * Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/sse/SSE.Measurements.cpp b/applications/qmc/sse/SSE.Measurements.cpp index d4ccb1440..37afaa443 100644 --- a/applications/qmc/sse/SSE.Measurements.cpp +++ b/applications/qmc/sse/SSE.Measurements.cpp @@ -5,23 +5,8 @@ * Copyright (C) 2001-2005 by Fabien Alet , * Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/sse/SSE.Update.cpp b/applications/qmc/sse/SSE.Update.cpp index c2f20c177..99b14d5b8 100644 --- a/applications/qmc/sse/SSE.Update.cpp +++ b/applications/qmc/sse/SSE.Update.cpp @@ -5,23 +5,8 @@ * Copyright (C) 2001-2006 by Fabien Alet , * Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/sse/SSE.cpp b/applications/qmc/sse/SSE.cpp index 31a2c02e3..fbd67fdc5 100644 --- a/applications/qmc/sse/SSE.cpp +++ b/applications/qmc/sse/SSE.cpp @@ -6,23 +6,8 @@ * Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/sse/SSE.hpp b/applications/qmc/sse/SSE.hpp index 22e2d3a76..1ab221e66 100644 --- a/applications/qmc/sse/SSE.hpp +++ b/applications/qmc/sse/SSE.hpp @@ -5,23 +5,8 @@ * Copyright (C) 2001-2009 by Fabien Alet , * Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/sse/evaluate.C b/applications/qmc/sse/evaluate.C index f62b40e09..1afe67386 100644 --- a/applications/qmc/sse/evaluate.C +++ b/applications/qmc/sse/evaluate.C @@ -4,23 +4,8 @@ * * Copyright (C) 2002-2008 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/sse2/SSE.Classes.hpp b/applications/qmc/sse2/SSE.Classes.hpp index de8b16134..424138311 100644 --- a/applications/qmc/sse2/SSE.Classes.hpp +++ b/applications/qmc/sse2/SSE.Classes.hpp @@ -5,23 +5,8 @@ * Copyright (C) 2001-2003 by Fabien Alet , * Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/sse2/SSE.Directed.cpp b/applications/qmc/sse2/SSE.Directed.cpp index f6713c9c3..971b9cf8e 100644 --- a/applications/qmc/sse2/SSE.Directed.cpp +++ b/applications/qmc/sse2/SSE.Directed.cpp @@ -5,23 +5,8 @@ * Copyright (C) 2001-2003 by Fabien Alet , * Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/sse2/SSE.Histogram.hpp b/applications/qmc/sse2/SSE.Histogram.hpp index ecacf5365..106ec6c46 100644 --- a/applications/qmc/sse2/SSE.Histogram.hpp +++ b/applications/qmc/sse2/SSE.Histogram.hpp @@ -4,23 +4,8 @@ * * Copyright (C) 2004 by Stefan Wessel * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/sse2/SSE.Initialization.cpp b/applications/qmc/sse2/SSE.Initialization.cpp index 741a2146a..31912875d 100644 --- a/applications/qmc/sse2/SSE.Initialization.cpp +++ b/applications/qmc/sse2/SSE.Initialization.cpp @@ -5,23 +5,8 @@ * Copyright (C) 2001-2005 by Fabien Alet , * Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/sse2/SSE.Measurements.cpp b/applications/qmc/sse2/SSE.Measurements.cpp index 0ac52a091..ba85b6e2e 100644 --- a/applications/qmc/sse2/SSE.Measurements.cpp +++ b/applications/qmc/sse2/SSE.Measurements.cpp @@ -5,23 +5,8 @@ * Copyright (C) 2001-2005 by Fabien Alet , * Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/sse2/SSE.Update.cpp b/applications/qmc/sse2/SSE.Update.cpp index 1a18d6e7f..9d36af5be 100644 --- a/applications/qmc/sse2/SSE.Update.cpp +++ b/applications/qmc/sse2/SSE.Update.cpp @@ -5,23 +5,8 @@ * Copyright (C) 2001-2005 by Fabien Alet , * Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/sse2/SSE.cpp b/applications/qmc/sse2/SSE.cpp index 6db7ae6ed..2273475aa 100644 --- a/applications/qmc/sse2/SSE.cpp +++ b/applications/qmc/sse2/SSE.cpp @@ -6,23 +6,8 @@ * Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/sse2/SSE.hpp b/applications/qmc/sse2/SSE.hpp index 66ea8f1d0..5ba1888e0 100644 --- a/applications/qmc/sse2/SSE.hpp +++ b/applications/qmc/sse2/SSE.hpp @@ -5,23 +5,8 @@ * Copyright (C) 2001-2005 by Fabien Alet , * Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/sse4/lattice.h b/applications/qmc/sse4/lattice.h index 2f86d3ea2..c67cf05bf 100644 --- a/applications/qmc/sse4/lattice.h +++ b/applications/qmc/sse4/lattice.h @@ -4,23 +4,8 @@ * * Copyright (C) 2003-2010 by Sergei Isakov * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/sse4/lp_sse.cpp b/applications/qmc/sse4/lp_sse.cpp index 426c54eca..34fca5922 100644 --- a/applications/qmc/sse4/lp_sse.cpp +++ b/applications/qmc/sse4/lp_sse.cpp @@ -4,23 +4,8 @@ * * Copyright (C) 2010 by Lode Pollet * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/sse4/lp_sse.h b/applications/qmc/sse4/lp_sse.h index dd5a6e7ec..26e8661bf 100644 --- a/applications/qmc/sse4/lp_sse.h +++ b/applications/qmc/sse4/lp_sse.h @@ -4,23 +4,8 @@ * * Copyright (C) 2010 by Lode Pollet * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/sse4/measurement.h b/applications/qmc/sse4/measurement.h index 5b0a699e6..687d84a74 100644 --- a/applications/qmc/sse4/measurement.h +++ b/applications/qmc/sse4/measurement.h @@ -4,23 +4,8 @@ * * Copyright (C) 2003-2010 by Sergei Isakov * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/sse4/model.h b/applications/qmc/sse4/model.h index 3146c0adb..b9d640c13 100644 --- a/applications/qmc/sse4/model.h +++ b/applications/qmc/sse4/model.h @@ -4,23 +4,8 @@ * * Copyright (C) 2003-2010 by Sergei Isakov * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/sse4/sse.h b/applications/qmc/sse4/sse.h index 7069cc5b3..4061c5bc1 100644 --- a/applications/qmc/sse4/sse.h +++ b/applications/qmc/sse4/sse.h @@ -4,23 +4,8 @@ * * Copyright (C) 2009-2010 by Sergei Isakov * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/sse4/sse_alg.h b/applications/qmc/sse4/sse_alg.h index 51c77e3ea..5447266a1 100644 --- a/applications/qmc/sse4/sse_alg.h +++ b/applications/qmc/sse4/sse_alg.h @@ -4,23 +4,8 @@ * * Copyright (C) 2003-2010 by Sergei Isakov * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/sse4/sse_alg_def.h b/applications/qmc/sse4/sse_alg_def.h index 7b96e95b6..87d0d1a70 100644 --- a/applications/qmc/sse4/sse_alg_def.h +++ b/applications/qmc/sse4/sse_alg_def.h @@ -4,23 +4,8 @@ * * Copyright (C) 2003-2010 by Sergei Isakov * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/sse4/sse_worm_prob.h b/applications/qmc/sse4/sse_worm_prob.h index ce40a8203..cbd67d4d2 100644 --- a/applications/qmc/sse4/sse_worm_prob.h +++ b/applications/qmc/sse4/sse_worm_prob.h @@ -4,23 +4,8 @@ * * Copyright (C) 2003-2010 by Sergei Isakov * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/worms/WKink.h b/applications/qmc/worms/WKink.h index d783f90e1..e8989c605 100644 --- a/applications/qmc/worms/WKink.h +++ b/applications/qmc/worms/WKink.h @@ -5,23 +5,8 @@ * Copyright (C) 2001-2004 by Matthias Troyer , * Simon Trebst * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/worms/WModel.C b/applications/qmc/worms/WModel.C index 3ec5e7716..9057325cc 100644 --- a/applications/qmc/worms/WModel.C +++ b/applications/qmc/worms/WModel.C @@ -5,23 +5,8 @@ * Copyright (C) 2001-2005 by Matthias Troyer , * Simon Trebst * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/worms/WRun.C b/applications/qmc/worms/WRun.C index 6a192b341..01c93b9ae 100644 --- a/applications/qmc/worms/WRun.C +++ b/applications/qmc/worms/WRun.C @@ -5,23 +5,8 @@ * Copyright (C) 2001-2005 by Matthias Troyer , * Simon Trebst * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/worms/WRun.h b/applications/qmc/worms/WRun.h index 5c419495c..5579f6d52 100644 --- a/applications/qmc/worms/WRun.h +++ b/applications/qmc/worms/WRun.h @@ -5,23 +5,8 @@ * Copyright (C) 2001-2009 by Matthias Troyer , * Simon Trebst * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/worms/Wcheck.C b/applications/qmc/worms/Wcheck.C index 2ec742318..542007bca 100644 --- a/applications/qmc/worms/Wcheck.C +++ b/applications/qmc/worms/Wcheck.C @@ -5,23 +5,8 @@ * Copyright (C) 2001-2004 by Matthias Troyer , * Simon Trebst * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/worms/Wdostep.C b/applications/qmc/worms/Wdostep.C index 1c98fae5f..16925ce90 100644 --- a/applications/qmc/worms/Wdostep.C +++ b/applications/qmc/worms/Wdostep.C @@ -5,23 +5,8 @@ * Copyright (C) 2001-2004 by Matthias Troyer , * Simon Trebst * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/worms/Winit.C b/applications/qmc/worms/Winit.C index d41aade64..ce3437333 100644 --- a/applications/qmc/worms/Winit.C +++ b/applications/qmc/worms/Winit.C @@ -5,23 +5,8 @@ * Copyright (C) 2001-2005 by Matthias Troyer , * Simon Trebst * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/worms/Wmeas.C b/applications/qmc/worms/Wmeas.C index de92ea88f..10fc68684 100644 --- a/applications/qmc/worms/Wmeas.C +++ b/applications/qmc/worms/Wmeas.C @@ -5,23 +5,8 @@ * Copyright (C) 2001-2005 by Matthias Troyer , * Simon Trebst * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/worms/cyclic_iterator.h b/applications/qmc/worms/cyclic_iterator.h index 79d0076f9..ed62fb37a 100644 --- a/applications/qmc/worms/cyclic_iterator.h +++ b/applications/qmc/worms/cyclic_iterator.h @@ -5,23 +5,8 @@ * Copyright (C) 2001-2004 by Matthias Troyer , * Simon Trebst * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/worms/evaluate.C b/applications/qmc/worms/evaluate.C index 7e34b39b8..013ed662d 100644 --- a/applications/qmc/worms/evaluate.C +++ b/applications/qmc/worms/evaluate.C @@ -5,23 +5,8 @@ * Copyright (C) 2002-2003 by Matthias Troyer , * Simon Trebst * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/worms/main.C b/applications/qmc/worms/main.C index f4520b472..506e72f2a 100644 --- a/applications/qmc/worms/main.C +++ b/applications/qmc/worms/main.C @@ -5,23 +5,8 @@ * Copyright (C) 2002-2004 by Matthias Troyer , * Simon Trebst * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/worms/random.h b/applications/qmc/worms/random.h index c657d76a4..7a66dc4ab 100644 --- a/applications/qmc/worms/random.h +++ b/applications/qmc/worms/random.h @@ -5,23 +5,8 @@ * Copyright (C) 2001-2004 by Matthias Troyer , * Simon Trebst * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/applications/qmc/worms/time_struct.h b/applications/qmc/worms/time_struct.h index 24b8490ff..a21f4a484 100644 --- a/applications/qmc/worms/time_struct.h +++ b/applications/qmc/worms/time_struct.h @@ -5,23 +5,8 @@ * Copyright (C) 2001-2004 by Matthias Troyer , * Simon Trebst * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/alea/example_autocorrelation.cpp b/example/alea/example_autocorrelation.cpp index c77d26071..ce0b60c8a 100644 --- a/example/alea/example_autocorrelation.cpp +++ b/example/alea/example_autocorrelation.cpp @@ -6,23 +6,8 @@ * Matthias Troyer , * Maximilian Poprawe * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/alea/example_autocorrelation.py b/example/alea/example_autocorrelation.py index f48c5a548..67602b2ed 100644 --- a/example/alea/example_autocorrelation.py +++ b/example/alea/example_autocorrelation.py @@ -7,22 +7,8 @@ #* Matthias Troyer , #* Maximilian Poprawe #* -#* This software is part of the ALPS libraries, published under the ALPS -#* Library License; you can use, redistribute it and/or modify it under -#* the terms of the license, either version 1 or (at your option) any later -#* version. -#* -#* You should have received a copy of the ALPS Library License along with -#* the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -#* available from http://alps.comp-phys.org/. -#* -#* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -#* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -#* FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -#* SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -#* FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -#* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -#* DEALINGS IN THE SOFTWARE. +#* ALPS Project: https://alps.comp-phys.org/ +#* SPDX-License-Identifier: MIT #* #*****************************************************************************/ diff --git a/example/alea/example_error.cpp b/example/alea/example_error.cpp index 3761f0926..de38c48d7 100644 --- a/example/alea/example_error.cpp +++ b/example/alea/example_error.cpp @@ -6,23 +6,8 @@ * Matthias Troyer , * Maximilian Poprawe * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/alea/example_error.py b/example/alea/example_error.py index af819cbec..10c3ab005 100644 --- a/example/alea/example_error.py +++ b/example/alea/example_error.py @@ -7,22 +7,8 @@ #* Matthias Troyer , #* Maximilian Poprawe #* -#* This software is part of the ALPS libraries, published under the ALPS -#* Library License; you can use, redistribute it and/or modify it under -#* the terms of the license, either version 1 or (at your option) any later -#* version. -#* -#* You should have received a copy of the ALPS Library License along with -#* the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -#* available from http://alps.comp-phys.org/. -#* -#* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -#* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -#* FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -#* SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -#* FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -#* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -#* DEALINGS IN THE SOFTWARE. +#* ALPS Project: https://alps.comp-phys.org/ +#* SPDX-License-Identifier: MIT #* #*****************************************************************************/ diff --git a/example/alea/example_mean.cpp b/example/alea/example_mean.cpp index ab8bea742..477db790b 100644 --- a/example/alea/example_mean.cpp +++ b/example/alea/example_mean.cpp @@ -6,23 +6,8 @@ * Matthias Troyer , * Maximilian Poprawe * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/alea/example_mean.py b/example/alea/example_mean.py index f211cf186..ae2514455 100644 --- a/example/alea/example_mean.py +++ b/example/alea/example_mean.py @@ -7,22 +7,8 @@ #* Matthias Troyer , #* Maximilian Poprawe #* -#* This software is part of the ALPS libraries, published under the ALPS -#* Library License; you can use, redistribute it and/or modify it under -#* the terms of the license, either version 1 or (at your option) any later -#* version. -#* -#* You should have received a copy of the ALPS Library License along with -#* the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -#* available from http://alps.comp-phys.org/. -#* -#* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -#* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -#* FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -#* SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -#* FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -#* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -#* DEALINGS IN THE SOFTWARE. +#* ALPS Project: https://alps.comp-phys.org/ +#* SPDX-License-Identifier: MIT #* #*****************************************************************************/ diff --git a/example/alea/example_running_mean.cpp b/example/alea/example_running_mean.cpp index 38fa1da74..59a174045 100644 --- a/example/alea/example_running_mean.cpp +++ b/example/alea/example_running_mean.cpp @@ -6,23 +6,8 @@ * Matthias Troyer , * Maximilian Poprawe * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/alea/example_running_mean.py b/example/alea/example_running_mean.py index 1c03bfe4c..ac177e455 100644 --- a/example/alea/example_running_mean.py +++ b/example/alea/example_running_mean.py @@ -7,22 +7,8 @@ #* Matthias Troyer , #* Maximilian Poprawe #* -#* This software is part of the ALPS libraries, published under the ALPS -#* Library License; you can use, redistribute it and/or modify it under -#* the terms of the license, either version 1 or (at your option) any later -#* version. -#* -#* You should have received a copy of the ALPS Library License along with -#* the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -#* available from http://alps.comp-phys.org/. -#* -#* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -#* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -#* FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -#* SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -#* FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -#* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -#* DEALINGS IN THE SOFTWARE. +#* ALPS Project: https://alps.comp-phys.org/ +#* SPDX-License-Identifier: MIT #* #*****************************************************************************/ diff --git a/example/alea/example_variance.cpp b/example/alea/example_variance.cpp index 8d39dd3e9..5b0bad3fe 100644 --- a/example/alea/example_variance.cpp +++ b/example/alea/example_variance.cpp @@ -6,23 +6,8 @@ * Matthias Troyer , * Maximilian Poprawe * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/alea/example_variance.py b/example/alea/example_variance.py index 646ce9e16..11f9826eb 100644 --- a/example/alea/example_variance.py +++ b/example/alea/example_variance.py @@ -7,22 +7,8 @@ #* Matthias Troyer , #* Maximilian Poprawe #* -#* This software is part of the ALPS libraries, published under the ALPS -#* Library License; you can use, redistribute it and/or modify it under -#* the terms of the license, either version 1 or (at your option) any later -#* version. -#* -#* You should have received a copy of the ALPS Library License along with -#* the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -#* available from http://alps.comp-phys.org/. -#* -#* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -#* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -#* FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -#* SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -#* FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -#* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -#* DEALINGS IN THE SOFTWARE. +#* ALPS Project: https://alps.comp-phys.org/ +#* SPDX-License-Identifier: MIT #* #*****************************************************************************/ diff --git a/example/fortran/hello/hello_impl.f90 b/example/fortran/hello/hello_impl.f90 index afa2fc99f..ae21295bb 100644 --- a/example/fortran/hello/hello_impl.f90 +++ b/example/fortran/hello/hello_impl.f90 @@ -6,22 +6,8 @@ ! ! Copyright (C) 2011 by Synge Todo ! -! This software is part of the ALPS libraries, published under the ALPS -! Library License; you can use, redistribute it and/or modify it under -! the terms of the license, either version 1 or (at your option) any later -! version. -! -! You should have received a copy of the ALPS Library License along with -! the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -! available from http://alps.comp-phys.org/. -! -! THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -! IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -! FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -! SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -! FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -! ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -! DEALINGS IN THE SOFTWARE. +! ALPS Project: https://alps.comp-phys.org/ +! SPDX-License-Identifier: MIT ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! diff --git a/example/fortran/hello/main.C b/example/fortran/hello/main.C index 6603c0e72..d0d61ee23 100644 --- a/example/fortran/hello/main.C +++ b/example/fortran/hello/main.C @@ -6,23 +6,8 @@ * * Copyright (C) 2011 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/fortran/ising/ising_impl.f90 b/example/fortran/ising/ising_impl.f90 index a0174dde8..c161fda93 100644 --- a/example/fortran/ising/ising_impl.f90 +++ b/example/fortran/ising/ising_impl.f90 @@ -6,22 +6,8 @@ ! ! Copyright (C) 2011 by Synge Todo ! -! This software is part of the ALPS libraries, published under the ALPS -! Library License; you can use, redistribute it and/or modify it under -! the terms of the license, either version 1 or (at your option) any later -! version. -! -! You should have received a copy of the ALPS Library License along with -! the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -! available from http://alps.comp-phys.org/. -! -! THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -! IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -! FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -! SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -! FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -! ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -! DEALINGS IN THE SOFTWARE. +! ALPS Project: https://alps.comp-phys.org/ +! SPDX-License-Identifier: MIT ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! diff --git a/example/fortran/ising/main.C b/example/fortran/ising/main.C index c0273b851..0e7c17f68 100644 --- a/example/fortran/ising/main.C +++ b/example/fortran/ising/main.C @@ -6,23 +6,8 @@ * * Copyright (C) 2011 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/hdf5/enum_as_class.cpp b/example/hdf5/enum_as_class.cpp index 447852cbf..e61348506 100644 --- a/example/hdf5/enum_as_class.cpp +++ b/example/hdf5/enum_as_class.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/example/hdf5/enum_vectorizable.cpp b/example/hdf5/enum_vectorizable.cpp index ad5e28613..3780b5580 100644 --- a/example/hdf5/enum_vectorizable.cpp +++ b/example/hdf5/enum_vectorizable.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/example/hdf5/pair_int_vectorizable.cpp b/example/hdf5/pair_int_vectorizable.cpp index b429831e9..dd90fd20b 100644 --- a/example/hdf5/pair_int_vectorizable.cpp +++ b/example/hdf5/pair_int_vectorizable.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/example/ietl/arnoldi1.h b/example/ietl/arnoldi1.h index cd84d1593..adf4f7d3b 100644 --- a/example/ietl/arnoldi1.h +++ b/example/ietl/arnoldi1.h @@ -6,23 +6,8 @@ * * Copyright (C) 2010 by Bela Bauer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/ietl/arnoldi1_complex.cpp b/example/ietl/arnoldi1_complex.cpp index 52b04d58e..a7ba90731 100644 --- a/example/ietl/arnoldi1_complex.cpp +++ b/example/ietl/arnoldi1_complex.cpp @@ -6,23 +6,8 @@ * * Copyright (C) 2010 by Bela Bauer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/ietl/arnoldi1_real.cpp b/example/ietl/arnoldi1_real.cpp index 418317569..177dc12ea 100644 --- a/example/ietl/arnoldi1_real.cpp +++ b/example/ietl/arnoldi1_real.cpp @@ -6,23 +6,8 @@ * * Copyright (C) 2010 by Bela Bauer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/model/matrix.h b/example/model/matrix.h index 13d92a349..9e1588118 100644 --- a/example/model/matrix.h +++ b/example/model/matrix.h @@ -6,23 +6,8 @@ * * Copyright (C) 1994-2005 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/model/print_numeric.cpp b/example/model/print_numeric.cpp index 5b05ee854..f330549e9 100644 --- a/example/model/print_numeric.cpp +++ b/example/model/print_numeric.cpp @@ -6,23 +6,8 @@ * * Copyright (C) 1994-2003 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/model/print_numeric2.cpp b/example/model/print_numeric2.cpp index d06797d95..d49e7ffeb 100644 --- a/example/model/print_numeric2.cpp +++ b/example/model/print_numeric2.cpp @@ -6,23 +6,8 @@ * * Copyright (C) 1994-2003 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/model/print_numeric3.cpp b/example/model/print_numeric3.cpp index cbf04d31e..4801b6711 100644 --- a/example/model/print_numeric3.cpp +++ b/example/model/print_numeric3.cpp @@ -7,23 +7,8 @@ * Copyright (C) 1994-2003 by Matthias Troyer , * 2010-2010 by Ryo IGARASHI * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/model/print_symbolic.cpp b/example/model/print_symbolic.cpp index 364f80ca7..9bdcbf05a 100644 --- a/example/model/print_symbolic.cpp +++ b/example/model/print_symbolic.cpp @@ -6,23 +6,8 @@ * * Copyright (C) 1994-2003 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/model/print_symbolic2.cpp b/example/model/print_symbolic2.cpp index cd0810196..02cf9e947 100644 --- a/example/model/print_symbolic2.cpp +++ b/example/model/print_symbolic2.cpp @@ -6,23 +6,8 @@ * * Copyright (C) 1994-2003 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/model/print_symbolic3.cpp b/example/model/print_symbolic3.cpp index 470081a44..66ef0818a 100644 --- a/example/model/print_symbolic3.cpp +++ b/example/model/print_symbolic3.cpp @@ -7,23 +7,8 @@ * Copyright (C) 1994-2003 by Matthias Troyer , * 2010-2010 by Ryo IGARASHI * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/ngs/alea/custom_accum.hpp b/example/ngs/alea/custom_accum.hpp index 75daae1f2..c725650eb 100644 --- a/example/ngs/alea/custom_accum.hpp +++ b/example/ngs/alea/custom_accum.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/example/ngs/alea/example_accumulator.cpp b/example/ngs/alea/example_accumulator.cpp index 9da6b4575..a8398c393 100644 --- a/example/ngs/alea/example_accumulator.cpp +++ b/example/ngs/alea/example_accumulator.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/example/ngs/alea/example_accumulator_set.cpp b/example/ngs/alea/example_accumulator_set.cpp index 8ca2c716d..530e86bab 100644 --- a/example/ngs/alea/example_accumulator_set.cpp +++ b/example/ngs/alea/example_accumulator_set.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/example/ngs/alea/example_custom_accum.cpp b/example/ngs/alea/example_custom_accum.cpp index 79835175b..910f3327d 100644 --- a/example/ngs/alea/example_custom_accum.cpp +++ b/example/ngs/alea/example_custom_accum.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/example/ngs/alea/example_histogram.cpp b/example/ngs/alea/example_histogram.cpp index 190443109..d990852de 100644 --- a/example/ngs/alea/example_histogram.cpp +++ b/example/ngs/alea/example_histogram.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/example/ngs/alea/example_new_input_op.cpp b/example/ngs/alea/example_new_input_op.cpp index c0ccc071f..447ef60da 100644 --- a/example/ngs/alea/example_new_input_op.cpp +++ b/example/ngs/alea/example_new_input_op.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/example/ngs/alea/example_vector_operators.cpp b/example/ngs/alea/example_vector_operators.cpp index c6582c07d..d70562c6b 100644 --- a/example/ngs/alea/example_vector_operators.cpp +++ b/example/ngs/alea/example_vector_operators.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/example/ngs/alea/test_alps_multi_array.cpp b/example/ngs/alea/test_alps_multi_array.cpp index 9b0d97a28..cb19e34b2 100644 --- a/example/ngs/alea/test_alps_multi_array.cpp +++ b/example/ngs/alea/test_alps_multi_array.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/example/parapack/exchange/ising.C b/example/parapack/exchange/ising.C index df6e44934..3e1327a89 100644 --- a/example/parapack/exchange/ising.C +++ b/example/parapack/exchange/ising.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/parapack/exchange/loop.C b/example/parapack/exchange/loop.C index 1b29bf2f3..fdf71c02b 100644 --- a/example/parapack/exchange/loop.C +++ b/example/parapack/exchange/loop.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/parapack/exchange/main.C b/example/parapack/exchange/main.C index 9328d06fe..492f1fc8a 100644 --- a/example/parapack/exchange/main.C +++ b/example/parapack/exchange/main.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/parapack/heisenberg/heisenberg.C b/example/parapack/heisenberg/heisenberg.C index 2c1b3e623..e051e9262 100644 --- a/example/parapack/heisenberg/heisenberg.C +++ b/example/parapack/heisenberg/heisenberg.C @@ -6,23 +6,8 @@ * * Copyright (C) 2012 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/parapack/heisenberg/heisenberg.h b/example/parapack/heisenberg/heisenberg.h index c07eae18f..529867d4a 100644 --- a/example/parapack/heisenberg/heisenberg.h +++ b/example/parapack/heisenberg/heisenberg.h @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2012 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/parapack/ising/ising.C b/example/parapack/ising/ising.C index 9d40cc0c7..a232cf89e 100644 --- a/example/parapack/ising/ising.C +++ b/example/parapack/ising/ising.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/parapack/ising/ising.h b/example/parapack/ising/ising.h index 04dc02bea..09f34ac3b 100644 --- a/example/parapack/ising/ising.h +++ b/example/parapack/ising/ising.h @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2012 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/parapack/loop/loop.C b/example/parapack/loop/loop.C index 2d9e8302e..ffa1fcca6 100644 --- a/example/parapack/loop/loop.C +++ b/example/parapack/loop/loop.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/parapack/loop/loop.h b/example/parapack/loop/loop.h index 928eedfca..5ee8ce169 100644 --- a/example/parapack/loop/loop.h +++ b/example/parapack/loop/loop.h @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/parapack/loop/main.C b/example/parapack/loop/main.C index 9328d06fe..492f1fc8a 100644 --- a/example/parapack/loop/main.C +++ b/example/parapack/loop/main.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/parapack/loop/union_find.h b/example/parapack/loop/union_find.h index 86fa3c769..4a261046a 100644 --- a/example/parapack/loop/union_find.h +++ b/example/parapack/loop/union_find.h @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2008 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/parapack/multiple/ising.C b/example/parapack/multiple/ising.C index f471886db..1e5286c8a 100644 --- a/example/parapack/multiple/ising.C +++ b/example/parapack/multiple/ising.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/parapack/multiple/ising.h b/example/parapack/multiple/ising.h index f4a53f8a3..b9bbc8be2 100644 --- a/example/parapack/multiple/ising.h +++ b/example/parapack/multiple/ising.h @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/parapack/multiple/main.C b/example/parapack/multiple/main.C index 9328d06fe..492f1fc8a 100644 --- a/example/parapack/multiple/main.C +++ b/example/parapack/multiple/main.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/parapack/single/ising.C b/example/parapack/single/ising.C index 60513ccce..ca22eb4ea 100644 --- a/example/parapack/single/ising.C +++ b/example/parapack/single/ising.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/parapack/single/ising.h b/example/parapack/single/ising.h index 1229fcf32..21ed8b213 100644 --- a/example/parapack/single/ising.h +++ b/example/parapack/single/ising.h @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/parapack/single/main.C b/example/parapack/single/main.C index 9328d06fe..492f1fc8a 100644 --- a/example/parapack/single/main.C +++ b/example/parapack/single/main.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/parapack/wanglandau/main.C b/example/parapack/wanglandau/main.C index 9328d06fe..492f1fc8a 100644 --- a/example/parapack/wanglandau/main.C +++ b/example/parapack/wanglandau/main.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/parapack/wanglandau/wanglandau.C b/example/parapack/wanglandau/wanglandau.C index d5dc77218..68745908e 100644 --- a/example/parapack/wanglandau/wanglandau.C +++ b/example/parapack/wanglandau/wanglandau.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/parapack/wanglandau/wanglandau.h b/example/parapack/wanglandau/wanglandau.h index db908f5b2..70d193e6b 100644 --- a/example/parapack/wanglandau/wanglandau.h +++ b/example/parapack/wanglandau/wanglandau.h @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/sampling/fleas.h b/example/sampling/fleas.h index 3c52d6308..fbe6faf79 100755 --- a/example/sampling/fleas.h +++ b/example/sampling/fleas.h @@ -6,23 +6,8 @@ * * Copyright (C) 2007 - 2010 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/sampling/fleas_correlated.C b/example/sampling/fleas_correlated.C index 31b47b144..0b73a3864 100755 --- a/example/sampling/fleas_correlated.C +++ b/example/sampling/fleas_correlated.C @@ -6,23 +6,8 @@ * * Copyright (C) 2007 - 2010 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/sampling/fleas_direct.C b/example/sampling/fleas_direct.C index 95a2c4108..a73fcdc88 100755 --- a/example/sampling/fleas_direct.C +++ b/example/sampling/fleas_direct.C @@ -6,23 +6,8 @@ * * Copyright (C) 2007 - 2010 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/sampling/fleas_independent.C b/example/sampling/fleas_independent.C index 8e586c7c1..0fd9a9540 100755 --- a/example/sampling/fleas_independent.C +++ b/example/sampling/fleas_independent.C @@ -6,23 +6,8 @@ * * Copyright (C) 2007 - 2010 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/sampling/fleas_simpleminded.C b/example/sampling/fleas_simpleminded.C index b36302f2d..126a1c118 100755 --- a/example/sampling/fleas_simpleminded.C +++ b/example/sampling/fleas_simpleminded.C @@ -6,23 +6,8 @@ * * Copyright (C) 2007 - 2010 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/sampling/fleas_uncorrelated.C b/example/sampling/fleas_uncorrelated.C index a86704fbb..bf9f2b98d 100755 --- a/example/sampling/fleas_uncorrelated.C +++ b/example/sampling/fleas_uncorrelated.C @@ -6,23 +6,8 @@ * * Copyright (C) 2007 - 2010 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/scheduler/evaluate.C b/example/scheduler/evaluate.C index d4b798346..b0adda885 100644 --- a/example/scheduler/evaluate.C +++ b/example/scheduler/evaluate.C @@ -6,23 +6,8 @@ * * Copyright (C) 2002-2006 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/scheduler/evaluate2.C b/example/scheduler/evaluate2.C index f93b17218..c91642d72 100644 --- a/example/scheduler/evaluate2.C +++ b/example/scheduler/evaluate2.C @@ -6,23 +6,8 @@ * * Copyright (C) 2002-2006 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/scheduler/ising.C b/example/scheduler/ising.C index 5d722612d..3b88bbe5b 100644 --- a/example/scheduler/ising.C +++ b/example/scheduler/ising.C @@ -7,23 +7,8 @@ * Copyright (C) 1994-2009 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/scheduler/ising.h b/example/scheduler/ising.h index a2fc67d74..b1176fe16 100644 --- a/example/scheduler/ising.h +++ b/example/scheduler/ising.h @@ -7,23 +7,8 @@ * Copyright (C) 1994-2009 by Matthias Troyer * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/scheduler/ising2.C b/example/scheduler/ising2.C index ab0d874ec..056c42d4b 100644 --- a/example/scheduler/ising2.C +++ b/example/scheduler/ising2.C @@ -7,23 +7,8 @@ * Copyright (C) 1994-2009 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/scheduler/ising2.h b/example/scheduler/ising2.h index 484e5efd7..b55dadf47 100644 --- a/example/scheduler/ising2.h +++ b/example/scheduler/ising2.h @@ -6,23 +6,8 @@ * * Copyright (C) 1994-2003 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/scheduler/main.C b/example/scheduler/main.C index e158e0c0d..21d3e1374 100644 --- a/example/scheduler/main.C +++ b/example/scheduler/main.C @@ -6,23 +6,8 @@ * * Copyright (C) 1994-2003 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/scheduler/main2.C b/example/scheduler/main2.C index e7a628121..43dd80d43 100644 --- a/example/scheduler/main2.C +++ b/example/scheduler/main2.C @@ -6,23 +6,8 @@ * * Copyright (C) 1994-2003 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/example/scheduler/main3.C b/example/scheduler/main3.C index dbd124155..d9173be21 100644 --- a/example/scheduler/main3.C +++ b/example/scheduler/main3.C @@ -6,23 +6,8 @@ * * Copyright (C) 1994-2003 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/lib/mpi.py b/lib/mpi.py index c289e0c64..a20622492 100644 --- a/lib/mpi.py +++ b/lib/mpi.py @@ -6,23 +6,8 @@ # # # Copyright (C) 2010 - 2011 by Lukas Gamper # # # - # Permission is hereby granted, free of charge, to any person obtaining # - # a copy of this software and associated documentation files (the “Software”), # - # to deal in the Software without restriction, including without limitation # - # the rights to use, copy, modify, merge, publish, distribute, sublicense, # - # and/or sell copies of the Software, and to permit persons to whom the # - # Software is furnished to do so, subject to the following conditions: # - # # - # The above copyright notice and this permission notice shall be included # - # in all copies or substantial portions of the Software. # - # # - # THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS # - # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # - # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # - # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # - # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING # - # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # - # DEALINGS IN THE SOFTWARE. # + # ALPS Project: https://alps.comp-phys.org/ # + # SPDX-License-Identifier: MIT # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # diff --git a/lib/pyalps/__init__.py b/lib/pyalps/__init__.py index a88834ea8..a7bdb7c04 100644 --- a/lib/pyalps/__init__.py +++ b/lib/pyalps/__init__.py @@ -7,23 +7,8 @@ # # Copyright (C) 1994-2009 by Bela Bauer # -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the “Software”), -# to deal in the Software without restriction, including without limitation -# the rights to use, copy, modify, merge, publish, distribute, sublicense, -# and/or sell copies of the Software, and to permit persons to whom the -# Software is furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included -# in all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/lib/pyalps/alea.py b/lib/pyalps/alea.py index 74c5f5fb9..9b44c75e7 100644 --- a/lib/pyalps/alea.py +++ b/lib/pyalps/alea.py @@ -6,23 +6,8 @@ # # Copyright (C) 2010 by Olivier Parcollet # -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the “Software”), -# to deal in the Software without restriction, including without limitation -# the rights to use, copy, modify, merge, publish, distribute, sublicense, -# and/or sell copies of the Software, and to permit persons to whom the -# Software is furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included -# in all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/lib/pyalps/alea_detail.py b/lib/pyalps/alea_detail.py index e0313d015..4d15437af 100644 --- a/lib/pyalps/alea_detail.py +++ b/lib/pyalps/alea_detail.py @@ -6,23 +6,8 @@ # # Copyright (C) 2010 by Olivier Parcollet # -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the “Software”), -# to deal in the Software without restriction, including without limitation -# the rights to use, copy, modify, merge, publish, distribute, sublicense, -# and/or sell copies of the Software, and to permit persons to whom the -# Software is furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included -# in all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/lib/pyalps/apptest.py b/lib/pyalps/apptest.py index 02476c784..5cf21c57c 100644 --- a/lib/pyalps/apptest.py +++ b/lib/pyalps/apptest.py @@ -7,23 +7,8 @@ # # Copyright (C) 2012 by Sebastian Keller # -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the “Software”), -# to deal in the Software without restriction, including without limitation -# the rights to use, copy, modify, merge, publish, distribute, sublicense, -# and/or sell copies of the Software, and to permit persons to whom the -# Software is furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included -# in all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/lib/pyalps/cxx.py b/lib/pyalps/cxx.py index dff6bdfc2..29de94c0f 100644 --- a/lib/pyalps/cxx.py +++ b/lib/pyalps/cxx.py @@ -7,23 +7,8 @@ # # Copyright (C) 2016 by Michele Dolfi # -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the “Software”), -# to deal in the Software without restriction, including without limitation -# the rights to use, copy, modify, merge, publish, distribute, sublicense, -# and/or sell copies of the Software, and to permit persons to whom the -# Software is furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included -# in all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/lib/pyalps/dataset.py b/lib/pyalps/dataset.py index 82ba30442..4844f46bd 100644 --- a/lib/pyalps/dataset.py +++ b/lib/pyalps/dataset.py @@ -6,23 +6,8 @@ # # Copyright (C) 1994-2009 by Bela Bauer # -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the “Software”), -# to deal in the Software without restriction, including without limitation -# the rights to use, copy, modify, merge, publish, distribute, sublicense, -# and/or sell copies of the Software, and to permit persons to whom the -# Software is furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included -# in all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/lib/pyalps/dict_intersect.py b/lib/pyalps/dict_intersect.py index 3a683e808..a2c524d1d 100644 --- a/lib/pyalps/dict_intersect.py +++ b/lib/pyalps/dict_intersect.py @@ -6,23 +6,8 @@ # # Copyright (C) 1994-2009 by Bela Bauer # -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the “Software”), -# to deal in the Software without restriction, including without limitation -# the rights to use, copy, modify, merge, publish, distribute, sublicense, -# and/or sell copies of the Software, and to permit persons to whom the -# Software is furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included -# in all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/lib/pyalps/dwa.py b/lib/pyalps/dwa.py index 2745b6440..78aa2a379 100644 --- a/lib/pyalps/dwa.py +++ b/lib/pyalps/dwa.py @@ -8,23 +8,8 @@ # # Copyright (C) 2013 by Tama Ma # -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the “Software”), -# to deal in the Software without restriction, including without limitation -# the rights to use, copy, modify, merge, publish, distribute, sublicense, -# and/or sell copies of the Software, and to permit persons to whom the -# Software is furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included -# in all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/lib/pyalps/fit_wrapper.py b/lib/pyalps/fit_wrapper.py index 39110e17c..6a8377f74 100644 --- a/lib/pyalps/fit_wrapper.py +++ b/lib/pyalps/fit_wrapper.py @@ -6,23 +6,8 @@ # # Copyright (C) 1994-2009 by Bela Bauer # -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the “Software”), -# to deal in the Software without restriction, including without limitation -# the rights to use, copy, modify, merge, publish, distribute, sublicense, -# and/or sell copies of the Software, and to permit persons to whom the -# Software is furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included -# in all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/lib/pyalps/floatwitherror.py b/lib/pyalps/floatwitherror.py index 8a822c068..21573cbb6 100644 --- a/lib/pyalps/floatwitherror.py +++ b/lib/pyalps/floatwitherror.py @@ -7,23 +7,8 @@ # # Copyright (C) 2009 by Ping Nang (Tama) Ma # -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the “Software”), -# to deal in the Software without restriction, including without limitation -# the rights to use, copy, modify, merge, publish, distribute, sublicense, -# and/or sell copies of the Software, and to permit persons to whom the -# Software is furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included -# in all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** from sys import stdin diff --git a/lib/pyalps/hdf5.py b/lib/pyalps/hdf5.py index 61d58b6bb..316e5c2bd 100644 --- a/lib/pyalps/hdf5.py +++ b/lib/pyalps/hdf5.py @@ -6,23 +6,8 @@ # # Copyright (C) 2010 by Olivier Parcollet # -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the “Software”), -# to deal in the Software without restriction, including without limitation -# the rights to use, copy, modify, merge, publish, distribute, sublicense, -# and/or sell copies of the Software, and to permit persons to whom the -# Software is furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included -# in all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/lib/pyalps/hlist.py b/lib/pyalps/hlist.py index 33da7f7df..2212eb43b 100644 --- a/lib/pyalps/hlist.py +++ b/lib/pyalps/hlist.py @@ -6,23 +6,8 @@ # # Copyright (C) 1994-2009 by Bela Bauer # -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the “Software”), -# to deal in the Software without restriction, including without limitation -# the rights to use, copy, modify, merge, publish, distribute, sublicense, -# and/or sell copies of the Software, and to permit persons to whom the -# Software is furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included -# in all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/lib/pyalps/load.py b/lib/pyalps/load.py index be5626873..fd7f201f4 100644 --- a/lib/pyalps/load.py +++ b/lib/pyalps/load.py @@ -9,23 +9,8 @@ # Copyright (C) 2009-2010 by Bela Bauer # Brigitte Surer # -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the “Software”), -# to deal in the Software without restriction, including without limitation -# the rights to use, copy, modify, merge, publish, distribute, sublicense, -# and/or sell copies of the Software, and to permit persons to whom the -# Software is furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included -# in all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/lib/pyalps/math.py b/lib/pyalps/math.py index 672e4ab4b..fbf0d9b80 100644 --- a/lib/pyalps/math.py +++ b/lib/pyalps/math.py @@ -7,23 +7,8 @@ # Copyright (C) 1994-2010 by Bela Bauer # Ping Nang Ma # -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the “Software”), -# to deal in the Software without restriction, including without limitation -# the rights to use, copy, modify, merge, publish, distribute, sublicense, -# and/or sell copies of the Software, and to permit persons to whom the -# Software is furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included -# in all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/lib/pyalps/maxent.py b/lib/pyalps/maxent.py index 8bf79ad14..60fd9c9bf 100644 --- a/lib/pyalps/maxent.py +++ b/lib/pyalps/maxent.py @@ -6,23 +6,8 @@ # # # Copyright (C) 2010 - 2013 by Matthias Troyer # # # -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the “Software”), -# to deal in the Software without restriction, including without limitation -# the rights to use, copy, modify, merge, publish, distribute, sublicense, -# and/or sell copies of the Software, and to permit persons to whom the -# Software is furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included -# in all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # diff --git a/lib/pyalps/mpi.py b/lib/pyalps/mpi.py index 5b964044b..bd984bc3b 100644 --- a/lib/pyalps/mpi.py +++ b/lib/pyalps/mpi.py @@ -6,23 +6,8 @@ # # Copyright (C) 2012 by Matthias Troyer # -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the “Software”), -# to deal in the Software without restriction, including without limitation -# the rights to use, copy, modify, merge, publish, distribute, sublicense, -# and/or sell copies of the Software, and to permit persons to whom the -# Software is furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included -# in all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/lib/pyalps/mpl_setup_macosx.py b/lib/pyalps/mpl_setup_macosx.py index d5d590f12..4618f7980 100644 --- a/lib/pyalps/mpl_setup_macosx.py +++ b/lib/pyalps/mpl_setup_macosx.py @@ -6,23 +6,8 @@ # # Copyright (C) 2009-2010 by Bela Bauer # -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the “Software”), -# to deal in the Software without restriction, including without limitation -# the rights to use, copy, modify, merge, publish, distribute, sublicense, -# and/or sell copies of the Software, and to permit persons to whom the -# Software is furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included -# in all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/lib/pyalps/mpl_setup_qt.py b/lib/pyalps/mpl_setup_qt.py index 384301c1f..7e4719a48 100644 --- a/lib/pyalps/mpl_setup_qt.py +++ b/lib/pyalps/mpl_setup_qt.py @@ -6,23 +6,8 @@ # # Copyright (C) 2009-2010 by Bela Bauer # -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the “Software”), -# to deal in the Software without restriction, including without limitation -# the rights to use, copy, modify, merge, publish, distribute, sublicense, -# and/or sell copies of the Software, and to permit persons to whom the -# Software is furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included -# in all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/lib/pyalps/mpl_setup_tk.py b/lib/pyalps/mpl_setup_tk.py index 7175cdb6b..b0a605138 100644 --- a/lib/pyalps/mpl_setup_tk.py +++ b/lib/pyalps/mpl_setup_tk.py @@ -6,23 +6,8 @@ # # Copyright (C) 2009-2010 by Bela Bauer # -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the “Software”), -# to deal in the Software without restriction, including without limitation -# the rights to use, copy, modify, merge, publish, distribute, sublicense, -# and/or sell copies of the Software, and to permit persons to whom the -# Software is furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included -# in all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/lib/pyalps/ngs.py b/lib/pyalps/ngs.py index 9a39864e7..097d7aaa0 100644 --- a/lib/pyalps/ngs.py +++ b/lib/pyalps/ngs.py @@ -7,23 +7,8 @@ # Copyright (C) 2010 - 2013 by Lukas Gamper # # 2012 by Troels F. Roennow # # # -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the “Software”), -# to deal in the Software without restriction, including without limitation -# the rights to use, copy, modify, merge, publish, distribute, sublicense, -# and/or sell copies of the Software, and to permit persons to whom the -# Software is furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included -# in all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # diff --git a/lib/pyalps/plot.py b/lib/pyalps/plot.py index fffd2972d..2f847abde 100644 --- a/lib/pyalps/plot.py +++ b/lib/pyalps/plot.py @@ -9,23 +9,8 @@ # Copyright (C) 2009-2010 by Bela Bauer # Copyright (C) 2012-2012 by Michele Dolfi # -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the “Software”), -# to deal in the Software without restriction, including without limitation -# the rights to use, copy, modify, merge, publish, distribute, sublicense, -# and/or sell copies of the Software, and to permit persons to whom the -# Software is furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included -# in all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/lib/pyalps/plot_core.py b/lib/pyalps/plot_core.py index f02aed5c9..bcab2c4b8 100644 --- a/lib/pyalps/plot_core.py +++ b/lib/pyalps/plot_core.py @@ -8,23 +8,8 @@ # Copyright (C) 1994-2010 by Bela Bauer # Brigitte Surer # -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the “Software”), -# to deal in the Software without restriction, including without limitation -# the rights to use, copy, modify, merge, publish, distribute, sublicense, -# and/or sell copies of the Software, and to permit persons to whom the -# Software is furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included -# in all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/lib/pyalps/pytools.py b/lib/pyalps/pytools.py index 4d11ab7ff..873cee38e 100644 --- a/lib/pyalps/pytools.py +++ b/lib/pyalps/pytools.py @@ -6,23 +6,8 @@ # # Copyright (C) 2010 by Olivier Parcollet # -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the “Software”), -# to deal in the Software without restriction, including without limitation -# the rights to use, copy, modify, merge, publish, distribute, sublicense, -# and/or sell copies of the Software, and to permit persons to whom the -# Software is furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included -# in all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/lib/pyalps/tools.py b/lib/pyalps/tools.py index ee60690d9..2f7e08922 100644 --- a/lib/pyalps/tools.py +++ b/lib/pyalps/tools.py @@ -7,23 +7,8 @@ # # Copyright (C) 2010 by Bela Bauer # -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the “Software”), -# to deal in the Software without restriction, including without limitation -# the rights to use, copy, modify, merge, publish, distribute, sublicense, -# and/or sell copies of the Software, and to permit persons to whom the -# Software is furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included -# in all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** import os diff --git a/script/compile.py b/script/compile.py index 74e4c0c8e..815090381 100644 --- a/script/compile.py +++ b/script/compile.py @@ -7,22 +7,8 @@ # # Copyright (C) 2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/src/alps/alea.h b/src/alps/alea.h index 6e80dedc5..a05044d45 100644 --- a/src/alps/alea.h +++ b/src/alps/alea.h @@ -7,23 +7,8 @@ * Copyright (C) 2003-2004 by Synge Todo , * Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/alea/abstractbinning.h b/src/alps/alea/abstractbinning.h index f4a721d8c..859691871 100644 --- a/src/alps/alea/abstractbinning.h +++ b/src/alps/alea/abstractbinning.h @@ -9,23 +9,8 @@ * Andreas Laeuchli , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/alea/abstractsimpleobservable.h b/src/alps/alea/abstractsimpleobservable.h index 7259572f6..e523ec681 100644 --- a/src/alps/alea/abstractsimpleobservable.h +++ b/src/alps/alea/abstractsimpleobservable.h @@ -9,23 +9,8 @@ * Andreas Laeuchli , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/alea/abstractsimpleobservable.ipp b/src/alps/alea/abstractsimpleobservable.ipp index 9ed4e55b5..3dcd735d2 100644 --- a/src/alps/alea/abstractsimpleobservable.ipp +++ b/src/alps/alea/abstractsimpleobservable.ipp @@ -9,23 +9,8 @@ * Andreas Laeuchli , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/alea/convergence.hpp b/src/alps/alea/convergence.hpp index 962ae2ef7..76947fad1 100644 --- a/src/alps/alea/convergence.hpp +++ b/src/alps/alea/convergence.hpp @@ -9,23 +9,8 @@ * Andreas Laeuchli , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/alea/detailedbinning.h b/src/alps/alea/detailedbinning.h index a7dd6d746..23a8ed4fd 100644 --- a/src/alps/alea/detailedbinning.h +++ b/src/alps/alea/detailedbinning.h @@ -9,23 +9,8 @@ * Andreas Laeuchli , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/alea/histogram.h b/src/alps/alea/histogram.h index cfb52a111..cf9f784a3 100644 --- a/src/alps/alea/histogram.h +++ b/src/alps/alea/histogram.h @@ -7,23 +7,8 @@ * Copyright (C) 1997-2010 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/alea/histogramdata.h b/src/alps/alea/histogramdata.h index d6bfe41f7..42eee0e75 100644 --- a/src/alps/alea/histogramdata.h +++ b/src/alps/alea/histogramdata.h @@ -8,23 +8,8 @@ * Fabian Stoeckli , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/alea/histogrameval.h b/src/alps/alea/histogrameval.h index 0c3d81528..e29b4158e 100644 --- a/src/alps/alea/histogrameval.h +++ b/src/alps/alea/histogrameval.h @@ -8,23 +8,8 @@ * Fabian Stoeckli , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/alea/mcanalyze.hpp b/src/alps/alea/mcanalyze.hpp index e5a36c30a..233912894 100644 --- a/src/alps/alea/mcanalyze.hpp +++ b/src/alps/alea/mcanalyze.hpp @@ -6,23 +6,8 @@ * Matthias Troyer , * Maximilian Poprawe * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/alea/mcdata.hpp b/src/alps/alea/mcdata.hpp index de0f7ec0f..c96a424d2 100644 --- a/src/alps/alea/mcdata.hpp +++ b/src/alps/alea/mcdata.hpp @@ -13,23 +13,8 @@ * Lukas Gamper , * Jan Gukelberger * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/alea/nan.C b/src/alps/alea/nan.C index ec1ab2a42..82d133385 100644 --- a/src/alps/alea/nan.C +++ b/src/alps/alea/nan.C @@ -6,23 +6,8 @@ * * Copyright (C) 1994-2008 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/alea/nan.h b/src/alps/alea/nan.h index 977efc30d..c06941b95 100644 --- a/src/alps/alea/nan.h +++ b/src/alps/alea/nan.h @@ -6,23 +6,8 @@ * * Copyright (C) 1994-2009 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/alea/nobinning.h b/src/alps/alea/nobinning.h index 0a55151ae..9c0aa0b3c 100644 --- a/src/alps/alea/nobinning.h +++ b/src/alps/alea/nobinning.h @@ -9,23 +9,8 @@ * Andreas Laeuchli , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/alea/observable.C b/src/alps/alea/observable.C index e6426c986..3a7cd211f 100644 --- a/src/alps/alea/observable.C +++ b/src/alps/alea/observable.C @@ -7,23 +7,8 @@ * Copyright (C) 1994-2008 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/alea/observable.h b/src/alps/alea/observable.h index c445ac617..b246efbaf 100644 --- a/src/alps/alea/observable.h +++ b/src/alps/alea/observable.h @@ -9,23 +9,8 @@ * Andreas Laeuchli , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/alea/observable_fwd.hpp b/src/alps/alea/observable_fwd.hpp index 8d0391887..7a9117119 100644 --- a/src/alps/alea/observable_fwd.hpp +++ b/src/alps/alea/observable_fwd.hpp @@ -10,23 +10,8 @@ * Synge Todo * Lukas Gamper * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/alea/observablefactory.C b/src/alps/alea/observablefactory.C index 17a06a7ff..4f9371187 100644 --- a/src/alps/alea/observablefactory.C +++ b/src/alps/alea/observablefactory.C @@ -7,23 +7,8 @@ * Copyright (C) 1994-2010 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/alea/observablefactory.h b/src/alps/alea/observablefactory.h index 7fff9c338..2d20d5c85 100644 --- a/src/alps/alea/observablefactory.h +++ b/src/alps/alea/observablefactory.h @@ -9,23 +9,8 @@ * Andreas Laeuchli , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/alea/observableset.C b/src/alps/alea/observableset.C index 6a84354dc..9f9e57aff 100644 --- a/src/alps/alea/observableset.C +++ b/src/alps/alea/observableset.C @@ -7,23 +7,8 @@ * Copyright (C) 1994-2012 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/alea/observableset.h b/src/alps/alea/observableset.h index 40c2bc629..b46d7bc6b 100644 --- a/src/alps/alea/observableset.h +++ b/src/alps/alea/observableset.h @@ -9,23 +9,8 @@ * Andreas Laeuchli , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/alea/observableset_p.h b/src/alps/alea/observableset_p.h index df167c214..e75516137 100644 --- a/src/alps/alea/observableset_p.h +++ b/src/alps/alea/observableset_p.h @@ -6,23 +6,8 @@ * * Copyright (C) 2006-2008 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/alea/output_helper.h b/src/alps/alea/output_helper.h index b973fed04..144571441 100644 --- a/src/alps/alea/output_helper.h +++ b/src/alps/alea/output_helper.h @@ -9,23 +9,8 @@ * Andreas Laeuchli , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/alea/recordableobservable.h b/src/alps/alea/recordableobservable.h index 7cc9bfb9e..2d31c7bef 100644 --- a/src/alps/alea/recordableobservable.h +++ b/src/alps/alea/recordableobservable.h @@ -9,23 +9,8 @@ * Andreas Laeuchli , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/alea/signedobservable.h b/src/alps/alea/signedobservable.h index b9864263b..c2cdaf6a7 100644 --- a/src/alps/alea/signedobservable.h +++ b/src/alps/alea/signedobservable.h @@ -7,23 +7,8 @@ * Copyright (C) 1994-2012 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/alea/simplebinning.h b/src/alps/alea/simplebinning.h index b1032e6db..76f3f6453 100644 --- a/src/alps/alea/simplebinning.h +++ b/src/alps/alea/simplebinning.h @@ -9,23 +9,8 @@ * Andreas Laeuchli , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/alea/simpleobsdata.h b/src/alps/alea/simpleobsdata.h index 8f99fbd85..553d1cbd4 100644 --- a/src/alps/alea/simpleobsdata.h +++ b/src/alps/alea/simpleobsdata.h @@ -10,23 +10,8 @@ * Synge Todo , * Andreas Lange * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/alea/simpleobservable.h b/src/alps/alea/simpleobservable.h index c500eb215..a646336b9 100644 --- a/src/alps/alea/simpleobservable.h +++ b/src/alps/alea/simpleobservable.h @@ -9,23 +9,8 @@ * Andreas Laeuchli , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/alea/simpleobservable.ipp b/src/alps/alea/simpleobservable.ipp index 255a2aeaa..40789ea62 100644 --- a/src/alps/alea/simpleobservable.ipp +++ b/src/alps/alea/simpleobservable.ipp @@ -9,23 +9,8 @@ * Andreas Laeuchli , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/alea/simpleobseval.h b/src/alps/alea/simpleobseval.h index 4665bac43..2dd312268 100644 --- a/src/alps/alea/simpleobseval.h +++ b/src/alps/alea/simpleobseval.h @@ -9,23 +9,8 @@ * Andreas Laeuchli , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/alea/simpleobseval.ipp b/src/alps/alea/simpleobseval.ipp index 864026cac..0dcb1ce7b 100644 --- a/src/alps/alea/simpleobseval.ipp +++ b/src/alps/alea/simpleobseval.ipp @@ -9,23 +9,8 @@ * Andreas Laeuchli , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/alea/type_tag.hpp b/src/alps/alea/type_tag.hpp index ba3862d2f..e961c953b 100644 --- a/src/alps/alea/type_tag.hpp +++ b/src/alps/alea/type_tag.hpp @@ -9,23 +9,8 @@ * Andreas Laeuchli , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/alea/value_with_error.hpp b/src/alps/alea/value_with_error.hpp index 8bc5221ee..10e4b3069 100644 --- a/src/alps/alea/value_with_error.hpp +++ b/src/alps/alea/value_with_error.hpp @@ -7,23 +7,8 @@ * Copyright (C) 1994-2010 by Ping Nang Ma , * Matthias Troyer , * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/cctype.h b/src/alps/cctype.h index b28d72edb..06d9521d9 100644 --- a/src/alps/cctype.h +++ b/src/alps/cctype.h @@ -7,23 +7,8 @@ * Copyright (C) 1994-2003 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/check_schedule.hpp b/src/alps/check_schedule.hpp index c663b072d..cf2296f9b 100644 --- a/src/alps/check_schedule.hpp +++ b/src/alps/check_schedule.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2012 by Jan Gukelberger * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/config.h.in b/src/alps/config.h.in index 813cb0a7d..394e18a4b 100644 --- a/src/alps/config.h.in +++ b/src/alps/config.h.in @@ -7,23 +7,8 @@ * Copyright (C) 1994-2010 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/expression.h b/src/alps/expression.h index c5bfae713..397f24208 100644 --- a/src/alps/expression.h +++ b/src/alps/expression.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2005 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/expression/block.h b/src/alps/expression/block.h index d2ee99c25..c52fc2968 100644 --- a/src/alps/expression/block.h +++ b/src/alps/expression/block.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2005 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/expression/evaluatable.h b/src/alps/expression/evaluatable.h index c58c7720b..f49559f2e 100644 --- a/src/alps/expression/evaluatable.h +++ b/src/alps/expression/evaluatable.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2005 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/expression/evaluate.h b/src/alps/expression/evaluate.h index abc90387e..226106626 100644 --- a/src/alps/expression/evaluate.h +++ b/src/alps/expression/evaluate.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2006 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/expression/evaluate_helper.h b/src/alps/expression/evaluate_helper.h index 28b04914f..4c34b69be 100644 --- a/src/alps/expression/evaluate_helper.h +++ b/src/alps/expression/evaluate_helper.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2005 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/expression/evaluator.C b/src/alps/expression/evaluator.C index 0af5613af..f83d9b847 100644 --- a/src/alps/expression/evaluator.C +++ b/src/alps/expression/evaluator.C @@ -6,23 +6,8 @@ * * Copyright (C) 2001-2005 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/expression/evaluator.h b/src/alps/expression/evaluator.h index 8b8dea828..975411831 100644 --- a/src/alps/expression/evaluator.h +++ b/src/alps/expression/evaluator.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2009 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/expression/expression.h b/src/alps/expression/expression.h index fb6914e24..53c1702a6 100644 --- a/src/alps/expression/expression.h +++ b/src/alps/expression/expression.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2005 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/expression/expression_fwd.h b/src/alps/expression/expression_fwd.h index 5b391489f..b3a0d6aaf 100644 --- a/src/alps/expression/expression_fwd.h +++ b/src/alps/expression/expression_fwd.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2006 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/expression/factor.h b/src/alps/expression/factor.h index 75a9cf43d..9cd7501d7 100644 --- a/src/alps/expression/factor.h +++ b/src/alps/expression/factor.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2010 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/expression/function.h b/src/alps/expression/function.h index 7e459bf23..df7d77869 100644 --- a/src/alps/expression/function.h +++ b/src/alps/expression/function.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2005 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/expression/number.h b/src/alps/expression/number.h index 18a92aaa1..43d25aa60 100644 --- a/src/alps/expression/number.h +++ b/src/alps/expression/number.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2010 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/expression/parameterevaluator.h b/src/alps/expression/parameterevaluator.h index a66a7ef25..85ae8af7b 100644 --- a/src/alps/expression/parameterevaluator.h +++ b/src/alps/expression/parameterevaluator.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2005 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/expression/symbol.h b/src/alps/expression/symbol.h index c17727f31..e9b5cf0ff 100644 --- a/src/alps/expression/symbol.h +++ b/src/alps/expression/symbol.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2005 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/expression/term.h b/src/alps/expression/term.h index 1bb798472..9abd076a6 100644 --- a/src/alps/expression/term.h +++ b/src/alps/expression/term.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2005 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/expression/traits.h b/src/alps/expression/traits.h index 00205e24f..c240936b5 100644 --- a/src/alps/expression/traits.h +++ b/src/alps/expression/traits.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2005 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/factory.h b/src/alps/factory.h index c46b7b769..b78efdb6b 100644 --- a/src/alps/factory.h +++ b/src/alps/factory.h @@ -6,23 +6,8 @@ * * Copyright (C) 1994-2005 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/fixed_capacity/checking.h b/src/alps/fixed_capacity/checking.h index 4362bf115..eb301db4b 100644 --- a/src/alps/fixed_capacity/checking.h +++ b/src/alps/fixed_capacity/checking.h @@ -6,23 +6,8 @@ * * Copyright (C) 2002-2003 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/fixed_capacity/deque_detail.h b/src/alps/fixed_capacity/deque_detail.h index 3fc553a97..69bc827e1 100644 --- a/src/alps/fixed_capacity/deque_detail.h +++ b/src/alps/fixed_capacity/deque_detail.h @@ -6,23 +6,8 @@ * * Copyright (C) 2002-2003 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/fixed_capacity/uninitialized_array.h b/src/alps/fixed_capacity/uninitialized_array.h index 9e8374228..d1036820f 100644 --- a/src/alps/fixed_capacity/uninitialized_array.h +++ b/src/alps/fixed_capacity/uninitialized_array.h @@ -6,23 +6,8 @@ * * Copyright (C) 2002-2003 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/fixed_capacity_deque.h b/src/alps/fixed_capacity_deque.h index 8cb1e375b..5f4279bbd 100644 --- a/src/alps/fixed_capacity_deque.h +++ b/src/alps/fixed_capacity_deque.h @@ -6,23 +6,8 @@ * * Copyright (C) 2002-2003 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/fixed_capacity_fwd.h b/src/alps/fixed_capacity_fwd.h index 201032918..1685e9c0c 100644 --- a/src/alps/fixed_capacity_fwd.h +++ b/src/alps/fixed_capacity_fwd.h @@ -6,23 +6,8 @@ * * Copyright (C) 2002-2003 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/fixed_capacity_traits.h b/src/alps/fixed_capacity_traits.h index 2f1e3888e..56be43689 100644 --- a/src/alps/fixed_capacity_traits.h +++ b/src/alps/fixed_capacity_traits.h @@ -6,23 +6,8 @@ * * Copyright (C) 2002-2003 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/fixed_capacity_vector.h b/src/alps/fixed_capacity_vector.h index 3b1424deb..08d9ac33e 100644 --- a/src/alps/fixed_capacity_vector.h +++ b/src/alps/fixed_capacity_vector.h @@ -6,23 +6,8 @@ * * Copyright (C) 2002-2003 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/fortran/alps_fortran.h b/src/alps/fortran/alps_fortran.h index 67d561c61..9b49db2f9 100644 --- a/src/alps/fortran/alps_fortran.h +++ b/src/alps/fortran/alps_fortran.h @@ -6,23 +6,8 @@ ! ! Copyright (C) 2011 by Synge Todo ! -! Permission is hereby granted, free of charge, to any person obtaining -! a copy of this software and associated documentation files (the “Software”), -! to deal in the Software without restriction, including without limitation -! the rights to use, copy, modify, merge, publish, distribute, sublicense, -! and/or sell copies of the Software, and to permit persons to whom the -! Software is furnished to do so, subject to the following conditions: -! -! The above copyright notice and this permission notice shall be included -! in all copies or substantial portions of the Software. -! -! THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -! OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -! FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -! AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -! LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -! FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -! DEALINGS IN THE SOFTWARE. +! ALPS Project: https://alps.comp-phys.org/ +! SPDX-License-Identifier: MIT ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! diff --git a/src/alps/fortran/fortran_wrapper.h b/src/alps/fortran/fortran_wrapper.h index 295830c30..e9994c72c 100644 --- a/src/alps/fortran/fortran_wrapper.h +++ b/src/alps/fortran/fortran_wrapper.h @@ -6,23 +6,8 @@ * * Copyright (C) 2011 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/fortran/fwrapper_impl.C b/src/alps/fortran/fwrapper_impl.C index d007bc70e..71ecf4e64 100644 --- a/src/alps/fortran/fwrapper_impl.C +++ b/src/alps/fortran/fwrapper_impl.C @@ -6,23 +6,8 @@ * * Copyright (C) 2011 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/fortran/fwrapper_impl.h b/src/alps/fortran/fwrapper_impl.h index af9f8dc88..7c64f2219 100644 --- a/src/alps/fortran/fwrapper_impl.h +++ b/src/alps/fortran/fwrapper_impl.h @@ -6,23 +6,8 @@ * * Copyright (C) 2011 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/functional.h b/src/alps/functional.h index 388b12133..2c9f55a8b 100644 --- a/src/alps/functional.h +++ b/src/alps/functional.h @@ -7,23 +7,8 @@ * Copyright (C) 1994-2005 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/graph/canonical_graph.hpp b/src/alps/graph/canonical_graph.hpp index 4fa5123ca..fa27c16fc 100644 --- a/src/alps/graph/canonical_graph.hpp +++ b/src/alps/graph/canonical_graph.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/graph/canonical_properties.hpp b/src/alps/graph/canonical_properties.hpp index 41777f101..bd16ff505 100644 --- a/src/alps/graph/canonical_properties.hpp +++ b/src/alps/graph/canonical_properties.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2010 - 2015 by Lukas Gamper * * Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/graph/canonical_properties_traits.hpp b/src/alps/graph/canonical_properties_traits.hpp index 199b691c4..848815c0f 100644 --- a/src/alps/graph/canonical_properties_traits.hpp +++ b/src/alps/graph/canonical_properties_traits.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2010 - 2013 by Lukas Gamper * * Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #ifndef ALPS_GRAPH_CANONICAL_PROPERTIES_TRAITS_HPP diff --git a/src/alps/graph/detail/assert_helpers.hpp b/src/alps/graph/detail/assert_helpers.hpp index 1d2e6c3f9..75433f4b3 100644 --- a/src/alps/graph/detail/assert_helpers.hpp +++ b/src/alps/graph/detail/assert_helpers.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2014 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #ifndef ALPS_GRAPH_DETAIL_ASSERT_HELPERS_HPP diff --git a/src/alps/graph/detail/canonical_properties_impl.hpp b/src/alps/graph/detail/canonical_properties_impl.hpp index 14a6dc7ac..3694855ae 100644 --- a/src/alps/graph/detail/canonical_properties_impl.hpp +++ b/src/alps/graph/detail/canonical_properties_impl.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2010 - 2015 by Lukas Gamper * * Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/graph/detail/helper_functions.hpp b/src/alps/graph/detail/helper_functions.hpp index 798aa7548..5dfdbe703 100644 --- a/src/alps/graph/detail/helper_functions.hpp +++ b/src/alps/graph/detail/helper_functions.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2015 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/graph/detail/lattice_constant_impl.hpp b/src/alps/graph/detail/lattice_constant_impl.hpp index 237957eab..7332e81e2 100644 --- a/src/alps/graph/detail/lattice_constant_impl.hpp +++ b/src/alps/graph/detail/lattice_constant_impl.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2010 - 2015 by Lukas Gamper * * Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/graph/detail/shared_queue.hpp b/src/alps/graph/detail/shared_queue.hpp index 273901a0b..b45a7de6a 100644 --- a/src/alps/graph/detail/shared_queue.hpp +++ b/src/alps/graph/detail/shared_queue.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2015 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #ifndef ALPS_GRAPH_DETAIL_SHARED_QUEUE_HPP diff --git a/src/alps/graph/is_embeddable.hpp b/src/alps/graph/is_embeddable.hpp index 8ff425860..d161ab00e 100644 --- a/src/alps/graph/is_embeddable.hpp +++ b/src/alps/graph/is_embeddable.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2010 - 2013 by Lukas Gamper * * Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #ifndef ALPS_GRAPH_IS_EMBEDDABLE_HPP diff --git a/src/alps/graph/lattice_constant.hpp b/src/alps/graph/lattice_constant.hpp index 62b0755d1..c92b279e6 100644 --- a/src/alps/graph/lattice_constant.hpp +++ b/src/alps/graph/lattice_constant.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2010 - 2013 by Lukas Gamper * * Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/graph/lattice_constant_debug.hpp b/src/alps/graph/lattice_constant_debug.hpp index 5d1757cbd..2aabdf361 100644 --- a/src/alps/graph/lattice_constant_debug.hpp +++ b/src/alps/graph/lattice_constant_debug.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/graph/subgraph_generator.hpp b/src/alps/graph/subgraph_generator.hpp index d8375cb66..2a4988f3c 100644 --- a/src/alps/graph/subgraph_generator.hpp +++ b/src/alps/graph/subgraph_generator.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2013 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/graph/subgraphs.hpp b/src/alps/graph/subgraphs.hpp index 955e46a88..38ee4eb75 100644 --- a/src/alps/graph/subgraphs.hpp +++ b/src/alps/graph/subgraphs.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/graph/utils.hpp b/src/alps/graph/utils.hpp index f2f28f25a..89537b408 100644 --- a/src/alps/graph/utils.hpp +++ b/src/alps/graph/utils.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2013 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/hdf5.hpp b/src/alps/hdf5.hpp index acf5d953e..d4fe05535 100644 --- a/src/alps/hdf5.hpp +++ b/src/alps/hdf5.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/hdf5/archive.cpp b/src/alps/hdf5/archive.cpp index b869af3d6..ef9ce1e01 100644 --- a/src/alps/hdf5/archive.cpp +++ b/src/alps/hdf5/archive.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/hdf5/archive.hpp b/src/alps/hdf5/archive.hpp index a559272d1..ce59375f4 100644 --- a/src/alps/hdf5/archive.hpp +++ b/src/alps/hdf5/archive.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/hdf5/array.hpp b/src/alps/hdf5/array.hpp index 64e5f8810..9ed0904a1 100644 --- a/src/alps/hdf5/array.hpp +++ b/src/alps/hdf5/array.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/hdf5/complex.hpp b/src/alps/hdf5/complex.hpp index d5612d7cd..9cb872ca8 100644 --- a/src/alps/hdf5/complex.hpp +++ b/src/alps/hdf5/complex.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/hdf5/errors.hpp b/src/alps/hdf5/errors.hpp index 2e92f215d..f7fae74d8 100644 --- a/src/alps/hdf5/errors.hpp +++ b/src/alps/hdf5/errors.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/hdf5/map.hpp b/src/alps/hdf5/map.hpp index 99977d950..8030211cb 100644 --- a/src/alps/hdf5/map.hpp +++ b/src/alps/hdf5/map.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/hdf5/matrix.hpp b/src/alps/hdf5/matrix.hpp index 27608b6b7..17a1875c4 100644 --- a/src/alps/hdf5/matrix.hpp +++ b/src/alps/hdf5/matrix.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2012 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/hdf5/multi_array.hpp b/src/alps/hdf5/multi_array.hpp index 179d03264..bede07dda 100644 --- a/src/alps/hdf5/multi_array.hpp +++ b/src/alps/hdf5/multi_array.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/hdf5/numeric_vector.hpp b/src/alps/hdf5/numeric_vector.hpp index 25a1c0e85..5fc03c034 100644 --- a/src/alps/hdf5/numeric_vector.hpp +++ b/src/alps/hdf5/numeric_vector.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2013 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/hdf5/pair.hpp b/src/alps/hdf5/pair.hpp index 27f0d91eb..5820ac694 100644 --- a/src/alps/hdf5/pair.hpp +++ b/src/alps/hdf5/pair.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/hdf5/pointer.hpp b/src/alps/hdf5/pointer.hpp index 4aeee2807..6652c1d6d 100644 --- a/src/alps/hdf5/pointer.hpp +++ b/src/alps/hdf5/pointer.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/hdf5/python.cpp b/src/alps/hdf5/python.cpp index ef1339da6..264181718 100644 --- a/src/alps/hdf5/python.cpp +++ b/src/alps/hdf5/python.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/hdf5/python.hpp b/src/alps/hdf5/python.hpp index 7321ed703..1fdbecf7b 100644 --- a/src/alps/hdf5/python.hpp +++ b/src/alps/hdf5/python.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/hdf5/shared_array.hpp b/src/alps/hdf5/shared_array.hpp index 814f8b6cf..377994dca 100644 --- a/src/alps/hdf5/shared_array.hpp +++ b/src/alps/hdf5/shared_array.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/hdf5/stdarray.hpp b/src/alps/hdf5/stdarray.hpp index 536146683..4a20ea3a4 100644 --- a/src/alps/hdf5/stdarray.hpp +++ b/src/alps/hdf5/stdarray.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/hdf5/tuple.hpp b/src/alps/hdf5/tuple.hpp index 818647f31..c50db00dd 100644 --- a/src/alps/hdf5/tuple.hpp +++ b/src/alps/hdf5/tuple.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/hdf5/ublas/matrix.hpp b/src/alps/hdf5/ublas/matrix.hpp index c40b9706f..495b502c4 100644 --- a/src/alps/hdf5/ublas/matrix.hpp +++ b/src/alps/hdf5/ublas/matrix.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/hdf5/ublas/vector.hpp b/src/alps/hdf5/ublas/vector.hpp index 88767bef2..0246f5f21 100644 --- a/src/alps/hdf5/ublas/vector.hpp +++ b/src/alps/hdf5/ublas/vector.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/hdf5/valarray.hpp b/src/alps/hdf5/valarray.hpp index bed4c51f8..9189e2b20 100644 --- a/src/alps/hdf5/valarray.hpp +++ b/src/alps/hdf5/valarray.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/hdf5/vector.hpp b/src/alps/hdf5/vector.hpp index 303a757c5..38254083f 100644 --- a/src/alps/hdf5/vector.hpp +++ b/src/alps/hdf5/vector.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/lambda.hpp b/src/alps/lambda.hpp index a94c14600..991e0f419 100644 --- a/src/alps/lambda.hpp +++ b/src/alps/lambda.hpp @@ -9,23 +9,8 @@ * Andreas Laeuchli , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/lattice.h b/src/alps/lattice.h index 5dd299798..f9264c815 100644 --- a/src/alps/lattice.h +++ b/src/alps/lattice.h @@ -7,23 +7,8 @@ * Copyright (C) 2003 by Synge Todo , * and Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/lattice/bond_compare.h b/src/alps/lattice/bond_compare.h index ad95c81eb..fa21243bb 100644 --- a/src/alps/lattice/bond_compare.h +++ b/src/alps/lattice/bond_compare.h @@ -6,23 +6,8 @@ * * Copyright (C) 2004 by Ian McCulloch * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/lattice/boundary.h b/src/alps/lattice/boundary.h index 0cf5d7363..dff5fd1cf 100644 --- a/src/alps/lattice/boundary.h +++ b/src/alps/lattice/boundary.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2004 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/lattice/cell_traits.h b/src/alps/lattice/cell_traits.h index 6817f1bb2..213863e1c 100644 --- a/src/alps/lattice/cell_traits.h +++ b/src/alps/lattice/cell_traits.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2002 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/lattice/coordinate_traits.h b/src/alps/lattice/coordinate_traits.h index 171239abe..336bea6da 100644 --- a/src/alps/lattice/coordinate_traits.h +++ b/src/alps/lattice/coordinate_traits.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2002 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/lattice/coordinategraph.h b/src/alps/lattice/coordinategraph.h index 170b7f2f1..3a72bcecf 100644 --- a/src/alps/lattice/coordinategraph.h +++ b/src/alps/lattice/coordinategraph.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2004 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/lattice/coordinatelattice.h b/src/alps/lattice/coordinatelattice.h index a76b4709c..50a26351d 100644 --- a/src/alps/lattice/coordinatelattice.h +++ b/src/alps/lattice/coordinatelattice.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2004 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/lattice/dimensional_traits.h b/src/alps/lattice/dimensional_traits.h index 6c7469bc6..417c86050 100644 --- a/src/alps/lattice/dimensional_traits.h +++ b/src/alps/lattice/dimensional_traits.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2009 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/lattice/disorder.C b/src/alps/lattice/disorder.C index 68e50c630..4a69eca51 100644 --- a/src/alps/lattice/disorder.C +++ b/src/alps/lattice/disorder.C @@ -6,23 +6,8 @@ * * Copyright (C) 2001-2005 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/lattice/disorder.h b/src/alps/lattice/disorder.h index 7c3280723..d97a4de08 100644 --- a/src/alps/lattice/disorder.h +++ b/src/alps/lattice/disorder.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2009 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/lattice/graph.h b/src/alps/lattice/graph.h index eb4ced139..ab728d747 100644 --- a/src/alps/lattice/graph.h +++ b/src/alps/lattice/graph.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2009 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/lattice/graph_helper.h b/src/alps/lattice/graph_helper.h index 59debc221..3540f1431 100644 --- a/src/alps/lattice/graph_helper.h +++ b/src/alps/lattice/graph_helper.h @@ -7,23 +7,8 @@ * Copyright (C) 2000-2009 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/lattice/graph_traits.h b/src/alps/lattice/graph_traits.h index 58f29934c..b0cc8e62e 100644 --- a/src/alps/lattice/graph_traits.h +++ b/src/alps/lattice/graph_traits.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2005 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/lattice/graphproperties.h b/src/alps/lattice/graphproperties.h index 64b06145b..1c876d205 100644 --- a/src/alps/lattice/graphproperties.h +++ b/src/alps/lattice/graphproperties.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2004 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/lattice/hypercubic.h b/src/alps/lattice/hypercubic.h index 6455e9dc4..17340e5d5 100644 --- a/src/alps/lattice/hypercubic.h +++ b/src/alps/lattice/hypercubic.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2009 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/lattice/lattice.h b/src/alps/lattice/lattice.h index e31126a3e..1f12d9b3a 100644 --- a/src/alps/lattice/lattice.h +++ b/src/alps/lattice/lattice.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2010 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/lattice/latticedescriptor.C b/src/alps/lattice/latticedescriptor.C index 831159af2..44a01026a 100644 --- a/src/alps/lattice/latticedescriptor.C +++ b/src/alps/lattice/latticedescriptor.C @@ -7,23 +7,8 @@ * Copyright (C) 2001-2009 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/lattice/latticedescriptor.h b/src/alps/lattice/latticedescriptor.h index f3eac7910..257d5b297 100644 --- a/src/alps/lattice/latticedescriptor.h +++ b/src/alps/lattice/latticedescriptor.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2006 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/lattice/latticegraph.h b/src/alps/lattice/latticegraph.h index ad8c29ad6..f1dcb17b3 100644 --- a/src/alps/lattice/latticegraph.h +++ b/src/alps/lattice/latticegraph.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2006 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/lattice/latticegraphdescriptor.C b/src/alps/lattice/latticegraphdescriptor.C index 9ed139a61..194af1e44 100644 --- a/src/alps/lattice/latticegraphdescriptor.C +++ b/src/alps/lattice/latticegraphdescriptor.C @@ -7,23 +7,8 @@ * Copyright (C) 2001-2006 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/lattice/latticegraphdescriptor.h b/src/alps/lattice/latticegraphdescriptor.h index 44b1d7723..97110ee15 100644 --- a/src/alps/lattice/latticegraphdescriptor.h +++ b/src/alps/lattice/latticegraphdescriptor.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2009 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/lattice/latticelibrary.C b/src/alps/lattice/latticelibrary.C index 8b9dcea4a..4ce41624b 100644 --- a/src/alps/lattice/latticelibrary.C +++ b/src/alps/lattice/latticelibrary.C @@ -7,23 +7,8 @@ * Copyright (C) 2001-2005 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/lattice/latticelibrary.h b/src/alps/lattice/latticelibrary.h index 67da9a1b3..92230bbbe 100644 --- a/src/alps/lattice/latticelibrary.h +++ b/src/alps/lattice/latticelibrary.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2009 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/lattice/parity.h b/src/alps/lattice/parity.h index 23f38b7f3..8765bb807 100644 --- a/src/alps/lattice/parity.h +++ b/src/alps/lattice/parity.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2009 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/lattice/point_traits.h b/src/alps/lattice/point_traits.h index 70d1c7d6a..e08528819 100644 --- a/src/alps/lattice/point_traits.h +++ b/src/alps/lattice/point_traits.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2003 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/lattice/propertymap.h b/src/alps/lattice/propertymap.h index 2abd0d44d..d678b6628 100644 --- a/src/alps/lattice/propertymap.h +++ b/src/alps/lattice/propertymap.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2005 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/lattice/simplecell.h b/src/alps/lattice/simplecell.h index 7c185b1ee..8c7964d0c 100644 --- a/src/alps/lattice/simplecell.h +++ b/src/alps/lattice/simplecell.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2002 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/lattice/simplelattice.h b/src/alps/lattice/simplelattice.h index 707034bf4..2a547d81c 100644 --- a/src/alps/lattice/simplelattice.h +++ b/src/alps/lattice/simplelattice.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2005 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/lattice/unitcell.C b/src/alps/lattice/unitcell.C index c059d4ab3..bf7680ed8 100644 --- a/src/alps/lattice/unitcell.C +++ b/src/alps/lattice/unitcell.C @@ -7,23 +7,8 @@ * Copyright (C) 2001-2005 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/lattice/unitcell.h b/src/alps/lattice/unitcell.h index 4a0c80d0c..5e4cc764e 100644 --- a/src/alps/lattice/unitcell.h +++ b/src/alps/lattice/unitcell.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2009 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/mcbase.cpp b/src/alps/mcbase.cpp index 07053f492..8ebe974d7 100644 --- a/src/alps/mcbase.cpp +++ b/src/alps/mcbase.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2013 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/mcbase.hpp b/src/alps/mcbase.hpp index c7844085f..81c001533 100644 --- a/src/alps/mcbase.hpp +++ b/src/alps/mcbase.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2013 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/mcmpiadapter.hpp b/src/alps/mcmpiadapter.hpp index 2541a0257..5ef93e687 100644 --- a/src/alps/mcmpiadapter.hpp +++ b/src/alps/mcmpiadapter.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2013 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/model.h b/src/alps/model.h index 39eb0d813..85d38f77d 100644 --- a/src/alps/model.h +++ b/src/alps/model.h @@ -7,23 +7,8 @@ * Copyright (C) 2003-2005 by Synge Todo , * Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/model/basisdescriptor.h b/src/alps/model/basisdescriptor.h index 6fab0e99f..3ce65d2b1 100644 --- a/src/alps/model/basisdescriptor.h +++ b/src/alps/model/basisdescriptor.h @@ -7,23 +7,8 @@ * Copyright (C) 2003-2005 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/model/basisstates.h b/src/alps/model/basisstates.h index 3b578b76e..c1c0586ce 100644 --- a/src/alps/model/basisstates.h +++ b/src/alps/model/basisstates.h @@ -7,23 +7,8 @@ * Copyright (C) 2003-2008 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/model/blochbasisstates.h b/src/alps/model/blochbasisstates.h index 613f8a41a..984064bd8 100644 --- a/src/alps/model/blochbasisstates.h +++ b/src/alps/model/blochbasisstates.h @@ -7,23 +7,8 @@ * Copyright (C) 2003-2005 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/model/bondoperator.h b/src/alps/model/bondoperator.h index 8d6ec4df7..2939dd145 100644 --- a/src/alps/model/bondoperator.h +++ b/src/alps/model/bondoperator.h @@ -7,23 +7,8 @@ * Copyright (C) 2003-2010 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/model/bondterm.C b/src/alps/model/bondterm.C index b9f9e8bee..e0e156a2a 100644 --- a/src/alps/model/bondterm.C +++ b/src/alps/model/bondterm.C @@ -6,23 +6,8 @@ * * Copyright (C) 2003-2005 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/model/bondterm.h b/src/alps/model/bondterm.h index 9b81c3de5..fc176745a 100644 --- a/src/alps/model/bondterm.h +++ b/src/alps/model/bondterm.h @@ -7,23 +7,8 @@ * Copyright (C) 2003-2009 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/model/default_term.h b/src/alps/model/default_term.h index a27af3415..defefe1ee 100644 --- a/src/alps/model/default_term.h +++ b/src/alps/model/default_term.h @@ -7,23 +7,8 @@ * Copyright (C) 2003-2005 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/model/globaloperator.C b/src/alps/model/globaloperator.C index db56cf82e..f8d43a04a 100644 --- a/src/alps/model/globaloperator.C +++ b/src/alps/model/globaloperator.C @@ -7,23 +7,8 @@ * Copyright (C) 2003-2005 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/model/globaloperator.h b/src/alps/model/globaloperator.h index 99a4a7e87..2b0b21adc 100644 --- a/src/alps/model/globaloperator.h +++ b/src/alps/model/globaloperator.h @@ -7,23 +7,8 @@ * Copyright (C) 2003-2009 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/model/half_integer.h b/src/alps/model/half_integer.h index 105d7e03d..d0cbf2d57 100644 --- a/src/alps/model/half_integer.h +++ b/src/alps/model/half_integer.h @@ -7,23 +7,8 @@ * Copyright (C) 2003-2010 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/model/hamiltonian.h b/src/alps/model/hamiltonian.h index c968f9c0d..49ac5545c 100644 --- a/src/alps/model/hamiltonian.h +++ b/src/alps/model/hamiltonian.h @@ -7,23 +7,8 @@ * Copyright (C) 2003-2005 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/model/hamiltonian_matrix.hpp b/src/alps/model/hamiltonian_matrix.hpp index e290d64c8..88b3732c3 100644 --- a/src/alps/model/hamiltonian_matrix.hpp +++ b/src/alps/model/hamiltonian_matrix.hpp @@ -6,23 +6,8 @@ * Andreas Honecker , * Ryo IGARASHI * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/model/integer_state.h b/src/alps/model/integer_state.h index 6aff6b8f3..ffaaa4540 100644 --- a/src/alps/model/integer_state.h +++ b/src/alps/model/integer_state.h @@ -7,23 +7,8 @@ * Copyright (C) 2003-2004 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/model/model_helper.h b/src/alps/model/model_helper.h index b463443a1..38d5ef30b 100644 --- a/src/alps/model/model_helper.h +++ b/src/alps/model/model_helper.h @@ -6,23 +6,8 @@ * * Copyright (C) 1994-2005 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/model/modellibrary.C b/src/alps/model/modellibrary.C index ea3b6ccf6..f0200137e 100644 --- a/src/alps/model/modellibrary.C +++ b/src/alps/model/modellibrary.C @@ -6,23 +6,8 @@ * * Copyright (C) 2003-2005 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/model/modellibrary.h b/src/alps/model/modellibrary.h index 82dcffcc5..be54438cf 100644 --- a/src/alps/model/modellibrary.h +++ b/src/alps/model/modellibrary.h @@ -6,23 +6,8 @@ * * Copyright (C) 2003-2009 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/model/operator.h b/src/alps/model/operator.h index e18c353cd..bce79a5fa 100644 --- a/src/alps/model/operator.h +++ b/src/alps/model/operator.h @@ -7,23 +7,8 @@ * Copyright (C) 2003-2006 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/model/operatordescriptor.h b/src/alps/model/operatordescriptor.h index ea77f79df..5f6aa2a17 100644 --- a/src/alps/model/operatordescriptor.h +++ b/src/alps/model/operatordescriptor.h @@ -7,23 +7,8 @@ * Copyright (C) 2003-2006 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/model/operatorsubstitution.h b/src/alps/model/operatorsubstitution.h index a44b0a2bb..bcbf4997f 100644 --- a/src/alps/model/operatorsubstitution.h +++ b/src/alps/model/operatorsubstitution.h @@ -6,23 +6,8 @@ * * Copyright (C) 2005 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/model/quantumnumber.h b/src/alps/model/quantumnumber.h index 5c0ecbb7c..edccfc9e5 100644 --- a/src/alps/model/quantumnumber.h +++ b/src/alps/model/quantumnumber.h @@ -8,23 +8,8 @@ * Axel Grzesik , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/model/sign.h b/src/alps/model/sign.h index aeecf8feb..43937c18e 100644 --- a/src/alps/model/sign.h +++ b/src/alps/model/sign.h @@ -7,23 +7,8 @@ * Copyright (C) 2003-2009 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/model/sitebasisdescriptor.h b/src/alps/model/sitebasisdescriptor.h index bd4559e73..6431f91de 100644 --- a/src/alps/model/sitebasisdescriptor.h +++ b/src/alps/model/sitebasisdescriptor.h @@ -8,23 +8,8 @@ * Axel Grzesik , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/model/sitebasisstates.h b/src/alps/model/sitebasisstates.h index ccb243322..e52dfd871 100644 --- a/src/alps/model/sitebasisstates.h +++ b/src/alps/model/sitebasisstates.h @@ -7,23 +7,8 @@ * Copyright (C) 2003-2009 by Matthias Troyer , * Axel Grzesik * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/model/siteoperator.h b/src/alps/model/siteoperator.h index f9dd35a0e..0dc726ee6 100644 --- a/src/alps/model/siteoperator.h +++ b/src/alps/model/siteoperator.h @@ -7,23 +7,8 @@ * Copyright (C) 2003-2010 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/model/sitestate.h b/src/alps/model/sitestate.h index 9cfe8eca1..d38124539 100644 --- a/src/alps/model/sitestate.h +++ b/src/alps/model/sitestate.h @@ -6,23 +6,8 @@ * * Copyright (C) 2003-2004 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/model/siteterm.C b/src/alps/model/siteterm.C index 6654067d5..714dfafe0 100644 --- a/src/alps/model/siteterm.C +++ b/src/alps/model/siteterm.C @@ -6,23 +6,8 @@ * * Copyright (C) 2003-2005 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/model/siteterm.h b/src/alps/model/siteterm.h index 9d5324b11..9cb39d5c4 100644 --- a/src/alps/model/siteterm.h +++ b/src/alps/model/siteterm.h @@ -7,23 +7,8 @@ * Copyright (C) 2003-2005 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/model/substitute.h b/src/alps/model/substitute.h index 862a77ec8..f763a9c2a 100644 --- a/src/alps/model/substitute.h +++ b/src/alps/model/substitute.h @@ -7,23 +7,8 @@ * Copyright (C) 2003-2005 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/multi_array.hpp b/src/alps/multi_array.hpp index 5edf82007..98eece6bd 100644 --- a/src/alps/multi_array.hpp +++ b/src/alps/multi_array.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2012 by Ilia Zintchenko * * Jan Gukelberger * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/multi_array/functions.hpp b/src/alps/multi_array/functions.hpp index 1ac953d31..4e0177f05 100644 --- a/src/alps/multi_array/functions.hpp +++ b/src/alps/multi_array/functions.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2012 by Ilia Zintchenko * * Jan Gukelberger * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/multi_array/io.hpp b/src/alps/multi_array/io.hpp index 1e3a37cf5..77273f566 100644 --- a/src/alps/multi_array/io.hpp +++ b/src/alps/multi_array/io.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2012 by Ilia Zintchenko * * Jan Gukelberger * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/multi_array/multi_array.hpp b/src/alps/multi_array/multi_array.hpp index af6c5c708..8c47e8d27 100644 --- a/src/alps/multi_array/multi_array.hpp +++ b/src/alps/multi_array/multi_array.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2012 by Ilia Zintchenko * * Jan Gukelberger * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/multi_array/operators.hpp b/src/alps/multi_array/operators.hpp index d1997736d..db17e9a16 100644 --- a/src/alps/multi_array/operators.hpp +++ b/src/alps/multi_array/operators.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2012 by Ilia Zintchenko * * Jan Gukelberger * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/multi_array/serialization.hpp b/src/alps/multi_array/serialization.hpp index bb86141af..00e0782c5 100644 --- a/src/alps/multi_array/serialization.hpp +++ b/src/alps/multi_array/serialization.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2012 by Ilia Zintchenko * * Jan Gukelberger * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs.hpp b/src/alps/ngs.hpp index bc8f1c63a..f810498a7 100644 --- a/src/alps/ngs.hpp +++ b/src/alps/ngs.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2010 - 2011 by Lukas Gamper * * Matthias Troyer * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/accumulator.hpp b/src/alps/ngs/accumulator.hpp index 8f5d9b477..5e4a9fe69 100644 --- a/src/alps/ngs/accumulator.hpp +++ b/src/alps/ngs/accumulator.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/accumulator/accumulator.cpp b/src/alps/ngs/accumulator/accumulator.cpp index 06f8d726c..f05da2606 100644 --- a/src/alps/ngs/accumulator/accumulator.cpp +++ b/src/alps/ngs/accumulator/accumulator.cpp @@ -7,23 +7,8 @@ * Copyright (C) 2011 - 2013 by Mario Koenz * * Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/accumulator/accumulator.hpp b/src/alps/ngs/accumulator/accumulator.hpp index aefa6aaf9..973ae96d6 100644 --- a/src/alps/ngs/accumulator/accumulator.hpp +++ b/src/alps/ngs/accumulator/accumulator.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2011 - 2013 by Mario Koenz * * Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/accumulator/deprecated/accumulator.hpp b/src/alps/ngs/accumulator/deprecated/accumulator.hpp index fbbbdb4b1..96527d720 100644 --- a/src/alps/ngs/accumulator/deprecated/accumulator.hpp +++ b/src/alps/ngs/accumulator/deprecated/accumulator.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/accumulator/deprecated/accumulator/accumulator_impl.hpp b/src/alps/ngs/accumulator/deprecated/accumulator/accumulator_impl.hpp index 0a62aa1ca..f76ab846d 100644 --- a/src/alps/ngs/accumulator/deprecated/accumulator/accumulator_impl.hpp +++ b/src/alps/ngs/accumulator/deprecated/accumulator/accumulator_impl.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2011 - 2012 by Lukas Gamper * * Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/accumulator/deprecated/accumulator/arguments.hpp b/src/alps/ngs/accumulator/deprecated/accumulator/arguments.hpp index aeefbe4f7..aeeea0127 100644 --- a/src/alps/ngs/accumulator/deprecated/accumulator/arguments.hpp +++ b/src/alps/ngs/accumulator/deprecated/accumulator/arguments.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/accumulator/deprecated/accumulator_set.hpp b/src/alps/ngs/accumulator/deprecated/accumulator_set.hpp index 2dd06fa3d..b1ba75e2a 100644 --- a/src/alps/ngs/accumulator/deprecated/accumulator_set.hpp +++ b/src/alps/ngs/accumulator/deprecated/accumulator_set.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/accumulator/deprecated/alea.hpp b/src/alps/ngs/accumulator/deprecated/alea.hpp index 910e94c9a..93c3f1cf6 100644 --- a/src/alps/ngs/accumulator/deprecated/alea.hpp +++ b/src/alps/ngs/accumulator/deprecated/alea.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/accumulator/deprecated/alea/accumulator_set.cpp b/src/alps/ngs/accumulator/deprecated/alea/accumulator_set.cpp index 974c76d08..4e235d9af 100644 --- a/src/alps/ngs/accumulator/deprecated/alea/accumulator_set.cpp +++ b/src/alps/ngs/accumulator/deprecated/alea/accumulator_set.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #include diff --git a/src/alps/ngs/accumulator/deprecated/alea/result_set.cpp b/src/alps/ngs/accumulator/deprecated/alea/result_set.cpp index cb3eb91ef..559cbaa1e 100644 --- a/src/alps/ngs/accumulator/deprecated/alea/result_set.cpp +++ b/src/alps/ngs/accumulator/deprecated/alea/result_set.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #include diff --git a/src/alps/ngs/accumulator/deprecated/feature/autocorrelation.hpp b/src/alps/ngs/accumulator/deprecated/feature/autocorrelation.hpp index 44eed005a..85efc707c 100644 --- a/src/alps/ngs/accumulator/deprecated/feature/autocorrelation.hpp +++ b/src/alps/ngs/accumulator/deprecated/feature/autocorrelation.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/accumulator/deprecated/feature/converged.hpp b/src/alps/ngs/accumulator/deprecated/feature/converged.hpp index ea894c991..06bb79763 100644 --- a/src/alps/ngs/accumulator/deprecated/feature/converged.hpp +++ b/src/alps/ngs/accumulator/deprecated/feature/converged.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/accumulator/deprecated/feature/error.hpp b/src/alps/ngs/accumulator/deprecated/feature/error.hpp index 39f5295df..93f71056b 100644 --- a/src/alps/ngs/accumulator/deprecated/feature/error.hpp +++ b/src/alps/ngs/accumulator/deprecated/feature/error.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2011 - 2013 by Mario Koenz * * Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/accumulator/deprecated/feature/feature_traits.hpp b/src/alps/ngs/accumulator/deprecated/feature/feature_traits.hpp index 8346b8dce..a4e600b8d 100644 --- a/src/alps/ngs/accumulator/deprecated/feature/feature_traits.hpp +++ b/src/alps/ngs/accumulator/deprecated/feature/feature_traits.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2011 - 2012 by Lukas Gamper * * Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/accumulator/deprecated/feature/features.hpp b/src/alps/ngs/accumulator/deprecated/feature/features.hpp index 20bd91735..33f882462 100644 --- a/src/alps/ngs/accumulator/deprecated/feature/features.hpp +++ b/src/alps/ngs/accumulator/deprecated/feature/features.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/accumulator/deprecated/feature/fixed_size_binning.hpp b/src/alps/ngs/accumulator/deprecated/feature/fixed_size_binning.hpp index b417addce..deac00867 100644 --- a/src/alps/ngs/accumulator/deprecated/feature/fixed_size_binning.hpp +++ b/src/alps/ngs/accumulator/deprecated/feature/fixed_size_binning.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/accumulator/deprecated/feature/generate_property.hpp b/src/alps/ngs/accumulator/deprecated/feature/generate_property.hpp index 5c3ae53ee..c41cb062d 100644 --- a/src/alps/ngs/accumulator/deprecated/feature/generate_property.hpp +++ b/src/alps/ngs/accumulator/deprecated/feature/generate_property.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2011 - 2013 by Mario Koenz * * Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/accumulator/deprecated/feature/histogram.hpp b/src/alps/ngs/accumulator/deprecated/feature/histogram.hpp index 97d0ec31d..855a2b7ee 100644 --- a/src/alps/ngs/accumulator/deprecated/feature/histogram.hpp +++ b/src/alps/ngs/accumulator/deprecated/feature/histogram.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/accumulator/deprecated/feature/log_binning.hpp b/src/alps/ngs/accumulator/deprecated/feature/log_binning.hpp index 18f4309df..4d393c1c6 100644 --- a/src/alps/ngs/accumulator/deprecated/feature/log_binning.hpp +++ b/src/alps/ngs/accumulator/deprecated/feature/log_binning.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/accumulator/deprecated/feature/max_num_binning.hpp b/src/alps/ngs/accumulator/deprecated/feature/max_num_binning.hpp index 9d3c56c1f..b4deee0f8 100644 --- a/src/alps/ngs/accumulator/deprecated/feature/max_num_binning.hpp +++ b/src/alps/ngs/accumulator/deprecated/feature/max_num_binning.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2011 - 2013 by Mario Koenz * * Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/accumulator/deprecated/feature/mean.hpp b/src/alps/ngs/accumulator/deprecated/feature/mean.hpp index 2b1253522..270af04c7 100644 --- a/src/alps/ngs/accumulator/deprecated/feature/mean.hpp +++ b/src/alps/ngs/accumulator/deprecated/feature/mean.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2011 - 2013 by Mario Koenz * * Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/accumulator/deprecated/feature/tags.hpp b/src/alps/ngs/accumulator/deprecated/feature/tags.hpp index 4f9165fc5..49792c9cc 100644 --- a/src/alps/ngs/accumulator/deprecated/feature/tags.hpp +++ b/src/alps/ngs/accumulator/deprecated/feature/tags.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/accumulator/deprecated/feature/tau.hpp b/src/alps/ngs/accumulator/deprecated/feature/tau.hpp index 8531b6c17..b30848072 100644 --- a/src/alps/ngs/accumulator/deprecated/feature/tau.hpp +++ b/src/alps/ngs/accumulator/deprecated/feature/tau.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/accumulator/deprecated/feature/value_type.hpp b/src/alps/ngs/accumulator/deprecated/feature/value_type.hpp index f878ae61e..e4b60b2b2 100644 --- a/src/alps/ngs/accumulator/deprecated/feature/value_type.hpp +++ b/src/alps/ngs/accumulator/deprecated/feature/value_type.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2011 - 2013 by Mario Koenz * * Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/accumulator/deprecated/feature/weight.hpp b/src/alps/ngs/accumulator/deprecated/feature/weight.hpp index c082c8e46..425116e52 100644 --- a/src/alps/ngs/accumulator/deprecated/feature/weight.hpp +++ b/src/alps/ngs/accumulator/deprecated/feature/weight.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2011 - 2012 by Mario Koenz * * Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/accumulator/deprecated/features.hpp b/src/alps/ngs/accumulator/deprecated/features.hpp index 0d82df315..663fdf18a 100644 --- a/src/alps/ngs/accumulator/deprecated/features.hpp +++ b/src/alps/ngs/accumulator/deprecated/features.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/accumulator/deprecated/result.hpp b/src/alps/ngs/accumulator/deprecated/result.hpp index 5814b3a56..889ccd74b 100644 --- a/src/alps/ngs/accumulator/deprecated/result.hpp +++ b/src/alps/ngs/accumulator/deprecated/result.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2013 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/accumulator/deprecated/result_set.hpp b/src/alps/ngs/accumulator/deprecated/result_set.hpp index 11d55c13e..cd963049d 100644 --- a/src/alps/ngs/accumulator/deprecated/result_set.hpp +++ b/src/alps/ngs/accumulator/deprecated/result_set.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2013 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/accumulator/deprecated/wrapper/accumulator_wrapper.hpp b/src/alps/ngs/accumulator/deprecated/wrapper/accumulator_wrapper.hpp index 6ff99f5b3..53c2df794 100644 --- a/src/alps/ngs/accumulator/deprecated/wrapper/accumulator_wrapper.hpp +++ b/src/alps/ngs/accumulator/deprecated/wrapper/accumulator_wrapper.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2011 - 2013 by Mario Koenz * * Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/accumulator/deprecated/wrapper/base_wrapper.hpp b/src/alps/ngs/accumulator/deprecated/wrapper/base_wrapper.hpp index c964671e3..1c1cfc717 100644 --- a/src/alps/ngs/accumulator/deprecated/wrapper/base_wrapper.hpp +++ b/src/alps/ngs/accumulator/deprecated/wrapper/base_wrapper.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2011 - 2013 by Mario Koenz * * Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/accumulator/deprecated/wrapper/derived_wrapper.hpp b/src/alps/ngs/accumulator/deprecated/wrapper/derived_wrapper.hpp index 0d7987abc..d0de792e2 100644 --- a/src/alps/ngs/accumulator/deprecated/wrapper/derived_wrapper.hpp +++ b/src/alps/ngs/accumulator/deprecated/wrapper/derived_wrapper.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2011 - 2013 by Mario Koenz * * Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/accumulator/deprecated/wrapper/result_type_wrapper.hpp b/src/alps/ngs/accumulator/deprecated/wrapper/result_type_wrapper.hpp index 25f74584e..fde3958f4 100644 --- a/src/alps/ngs/accumulator/deprecated/wrapper/result_type_wrapper.hpp +++ b/src/alps/ngs/accumulator/deprecated/wrapper/result_type_wrapper.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2011 - 2013 by Mario Koenz * * Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/accumulator/deprecated/wrapper/result_wrapper.hpp b/src/alps/ngs/accumulator/deprecated/wrapper/result_wrapper.hpp index 4f1a32cf8..f10f2dc53 100644 --- a/src/alps/ngs/accumulator/deprecated/wrapper/result_wrapper.hpp +++ b/src/alps/ngs/accumulator/deprecated/wrapper/result_wrapper.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2013 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/accumulator/feature.hpp b/src/alps/ngs/accumulator/feature.hpp index 00efb17f3..69d4fe67b 100644 --- a/src/alps/ngs/accumulator/feature.hpp +++ b/src/alps/ngs/accumulator/feature.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2011 - 2013 by Mario Koenz * * Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/accumulator/feature/binning_analysis.hpp b/src/alps/ngs/accumulator/feature/binning_analysis.hpp index c23a1617d..15e6d3c39 100644 --- a/src/alps/ngs/accumulator/feature/binning_analysis.hpp +++ b/src/alps/ngs/accumulator/feature/binning_analysis.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2011 - 2013 by Mario Koenz * * Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/accumulator/feature/count.hpp b/src/alps/ngs/accumulator/feature/count.hpp index 459d9f2c4..4dbc2892f 100644 --- a/src/alps/ngs/accumulator/feature/count.hpp +++ b/src/alps/ngs/accumulator/feature/count.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2011 - 2013 by Mario Koenz * * Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/accumulator/feature/error.hpp b/src/alps/ngs/accumulator/feature/error.hpp index 9b7938a80..c91e81fa1 100644 --- a/src/alps/ngs/accumulator/feature/error.hpp +++ b/src/alps/ngs/accumulator/feature/error.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2011 - 2013 by Mario Koenz * * Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/accumulator/feature/max_num_binning.hpp b/src/alps/ngs/accumulator/feature/max_num_binning.hpp index 4b999bf6e..f5338ef19 100644 --- a/src/alps/ngs/accumulator/feature/max_num_binning.hpp +++ b/src/alps/ngs/accumulator/feature/max_num_binning.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2011 - 2013 by Mario Koenz * * Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/accumulator/feature/mean.hpp b/src/alps/ngs/accumulator/feature/mean.hpp index 56efc5bfc..cf1dfd72c 100644 --- a/src/alps/ngs/accumulator/feature/mean.hpp +++ b/src/alps/ngs/accumulator/feature/mean.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2011 - 2013 by Mario Koenz * * Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/accumulator/feature/weight.hpp b/src/alps/ngs/accumulator/feature/weight.hpp index c5a7cbeb2..11fb21f41 100644 --- a/src/alps/ngs/accumulator/feature/weight.hpp +++ b/src/alps/ngs/accumulator/feature/weight.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2011 - 2013 by Mario Koenz * * Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/accumulator/feature/weight_holder.hpp b/src/alps/ngs/accumulator/feature/weight_holder.hpp index b429f0887..8a95c2467 100644 --- a/src/alps/ngs/accumulator/feature/weight_holder.hpp +++ b/src/alps/ngs/accumulator/feature/weight_holder.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2011 - 2013 by Mario Koenz * * Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/accumulator/parameter.hpp b/src/alps/ngs/accumulator/parameter.hpp index 1d21faf2e..e873bf0b1 100644 --- a/src/alps/ngs/accumulator/parameter.hpp +++ b/src/alps/ngs/accumulator/parameter.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2011 - 2013 by Mario Koenz * * Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/accumulator/wrappers.hpp b/src/alps/ngs/accumulator/wrappers.hpp index c2a8e01a4..c9c6fa94d 100644 --- a/src/alps/ngs/accumulator/wrappers.hpp +++ b/src/alps/ngs/accumulator/wrappers.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2011 - 2013 by Mario Koenz * * Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/api.hpp b/src/alps/ngs/api.hpp index 9ba2e5ecc..ecb965440 100644 --- a/src/alps/ngs/api.hpp +++ b/src/alps/ngs/api.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/boost_mpi.hpp b/src/alps/ngs/boost_mpi.hpp index 7ddca4d1d..0c6ee3fb3 100644 --- a/src/alps/ngs/boost_mpi.hpp +++ b/src/alps/ngs/boost_mpi.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/boost_python.hpp b/src/alps/ngs/boost_python.hpp index 1d2963e00..676a7ea43 100644 --- a/src/alps/ngs/boost_python.hpp +++ b/src/alps/ngs/boost_python.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/cast.hpp b/src/alps/ngs/cast.hpp index b317f7d6a..287fd5d7f 100644 --- a/src/alps/ngs/cast.hpp +++ b/src/alps/ngs/cast.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/config.hpp b/src/alps/ngs/config.hpp index 1981dce19..fa695b14d 100644 --- a/src/alps/ngs/config.hpp +++ b/src/alps/ngs/config.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/detail/export_sim_to_python.hpp b/src/alps/ngs/detail/export_sim_to_python.hpp index 3f208571f..643f00ba8 100644 --- a/src/alps/ngs/detail/export_sim_to_python.hpp +++ b/src/alps/ngs/detail/export_sim_to_python.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/detail/extract_from_pyobject.hpp b/src/alps/ngs/detail/extract_from_pyobject.hpp index 2d2f17b26..24043e936 100644 --- a/src/alps/ngs/detail/extract_from_pyobject.hpp +++ b/src/alps/ngs/detail/extract_from_pyobject.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/detail/get_numpy_type.hpp b/src/alps/ngs/detail/get_numpy_type.hpp index 61c767d79..4b9c0bbfc 100644 --- a/src/alps/ngs/detail/get_numpy_type.hpp +++ b/src/alps/ngs/detail/get_numpy_type.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/detail/paramiterator.hpp b/src/alps/ngs/detail/paramiterator.hpp index bda6616f7..0200039b1 100644 --- a/src/alps/ngs/detail/paramiterator.hpp +++ b/src/alps/ngs/detail/paramiterator.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/detail/paramproxy.hpp b/src/alps/ngs/detail/paramproxy.hpp index af956ac49..972a41a2b 100644 --- a/src/alps/ngs/detail/paramproxy.hpp +++ b/src/alps/ngs/detail/paramproxy.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/detail/params_impl_base.hpp b/src/alps/ngs/detail/params_impl_base.hpp index fddcf4622..35167e012 100644 --- a/src/alps/ngs/detail/params_impl_base.hpp +++ b/src/alps/ngs/detail/params_impl_base.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/detail/paramvalue.hpp b/src/alps/ngs/detail/paramvalue.hpp index e20daf25b..8138cb3eb 100644 --- a/src/alps/ngs/detail/paramvalue.hpp +++ b/src/alps/ngs/detail/paramvalue.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/detail/paramvalue_reader.hpp b/src/alps/ngs/detail/paramvalue_reader.hpp index 5c8d43e73..d0dabce1b 100644 --- a/src/alps/ngs/detail/paramvalue_reader.hpp +++ b/src/alps/ngs/detail/paramvalue_reader.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/detail/remove_cvr.hpp b/src/alps/ngs/detail/remove_cvr.hpp index 171a53253..3734da9af 100644 --- a/src/alps/ngs/detail/remove_cvr.hpp +++ b/src/alps/ngs/detail/remove_cvr.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/detail/tcpsession.hpp b/src/alps/ngs/detail/tcpsession.hpp index b13e55ad0..0bdcdda56 100644 --- a/src/alps/ngs/detail/tcpsession.hpp +++ b/src/alps/ngs/detail/tcpsession.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/detail/type_wrapper.hpp b/src/alps/ngs/detail/type_wrapper.hpp index 4c55ed63f..0eb5c173c 100644 --- a/src/alps/ngs/detail/type_wrapper.hpp +++ b/src/alps/ngs/detail/type_wrapper.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/hash.hpp b/src/alps/ngs/hash.hpp index 250e6f06e..68ca69318 100644 --- a/src/alps/ngs/hash.hpp +++ b/src/alps/ngs/hash.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/lib/api.cpp b/src/alps/ngs/lib/api.cpp index de78fe814..f66458a4c 100644 --- a/src/alps/ngs/lib/api.cpp +++ b/src/alps/ngs/lib/api.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/lib/clone.cpp b/src/alps/ngs/lib/clone.cpp index 839db8621..cf9695ae0 100644 --- a/src/alps/ngs/lib/clone.cpp +++ b/src/alps/ngs/lib/clone.cpp @@ -10,23 +10,8 @@ * Tatsuya Sakashita , * Yuichi Motoyama * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/ngs/lib/clone_info.cpp b/src/alps/ngs/lib/clone_info.cpp index 6ed370ade..6072deae2 100644 --- a/src/alps/ngs/lib/clone_info.cpp +++ b/src/alps/ngs/lib/clone_info.cpp @@ -10,23 +10,8 @@ * Tatsuya Sakashita , * Yuichi Motoyama * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/ngs/lib/get_numpy_type.cpp b/src/alps/ngs/lib/get_numpy_type.cpp index 94ee33a6f..4f1cb1d28 100644 --- a/src/alps/ngs/lib/get_numpy_type.cpp +++ b/src/alps/ngs/lib/get_numpy_type.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/lib/job.cpp b/src/alps/ngs/lib/job.cpp index 6c9f20666..5fc3a4721 100644 --- a/src/alps/ngs/lib/job.cpp +++ b/src/alps/ngs/lib/job.cpp @@ -10,23 +10,8 @@ * Tatsuya Sakashita , * Yuichi Motoyama * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/ngs/lib/make_deprecated_parameters.cpp b/src/alps/ngs/lib/make_deprecated_parameters.cpp index 0b7302d85..2a285d06b 100644 --- a/src/alps/ngs/lib/make_deprecated_parameters.cpp +++ b/src/alps/ngs/lib/make_deprecated_parameters.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/lib/make_parameters_from_xml.cpp b/src/alps/ngs/lib/make_parameters_from_xml.cpp index 5d0f4720d..8426ac78c 100644 --- a/src/alps/ngs/lib/make_parameters_from_xml.cpp +++ b/src/alps/ngs/lib/make_parameters_from_xml.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/lib/mcobservable.cpp b/src/alps/ngs/lib/mcobservable.cpp index 4526ecee0..da8197617 100644 --- a/src/alps/ngs/lib/mcobservable.cpp +++ b/src/alps/ngs/lib/mcobservable.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/lib/mcobservables.cpp b/src/alps/ngs/lib/mcobservables.cpp index 10213dc07..26ef75e2d 100644 --- a/src/alps/ngs/lib/mcobservables.cpp +++ b/src/alps/ngs/lib/mcobservables.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/lib/mcoptions.cpp b/src/alps/ngs/lib/mcoptions.cpp index 8eee4359c..12271480d 100644 --- a/src/alps/ngs/lib/mcoptions.cpp +++ b/src/alps/ngs/lib/mcoptions.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/lib/mcresult.cpp b/src/alps/ngs/lib/mcresult.cpp index c94af278a..bd3f88866 100644 --- a/src/alps/ngs/lib/mcresult.cpp +++ b/src/alps/ngs/lib/mcresult.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/lib/mcresult_impl_base.ipp b/src/alps/ngs/lib/mcresult_impl_base.ipp index 3b2539a0f..385b4a7fe 100644 --- a/src/alps/ngs/lib/mcresult_impl_base.ipp +++ b/src/alps/ngs/lib/mcresult_impl_base.ipp @@ -6,22 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * This software is part of the ALPS libraries, published under the ALPS * - * Library License; you can use, redistribute it and/or modify it under * - * the terms of the license, either version 1 or (at your option) any later * - * version. * - * * - * You should have received a copy of the ALPS Library License along with * - * the ALPS Libraries; see the file LICENSE.txt. If not, the license is also * - * available from http://alps.comp-phys.org/. * - * * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT * - * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE * - * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, * - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/lib/mcresult_impl_derived.ipp b/src/alps/ngs/lib/mcresult_impl_derived.ipp index 00ad23c77..b88d2e9d0 100644 --- a/src/alps/ngs/lib/mcresult_impl_derived.ipp +++ b/src/alps/ngs/lib/mcresult_impl_derived.ipp @@ -6,22 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * This software is part of the ALPS libraries, published under the ALPS * - * Library License; you can use, redistribute it and/or modify it under * - * the terms of the license, either version 1 or (at your option) any later * - * version. * - * * - * You should have received a copy of the ALPS Library License along with * - * the ALPS Libraries; see the file LICENSE.txt. If not, the license is also * - * available from http://alps.comp-phys.org/. * - * * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT * - * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE * - * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, * - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/lib/mcresults.cpp b/src/alps/ngs/lib/mcresults.cpp index 44866dfc2..ae46debf6 100644 --- a/src/alps/ngs/lib/mcresults.cpp +++ b/src/alps/ngs/lib/mcresults.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/lib/observablewrappers.cpp b/src/alps/ngs/lib/observablewrappers.cpp index 2a5af0263..bb0248c68 100644 --- a/src/alps/ngs/lib/observablewrappers.cpp +++ b/src/alps/ngs/lib/observablewrappers.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/lib/paramproxy.cpp b/src/alps/ngs/lib/paramproxy.cpp index 652363072..4bb00adbb 100644 --- a/src/alps/ngs/lib/paramproxy.cpp +++ b/src/alps/ngs/lib/paramproxy.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/lib/params.cpp b/src/alps/ngs/lib/params.cpp index 7ea28da4d..0bcbfb81d 100644 --- a/src/alps/ngs/lib/params.cpp +++ b/src/alps/ngs/lib/params.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/lib/paramvalue.cpp b/src/alps/ngs/lib/paramvalue.cpp index 4681a4b4c..39fa46bab 100644 --- a/src/alps/ngs/lib/paramvalue.cpp +++ b/src/alps/ngs/lib/paramvalue.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/lib/parapack.cpp b/src/alps/ngs/lib/parapack.cpp index 1ab980efe..8cce1c0ef 100644 --- a/src/alps/ngs/lib/parapack.cpp +++ b/src/alps/ngs/lib/parapack.cpp @@ -10,23 +10,8 @@ * Tatsuya Sakashita , * Yuichi Motoyama * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/ngs/lib/short_print.cpp b/src/alps/ngs/lib/short_print.cpp index 2c8f70832..e82251b31 100644 --- a/src/alps/ngs/lib/short_print.cpp +++ b/src/alps/ngs/lib/short_print.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/lib/signal.cpp b/src/alps/ngs/lib/signal.cpp index fdd9d5236..a9a8185c2 100644 --- a/src/alps/ngs/lib/signal.cpp +++ b/src/alps/ngs/lib/signal.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/lib/sleep.cpp b/src/alps/ngs/lib/sleep.cpp index 4ea5115eb..86f4f9f33 100644 --- a/src/alps/ngs/lib/sleep.cpp +++ b/src/alps/ngs/lib/sleep.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/lib/stacktrace.cpp b/src/alps/ngs/lib/stacktrace.cpp index 4180e4787..73af4be5c 100644 --- a/src/alps/ngs/lib/stacktrace.cpp +++ b/src/alps/ngs/lib/stacktrace.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/lib/ulfm.cpp b/src/alps/ngs/lib/ulfm.cpp index 1acb2c37f..613d29d49 100644 --- a/src/alps/ngs/lib/ulfm.cpp +++ b/src/alps/ngs/lib/ulfm.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2012-2013 Donjan Rodic * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/lib/worker_factory.cpp b/src/alps/ngs/lib/worker_factory.cpp index 48e8e4e78..4587c8da2 100644 --- a/src/alps/ngs/lib/worker_factory.cpp +++ b/src/alps/ngs/lib/worker_factory.cpp @@ -10,23 +10,8 @@ * Tatsuya Sakashita , * Yuichi Motoyama * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/ngs/make_deprecated_parameters.hpp b/src/alps/ngs/make_deprecated_parameters.hpp index e62790b6c..9155b3806 100644 --- a/src/alps/ngs/make_deprecated_parameters.hpp +++ b/src/alps/ngs/make_deprecated_parameters.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/make_parameters_from_xml.hpp b/src/alps/ngs/make_parameters_from_xml.hpp index e14621ccd..597de04bd 100644 --- a/src/alps/ngs/make_parameters_from_xml.hpp +++ b/src/alps/ngs/make_parameters_from_xml.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/mcobservable.hpp b/src/alps/ngs/mcobservable.hpp index 4a9ed7c9f..c7aec71db 100644 --- a/src/alps/ngs/mcobservable.hpp +++ b/src/alps/ngs/mcobservable.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/mcobservables.hpp b/src/alps/ngs/mcobservables.hpp index 29f5dbc3d..efdf05777 100644 --- a/src/alps/ngs/mcobservables.hpp +++ b/src/alps/ngs/mcobservables.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/mcoptions.hpp b/src/alps/ngs/mcoptions.hpp index fcfe4e858..f2e8ee35d 100644 --- a/src/alps/ngs/mcoptions.hpp +++ b/src/alps/ngs/mcoptions.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/mcresult.hpp b/src/alps/ngs/mcresult.hpp index 2c6fa9c57..2cdd18ff0 100644 --- a/src/alps/ngs/mcresult.hpp +++ b/src/alps/ngs/mcresult.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/mcresults.hpp b/src/alps/ngs/mcresults.hpp index 0b87333c3..861ac677e 100644 --- a/src/alps/ngs/mcresults.hpp +++ b/src/alps/ngs/mcresults.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/mpi.hpp b/src/alps/ngs/mpi.hpp index 2956764b7..01155bd73 100644 --- a/src/alps/ngs/mpi.hpp +++ b/src/alps/ngs/mpi.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/mutex.hpp b/src/alps/ngs/mutex.hpp index c1f93aa45..207f67270 100644 --- a/src/alps/ngs/mutex.hpp +++ b/src/alps/ngs/mutex.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/numeric.hpp b/src/alps/ngs/numeric.hpp index aba77d01d..bba94a300 100644 --- a/src/alps/ngs/numeric.hpp +++ b/src/alps/ngs/numeric.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/numeric/array.hpp b/src/alps/ngs/numeric/array.hpp index 075bc7595..0ebd48d32 100644 --- a/src/alps/ngs/numeric/array.hpp +++ b/src/alps/ngs/numeric/array.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2011 - 2012 by Mario Koenz * * Copyright (C) 2012 - 2014 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/numeric/detail.hpp b/src/alps/ngs/numeric/detail.hpp index f60b85146..0bf381ff1 100644 --- a/src/alps/ngs/numeric/detail.hpp +++ b/src/alps/ngs/numeric/detail.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2011 - 2012 by Mario Koenz * * Copyright (C) 2012 - 2014 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/numeric/inf.hpp b/src/alps/ngs/numeric/inf.hpp index dd9f2a82f..3ee1b6615 100644 --- a/src/alps/ngs/numeric/inf.hpp +++ b/src/alps/ngs/numeric/inf.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2011 - 2012 by Mario Koenz * * Copyright (C) 2012 - 2014 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/numeric/multi_array.hpp b/src/alps/ngs/numeric/multi_array.hpp index cd89ed770..6207f022b 100644 --- a/src/alps/ngs/numeric/multi_array.hpp +++ b/src/alps/ngs/numeric/multi_array.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2014 by Jan Gukelberger * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/numeric/vector.hpp b/src/alps/ngs/numeric/vector.hpp index 3fc6675a8..c57ac23ac 100644 --- a/src/alps/ngs/numeric/vector.hpp +++ b/src/alps/ngs/numeric/vector.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2011 - 2012 by Mario Koenz * * Copyright (C) 2012 - 2014 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/observablewrappers.hpp b/src/alps/ngs/observablewrappers.hpp index 9426016b1..458997ad3 100644 --- a/src/alps/ngs/observablewrappers.hpp +++ b/src/alps/ngs/observablewrappers.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/params.hpp b/src/alps/ngs/params.hpp index 8aa7b531e..674f771d3 100644 --- a/src/alps/ngs/params.hpp +++ b/src/alps/ngs/params.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/parapack/clone.h b/src/alps/ngs/parapack/clone.h index fda3122ce..034027a03 100644 --- a/src/alps/ngs/parapack/clone.h +++ b/src/alps/ngs/parapack/clone.h @@ -10,23 +10,8 @@ * Tatsuya Sakashita , * Yuichi Motoyama * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/ngs/parapack/clone_info.h b/src/alps/ngs/parapack/clone_info.h index a3cfa0570..84549224d 100644 --- a/src/alps/ngs/parapack/clone_info.h +++ b/src/alps/ngs/parapack/clone_info.h @@ -10,23 +10,8 @@ * Tatsuya Sakashita , * Yuichi Motoyama * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/ngs/parapack/clone_info_p.h b/src/alps/ngs/parapack/clone_info_p.h index 55671fd71..374608544 100644 --- a/src/alps/ngs/parapack/clone_info_p.h +++ b/src/alps/ngs/parapack/clone_info_p.h @@ -10,23 +10,8 @@ * Tatsuya Sakashita , * Yuichi Motoyama * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/ngs/parapack/clone_proxy.h b/src/alps/ngs/parapack/clone_proxy.h index 49ee8d1d0..fd6854ba5 100644 --- a/src/alps/ngs/parapack/clone_proxy.h +++ b/src/alps/ngs/parapack/clone_proxy.h @@ -10,23 +10,8 @@ * Tatsuya Sakashita , * Yuichi Motoyama * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/ngs/parapack/job.h b/src/alps/ngs/parapack/job.h index cf007138b..c6a8ace5c 100644 --- a/src/alps/ngs/parapack/job.h +++ b/src/alps/ngs/parapack/job.h @@ -10,23 +10,8 @@ * Tatsuya Sakashita , * Yuichi Motoyama * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/ngs/parapack/job_p.h b/src/alps/ngs/parapack/job_p.h index ccc01d957..da4eea320 100644 --- a/src/alps/ngs/parapack/job_p.h +++ b/src/alps/ngs/parapack/job_p.h @@ -10,23 +10,8 @@ * Tatsuya Sakashita , * Yuichi Motoyama * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/ngs/parapack/params_p.h b/src/alps/ngs/parapack/params_p.h index ec099339f..61b5e4559 100644 --- a/src/alps/ngs/parapack/params_p.h +++ b/src/alps/ngs/parapack/params_p.h @@ -10,23 +10,8 @@ * Tatsuya Sakashita , * Yuichi Motoyama * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/ngs/parapack/parapack.h b/src/alps/ngs/parapack/parapack.h index c3c8c422f..da0f46cc9 100644 --- a/src/alps/ngs/parapack/parapack.h +++ b/src/alps/ngs/parapack/parapack.h @@ -10,23 +10,8 @@ * Tatsuya Sakashita , * Yuichi Motoyama * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/ngs/parapack/simulation_p.h b/src/alps/ngs/parapack/simulation_p.h index f693ee9ab..9d7a488fd 100644 --- a/src/alps/ngs/parapack/simulation_p.h +++ b/src/alps/ngs/parapack/simulation_p.h @@ -10,23 +10,8 @@ * Tatsuya Sakashita , * Yuichi Motoyama * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/ngs/parapack/worker_factory.h b/src/alps/ngs/parapack/worker_factory.h index 02a87e557..fe5be4d89 100644 --- a/src/alps/ngs/parapack/worker_factory.h +++ b/src/alps/ngs/parapack/worker_factory.h @@ -10,23 +10,8 @@ * Tatsuya Sakashita , * Yuichi Motoyama * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/ngs/python/accumulator.cpp b/src/alps/ngs/python/accumulator.cpp index 1ae42a7e3..62d1d513f 100644 --- a/src/alps/ngs/python/accumulator.cpp +++ b/src/alps/ngs/python/accumulator.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/python/api.cpp b/src/alps/ngs/python/api.cpp index 35cd0406b..fbfb6488f 100644 --- a/src/alps/ngs/python/api.cpp +++ b/src/alps/ngs/python/api.cpp @@ -7,23 +7,8 @@ * Copyright (C) 2010 - 2011 by Lukas Gamper * * Matthias Troyer * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/python/hdf5.cpp b/src/alps/ngs/python/hdf5.cpp index fe50eec0e..fd0a206c2 100644 --- a/src/alps/ngs/python/hdf5.cpp +++ b/src/alps/ngs/python/hdf5.cpp @@ -7,23 +7,8 @@ * Copyright (C) 2010 - 2012 by Lukas Gamper * * Matthias Troyer * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/python/mcbase.cpp b/src/alps/ngs/python/mcbase.cpp index 5f0473d48..717535e35 100644 --- a/src/alps/ngs/python/mcbase.cpp +++ b/src/alps/ngs/python/mcbase.cpp @@ -7,23 +7,8 @@ * Copyright (C) 2010 - 2011 by Lukas Gamper * * Matthias Troyer * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/python/observable.cpp b/src/alps/ngs/python/observable.cpp index c7fad1324..8cc2e5f8b 100644 --- a/src/alps/ngs/python/observable.cpp +++ b/src/alps/ngs/python/observable.cpp @@ -7,23 +7,8 @@ * Copyright (C) 2010 - 2011 by Lukas Gamper * * Matthias Troyer * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/python/observables.cpp b/src/alps/ngs/python/observables.cpp index d92e3a119..fd542ba09 100644 --- a/src/alps/ngs/python/observables.cpp +++ b/src/alps/ngs/python/observables.cpp @@ -7,23 +7,8 @@ * Copyright (C) 2010 - 2011 by Lukas Gamper * * Matthias Troyer * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/python/params.cpp b/src/alps/ngs/python/params.cpp index 2b4d62216..e4f2e733e 100644 --- a/src/alps/ngs/python/params.cpp +++ b/src/alps/ngs/python/params.cpp @@ -7,23 +7,8 @@ * Copyright (C) 2010 - 2011 by Lukas Gamper * * Matthias Troyer * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/python/random01.cpp b/src/alps/ngs/python/random01.cpp index 7abdec449..1c3fc2b64 100644 --- a/src/alps/ngs/python/random01.cpp +++ b/src/alps/ngs/python/random01.cpp @@ -7,23 +7,8 @@ * Copyright (C) 2010 - 2013 by Lukas Gamper * * Matthias Troyer * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/python/result.cpp b/src/alps/ngs/python/result.cpp index 934b6534f..996d7aa10 100644 --- a/src/alps/ngs/python/result.cpp +++ b/src/alps/ngs/python/result.cpp @@ -7,23 +7,8 @@ * Copyright (C) 2010 - 2011 by Lukas Gamper * * Matthias Troyer * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/python/results.cpp b/src/alps/ngs/python/results.cpp index d45dda760..429c30e83 100644 --- a/src/alps/ngs/python/results.cpp +++ b/src/alps/ngs/python/results.cpp @@ -7,23 +7,8 @@ * Copyright (C) 2010 - 2011 by Lukas Gamper * * Matthias Troyer * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/random01.hpp b/src/alps/ngs/random01.hpp index 19cf256b0..76d364bb6 100644 --- a/src/alps/ngs/random01.hpp +++ b/src/alps/ngs/random01.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2010 - 2013 by Lukas Gamper * * Matthias Troyer * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/result.hpp b/src/alps/ngs/result.hpp index e7f80a54b..90366f8b5 100644 --- a/src/alps/ngs/result.hpp +++ b/src/alps/ngs/result.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/scheduler/proto/controlthreadsim.hpp b/src/alps/ngs/scheduler/proto/controlthreadsim.hpp index 8b7df606a..80ef8074b 100644 --- a/src/alps/ngs/scheduler/proto/controlthreadsim.hpp +++ b/src/alps/ngs/scheduler/proto/controlthreadsim.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/scheduler/proto/mcbase.hpp b/src/alps/ngs/scheduler/proto/mcbase.hpp index d2d194cd3..1114b9009 100644 --- a/src/alps/ngs/scheduler/proto/mcbase.hpp +++ b/src/alps/ngs/scheduler/proto/mcbase.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/scheduler/proto/mpisim.hpp b/src/alps/ngs/scheduler/proto/mpisim.hpp index 1e3cdd62a..6e3d73f7b 100644 --- a/src/alps/ngs/scheduler/proto/mpisim.hpp +++ b/src/alps/ngs/scheduler/proto/mpisim.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/scheduler/proto/mpisim_ulfm.hpp b/src/alps/ngs/scheduler/proto/mpisim_ulfm.hpp index f769593a9..3d3b1070b 100644 --- a/src/alps/ngs/scheduler/proto/mpisim_ulfm.hpp +++ b/src/alps/ngs/scheduler/proto/mpisim_ulfm.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2010 - 2013 by Lukas Gamper * * Donjan Rdoic * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/scheduler/proto/tcpserver.hpp b/src/alps/ngs/scheduler/proto/tcpserver.hpp index 84b676ed5..a33d60c91 100644 --- a/src/alps/ngs/scheduler/proto/tcpserver.hpp +++ b/src/alps/ngs/scheduler/proto/tcpserver.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/scheduler/tcpserver.hpp b/src/alps/ngs/scheduler/tcpserver.hpp index 84b676ed5..a33d60c91 100644 --- a/src/alps/ngs/scheduler/tcpserver.hpp +++ b/src/alps/ngs/scheduler/tcpserver.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/short_print.hpp b/src/alps/ngs/short_print.hpp index 24bdcd93e..fe420ea35 100644 --- a/src/alps/ngs/short_print.hpp +++ b/src/alps/ngs/short_print.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/signal.hpp b/src/alps/ngs/signal.hpp index 4d8acd051..d999177cf 100644 --- a/src/alps/ngs/signal.hpp +++ b/src/alps/ngs/signal.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/sleep.hpp b/src/alps/ngs/sleep.hpp index 01f08c5b7..c911af6a2 100644 --- a/src/alps/ngs/sleep.hpp +++ b/src/alps/ngs/sleep.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/stacktrace.hpp b/src/alps/ngs/stacktrace.hpp index 8defd4e3b..de1ac3b10 100644 --- a/src/alps/ngs/stacktrace.hpp +++ b/src/alps/ngs/stacktrace.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/stringify.hpp b/src/alps/ngs/stringify.hpp index 61643dc4a..ba81afd13 100644 --- a/src/alps/ngs/stringify.hpp +++ b/src/alps/ngs/stringify.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/thread_exceptions.hpp b/src/alps/ngs/thread_exceptions.hpp index 9402b4516..6a02a7744 100644 --- a/src/alps/ngs/thread_exceptions.hpp +++ b/src/alps/ngs/thread_exceptions.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/ngs/ulfm.hpp b/src/alps/ngs/ulfm.hpp index 992e763e6..4b757dd18 100644 --- a/src/alps/ngs/ulfm.hpp +++ b/src/alps/ngs/ulfm.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2012-2013 Donjan Rodic * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/numeric/abs2.hpp b/src/alps/numeric/abs2.hpp index daa7b312f..ca6f1030d 100644 --- a/src/alps/numeric/abs2.hpp +++ b/src/alps/numeric/abs2.hpp @@ -7,23 +7,8 @@ * Copyright (C) 1999-2010 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/numeric/accumulate_if.hpp b/src/alps/numeric/accumulate_if.hpp index a4fb7fc4e..a6f1bd58d 100644 --- a/src/alps/numeric/accumulate_if.hpp +++ b/src/alps/numeric/accumulate_if.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2010 by Ping Nang Ma , * Matthias Troyer , * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/numeric/binomial.hpp b/src/alps/numeric/binomial.hpp index 787718593..8eed33644 100644 --- a/src/alps/numeric/binomial.hpp +++ b/src/alps/numeric/binomial.hpp @@ -7,23 +7,8 @@ * Copyright (C) 1999-2010 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/numeric/checked_divide.hpp b/src/alps/numeric/checked_divide.hpp index a1a53b11b..e744c9641 100644 --- a/src/alps/numeric/checked_divide.hpp +++ b/src/alps/numeric/checked_divide.hpp @@ -9,23 +9,8 @@ * Andreas Laeuchli , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/numeric/conj.hpp b/src/alps/numeric/conj.hpp index bc38b46c6..fc5481c02 100644 --- a/src/alps/numeric/conj.hpp +++ b/src/alps/numeric/conj.hpp @@ -8,23 +8,8 @@ * Synge Todo , * Andreas Hehn * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/numeric/deprecated/vector.hpp b/src/alps/numeric/deprecated/vector.hpp index b1a47025a..27bc1f1d9 100644 --- a/src/alps/numeric/deprecated/vector.hpp +++ b/src/alps/numeric/deprecated/vector.hpp @@ -8,23 +8,8 @@ * Brigitte Surer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/numeric/detail/deprecated/blasheader.hpp b/src/alps/numeric/detail/deprecated/blasheader.hpp index 116d3add3..f9d34ef68 100644 --- a/src/alps/numeric/detail/deprecated/blasheader.hpp +++ b/src/alps/numeric/detail/deprecated/blasheader.hpp @@ -7,23 +7,8 @@ * Emanuel Gull , * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/numeric/detail/deprecated/blasmacros.h b/src/alps/numeric/detail/deprecated/blasmacros.h index e086244ee..fc4b2bec2 100644 --- a/src/alps/numeric/detail/deprecated/blasmacros.h +++ b/src/alps/numeric/detail/deprecated/blasmacros.h @@ -6,23 +6,8 @@ * Copyright (C) 2010 Matthias Troyer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/numeric/detail/deprecated/general_matrix.hpp b/src/alps/numeric/detail/deprecated/general_matrix.hpp index cd8ac666d..a9cd6c335 100644 --- a/src/alps/numeric/detail/deprecated/general_matrix.hpp +++ b/src/alps/numeric/detail/deprecated/general_matrix.hpp @@ -8,23 +8,8 @@ * Brigitte Surer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/numeric/detail/deprecated/matrix.hpp b/src/alps/numeric/detail/deprecated/matrix.hpp index 82117c453..99019572f 100644 --- a/src/alps/numeric/detail/deprecated/matrix.hpp +++ b/src/alps/numeric/detail/deprecated/matrix.hpp @@ -8,23 +8,8 @@ * Brigitte Surer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/numeric/detail/deprecated/vector.hpp b/src/alps/numeric/detail/deprecated/vector.hpp index 85740e6c2..30ee15d0a 100644 --- a/src/alps/numeric/detail/deprecated/vector.hpp +++ b/src/alps/numeric/detail/deprecated/vector.hpp @@ -8,23 +8,8 @@ * Brigitte Surer * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/numeric/diagonal_matrix.hpp b/src/alps/numeric/diagonal_matrix.hpp index ea4a4acf3..692fdb038 100644 --- a/src/alps/numeric/diagonal_matrix.hpp +++ b/src/alps/numeric/diagonal_matrix.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/numeric/double2int.hpp b/src/alps/numeric/double2int.hpp index ad81f03fe..adbc3b3e1 100644 --- a/src/alps/numeric/double2int.hpp +++ b/src/alps/numeric/double2int.hpp @@ -7,23 +7,8 @@ * Copyright (C) 1999-2010 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/numeric/fourier.hpp b/src/alps/numeric/fourier.hpp index c16706126..5e6080b2a 100644 --- a/src/alps/numeric/fourier.hpp +++ b/src/alps/numeric/fourier.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2010 by Ping Nang Ma , * Matthias Troyer , * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/numeric/functional.hpp b/src/alps/numeric/functional.hpp index e3352a25d..9c030f8ad 100644 --- a/src/alps/numeric/functional.hpp +++ b/src/alps/numeric/functional.hpp @@ -7,23 +7,8 @@ * Copyright (C) 1999-2010 by Matthias Troyer , * Lukas Gamper * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/numeric/imag.hpp b/src/alps/numeric/imag.hpp index 71a09d9cd..f9f6737cb 100644 --- a/src/alps/numeric/imag.hpp +++ b/src/alps/numeric/imag.hpp @@ -6,23 +6,8 @@ * * Copyright (C) 1999-2010 by Bela Bauer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/numeric/is_equal.hpp b/src/alps/numeric/is_equal.hpp index cbb03707a..7ad901376 100644 --- a/src/alps/numeric/is_equal.hpp +++ b/src/alps/numeric/is_equal.hpp @@ -7,23 +7,8 @@ * Copyright (C) 1999-2010 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/numeric/is_negative.hpp b/src/alps/numeric/is_negative.hpp index 83611b509..ac298bdc6 100644 --- a/src/alps/numeric/is_negative.hpp +++ b/src/alps/numeric/is_negative.hpp @@ -7,23 +7,8 @@ * Copyright (C) 1999-2010 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/numeric/is_nonzero.hpp b/src/alps/numeric/is_nonzero.hpp index c0d3b7087..2248a7dd8 100644 --- a/src/alps/numeric/is_nonzero.hpp +++ b/src/alps/numeric/is_nonzero.hpp @@ -7,23 +7,8 @@ * Copyright (C) 1999-2010 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/numeric/is_positive.hpp b/src/alps/numeric/is_positive.hpp index d67d6d0a5..41c531f4e 100644 --- a/src/alps/numeric/is_positive.hpp +++ b/src/alps/numeric/is_positive.hpp @@ -7,23 +7,8 @@ * Copyright (C) 1999-2010 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/numeric/is_zero.hpp b/src/alps/numeric/is_zero.hpp index 0dda432ae..0630ca13e 100644 --- a/src/alps/numeric/is_zero.hpp +++ b/src/alps/numeric/is_zero.hpp @@ -7,23 +7,8 @@ * Copyright (C) 1999-2010 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/numeric/isinf.hpp b/src/alps/numeric/isinf.hpp index 0537b68ed..0ef19309b 100644 --- a/src/alps/numeric/isinf.hpp +++ b/src/alps/numeric/isinf.hpp @@ -7,23 +7,8 @@ * Copyright (C) 1999-2011 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/numeric/isnan.hpp b/src/alps/numeric/isnan.hpp index d0b40b565..cbc6de492 100644 --- a/src/alps/numeric/isnan.hpp +++ b/src/alps/numeric/isnan.hpp @@ -7,23 +7,8 @@ * Copyright (C) 1999-2011 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/numeric/matrix.hpp b/src/alps/numeric/matrix.hpp index 15a243fa0..d2e6aa983 100644 --- a/src/alps/numeric/matrix.hpp +++ b/src/alps/numeric/matrix.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/numeric/matrix/algorithms.hpp b/src/alps/numeric/matrix/algorithms.hpp index c78350a8c..7a6f6b860 100644 --- a/src/alps/numeric/matrix/algorithms.hpp +++ b/src/alps/numeric/matrix/algorithms.hpp @@ -9,23 +9,8 @@ * Michele Dolfi * * Tim Ewart * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/numeric/matrix/column_view.hpp b/src/alps/numeric/matrix/column_view.hpp index da70acdc5..f7463c42b 100644 --- a/src/alps/numeric/matrix/column_view.hpp +++ b/src/alps/numeric/matrix/column_view.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2013 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #ifndef ALPS_NUMERIC_MATRIX_COLUMN_VIEW_HPP diff --git a/src/alps/numeric/matrix/conj.hpp b/src/alps/numeric/matrix/conj.hpp index c1c45ec9f..1de25b445 100644 --- a/src/alps/numeric/matrix/conj.hpp +++ b/src/alps/numeric/matrix/conj.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/numeric/matrix/detail/auto_deduce_multiply_return_type.hpp b/src/alps/numeric/matrix/detail/auto_deduce_multiply_return_type.hpp index 4a3247279..1419491a1 100644 --- a/src/alps/numeric/matrix/detail/auto_deduce_multiply_return_type.hpp +++ b/src/alps/numeric/matrix/detail/auto_deduce_multiply_return_type.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2013 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/numeric/matrix/detail/auto_deduce_plus_return_type.hpp b/src/alps/numeric/matrix/detail/auto_deduce_plus_return_type.hpp index 6a63d7747..1b61d8ff1 100644 --- a/src/alps/numeric/matrix/detail/auto_deduce_plus_return_type.hpp +++ b/src/alps/numeric/matrix/detail/auto_deduce_plus_return_type.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2013 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/numeric/matrix/detail/blasmacros.hpp b/src/alps/numeric/matrix/detail/blasmacros.hpp index 7d48293c5..30506e3ec 100644 --- a/src/alps/numeric/matrix/detail/blasmacros.hpp +++ b/src/alps/numeric/matrix/detail/blasmacros.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/numeric/matrix/detail/column_view_adaptor.hpp b/src/alps/numeric/matrix/detail/column_view_adaptor.hpp index 05565ba11..621eeb805 100644 --- a/src/alps/numeric/matrix/detail/column_view_adaptor.hpp +++ b/src/alps/numeric/matrix/detail/column_view_adaptor.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2013 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #ifndef ALPS_NUMERIC_MATRIX_COLUMN_VIEW_ADAPTOR_HPP diff --git a/src/alps/numeric/matrix/detail/debug_output.hpp b/src/alps/numeric/matrix/detail/debug_output.hpp index 3c0d3f8bb..077e7d984 100644 --- a/src/alps/numeric/matrix/detail/debug_output.hpp +++ b/src/alps/numeric/matrix/detail/debug_output.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2013 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #ifndef ALPS_NUMERIC_MATRIX_DETAIL_DEBUG_OUTPUT_HPP diff --git a/src/alps/numeric/matrix/detail/matrix_adaptor.hpp b/src/alps/numeric/matrix/detail/matrix_adaptor.hpp index 303162145..4e6df9520 100644 --- a/src/alps/numeric/matrix/detail/matrix_adaptor.hpp +++ b/src/alps/numeric/matrix/detail/matrix_adaptor.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/numeric/matrix/detail/print_matrix.hpp b/src/alps/numeric/matrix/detail/print_matrix.hpp index 562bb7f2b..9d86d5fb0 100644 --- a/src/alps/numeric/matrix/detail/print_matrix.hpp +++ b/src/alps/numeric/matrix/detail/print_matrix.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2013 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #ifndef ALPS_NUMERIC_MATRIX_DETAIL_PRINT_MATRIX_HPP diff --git a/src/alps/numeric/matrix/detail/print_vector.hpp b/src/alps/numeric/matrix/detail/print_vector.hpp index 7b2a06d28..b04da0d59 100644 --- a/src/alps/numeric/matrix/detail/print_vector.hpp +++ b/src/alps/numeric/matrix/detail/print_vector.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2013 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #ifndef ALPS_NUMERIC_MATRIX_DETAIL_PRINT_VECTOR_HPP diff --git a/src/alps/numeric/matrix/detail/transpose_view_adaptor.hpp b/src/alps/numeric/matrix/detail/transpose_view_adaptor.hpp index 4aaee1a9d..b18e31669 100644 --- a/src/alps/numeric/matrix/detail/transpose_view_adaptor.hpp +++ b/src/alps/numeric/matrix/detail/transpose_view_adaptor.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/numeric/matrix/detail/vector_adaptor.hpp b/src/alps/numeric/matrix/detail/vector_adaptor.hpp index c280020e2..ec825de55 100644 --- a/src/alps/numeric/matrix/detail/vector_adaptor.hpp +++ b/src/alps/numeric/matrix/detail/vector_adaptor.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/numeric/matrix/entity.hpp b/src/alps/numeric/matrix/entity.hpp index a28428c22..2df838257 100644 --- a/src/alps/numeric/matrix/entity.hpp +++ b/src/alps/numeric/matrix/entity.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2013 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #ifndef ALPS_NUMERIC_MATRIX_ENTITY_HPP diff --git a/src/alps/numeric/matrix/exchange_value_type.hpp b/src/alps/numeric/matrix/exchange_value_type.hpp index 2d23a1b0c..a7123774c 100644 --- a/src/alps/numeric/matrix/exchange_value_type.hpp +++ b/src/alps/numeric/matrix/exchange_value_type.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2013 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #ifndef ALPS_NUMERIC_MATRIX_EXCHANGE_VALUE_TYPE_HPP diff --git a/src/alps/numeric/matrix/gemm.hpp b/src/alps/numeric/matrix/gemm.hpp index af4b3ed46..1aebb8508 100644 --- a/src/alps/numeric/matrix/gemm.hpp +++ b/src/alps/numeric/matrix/gemm.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2013 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #ifndef ALPS_NUMERIC_MATRIX_GEMM_HPP diff --git a/src/alps/numeric/matrix/gemv.hpp b/src/alps/numeric/matrix/gemv.hpp index a07d90ccf..82d9141ed 100644 --- a/src/alps/numeric/matrix/gemv.hpp +++ b/src/alps/numeric/matrix/gemv.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2013 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #ifndef ALPS_NUMERIC_MATRIX_GEMV_HPP diff --git a/src/alps/numeric/matrix/is_blas_dispatchable.hpp b/src/alps/numeric/matrix/is_blas_dispatchable.hpp index 05bb62806..be9eb5003 100644 --- a/src/alps/numeric/matrix/is_blas_dispatchable.hpp +++ b/src/alps/numeric/matrix/is_blas_dispatchable.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2013 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #ifndef ALPS_NUMERIC_IS_BLAS_DISPATCHABLE_HPP diff --git a/src/alps/numeric/matrix/matrix.hpp b/src/alps/numeric/matrix/matrix.hpp index 2a5f75a8f..bdcca0ca5 100644 --- a/src/alps/numeric/matrix/matrix.hpp +++ b/src/alps/numeric/matrix/matrix.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/numeric/matrix/matrix.ipp b/src/alps/numeric/matrix/matrix.ipp index 00d154c94..9ada7d081 100644 --- a/src/alps/numeric/matrix/matrix.ipp +++ b/src/alps/numeric/matrix/matrix.ipp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/numeric/matrix/matrix_concept_archetype.hpp b/src/alps/numeric/matrix/matrix_concept_archetype.hpp index e48a10fd6..28da7f837 100644 --- a/src/alps/numeric/matrix/matrix_concept_archetype.hpp +++ b/src/alps/numeric/matrix/matrix_concept_archetype.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2013 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #ifndef ALPS_NUMERIC_MATRIX_MATRIX_CONCEPT_ARCHETYPE_HPP diff --git a/src/alps/numeric/matrix/matrix_concept_check.hpp b/src/alps/numeric/matrix/matrix_concept_check.hpp index 80b910048..85021d8a9 100644 --- a/src/alps/numeric/matrix/matrix_concept_check.hpp +++ b/src/alps/numeric/matrix/matrix_concept_check.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/numeric/matrix/matrix_element_iterator.hpp b/src/alps/numeric/matrix/matrix_element_iterator.hpp index adf54d060..41914ac75 100644 --- a/src/alps/numeric/matrix/matrix_element_iterator.hpp +++ b/src/alps/numeric/matrix/matrix_element_iterator.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/numeric/matrix/matrix_interface.hpp b/src/alps/numeric/matrix/matrix_interface.hpp index f25c4b433..3fe908e9d 100644 --- a/src/alps/numeric/matrix/matrix_interface.hpp +++ b/src/alps/numeric/matrix/matrix_interface.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/numeric/matrix/matrix_traits.hpp b/src/alps/numeric/matrix/matrix_traits.hpp index 757b21601..043b2c27c 100644 --- a/src/alps/numeric/matrix/matrix_traits.hpp +++ b/src/alps/numeric/matrix/matrix_traits.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/numeric/matrix/operators/multiply.hpp b/src/alps/numeric/matrix/operators/multiply.hpp index 0ba3cf716..210e12c54 100644 --- a/src/alps/numeric/matrix/operators/multiply.hpp +++ b/src/alps/numeric/matrix/operators/multiply.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2013 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #ifndef ALPS_NUMERIC_MATRIX_OPERATORS_MULTIPLY_HPP diff --git a/src/alps/numeric/matrix/operators/multiply_matrix.hpp b/src/alps/numeric/matrix/operators/multiply_matrix.hpp index a1fcd82af..6ca18b8f9 100644 --- a/src/alps/numeric/matrix/operators/multiply_matrix.hpp +++ b/src/alps/numeric/matrix/operators/multiply_matrix.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2013 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #ifndef ALPS_NUMERIC_MATRIX_OPERATORS_MULTIPLY_MATRIX_HPP diff --git a/src/alps/numeric/matrix/operators/multiply_scalar.hpp b/src/alps/numeric/matrix/operators/multiply_scalar.hpp index 638c81945..841e88eb3 100644 --- a/src/alps/numeric/matrix/operators/multiply_scalar.hpp +++ b/src/alps/numeric/matrix/operators/multiply_scalar.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2013 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/numeric/matrix/operators/op_assign.hpp b/src/alps/numeric/matrix/operators/op_assign.hpp index 8f1858c00..cb8f6f1aa 100644 --- a/src/alps/numeric/matrix/operators/op_assign.hpp +++ b/src/alps/numeric/matrix/operators/op_assign.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2013 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #ifndef ALPS_NUMERIC_OPERATORS_OP_ASSIGN_HPP diff --git a/src/alps/numeric/matrix/operators/op_assign_matrix.hpp b/src/alps/numeric/matrix/operators/op_assign_matrix.hpp index c62273ff4..55b0b2a56 100644 --- a/src/alps/numeric/matrix/operators/op_assign_matrix.hpp +++ b/src/alps/numeric/matrix/operators/op_assign_matrix.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2013 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #ifndef ALPS_NUMERIC_OPERATORS_OP_ASSIGN_MATRIX_HPP diff --git a/src/alps/numeric/matrix/operators/op_assign_vector.hpp b/src/alps/numeric/matrix/operators/op_assign_vector.hpp index c4451b6aa..9104ce8e9 100644 --- a/src/alps/numeric/matrix/operators/op_assign_vector.hpp +++ b/src/alps/numeric/matrix/operators/op_assign_vector.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2013 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #ifndef ALPS_NUMERIC_OPERATORS_OP_ASSIGN_VECTOR_HPP diff --git a/src/alps/numeric/matrix/operators/plus_minus.hpp b/src/alps/numeric/matrix/operators/plus_minus.hpp index 0b3ab33b1..a8b492c1e 100644 --- a/src/alps/numeric/matrix/operators/plus_minus.hpp +++ b/src/alps/numeric/matrix/operators/plus_minus.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2013 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #ifndef ALPS_NUMERIC_MATRIX_OPERATORS_PLUS_MINUS_HPP diff --git a/src/alps/numeric/matrix/resizable_matrix_concept_check.hpp b/src/alps/numeric/matrix/resizable_matrix_concept_check.hpp index f5cb432d8..8b1ce8147 100644 --- a/src/alps/numeric/matrix/resizable_matrix_concept_check.hpp +++ b/src/alps/numeric/matrix/resizable_matrix_concept_check.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/numeric/matrix/resizable_matrix_interface.hpp b/src/alps/numeric/matrix/resizable_matrix_interface.hpp index cf935df7f..c0b26e84c 100644 --- a/src/alps/numeric/matrix/resizable_matrix_interface.hpp +++ b/src/alps/numeric/matrix/resizable_matrix_interface.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/numeric/matrix/scalar_product.hpp b/src/alps/numeric/matrix/scalar_product.hpp index a33b8a188..5eadd1a2d 100644 --- a/src/alps/numeric/matrix/scalar_product.hpp +++ b/src/alps/numeric/matrix/scalar_product.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2013 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #ifndef ALPS_NUMERIC_MATRIX_SCALAR_PRODUCT_HPP diff --git a/src/alps/numeric/matrix/strided_iterator.hpp b/src/alps/numeric/matrix/strided_iterator.hpp index cfa3f2ddd..04932a079 100644 --- a/src/alps/numeric/matrix/strided_iterator.hpp +++ b/src/alps/numeric/matrix/strided_iterator.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/numeric/matrix/transpose.hpp b/src/alps/numeric/matrix/transpose.hpp index 9b6014568..efe1fd949 100644 --- a/src/alps/numeric/matrix/transpose.hpp +++ b/src/alps/numeric/matrix/transpose.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2012 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/numeric/matrix/transpose_view.hpp b/src/alps/numeric/matrix/transpose_view.hpp index e3b110723..d02cbb83c 100644 --- a/src/alps/numeric/matrix/transpose_view.hpp +++ b/src/alps/numeric/matrix/transpose_view.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2012 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/numeric/matrix/ublas_sparse_functions.hpp b/src/alps/numeric/matrix/ublas_sparse_functions.hpp index 827c0fc24..600fcc787 100644 --- a/src/alps/numeric/matrix/ublas_sparse_functions.hpp +++ b/src/alps/numeric/matrix/ublas_sparse_functions.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2013 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #ifndef ALPS_NUMERIC_MATRIX_UBLAS_SPARSE_FUNCTIONS_HPP diff --git a/src/alps/numeric/matrix/vector.hpp b/src/alps/numeric/matrix/vector.hpp index 914c3575b..53af4ca55 100644 --- a/src/alps/numeric/matrix/vector.hpp +++ b/src/alps/numeric/matrix/vector.hpp @@ -9,23 +9,8 @@ * Andreas Hehn * * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/numeric/matrix/vector_interface.hpp b/src/alps/numeric/matrix/vector_interface.hpp index f558433da..4f9df62e7 100644 --- a/src/alps/numeric/matrix/vector_interface.hpp +++ b/src/alps/numeric/matrix/vector_interface.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/numeric/matrix_as_vector.hpp b/src/alps/numeric/matrix_as_vector.hpp index 561a2b202..7b3437baf 100644 --- a/src/alps/numeric/matrix_as_vector.hpp +++ b/src/alps/numeric/matrix_as_vector.hpp @@ -7,23 +7,8 @@ * Copyright (C) 1999-2005 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/numeric/outer_product.hpp b/src/alps/numeric/outer_product.hpp index 5ba3c0252..45cb648fe 100644 --- a/src/alps/numeric/outer_product.hpp +++ b/src/alps/numeric/outer_product.hpp @@ -9,23 +9,8 @@ * Andreas Laeuchli , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/numeric/polynomial.hpp b/src/alps/numeric/polynomial.hpp index 1a36f335a..194a2aa22 100644 --- a/src/alps/numeric/polynomial.hpp +++ b/src/alps/numeric/polynomial.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2010 by Ping Nang Ma , * Matthias Troyer , * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/numeric/real.hpp b/src/alps/numeric/real.hpp index 690fca573..dea714507 100644 --- a/src/alps/numeric/real.hpp +++ b/src/alps/numeric/real.hpp @@ -8,23 +8,8 @@ * Synge Todo , * Andreas Hehn * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/numeric/regression.hpp b/src/alps/numeric/regression.hpp index 7a0f2008b..5c7671097 100644 --- a/src/alps/numeric/regression.hpp +++ b/src/alps/numeric/regression.hpp @@ -6,23 +6,8 @@ * Matthias Troyer , * Maximilian Poprawe * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/numeric/round.hpp b/src/alps/numeric/round.hpp index 969ead80d..9f729ead4 100644 --- a/src/alps/numeric/round.hpp +++ b/src/alps/numeric/round.hpp @@ -7,23 +7,8 @@ * Copyright (C) 1999-2010 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/numeric/scalar_product.hpp b/src/alps/numeric/scalar_product.hpp index 4905b641b..750a2a2c0 100644 --- a/src/alps/numeric/scalar_product.hpp +++ b/src/alps/numeric/scalar_product.hpp @@ -7,23 +7,8 @@ * Copyright (C) 1999-2010 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/numeric/sequence_comparisons.hpp b/src/alps/numeric/sequence_comparisons.hpp index 203dbe860..4c92c2406 100644 --- a/src/alps/numeric/sequence_comparisons.hpp +++ b/src/alps/numeric/sequence_comparisons.hpp @@ -6,23 +6,8 @@ * Matthias Troyer , * Maximilian Poprawe * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/numeric/set_negative_0.hpp b/src/alps/numeric/set_negative_0.hpp index e5660760e..4e3d75e75 100644 --- a/src/alps/numeric/set_negative_0.hpp +++ b/src/alps/numeric/set_negative_0.hpp @@ -9,23 +9,8 @@ * Andreas Laeuchli , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/numeric/special_functions.hpp b/src/alps/numeric/special_functions.hpp index b85bdeae3..6c45e98ff 100644 --- a/src/alps/numeric/special_functions.hpp +++ b/src/alps/numeric/special_functions.hpp @@ -8,23 +8,8 @@ * Lukas Gamper , * Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/numeric/update_minmax.hpp b/src/alps/numeric/update_minmax.hpp index d380d83ab..75a061067 100644 --- a/src/alps/numeric/update_minmax.hpp +++ b/src/alps/numeric/update_minmax.hpp @@ -9,23 +9,8 @@ * Andreas Laeuchli , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/numeric/valarray_functions.hpp b/src/alps/numeric/valarray_functions.hpp index b6d5d11a0..3e52cf7bd 100644 --- a/src/alps/numeric/valarray_functions.hpp +++ b/src/alps/numeric/valarray_functions.hpp @@ -7,23 +7,8 @@ * Copyright (C) 1994-2010 by Ping Nang Ma , * Matthias Troyer , * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/numeric/vector_functions.hpp b/src/alps/numeric/vector_functions.hpp index 2dcf85056..6a6c13e6d 100644 --- a/src/alps/numeric/vector_functions.hpp +++ b/src/alps/numeric/vector_functions.hpp @@ -7,23 +7,8 @@ * Copyright (C) 1994-2010 by Ping Nang Ma , * Matthias Troyer , * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/numeric/vector_valarray_conversion.hpp b/src/alps/numeric/vector_valarray_conversion.hpp index deb550f97..3d11bd495 100644 --- a/src/alps/numeric/vector_valarray_conversion.hpp +++ b/src/alps/numeric/vector_valarray_conversion.hpp @@ -8,23 +8,8 @@ * Matthias Troyer , * Maximilian Poprawe * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/osiris.h b/src/alps/osiris.h index 30c06c66e..9789ad473 100644 --- a/src/alps/osiris.h +++ b/src/alps/osiris.h @@ -7,23 +7,8 @@ * Copyright (C) 2003-2005 by Synge Todo , * Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/osiris/archivedump.h b/src/alps/osiris/archivedump.h index a41644df8..cc2bf3097 100644 --- a/src/alps/osiris/archivedump.h +++ b/src/alps/osiris/archivedump.h @@ -6,23 +6,8 @@ * * Copyright (C) 1994-2005 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/osiris/boost/array.h b/src/alps/osiris/boost/array.h index b0c85e8d8..b00b7e0e4 100644 --- a/src/alps/osiris/boost/array.h +++ b/src/alps/osiris/boost/array.h @@ -7,23 +7,8 @@ * Copyright (C) 1994-2003 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/osiris/boost/ublas.h b/src/alps/osiris/boost/ublas.h index a3d135aa7..98a7c3663 100644 --- a/src/alps/osiris/boost/ublas.h +++ b/src/alps/osiris/boost/ublas.h @@ -7,23 +7,8 @@ * Copyright (C) 1994-2011 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/osiris/buffer.C b/src/alps/osiris/buffer.C index 9b4cd9805..ee3bcdcc1 100644 --- a/src/alps/osiris/buffer.C +++ b/src/alps/osiris/buffer.C @@ -7,23 +7,8 @@ * Copyright (C) 1994-2004 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/osiris/buffer.h b/src/alps/osiris/buffer.h index 6c139aa67..e0c6cb772 100644 --- a/src/alps/osiris/buffer.h +++ b/src/alps/osiris/buffer.h @@ -7,23 +7,8 @@ * Copyright (C) 1994-2004 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/osiris/comm.C b/src/alps/osiris/comm.C index c372fcecb..416063233 100644 --- a/src/alps/osiris/comm.C +++ b/src/alps/osiris/comm.C @@ -7,23 +7,8 @@ * Copyright (C) 1994-2010 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/osiris/comm.h b/src/alps/osiris/comm.h index e03c5031f..bef4ce77b 100644 --- a/src/alps/osiris/comm.h +++ b/src/alps/osiris/comm.h @@ -7,23 +7,8 @@ * Copyright (C) 1994-2009 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/osiris/dump.C b/src/alps/osiris/dump.C index 21f74bc1d..9c33e6ad0 100644 --- a/src/alps/osiris/dump.C +++ b/src/alps/osiris/dump.C @@ -7,23 +7,8 @@ * Copyright (C) 1994-2003 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/osiris/dump.h b/src/alps/osiris/dump.h index 68202ddd6..0049c3088 100644 --- a/src/alps/osiris/dump.h +++ b/src/alps/osiris/dump.h @@ -7,23 +7,8 @@ * Copyright (C) 1994-2009 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/osiris/dumparchive.C b/src/alps/osiris/dumparchive.C index 5c0caf63d..ee48bfc45 100644 --- a/src/alps/osiris/dumparchive.C +++ b/src/alps/osiris/dumparchive.C @@ -7,23 +7,8 @@ * Copyright (C) 2009 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/osiris/dumparchive.h b/src/alps/osiris/dumparchive.h index 4d91d785e..0d6309ad7 100644 --- a/src/alps/osiris/dumparchive.h +++ b/src/alps/osiris/dumparchive.h @@ -7,23 +7,8 @@ * Copyright (C) 1994-2008 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/osiris/mpdump.C b/src/alps/osiris/mpdump.C index 5c5546e8f..781eb03f2 100644 --- a/src/alps/osiris/mpdump.C +++ b/src/alps/osiris/mpdump.C @@ -7,23 +7,8 @@ * Copyright (C) 1994-2010 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/osiris/mpdump.h b/src/alps/osiris/mpdump.h index 4766c013e..56d840454 100644 --- a/src/alps/osiris/mpdump.h +++ b/src/alps/osiris/mpdump.h @@ -7,23 +7,8 @@ * Copyright (C) 1994-2005 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/osiris/process.C b/src/alps/osiris/process.C index e5c60b975..d2f2e969f 100644 --- a/src/alps/osiris/process.C +++ b/src/alps/osiris/process.C @@ -7,23 +7,8 @@ * Copyright (C) 1994-2010 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/osiris/process.h b/src/alps/osiris/process.h index 87c556529..5750976ef 100644 --- a/src/alps/osiris/process.h +++ b/src/alps/osiris/process.h @@ -7,23 +7,8 @@ * Copyright (C) 1994-2005 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/osiris/std/deque.h b/src/alps/osiris/std/deque.h index 5a3ab0986..29ec7395e 100644 --- a/src/alps/osiris/std/deque.h +++ b/src/alps/osiris/std/deque.h @@ -7,23 +7,8 @@ * Copyright (C) 1994-2003 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/osiris/std/impl.h b/src/alps/osiris/std/impl.h index 7b40498f2..fccbca417 100644 --- a/src/alps/osiris/std/impl.h +++ b/src/alps/osiris/std/impl.h @@ -7,23 +7,8 @@ * Copyright (C) 1994-2003 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/osiris/std/list.h b/src/alps/osiris/std/list.h index 61e8599c2..4d3432fd3 100644 --- a/src/alps/osiris/std/list.h +++ b/src/alps/osiris/std/list.h @@ -7,23 +7,8 @@ * Copyright (C) 1994-2003 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/osiris/std/map.h b/src/alps/osiris/std/map.h index d8c22c2eb..b0420567a 100644 --- a/src/alps/osiris/std/map.h +++ b/src/alps/osiris/std/map.h @@ -7,23 +7,8 @@ * Copyright (C) 1994-2003 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/osiris/std/pair.h b/src/alps/osiris/std/pair.h index cc89cf6e1..9f7f95cce 100644 --- a/src/alps/osiris/std/pair.h +++ b/src/alps/osiris/std/pair.h @@ -7,23 +7,8 @@ * Copyright (C) 1994-2003 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/osiris/std/set.h b/src/alps/osiris/std/set.h index 489cf6155..5cefbebf8 100644 --- a/src/alps/osiris/std/set.h +++ b/src/alps/osiris/std/set.h @@ -7,23 +7,8 @@ * Copyright (C) 1994-2003 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/osiris/std/stack.h b/src/alps/osiris/std/stack.h index ffb96827e..e3daab1d7 100644 --- a/src/alps/osiris/std/stack.h +++ b/src/alps/osiris/std/stack.h @@ -6,23 +6,8 @@ * * Copyright (C) 2007 - 2010 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/osiris/std/string.h b/src/alps/osiris/std/string.h index 7b6615eac..42177ab3c 100644 --- a/src/alps/osiris/std/string.h +++ b/src/alps/osiris/std/string.h @@ -7,23 +7,8 @@ * Copyright (C) 1994-2002 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/osiris/std/valarray.h b/src/alps/osiris/std/valarray.h index 654997f81..5b4bca6f4 100644 --- a/src/alps/osiris/std/valarray.h +++ b/src/alps/osiris/std/valarray.h @@ -7,23 +7,8 @@ * Copyright (C) 1994-2003 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/osiris/std/vector.h b/src/alps/osiris/std/vector.h index fbc69eace..71ef21ddd 100644 --- a/src/alps/osiris/std/vector.h +++ b/src/alps/osiris/std/vector.h @@ -7,23 +7,8 @@ * Copyright (C) 1994-2003 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/osiris/xdrcore.C b/src/alps/osiris/xdrcore.C index 149e190f7..f8b985b8e 100644 --- a/src/alps/osiris/xdrcore.C +++ b/src/alps/osiris/xdrcore.C @@ -7,23 +7,8 @@ * This File: * Copyright (C) 2006 by Andreas Laeuchli , * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/osiris/xdrdump.C b/src/alps/osiris/xdrdump.C index ed7f04466..8ac08665c 100644 --- a/src/alps/osiris/xdrdump.C +++ b/src/alps/osiris/xdrdump.C @@ -7,23 +7,8 @@ * Copyright (C) 1994-2009 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/osiris/xdrdump.h b/src/alps/osiris/xdrdump.h index 1023fc910..a2c9a0496 100644 --- a/src/alps/osiris/xdrdump.h +++ b/src/alps/osiris/xdrdump.h @@ -7,23 +7,8 @@ * Copyright (C) 1994-2009 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parameter.h b/src/alps/parameter.h index 92795379e..01fd2d51f 100644 --- a/src/alps/parameter.h +++ b/src/alps/parameter.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2006 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parameter/parameter.C b/src/alps/parameter/parameter.C index 34f688d73..d99f51e0d 100644 --- a/src/alps/parameter/parameter.C +++ b/src/alps/parameter/parameter.C @@ -7,23 +7,8 @@ * Copyright (C) 1994-2006 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parameter/parameter.h b/src/alps/parameter/parameter.h index 84037162d..385497345 100644 --- a/src/alps/parameter/parameter.h +++ b/src/alps/parameter/parameter.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2009 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parameter/parameter_p.h b/src/alps/parameter/parameter_p.h index 6d6b0e81e..f6e80238d 100644 --- a/src/alps/parameter/parameter_p.h +++ b/src/alps/parameter/parameter_p.h @@ -6,23 +6,8 @@ * * Copyright (C) 2006-2009 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parameter/parameterlist.C b/src/alps/parameter/parameterlist.C index b5b876ab5..e53230ca6 100644 --- a/src/alps/parameter/parameterlist.C +++ b/src/alps/parameter/parameterlist.C @@ -7,23 +7,8 @@ * Copyright (C) 1994-2008 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parameter/parameterlist.h b/src/alps/parameter/parameterlist.h index 159cd943d..fee771e81 100644 --- a/src/alps/parameter/parameterlist.h +++ b/src/alps/parameter/parameterlist.h @@ -7,23 +7,8 @@ * Copyright (C) 1994-2009 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parameter/parameterlist_p.h b/src/alps/parameter/parameterlist_p.h index 03976bf6e..123ae953c 100644 --- a/src/alps/parameter/parameterlist_p.h +++ b/src/alps/parameter/parameterlist_p.h @@ -6,23 +6,8 @@ * * Copyright (C) 2006-2009 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parameter/parameters.C b/src/alps/parameter/parameters.C index 23f3e6f3b..44f73806f 100644 --- a/src/alps/parameter/parameters.C +++ b/src/alps/parameter/parameters.C @@ -7,23 +7,8 @@ * Copyright (C) 1994-2008 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parameter/parameters.h b/src/alps/parameter/parameters.h index f8c1377a1..b47a53d7f 100644 --- a/src/alps/parameter/parameters.h +++ b/src/alps/parameter/parameters.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2009 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parameter/parameters_p.h b/src/alps/parameter/parameters_p.h index bf4d47799..41514a409 100644 --- a/src/alps/parameter/parameters_p.h +++ b/src/alps/parameter/parameters_p.h @@ -6,23 +6,8 @@ * * Copyright (C) 2006-2009 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/clone.C b/src/alps/parapack/clone.C index eea0760ed..00b005b68 100644 --- a/src/alps/parapack/clone.C +++ b/src/alps/parapack/clone.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2014 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/clone.h b/src/alps/parapack/clone.h index 6f75f9b8f..3708b8722 100644 --- a/src/alps/parapack/clone.h +++ b/src/alps/parapack/clone.h @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2011 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/clone_info.C b/src/alps/parapack/clone_info.C index 12f638a7b..f1d74c32b 100644 --- a/src/alps/parapack/clone_info.C +++ b/src/alps/parapack/clone_info.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2012 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/clone_info.h b/src/alps/parapack/clone_info.h index f8dca9050..007b381a7 100644 --- a/src/alps/parapack/clone_info.h +++ b/src/alps/parapack/clone_info.h @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/clone_info_p.h b/src/alps/parapack/clone_info_p.h index 08b9bea3e..e554403dd 100644 --- a/src/alps/parapack/clone_info_p.h +++ b/src/alps/parapack/clone_info_p.h @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2008 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/clone_proxy.h b/src/alps/parapack/clone_proxy.h index 3243a7e86..94ac4d779 100644 --- a/src/alps/parapack/clone_proxy.h +++ b/src/alps/parapack/clone_proxy.h @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2011 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/clone_timer.h b/src/alps/parapack/clone_timer.h index 253332e9e..d39ad1f73 100644 --- a/src/alps/parapack/clone_timer.h +++ b/src/alps/parapack/clone_timer.h @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2009 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/exchange.h b/src/alps/parapack/exchange.h index c93d41771..6713094df 100644 --- a/src/alps/parapack/exchange.h +++ b/src/alps/parapack/exchange.h @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2011 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/exchange_multi.h b/src/alps/parapack/exchange_multi.h index 7491d6702..d45798884 100644 --- a/src/alps/parapack/exchange_multi.h +++ b/src/alps/parapack/exchange_multi.h @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2011 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/exp_number.h b/src/alps/parapack/exp_number.h index 7de5b0300..5ca4c7fbd 100644 --- a/src/alps/parapack/exp_number.h +++ b/src/alps/parapack/exp_number.h @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/filelock.C b/src/alps/parapack/filelock.C index 43d319a62..90aeb4ce2 100644 --- a/src/alps/parapack/filelock.C +++ b/src/alps/parapack/filelock.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2009 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/filelock.h b/src/alps/parapack/filelock.h index c13d63709..258cf2900 100644 --- a/src/alps/parapack/filelock.h +++ b/src/alps/parapack/filelock.h @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2008 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/footprint.h b/src/alps/parapack/footprint.h index 57fce4415..c5884c4c0 100644 --- a/src/alps/parapack/footprint.h +++ b/src/alps/parapack/footprint.h @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/integer_range.h b/src/alps/parapack/integer_range.h index 68ea1a888..52997866e 100644 --- a/src/alps/parapack/integer_range.h +++ b/src/alps/parapack/integer_range.h @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2009 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/job.C b/src/alps/parapack/job.C index f16b4d590..6295dc5b3 100644 --- a/src/alps/parapack/job.C +++ b/src/alps/parapack/job.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2013 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/job.h b/src/alps/parapack/job.h index cac2f795c..45cb57f25 100644 --- a/src/alps/parapack/job.h +++ b/src/alps/parapack/job.h @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2013 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/job_p.h b/src/alps/parapack/job_p.h index c697803df..77457f9f6 100644 --- a/src/alps/parapack/job_p.h +++ b/src/alps/parapack/job_p.h @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2009 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/logger.C b/src/alps/parapack/logger.C index 142a47c14..c5d1e6f0e 100644 --- a/src/alps/parapack/logger.C +++ b/src/alps/parapack/logger.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2013 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/logger.h b/src/alps/parapack/logger.h index c40ad4458..c687e1b9e 100644 --- a/src/alps/parapack/logger.h +++ b/src/alps/parapack/logger.h @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2012 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/mc_worker.C b/src/alps/parapack/mc_worker.C index ca2de3d59..65320aefd 100644 --- a/src/alps/parapack/mc_worker.C +++ b/src/alps/parapack/mc_worker.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/mc_worker.h b/src/alps/parapack/mc_worker.h index 69b70e769..de54a1a59 100644 --- a/src/alps/parapack/mc_worker.h +++ b/src/alps/parapack/mc_worker.h @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2013 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/measurement.C b/src/alps/parapack/measurement.C index 5c78a0c2a..82039b7ef 100644 --- a/src/alps/parapack/measurement.C +++ b/src/alps/parapack/measurement.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2008 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/measurement.h b/src/alps/parapack/measurement.h index 5e1fd90d6..3229f2df0 100644 --- a/src/alps/parapack/measurement.h +++ b/src/alps/parapack/measurement.h @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/montecarlo.h b/src/alps/parapack/montecarlo.h index 6a4381f2b..991b083fe 100644 --- a/src/alps/parapack/montecarlo.h +++ b/src/alps/parapack/montecarlo.h @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2009 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/option.C b/src/alps/parapack/option.C index 70e512fdb..d7a3a3113 100644 --- a/src/alps/parapack/option.C +++ b/src/alps/parapack/option.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2013 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/option.h b/src/alps/parapack/option.h index 2fac94b1b..d03f42e9b 100644 --- a/src/alps/parapack/option.h +++ b/src/alps/parapack/option.h @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2013 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/parapack.C b/src/alps/parapack/parapack.C index 6af8af39a..2f162f1ed 100644 --- a/src/alps/parapack/parapack.C +++ b/src/alps/parapack/parapack.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2013 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/parapack.h b/src/alps/parapack/parapack.h index ffb575bbd..02ee61e8a 100644 --- a/src/alps/parapack/parapack.h +++ b/src/alps/parapack/parapack.h @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2013 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/permutation.h b/src/alps/parapack/permutation.h index 954e99190..6d7b9be7f 100644 --- a/src/alps/parapack/permutation.h +++ b/src/alps/parapack/permutation.h @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2008 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/process.h b/src/alps/parapack/process.h index a90548524..58e13ee51 100644 --- a/src/alps/parapack/process.h +++ b/src/alps/parapack/process.h @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/process_impl.C b/src/alps/parapack/process_impl.C index e994d8108..394ab7953 100644 --- a/src/alps/parapack/process_impl.C +++ b/src/alps/parapack/process_impl.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/queue.C b/src/alps/parapack/queue.C index ed8eafe08..d2588769a 100644 --- a/src/alps/parapack/queue.C +++ b/src/alps/parapack/queue.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2009 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/queue.h b/src/alps/parapack/queue.h index 7dc538a23..9e3f3b045 100644 --- a/src/alps/parapack/queue.h +++ b/src/alps/parapack/queue.h @@ -10,23 +10,8 @@ * Tatsuya Sakashita , * Yuichi Motoyama * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/rng_helper.C b/src/alps/parapack/rng_helper.C index 59532cc9a..b13318266 100644 --- a/src/alps/parapack/rng_helper.C +++ b/src/alps/parapack/rng_helper.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2009 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/rng_helper.h b/src/alps/parapack/rng_helper.h index 87fc7f53c..e233281f8 100644 --- a/src/alps/parapack/rng_helper.h +++ b/src/alps/parapack/rng_helper.h @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2009 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/simulation_p.h b/src/alps/parapack/simulation_p.h index ae14104eb..168589271 100644 --- a/src/alps/parapack/simulation_p.h +++ b/src/alps/parapack/simulation_p.h @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2012 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/temperature_scan.h b/src/alps/parapack/temperature_scan.h index 457d36b47..462e8da86 100644 --- a/src/alps/parapack/temperature_scan.h +++ b/src/alps/parapack/temperature_scan.h @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/types.C b/src/alps/parapack/types.C index 5b3efa176..10fe5c898 100644 --- a/src/alps/parapack/types.C +++ b/src/alps/parapack/types.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2011 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/types.h b/src/alps/parapack/types.h index adb364183..55569adf2 100644 --- a/src/alps/parapack/types.h +++ b/src/alps/parapack/types.h @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2013 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/util.C b/src/alps/parapack/util.C index e2663afd1..126861520 100644 --- a/src/alps/parapack/util.C +++ b/src/alps/parapack/util.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2009 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/util.h b/src/alps/parapack/util.h index 14d1ef13d..9501d6c8a 100644 --- a/src/alps/parapack/util.h +++ b/src/alps/parapack/util.h @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2008 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/version.C b/src/alps/parapack/version.C index fcc1e03d0..058610974 100644 --- a/src/alps/parapack/version.C +++ b/src/alps/parapack/version.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/version.h b/src/alps/parapack/version.h index 82c727c87..f5967aa6a 100644 --- a/src/alps/parapack/version.h +++ b/src/alps/parapack/version.h @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/wanglandau.h b/src/alps/parapack/wanglandau.h index 2a7bae3e4..2818d5202 100644 --- a/src/alps/parapack/wanglandau.h +++ b/src/alps/parapack/wanglandau.h @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2011 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/worker.h b/src/alps/parapack/worker.h index c4bbad9aa..705c59cf3 100644 --- a/src/alps/parapack/worker.h +++ b/src/alps/parapack/worker.h @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/worker_factory.C b/src/alps/parapack/worker_factory.C index 9fefcce42..ddc090f1c 100644 --- a/src/alps/parapack/worker_factory.C +++ b/src/alps/parapack/worker_factory.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parapack/worker_factory.h b/src/alps/parapack/worker_factory.h index 1ca1d307e..5b23e0241 100644 --- a/src/alps/parapack/worker_factory.h +++ b/src/alps/parapack/worker_factory.h @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parseargs.cpp b/src/alps/parseargs.cpp index f7d2e8c61..21613a445 100644 --- a/src/alps/parseargs.cpp +++ b/src/alps/parseargs.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2013 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/parseargs.hpp b/src/alps/parseargs.hpp index 30e60e174..97e3dfa5d 100644 --- a/src/alps/parseargs.hpp +++ b/src/alps/parseargs.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2013 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/parser/parser.C b/src/alps/parser/parser.C index 7f4726ddf..0ddc05ca2 100644 --- a/src/alps/parser/parser.C +++ b/src/alps/parser/parser.C @@ -8,23 +8,8 @@ * Synge Todo , * Prakash Dayal * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parser/parser.h b/src/alps/parser/parser.h index 1fc507c0f..0e369a00c 100644 --- a/src/alps/parser/parser.h +++ b/src/alps/parser/parser.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2009 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parser/xmlattributes.C b/src/alps/parser/xmlattributes.C index ad379edc3..522f14600 100644 --- a/src/alps/parser/xmlattributes.C +++ b/src/alps/parser/xmlattributes.C @@ -7,23 +7,8 @@ * Copyright (C) 2001-2009 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parser/xmlattributes.h b/src/alps/parser/xmlattributes.h index b20d83242..3fd78e3c1 100644 --- a/src/alps/parser/xmlattributes.h +++ b/src/alps/parser/xmlattributes.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2009 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parser/xmlhandler.C b/src/alps/parser/xmlhandler.C index bbce7e58d..1cb85cdd5 100644 --- a/src/alps/parser/xmlhandler.C +++ b/src/alps/parser/xmlhandler.C @@ -7,23 +7,8 @@ * Copyright (C) 2001-2006 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parser/xmlhandler.h b/src/alps/parser/xmlhandler.h index 5823f1dbd..ae94d2e94 100644 --- a/src/alps/parser/xmlhandler.h +++ b/src/alps/parser/xmlhandler.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2006 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parser/xmlparser.C b/src/alps/parser/xmlparser.C index 2a1ee5edd..c52c8e3d6 100644 --- a/src/alps/parser/xmlparser.C +++ b/src/alps/parser/xmlparser.C @@ -7,23 +7,8 @@ * Copyright (C) 2001-2004 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parser/xmlparser.h b/src/alps/parser/xmlparser.h index 33e45e632..c5fc1b19f 100644 --- a/src/alps/parser/xmlparser.h +++ b/src/alps/parser/xmlparser.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2003 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parser/xmlstream.C b/src/alps/parser/xmlstream.C index 0f9183b2b..dceb0b665 100644 --- a/src/alps/parser/xmlstream.C +++ b/src/alps/parser/xmlstream.C @@ -6,23 +6,8 @@ * * Copyright (C) 2001-2005 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parser/xmlstream.h b/src/alps/parser/xmlstream.h index de856f9f2..7b3400919 100644 --- a/src/alps/parser/xmlstream.h +++ b/src/alps/parser/xmlstream.h @@ -6,23 +6,8 @@ * * Copyright (C) 2001-2009 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parser/xslt_path.C b/src/alps/parser/xslt_path.C index 6cdc7eed4..350cbd6b3 100644 --- a/src/alps/parser/xslt_path.C +++ b/src/alps/parser/xslt_path.C @@ -7,23 +7,8 @@ * Copyright (C) 2001-2009 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/parser/xslt_path.h b/src/alps/parser/xslt_path.h index 0b46b6766..d65b90535 100644 --- a/src/alps/parser/xslt_path.h +++ b/src/alps/parser/xslt_path.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2009 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/plot.h b/src/alps/plot.h index abf676ca2..bca378709 100644 --- a/src/alps/plot.h +++ b/src/alps/plot.h @@ -8,23 +8,8 @@ * Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/progress_callback.hpp b/src/alps/progress_callback.hpp index 8c8cd2737..72d82a943 100644 --- a/src/alps/progress_callback.hpp +++ b/src/alps/progress_callback.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2012 by Jan Gukelberger * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/python/make_copy.hpp b/src/alps/python/make_copy.hpp index 5f61ee7df..79770bf85 100644 --- a/src/alps/python/make_copy.hpp +++ b/src/alps/python/make_copy.hpp @@ -6,23 +6,8 @@ * * Copyright (C) 2010 by Matthias Troyer , * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/python/numpy_array.cpp b/src/alps/python/numpy_array.cpp index 8beb52618..0bdf11698 100644 --- a/src/alps/python/numpy_array.cpp +++ b/src/alps/python/numpy_array.cpp @@ -8,23 +8,8 @@ * Lukas Gamper , * Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/python/numpy_array.hpp b/src/alps/python/numpy_array.hpp index 1f1a80b26..c98f7f11c 100644 --- a/src/alps/python/numpy_array.hpp +++ b/src/alps/python/numpy_array.hpp @@ -9,23 +9,8 @@ * Matthias Troyer * Michele Dolfi * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/python/numpy_import.hpp b/src/alps/python/numpy_import.hpp index 3e9ec0a2d..44df32a30 100644 --- a/src/alps/python/numpy_import.hpp +++ b/src/alps/python/numpy_import.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2010 - 2016 by Lukas Gamper * * Jan Gukelberger * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/python/pyalea.cpp b/src/alps/python/pyalea.cpp index 64d777deb..7b8bc6c12 100644 --- a/src/alps/python/pyalea.cpp +++ b/src/alps/python/pyalea.cpp @@ -9,23 +9,8 @@ * Matthias Troyer , * Maximilian Poprawe * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/python/pymcdata.cpp b/src/alps/python/pymcdata.cpp index f728ce4f6..43814b57a 100644 --- a/src/alps/python/pymcdata.cpp +++ b/src/alps/python/pymcdata.cpp @@ -8,23 +8,8 @@ * Lukas Gamper , * Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/python/pytools.cpp b/src/alps/python/pytools.cpp index 125b05632..b6be4b3a0 100644 --- a/src/alps/python/pytools.cpp +++ b/src/alps/python/pytools.cpp @@ -8,23 +8,8 @@ * Matthias Troyer , * Bela Bauer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/python/save_observable_to_hdf5.hpp b/src/alps/python/save_observable_to_hdf5.hpp index d8e26e501..89402e690 100644 --- a/src/alps/python/save_observable_to_hdf5.hpp +++ b/src/alps/python/save_observable_to_hdf5.hpp @@ -6,23 +6,8 @@ * * Copyright (C) 2010 by Matthias Troyer , * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/random.h b/src/alps/random.h index 1de032f84..b317182ea 100644 --- a/src/alps/random.h +++ b/src/alps/random.h @@ -6,23 +6,8 @@ * * Copyright (C) 2003 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/random/buffered_rng.h b/src/alps/random/buffered_rng.h index adf17c3ca..b9075a2d3 100644 --- a/src/alps/random/buffered_rng.h +++ b/src/alps/random/buffered_rng.h @@ -8,23 +8,8 @@ * Synge Todo , * Mario Ruetti * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/random/pseudo_des.h b/src/alps/random/pseudo_des.h index 2f418776b..0eec9342e 100644 --- a/src/alps/random/pseudo_des.h +++ b/src/alps/random/pseudo_des.h @@ -7,23 +7,8 @@ * Copyright (C) 1994-2009 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/random/random_choice.hpp b/src/alps/random/random_choice.hpp index 93ad6b96a..9fe447cf0 100644 --- a/src/alps/random/random_choice.hpp +++ b/src/alps/random/random_choice.hpp @@ -6,23 +6,8 @@ * * Copyright (C) 2006-2014 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/random/rngfactory.C b/src/alps/random/rngfactory.C index 0e0f00be9..62399f015 100644 --- a/src/alps/random/rngfactory.C +++ b/src/alps/random/rngfactory.C @@ -6,23 +6,8 @@ * * Copyright (C) 2003-2005 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/random/rngfactory.h b/src/alps/random/rngfactory.h index 325f73fef..26a15fc28 100644 --- a/src/alps/random/rngfactory.h +++ b/src/alps/random/rngfactory.h @@ -6,23 +6,8 @@ * * Copyright (C) 2003-2005 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/random/seed.h b/src/alps/random/seed.h index d7eadc09e..e6d6bcb97 100644 --- a/src/alps/random/seed.h +++ b/src/alps/random/seed.h @@ -8,23 +8,8 @@ * Synge Todo , * Mario Ruetti * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/random/uniform_on_sphere_n.h b/src/alps/random/uniform_on_sphere_n.h index 62d612c0e..d86e3bd41 100644 --- a/src/alps/random/uniform_on_sphere_n.h +++ b/src/alps/random/uniform_on_sphere_n.h @@ -6,23 +6,8 @@ * * Copyright (C) 2002-2005 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/scheduler.h b/src/alps/scheduler.h index ea7373535..19ba98982 100644 --- a/src/alps/scheduler.h +++ b/src/alps/scheduler.h @@ -7,23 +7,8 @@ * Copyright (C) 2003 by Synge Todo , * and Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/scheduler/abstract_task.C b/src/alps/scheduler/abstract_task.C index f377b31a8..7f1d13cd8 100644 --- a/src/alps/scheduler/abstract_task.C +++ b/src/alps/scheduler/abstract_task.C @@ -6,23 +6,8 @@ * * Copyright (C) 1994-2006 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/scheduler/convert.h b/src/alps/scheduler/convert.h index 12b707201..4c9d348af 100644 --- a/src/alps/scheduler/convert.h +++ b/src/alps/scheduler/convert.h @@ -8,23 +8,8 @@ * Simon Trebst , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/scheduler/convertxdr.C b/src/alps/scheduler/convertxdr.C index 1f313b7c2..bc41265e6 100644 --- a/src/alps/scheduler/convertxdr.C +++ b/src/alps/scheduler/convertxdr.C @@ -8,23 +8,8 @@ * Simon Trebst , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/scheduler/diag.hpp b/src/alps/scheduler/diag.hpp index f5ea4969e..6c914bf2c 100644 --- a/src/alps/scheduler/diag.hpp +++ b/src/alps/scheduler/diag.hpp @@ -4,23 +4,8 @@ * * Copyright (C) 1994-2006 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/scheduler/factory.C b/src/alps/scheduler/factory.C index 2bde08ecb..c45d24386 100644 --- a/src/alps/scheduler/factory.C +++ b/src/alps/scheduler/factory.C @@ -6,23 +6,8 @@ * * Copyright (C) 1994-2003 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/scheduler/factory.h b/src/alps/scheduler/factory.h index 9a7bf14be..c00d74292 100644 --- a/src/alps/scheduler/factory.h +++ b/src/alps/scheduler/factory.h @@ -7,23 +7,8 @@ * Copyright (C) 1994-2009 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/scheduler/info.C b/src/alps/scheduler/info.C index 4f5dbb68a..ce916a726 100644 --- a/src/alps/scheduler/info.C +++ b/src/alps/scheduler/info.C @@ -6,23 +6,8 @@ * * Copyright (C) 1994-2006 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/scheduler/info.h b/src/alps/scheduler/info.h index 8292465e1..4d0bd9a0b 100644 --- a/src/alps/scheduler/info.h +++ b/src/alps/scheduler/info.h @@ -6,23 +6,8 @@ * * Copyright (C) 1994-2006 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/scheduler/master_scheduler.C b/src/alps/scheduler/master_scheduler.C index 74e34dc89..39b54df08 100644 --- a/src/alps/scheduler/master_scheduler.C +++ b/src/alps/scheduler/master_scheduler.C @@ -7,23 +7,8 @@ * Copyright (C) 1994-2006 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/scheduler/measurement_operators.C b/src/alps/scheduler/measurement_operators.C index 59efb29ea..077e70804 100644 --- a/src/alps/scheduler/measurement_operators.C +++ b/src/alps/scheduler/measurement_operators.C @@ -7,23 +7,8 @@ * Copyright (C) 1994-2009 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/scheduler/measurement_operators.h b/src/alps/scheduler/measurement_operators.h index a9d5ed370..90f107aac 100644 --- a/src/alps/scheduler/measurement_operators.h +++ b/src/alps/scheduler/measurement_operators.h @@ -7,23 +7,8 @@ * Copyright (C) 1994-2009 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/scheduler/montecarlo.C b/src/alps/scheduler/montecarlo.C index 30e652125..fb80f9e65 100644 --- a/src/alps/scheduler/montecarlo.C +++ b/src/alps/scheduler/montecarlo.C @@ -7,23 +7,8 @@ * Copyright (C) 2002-2006 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/scheduler/montecarlo.h b/src/alps/scheduler/montecarlo.h index 7dca00b97..c1a4d7ae6 100644 --- a/src/alps/scheduler/montecarlo.h +++ b/src/alps/scheduler/montecarlo.h @@ -7,23 +7,8 @@ * Copyright (C) 1994-2009 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/scheduler/mpp_scheduler.C b/src/alps/scheduler/mpp_scheduler.C index 5d60de1fe..6c3a5fa8e 100644 --- a/src/alps/scheduler/mpp_scheduler.C +++ b/src/alps/scheduler/mpp_scheduler.C @@ -7,23 +7,8 @@ * Copyright (C) 1994-2009 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/scheduler/options.C b/src/alps/scheduler/options.C index 0b3fe1ed7..54cd320a7 100644 --- a/src/alps/scheduler/options.C +++ b/src/alps/scheduler/options.C @@ -6,23 +6,8 @@ * * Copyright (C) 1994-2003 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/scheduler/options.h b/src/alps/scheduler/options.h index 385bbb6c8..98a824ca1 100644 --- a/src/alps/scheduler/options.h +++ b/src/alps/scheduler/options.h @@ -7,23 +7,8 @@ * Copyright (C) 1994-2010 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/scheduler/remote_task.C b/src/alps/scheduler/remote_task.C index 93832d855..4b4f589b6 100644 --- a/src/alps/scheduler/remote_task.C +++ b/src/alps/scheduler/remote_task.C @@ -6,23 +6,8 @@ * * Copyright (C) 1994-2003 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/scheduler/remote_worker.C b/src/alps/scheduler/remote_worker.C index 379f11397..c513c8d1f 100644 --- a/src/alps/scheduler/remote_worker.C +++ b/src/alps/scheduler/remote_worker.C @@ -6,23 +6,8 @@ * * Copyright (C) 1994-2003 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/scheduler/scheduler.C b/src/alps/scheduler/scheduler.C index 3fb7a3072..e2d976d5e 100644 --- a/src/alps/scheduler/scheduler.C +++ b/src/alps/scheduler/scheduler.C @@ -7,23 +7,8 @@ * Copyright (C) 1994-2009 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/scheduler/scheduler.h b/src/alps/scheduler/scheduler.h index 417e8487e..ac34aa803 100644 --- a/src/alps/scheduler/scheduler.h +++ b/src/alps/scheduler/scheduler.h @@ -7,23 +7,8 @@ * Copyright (C) 1994-2009 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/scheduler/serial_scheduler.C b/src/alps/scheduler/serial_scheduler.C index fb36cadae..67355e8e7 100644 --- a/src/alps/scheduler/serial_scheduler.C +++ b/src/alps/scheduler/serial_scheduler.C @@ -7,23 +7,8 @@ * Copyright (C) 1994-2006 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/scheduler/signal.C b/src/alps/scheduler/signal.C index d3047b427..de69ddee5 100644 --- a/src/alps/scheduler/signal.C +++ b/src/alps/scheduler/signal.C @@ -7,23 +7,8 @@ * Copyright (C) 1994-2009 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/scheduler/signal.hpp b/src/alps/scheduler/signal.hpp index bd58ab758..3a366c213 100644 --- a/src/alps/scheduler/signal.hpp +++ b/src/alps/scheduler/signal.hpp @@ -7,23 +7,8 @@ * Copyright (C) 1994-2009 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/scheduler/single_scheduler.C b/src/alps/scheduler/single_scheduler.C index fa0945261..ce3102c48 100644 --- a/src/alps/scheduler/single_scheduler.C +++ b/src/alps/scheduler/single_scheduler.C @@ -7,23 +7,8 @@ * Copyright (C) 1994-2006 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/scheduler/slave_task.C b/src/alps/scheduler/slave_task.C index daf582609..acb24a9c6 100644 --- a/src/alps/scheduler/slave_task.C +++ b/src/alps/scheduler/slave_task.C @@ -7,23 +7,8 @@ * Copyright (C) 1994-2009 by Matthias Troyer * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/scheduler/task.C b/src/alps/scheduler/task.C index 4e1192eb4..22723f230 100644 --- a/src/alps/scheduler/task.C +++ b/src/alps/scheduler/task.C @@ -7,23 +7,8 @@ * Copyright (C) 2003-2010 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/scheduler/task.h b/src/alps/scheduler/task.h index 46aa9eec1..6c1e7dda3 100644 --- a/src/alps/scheduler/task.h +++ b/src/alps/scheduler/task.h @@ -7,23 +7,8 @@ * Copyright (C) 2002-2009 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/scheduler/types.h b/src/alps/scheduler/types.h index a0097b0e0..cd220cf99 100644 --- a/src/alps/scheduler/types.h +++ b/src/alps/scheduler/types.h @@ -7,23 +7,8 @@ * Copyright (C) 1994-2006 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/scheduler/worker.C b/src/alps/scheduler/worker.C index 7efd27b69..3e3e3e31b 100644 --- a/src/alps/scheduler/worker.C +++ b/src/alps/scheduler/worker.C @@ -6,23 +6,8 @@ * * Copyright (C) 1994-2005 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/scheduler/worker.h b/src/alps/scheduler/worker.h index a07010c09..84b015ca6 100644 --- a/src/alps/scheduler/worker.h +++ b/src/alps/scheduler/worker.h @@ -7,23 +7,8 @@ * Copyright (C) 1994-2009 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/scheduler/workertask.C b/src/alps/scheduler/workertask.C index 518224631..4a9e8210f 100644 --- a/src/alps/scheduler/workertask.C +++ b/src/alps/scheduler/workertask.C @@ -7,23 +7,8 @@ * Copyright (C) 1994-2010 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/stop_callback.cpp b/src/alps/stop_callback.cpp index 1743fd669..a26905d8c 100644 --- a/src/alps/stop_callback.cpp +++ b/src/alps/stop_callback.cpp @@ -7,23 +7,8 @@ * Copyright (C) 2010 - 2013 by Lukas Gamper , * * Synge Todo * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/stop_callback.hpp b/src/alps/stop_callback.hpp index 976779a39..4d02cd94d 100644 --- a/src/alps/stop_callback.hpp +++ b/src/alps/stop_callback.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2010 - 2012 by Lukas Gamper , * * Synge Todo * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/src/alps/stringvalue.h b/src/alps/stringvalue.h index 7c0b265f1..054c46580 100644 --- a/src/alps/stringvalue.h +++ b/src/alps/stringvalue.h @@ -8,23 +8,8 @@ * Synge Todo , * Mathias Koerner * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/type_traits/average_type.hpp b/src/alps/type_traits/average_type.hpp index 236d0a32a..5c5b55702 100644 --- a/src/alps/type_traits/average_type.hpp +++ b/src/alps/type_traits/average_type.hpp @@ -6,23 +6,8 @@ * * Copyright (C) 2010 by Matthias Troyer , * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/type_traits/change_value_type.hpp b/src/alps/type_traits/change_value_type.hpp index 7ee7af0f7..7f1fbae2d 100644 --- a/src/alps/type_traits/change_value_type.hpp +++ b/src/alps/type_traits/change_value_type.hpp @@ -6,23 +6,8 @@ * * Copyright (C) 2010 by Matthias Troyer , * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/type_traits/covariance_type.hpp b/src/alps/type_traits/covariance_type.hpp index b3f5ce8b2..49f7ff6d4 100644 --- a/src/alps/type_traits/covariance_type.hpp +++ b/src/alps/type_traits/covariance_type.hpp @@ -6,23 +6,8 @@ * * Copyright (C) 2010 by Matthias Troyer , * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/type_traits/element_type.hpp b/src/alps/type_traits/element_type.hpp index 772d3fe72..a2237cf93 100644 --- a/src/alps/type_traits/element_type.hpp +++ b/src/alps/type_traits/element_type.hpp @@ -6,23 +6,8 @@ * * Copyright (C) 2010 by Matthias Troyer , * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/type_traits/has_value_type.hpp b/src/alps/type_traits/has_value_type.hpp index 445a8787e..87106efe1 100644 --- a/src/alps/type_traits/has_value_type.hpp +++ b/src/alps/type_traits/has_value_type.hpp @@ -6,23 +6,8 @@ * * Copyright (C) 2010 by Matthias Troyer , * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/type_traits/is_complex.hpp b/src/alps/type_traits/is_complex.hpp index 5f12d51a4..a46f02ea0 100644 --- a/src/alps/type_traits/is_complex.hpp +++ b/src/alps/type_traits/is_complex.hpp @@ -6,23 +6,8 @@ * * Copyright (C) 2010 by Matthias Troyer , * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/type_traits/is_scalar.hpp b/src/alps/type_traits/is_scalar.hpp index de3fd775e..8b66c2fdb 100644 --- a/src/alps/type_traits/is_scalar.hpp +++ b/src/alps/type_traits/is_scalar.hpp @@ -6,23 +6,8 @@ * * Copyright (C) 2010 by Matthias Troyer , * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/type_traits/is_sequence.hpp b/src/alps/type_traits/is_sequence.hpp index c86447cda..df7ebef76 100644 --- a/src/alps/type_traits/is_sequence.hpp +++ b/src/alps/type_traits/is_sequence.hpp @@ -6,23 +6,8 @@ * * Copyright (C) 2010 by Matthias Troyer , * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/type_traits/is_symbolic.hpp b/src/alps/type_traits/is_symbolic.hpp index 7fddf3052..157e8887d 100644 --- a/src/alps/type_traits/is_symbolic.hpp +++ b/src/alps/type_traits/is_symbolic.hpp @@ -6,23 +6,8 @@ * * Copyright (C) 2010 by Matthias Troyer , * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/type_traits/iterator_type.hpp b/src/alps/type_traits/iterator_type.hpp index 71db153df..73e8ef76b 100644 --- a/src/alps/type_traits/iterator_type.hpp +++ b/src/alps/type_traits/iterator_type.hpp @@ -7,23 +7,8 @@ * Copyright (C) 1999-2010 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/type_traits/norm_type.hpp b/src/alps/type_traits/norm_type.hpp index 6b30891d5..6ca7fe8d8 100644 --- a/src/alps/type_traits/norm_type.hpp +++ b/src/alps/type_traits/norm_type.hpp @@ -6,23 +6,8 @@ * * Copyright (C) 2010 by Matthias Troyer , * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/type_traits/param_type.hpp b/src/alps/type_traits/param_type.hpp index d2200612a..480c71a5e 100644 --- a/src/alps/type_traits/param_type.hpp +++ b/src/alps/type_traits/param_type.hpp @@ -6,23 +6,8 @@ * * Copyright (C) 2010 by Matthias Troyer , * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/type_traits/real_type.hpp b/src/alps/type_traits/real_type.hpp index 253d3828d..9e61f3657 100644 --- a/src/alps/type_traits/real_type.hpp +++ b/src/alps/type_traits/real_type.hpp @@ -6,23 +6,8 @@ * * Copyright (C) 2010 by Matthias Troyer , * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/type_traits/slice.hpp b/src/alps/type_traits/slice.hpp index c38301c13..9acc34a51 100644 --- a/src/alps/type_traits/slice.hpp +++ b/src/alps/type_traits/slice.hpp @@ -6,23 +6,8 @@ * * Copyright (C) 2010 by Matthias Troyer , * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/type_traits/type_tag.hpp b/src/alps/type_traits/type_tag.hpp index 68be49a4a..8d59234e5 100644 --- a/src/alps/type_traits/type_tag.hpp +++ b/src/alps/type_traits/type_tag.hpp @@ -7,23 +7,8 @@ * Copyright (C) 1999-2010 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/utility/assign.hpp b/src/alps/utility/assign.hpp index 2ee937dcc..466bc0a2f 100644 --- a/src/alps/utility/assign.hpp +++ b/src/alps/utility/assign.hpp @@ -9,23 +9,8 @@ * Andreas Laeuchli , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/utility/bitops.hpp b/src/alps/utility/bitops.hpp index 14ef5a855..88bd1d6d7 100644 --- a/src/alps/utility/bitops.hpp +++ b/src/alps/utility/bitops.hpp @@ -8,23 +8,8 @@ * Andreas Laeuchli , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/utility/copyright.cpp b/src/alps/utility/copyright.cpp index e57aeb5a6..02a77967b 100644 --- a/src/alps/utility/copyright.cpp +++ b/src/alps/utility/copyright.cpp @@ -7,23 +7,8 @@ * Copyright (C) 2003-2011 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/utility/copyright.hpp b/src/alps/utility/copyright.hpp index 8961da423..4c3cc7b9a 100644 --- a/src/alps/utility/copyright.hpp +++ b/src/alps/utility/copyright.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2003-2010 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/utility/data.hpp b/src/alps/utility/data.hpp index 8e168f714..4c377423a 100644 --- a/src/alps/utility/data.hpp +++ b/src/alps/utility/data.hpp @@ -7,23 +7,8 @@ * Copyright (C) 1999-2010 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/utility/factory.hpp b/src/alps/utility/factory.hpp index 11c62a2a7..d0b18a409 100644 --- a/src/alps/utility/factory.hpp +++ b/src/alps/utility/factory.hpp @@ -6,23 +6,8 @@ * * Copyright (C) 1994-2010 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/utility/make_copy.hpp b/src/alps/utility/make_copy.hpp index 8514e1dfc..ed29cc8bc 100644 --- a/src/alps/utility/make_copy.hpp +++ b/src/alps/utility/make_copy.hpp @@ -6,23 +6,8 @@ * * Copyright (C) 2010 by Matthias Troyer , * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/utility/numeric_cast.hpp b/src/alps/utility/numeric_cast.hpp index f82db8196..e34c1af67 100644 --- a/src/alps/utility/numeric_cast.hpp +++ b/src/alps/utility/numeric_cast.hpp @@ -9,23 +9,8 @@ * Andreas Laeuchli , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/utility/os.cpp b/src/alps/utility/os.cpp index 7e2bc917c..cd63730ac 100644 --- a/src/alps/utility/os.cpp +++ b/src/alps/utility/os.cpp @@ -7,23 +7,8 @@ * Copyright (C) 1994-2008 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/utility/os.hpp b/src/alps/utility/os.hpp index cff94286f..96c1b6428 100644 --- a/src/alps/utility/os.hpp +++ b/src/alps/utility/os.hpp @@ -7,23 +7,8 @@ * Copyright (C) 1994-2003 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/utility/resize.hpp b/src/alps/utility/resize.hpp index fdfc5d7f1..343a9b803 100644 --- a/src/alps/utility/resize.hpp +++ b/src/alps/utility/resize.hpp @@ -9,23 +9,8 @@ * Andreas Laeuchli , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/utility/set_zero.hpp b/src/alps/utility/set_zero.hpp index f5f5264cb..703057196 100644 --- a/src/alps/utility/set_zero.hpp +++ b/src/alps/utility/set_zero.hpp @@ -9,23 +9,8 @@ * Andreas Laeuchli , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/utility/size.hpp b/src/alps/utility/size.hpp index 1dc7e47eb..ec2adb77e 100644 --- a/src/alps/utility/size.hpp +++ b/src/alps/utility/size.hpp @@ -9,23 +9,8 @@ * Andreas Laeuchli , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/utility/vectorio.hpp b/src/alps/utility/vectorio.hpp index 2cafcb70c..f1e011070 100644 --- a/src/alps/utility/vectorio.hpp +++ b/src/alps/utility/vectorio.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2001-2008 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/utility/vmusage.cpp b/src/alps/utility/vmusage.cpp index e09516758..4186f29aa 100644 --- a/src/alps/utility/vmusage.cpp +++ b/src/alps/utility/vmusage.cpp @@ -7,23 +7,8 @@ * Copyright (C) 2010-2012 by Haruhiko Matsuo , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/utility/vmusage.hpp b/src/alps/utility/vmusage.hpp index bd6900e78..d28f55bc2 100644 --- a/src/alps/utility/vmusage.hpp +++ b/src/alps/utility/vmusage.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2010-2012 by Haruhiko Matsuo , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/version.h.in b/src/alps/version.h.in index 6543db8b2..fd3ade28a 100644 --- a/src/alps/version.h.in +++ b/src/alps/version.h.in @@ -7,23 +7,8 @@ * Copyright (C) 1994-2010 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/alps/xml.h b/src/alps/xml.h index 062a574ad..de946b56d 100644 --- a/src/alps/xml.h +++ b/src/alps/xml.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2005 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/boost/classic_spirit.hpp b/src/boost/classic_spirit.hpp index 2b4cb6c9e..aa9a50341 100644 --- a/src/boost/classic_spirit.hpp +++ b/src/boost/classic_spirit.hpp @@ -6,22 +6,8 @@ * * Copyright (C) 2009 by Synge Todo * -* This software is part of the ALPS libraries, published under the ALPS -* Library License; you can use, redistribute it and/or modify it under -* the terms of the license, either version 1 or (at your option) any later -* version. -* -* You should have received a copy of the ALPS Library License along with -* the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -* available from http://alps.comp-phys.org/. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -* SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -* FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/boost/function_objects.hpp b/src/boost/function_objects.hpp index ea9aaef10..2f0bc6017 100644 --- a/src/boost/function_objects.hpp +++ b/src/boost/function_objects.hpp @@ -6,22 +6,8 @@ * * Copyright (C) 2003 by Matthias Troyer * -* This software is part of the ALPS libraries, published under the ALPS -* Library License; you can use, redistribute it and/or modify it under -* the terms of the license, either version 1 or (at your option) any later -* version. -* -* You should have received a copy of the ALPS Library License along with -* the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -* available from http://alps.comp-phys.org/. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -* SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -* FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/boost/throw_exception.C b/src/boost/throw_exception.C index 4d3a5cf75..ce5ceb180 100644 --- a/src/boost/throw_exception.C +++ b/src/boost/throw_exception.C @@ -7,22 +7,8 @@ * Copyright (C) 1994-2003 by Matthias Troyer , * Synge Todo * -* This software is part of the ALPS libraries, published under the ALPS -* Library License; you can use, redistribute it and/or modify it under -* the terms of the license, either version 1 or (at your option) any later -* version. -* -* You should have received a copy of the ALPS Library License along with -* the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -* available from http://alps.comp-phys.org/. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -* SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -* FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/ietl/bandlanczos.h b/src/ietl/bandlanczos.h index 71caa0a96..3aa66843e 100644 --- a/src/ietl/bandlanczos.h +++ b/src/ietl/bandlanczos.h @@ -8,23 +8,8 @@ * Prakash Dayal , * Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/ietl/bicgstabl.h b/src/ietl/bicgstabl.h index 662a1a959..cff750e4e 100644 --- a/src/ietl/bicgstabl.h +++ b/src/ietl/bicgstabl.h @@ -6,23 +6,8 @@ * * Copyright (C) 20XX ?? * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/ietl/cg.h b/src/ietl/cg.h index 18eab4f97..17fe5414d 100644 --- a/src/ietl/cg.h +++ b/src/ietl/cg.h @@ -6,23 +6,8 @@ * * Copyright (C) 2001-2011 by Bela Bauer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/ietl/complex.h b/src/ietl/complex.h index 63310109d..6f57a9e14 100644 --- a/src/ietl/complex.h +++ b/src/ietl/complex.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2002 by Prakash Dayal , * Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/ietl/config.h.in b/src/ietl/config.h.in index 99cbb2cf4..a466b8c34 100644 --- a/src/ietl/config.h.in +++ b/src/ietl/config.h.in @@ -7,23 +7,8 @@ * Copyright (C) 1994-2003 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/ietl/fmatrix.h b/src/ietl/fmatrix.h index b878160e1..15e95e023 100644 --- a/src/ietl/fmatrix.h +++ b/src/ietl/fmatrix.h @@ -8,23 +8,8 @@ * Prakash Dayal , * Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/ietl/gmres.h b/src/ietl/gmres.h index 120a62c64..641e3b3bd 100644 --- a/src/ietl/gmres.h +++ b/src/ietl/gmres.h @@ -6,23 +6,8 @@ * * Copyright (C) 2011 by Bela Bauer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/ietl/ietl2lapack.h b/src/ietl/ietl2lapack.h index 0e369f06e..20f4a9c75 100644 --- a/src/ietl/ietl2lapack.h +++ b/src/ietl/ietl2lapack.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2010 by Prakash Dayal , * Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/ietl/interface/blas.h b/src/ietl/interface/blas.h index 7203de948..2d14ddf51 100644 --- a/src/ietl/interface/blas.h +++ b/src/ietl/interface/blas.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2004 by Prakash Dayal , * Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/ietl/interface/blitz.h b/src/ietl/interface/blitz.h index 0d621ab01..7f2c3440f 100644 --- a/src/ietl/interface/blitz.h +++ b/src/ietl/interface/blitz.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2003 by Prakash Dayal , * Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/ietl/interface/mtl.h b/src/ietl/interface/mtl.h index 646f5702b..2e5e04936 100644 --- a/src/ietl/interface/mtl.h +++ b/src/ietl/interface/mtl.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2004 by Prakash Dayal , * Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/ietl/interface/ublas.h b/src/ietl/interface/ublas.h index 752138480..9925b182e 100644 --- a/src/ietl/interface/ublas.h +++ b/src/ietl/interface/ublas.h @@ -8,23 +8,8 @@ * Matthias Troyer * Bela Bauer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/ietl/interface/valarray.h b/src/ietl/interface/valarray.h index 193505b3c..5b82652ec 100644 --- a/src/ietl/interface/valarray.h +++ b/src/ietl/interface/valarray.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2003 by Prakash Dayal , * Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/ietl/inverse.h b/src/ietl/inverse.h index 9a6dfb301..e61346ac2 100644 --- a/src/ietl/inverse.h +++ b/src/ietl/inverse.h @@ -8,23 +8,8 @@ * Prakash Dayal , * Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/ietl/iteration.h b/src/ietl/iteration.h index 2c5654dd7..3797b20f4 100644 --- a/src/ietl/iteration.h +++ b/src/ietl/iteration.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2003 by Prakash Dayal , * Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/ietl/jacobi.h b/src/ietl/jacobi.h index 48c15a246..1611cde0a 100644 --- a/src/ietl/jacobi.h +++ b/src/ietl/jacobi.h @@ -9,23 +9,8 @@ * Matthias Troyer * Bela Bauer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/ietl/jd.h b/src/ietl/jd.h index 0196ab319..46a1e82f1 100644 --- a/src/ietl/jd.h +++ b/src/ietl/jd.h @@ -7,23 +7,8 @@ * * Copyright (C) 2011 by Robin Jaeger * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ #ifndef JACOBI_DAVIDSON_H diff --git a/src/ietl/krylov_wrapper.h b/src/ietl/krylov_wrapper.h index d2f2adbfd..6ac6f544d 100644 --- a/src/ietl/krylov_wrapper.h +++ b/src/ietl/krylov_wrapper.h @@ -6,23 +6,8 @@ * * Copyright (C) 2002 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/ietl/lanczos.h b/src/ietl/lanczos.h index ef3d6f2bc..1a7b05511 100644 --- a/src/ietl/lanczos.h +++ b/src/ietl/lanczos.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2011 by Prakash Dayal , * Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/ietl/matrix.h b/src/ietl/matrix.h index 874e3175a..ee7499a53 100644 --- a/src/ietl/matrix.h +++ b/src/ietl/matrix.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2002 by Prakash Dayal , * Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/ietl/power.h b/src/ietl/power.h index a9528f3ba..d611260f9 100644 --- a/src/ietl/power.h +++ b/src/ietl/power.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2003 by Prakash Dayal , * Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/ietl/rayleigh.h b/src/ietl/rayleigh.h index 7c3b6a929..0ab85ee33 100644 --- a/src/ietl/rayleigh.h +++ b/src/ietl/rayleigh.h @@ -8,23 +8,8 @@ * Prakash Dayal , * Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/ietl/tmatrix.h b/src/ietl/tmatrix.h index 9b4936c20..fe7e85890 100644 --- a/src/ietl/tmatrix.h +++ b/src/ietl/tmatrix.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2011 by Prakash Dayal , * Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/ietl/traits.h b/src/ietl/traits.h index aff960046..908d780ae 100644 --- a/src/ietl/traits.h +++ b/src/ietl/traits.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2002 by Prakash Dayal , * Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/src/ietl/vectorspace.h b/src/ietl/vectorspace.h index 04a67aa4d..660715d80 100644 --- a/src/ietl/vectorspace.h +++ b/src/ietl/vectorspace.h @@ -7,23 +7,8 @@ * Copyright (C) 2001-2002 by Prakash Dayal , * Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/accumulator/count.cpp b/test/accumulator/count.cpp index 8f11b2d15..b9543b406 100644 --- a/test/accumulator/count.cpp +++ b/test/accumulator/count.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2013 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/accumulator/mean.cpp b/test/accumulator/mean.cpp index 4cfbdf9aa..63ce0069a 100644 --- a/test/accumulator/mean.cpp +++ b/test/accumulator/mean.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2013 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/alea/binned_data.C b/test/alea/binned_data.C index 881ab3c96..8bf3bef07 100644 --- a/test/alea/binned_data.C +++ b/test/alea/binned_data.C @@ -7,23 +7,8 @@ * Copyright (C) 1994-2010 by Ping Nang Ma , * Matthias Troyer , * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/alea/complexobservable.C b/test/alea/complexobservable.C index 194c8cc3e..d3eb3fde2 100644 --- a/test/alea/complexobservable.C +++ b/test/alea/complexobservable.C @@ -6,23 +6,8 @@ * * Copyright (C) 2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/alea/detailedbinning.C b/test/alea/detailedbinning.C index 1fe83af6d..bc35242ee 100644 --- a/test/alea/detailedbinning.C +++ b/test/alea/detailedbinning.C @@ -7,23 +7,8 @@ * Copyright (C) 1994-2007 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/alea/dumpbench.C b/test/alea/dumpbench.C index c661e78d0..0c605d43b 100644 --- a/test/alea/dumpbench.C +++ b/test/alea/dumpbench.C @@ -6,23 +6,8 @@ * * Copyright (C) 2010 by Lukas Gamper * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/alea/histogram.C b/test/alea/histogram.C index 038f80dde..291eb2cba 100644 --- a/test/alea/histogram.C +++ b/test/alea/histogram.C @@ -6,23 +6,8 @@ * * Copyright (C) 2007 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/alea/histogram2.C b/test/alea/histogram2.C index 67e8ab0a5..e0a3dd4ae 100644 --- a/test/alea/histogram2.C +++ b/test/alea/histogram2.C @@ -6,23 +6,8 @@ * * Copyright (C) 2013 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/alea/mcanalyze.C b/test/alea/mcanalyze.C index a3e67381f..106e2516c 100644 --- a/test/alea/mcanalyze.C +++ b/test/alea/mcanalyze.C @@ -6,23 +6,8 @@ * Matthias Troyer , * Maximilian Poprawe * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/alea/mcdata.C b/test/alea/mcdata.C index 2c1b1be80..169a545c3 100644 --- a/test/alea/mcdata.C +++ b/test/alea/mcdata.C @@ -7,23 +7,8 @@ * Copyright (C) 1994-2008 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/alea/mcdata2.C b/test/alea/mcdata2.C index f4daf7bf9..47ee90866 100644 --- a/test/alea/mcdata2.C +++ b/test/alea/mcdata2.C @@ -8,23 +8,8 @@ * Ping Nang Ma , * Matthias Troyer , * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/alea/mcdata_transform_variance.C b/test/alea/mcdata_transform_variance.C index 129738a5d..492147ab1 100644 --- a/test/alea/mcdata_transform_variance.C +++ b/test/alea/mcdata_transform_variance.C @@ -4,23 +4,8 @@ * * Copyright (C) 1994-2025 by the ALPS collaboration * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the "Software"), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/alea/observableset_hdf5.C b/test/alea/observableset_hdf5.C index bbd2e9ced..79f1e8781 100644 --- a/test/alea/observableset_hdf5.C +++ b/test/alea/observableset_hdf5.C @@ -7,23 +7,8 @@ * Copyright (C) 2010-2012 by Lukas Gamper , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/alea/observableset_mpi.C b/test/alea/observableset_mpi.C index 77538cf28..6b5ba0ccf 100644 --- a/test/alea/observableset_mpi.C +++ b/test/alea/observableset_mpi.C @@ -6,23 +6,8 @@ * * Copyright (C) 2008 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/alea/observableset_xml.C b/test/alea/observableset_xml.C index cf848465c..072802b2b 100644 --- a/test/alea/observableset_xml.C +++ b/test/alea/observableset_xml.C @@ -7,23 +7,8 @@ * Copyright (C) 1994-2006 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/alea/signed.C b/test/alea/signed.C index df26d60f8..812270dbc 100644 --- a/test/alea/signed.C +++ b/test/alea/signed.C @@ -7,23 +7,8 @@ * Copyright (C) 1994-2006 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/alea/simpleobseval.C b/test/alea/simpleobseval.C index 4675c9cc7..25619a096 100644 --- a/test/alea/simpleobseval.C +++ b/test/alea/simpleobseval.C @@ -7,23 +7,8 @@ * Copyright (C) 1994-2008 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/alea/testobservableset.C b/test/alea/testobservableset.C index 5f7583f94..73615dea1 100644 --- a/test/alea/testobservableset.C +++ b/test/alea/testobservableset.C @@ -7,23 +7,8 @@ * Copyright (C) 1994-2006 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/alea/vectorobseval.C b/test/alea/vectorobseval.C index 867c305a9..88e19ae6a 100644 --- a/test/alea/vectorobseval.C +++ b/test/alea/vectorobseval.C @@ -6,23 +6,8 @@ * * Copyright (C) 2006-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/fixed_capacity/fixed_capacity_deque.C b/test/fixed_capacity/fixed_capacity_deque.C index 5720a4c1c..d5dd6a74a 100644 --- a/test/fixed_capacity/fixed_capacity_deque.C +++ b/test/fixed_capacity/fixed_capacity_deque.C @@ -6,23 +6,8 @@ * * Copyright (C) 2002-2003 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/fixed_capacity/fixed_capacity_traits.C b/test/fixed_capacity/fixed_capacity_traits.C index 6cbf8c73c..9f89cb257 100644 --- a/test/fixed_capacity/fixed_capacity_traits.C +++ b/test/fixed_capacity/fixed_capacity_traits.C @@ -6,23 +6,8 @@ * * Copyright (C) 2002-2003 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/fixed_capacity/fixed_capacity_vector.C b/test/fixed_capacity/fixed_capacity_vector.C index 33a7dccb3..0d5617cb8 100644 --- a/test/fixed_capacity/fixed_capacity_vector.C +++ b/test/fixed_capacity/fixed_capacity_vector.C @@ -6,23 +6,8 @@ * * Copyright (C) 2002-2003 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/fixed_capacity/test_deque.C b/test/fixed_capacity/test_deque.C index d3321d2c0..7afdfa41a 100644 --- a/test/fixed_capacity/test_deque.C +++ b/test/fixed_capacity/test_deque.C @@ -6,23 +6,8 @@ * * Copyright (C) 2002-2003 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/fixed_capacity/test_main.h b/test/fixed_capacity/test_main.h index eb425da53..459bb2aca 100644 --- a/test/fixed_capacity/test_main.h +++ b/test/fixed_capacity/test_main.h @@ -6,23 +6,8 @@ * * Copyright (C) 2002-2004 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/fixed_capacity/test_vector.C b/test/fixed_capacity/test_vector.C index 9c201974b..88a407237 100644 --- a/test/fixed_capacity/test_vector.C +++ b/test/fixed_capacity/test_vector.C @@ -6,23 +6,8 @@ * * Copyright (C) 2002-2003 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/fixed_capacity/timing_queue.C b/test/fixed_capacity/timing_queue.C index 3126d4839..193119cba 100644 --- a/test/fixed_capacity/timing_queue.C +++ b/test/fixed_capacity/timing_queue.C @@ -6,23 +6,8 @@ * * Copyright (C) 2002-2003 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/fixed_capacity/timing_stack.C b/test/fixed_capacity/timing_stack.C index 025747a67..b9e8a1b3f 100644 --- a/test/fixed_capacity/timing_stack.C +++ b/test/fixed_capacity/timing_stack.C @@ -6,23 +6,8 @@ * * Copyright (C) 2002-2003 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/fixed_capacity/timing_vector.C b/test/fixed_capacity/timing_vector.C index f5175664c..e7da4e8a9 100644 --- a/test/fixed_capacity/timing_vector.C +++ b/test/fixed_capacity/timing_vector.C @@ -6,23 +6,8 @@ * * Copyright (C) 2002-2003 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/graph/canonical_label_random_graphs_test.cpp b/test/graph/canonical_label_random_graphs_test.cpp index 622d8d3ca..3064b0313 100644 --- a/test/graph/canonical_label_random_graphs_test.cpp +++ b/test/graph/canonical_label_random_graphs_test.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2013 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #include "generate_random_graph.hpp" diff --git a/test/graph/canonical_label_test.cpp b/test/graph/canonical_label_test.cpp index 729c883a2..dda4837c5 100644 --- a/test/graph/canonical_label_test.cpp +++ b/test/graph/canonical_label_test.cpp @@ -7,23 +7,8 @@ * Copyright (C) 2011 - 2013 by Lukas Gamper * * Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/graph/canonical_label_with_color_symmetries_test.cpp b/test/graph/canonical_label_with_color_symmetries_test.cpp index 3cd196c19..360576b27 100644 --- a/test/graph/canonical_label_with_color_symmetries_test.cpp +++ b/test/graph/canonical_label_with_color_symmetries_test.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2013 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/graph/colored_lattice_constant_test.cpp b/test/graph/colored_lattice_constant_test.cpp index f21a276f7..4d21b8059 100644 --- a/test/graph/colored_lattice_constant_test.cpp +++ b/test/graph/colored_lattice_constant_test.cpp @@ -8,23 +8,8 @@ * Lukas Gamper * * Robin Jaeger * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/graph/colored_lattice_constant_test2.cpp b/test/graph/colored_lattice_constant_test2.cpp index b6f546d31..e66f23ca9 100644 --- a/test/graph/colored_lattice_constant_test2.cpp +++ b/test/graph/colored_lattice_constant_test2.cpp @@ -7,23 +7,8 @@ * Copyright (C) 2012 - 2015 by Andreas Hehn * * Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/graph/embedding_test.cpp b/test/graph/embedding_test.cpp index f1fb84b83..7263f8c9c 100644 --- a/test/graph/embedding_test.cpp +++ b/test/graph/embedding_test.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/graph/generate_random_graph.hpp b/test/graph/generate_random_graph.hpp index 9d2bbda0b..0bd74a888 100644 --- a/test/graph/generate_random_graph.hpp +++ b/test/graph/generate_random_graph.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2015 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #ifndef ALPS_TEST_GENERATE_RANDOM_GRAPH_HPP diff --git a/test/graph/is_embeddable_with_color_symmetries_test.cpp b/test/graph/is_embeddable_with_color_symmetries_test.cpp index c0253ea4d..fc2f1d851 100644 --- a/test/graph/is_embeddable_with_color_symmetries_test.cpp +++ b/test/graph/is_embeddable_with_color_symmetries_test.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2013 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/graph/iso_simple.cpp b/test/graph/iso_simple.cpp index 2679b6353..85349b253 100644 --- a/test/graph/iso_simple.cpp +++ b/test/graph/iso_simple.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/graph/lattice_constant_matrix.cpp b/test/graph/lattice_constant_matrix.cpp index 9545d89b9..eb7acec14 100644 --- a/test/graph/lattice_constant_matrix.cpp +++ b/test/graph/lattice_constant_matrix.cpp @@ -7,23 +7,8 @@ * Copyright (C) 2012 by Andreas Hehn * * Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/graph/lattice_constant_square_test.cpp b/test/graph/lattice_constant_square_test.cpp index 013d54262..aa09ad9ab 100644 --- a/test/graph/lattice_constant_square_test.cpp +++ b/test/graph/lattice_constant_square_test.cpp @@ -7,23 +7,8 @@ * Copyright (C) 2011 - 2012 by Lukas Gamper * * Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/graph/lattice_constant_tri_test.cpp b/test/graph/lattice_constant_tri_test.cpp index 3a6844b00..00e4812b7 100644 --- a/test/graph/lattice_constant_tri_test.cpp +++ b/test/graph/lattice_constant_tri_test.cpp @@ -7,23 +7,8 @@ * Copyright (C) 2011 - 2016 by Lukas Gamper * * Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/graph/orbit_test.cpp b/test/graph/orbit_test.cpp index f009ae3a7..6b84e8d6d 100644 --- a/test/graph/orbit_test.cpp +++ b/test/graph/orbit_test.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2013 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/graph/subgraph_generator_test.cpp b/test/graph/subgraph_generator_test.cpp index 2a75e943d..0deba76fb 100644 --- a/test/graph/subgraph_generator_test.cpp +++ b/test/graph/subgraph_generator_test.cpp @@ -7,23 +7,8 @@ * Copyright (C) 2011 - 2012 by Andreas Hehn * * Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/graph/subgraph_generator_test_colored_edges.cpp b/test/graph/subgraph_generator_test_colored_edges.cpp index cee159977..ec9433681 100644 --- a/test/graph/subgraph_generator_test_colored_edges.cpp +++ b/test/graph/subgraph_generator_test_colored_edges.cpp @@ -7,23 +7,8 @@ * Copyright (C) 2011 - 2012 by Andreas Hehn * * Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/graph/subgraph_generator_test_colored_edges2.cpp b/test/graph/subgraph_generator_test_colored_edges2.cpp index 56a4f09b5..ee63ebdaa 100644 --- a/test/graph/subgraph_generator_test_colored_edges2.cpp +++ b/test/graph/subgraph_generator_test_colored_edges2.cpp @@ -7,23 +7,8 @@ * Copyright (C) 2011 - 2013 by Andreas Hehn * * Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/graph/subgraph_generator_test_colored_edges_with_sym.cpp b/test/graph/subgraph_generator_test_colored_edges_with_sym.cpp index d69240089..5541a291e 100644 --- a/test/graph/subgraph_generator_test_colored_edges_with_sym.cpp +++ b/test/graph/subgraph_generator_test_colored_edges_with_sym.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2013 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/graph/subgraph_generator_test_colored_edges_with_sym2.cpp b/test/graph/subgraph_generator_test_colored_edges_with_sym2.cpp index 4f2bc6468..3298fe152 100644 --- a/test/graph/subgraph_generator_test_colored_edges_with_sym2.cpp +++ b/test/graph/subgraph_generator_test_colored_edges_with_sym2.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2013 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/graph/utils_test.cpp b/test/graph/utils_test.cpp index 60a26a537..bc3b68784 100644 --- a/test/graph/utils_test.cpp +++ b/test/graph/utils_test.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2015 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #include diff --git a/test/hdf5/creator.hpp b/test/hdf5/creator.hpp index 0b199d245..6742bcf93 100644 --- a/test/hdf5/creator.hpp +++ b/test/hdf5/creator.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/hdf5/hdf5_bool.cpp b/test/hdf5/hdf5_bool.cpp index 6558bb621..ae9d66a8d 100644 --- a/test/hdf5/hdf5_bool.cpp +++ b/test/hdf5/hdf5_bool.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/hdf5/hdf5_complex.cpp b/test/hdf5/hdf5_complex.cpp index 5f400a911..0ef916fcd 100644 --- a/test/hdf5/hdf5_complex.cpp +++ b/test/hdf5/hdf5_complex.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/hdf5/hdf5_copy.cpp b/test/hdf5/hdf5_copy.cpp index 2df8cf9a3..f882a9fdc 100644 --- a/test/hdf5/hdf5_copy.cpp +++ b/test/hdf5/hdf5_copy.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/hdf5/hdf5_exceptions.cpp b/test/hdf5/hdf5_exceptions.cpp index fafb38242..5a50648af 100644 --- a/test/hdf5/hdf5_exceptions.cpp +++ b/test/hdf5/hdf5_exceptions.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/hdf5/hdf5_family.cpp b/test/hdf5/hdf5_family.cpp index e1f5632b5..ff208b97c 100644 --- a/test/hdf5/hdf5_family.cpp +++ b/test/hdf5/hdf5_family.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/hdf5/hdf5_fortran_string.cpp b/test/hdf5/hdf5_fortran_string.cpp index 025707d09..b65625b35 100644 --- a/test/hdf5/hdf5_fortran_string.cpp +++ b/test/hdf5/hdf5_fortran_string.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2013 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/hdf5/hdf5_ising.cpp b/test/hdf5/hdf5_ising.cpp index caa2053eb..dcc2325a1 100644 --- a/test/hdf5/hdf5_ising.cpp +++ b/test/hdf5/hdf5_ising.cpp @@ -7,23 +7,8 @@ * Copyright (C) 2003 by Brigitte Surer and Jan Gukelberger * * Copyright (C) 2010 - 2012 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/hdf5/hdf5_large.cpp b/test/hdf5/hdf5_large.cpp index 90d97eb3e..0aceeab9b 100644 --- a/test/hdf5/hdf5_large.cpp +++ b/test/hdf5/hdf5_large.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/hdf5/hdf5_memory.cpp b/test/hdf5/hdf5_memory.cpp index 164dfe580..03b050d8f 100644 --- a/test/hdf5/hdf5_memory.cpp +++ b/test/hdf5/hdf5_memory.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/hdf5/hdf5_misc.cpp b/test/hdf5/hdf5_misc.cpp index be0521a54..8f5000655 100644 --- a/test/hdf5/hdf5_misc.cpp +++ b/test/hdf5/hdf5_misc.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/hdf5/hdf5_multi_array.cpp b/test/hdf5/hdf5_multi_array.cpp index ecb80e6d3..9fb4c492f 100644 --- a/test/hdf5/hdf5_multi_array.cpp +++ b/test/hdf5/hdf5_multi_array.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/hdf5/hdf5_multiarchive.cpp b/test/hdf5/hdf5_multiarchive.cpp index 84accf9d1..a4909bb3f 100644 --- a/test/hdf5/hdf5_multiarchive.cpp +++ b/test/hdf5/hdf5_multiarchive.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/hdf5/hdf5_observableset.cpp b/test/hdf5/hdf5_observableset.cpp index c8ea45137..798582d61 100644 --- a/test/hdf5/hdf5_observableset.cpp +++ b/test/hdf5/hdf5_observableset.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/hdf5/hdf5_omp.cpp b/test/hdf5/hdf5_omp.cpp index c461d656f..1e61bbef0 100644 --- a/test/hdf5/hdf5_omp.cpp +++ b/test/hdf5/hdf5_omp.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/hdf5/hdf5_pair.cpp b/test/hdf5/hdf5_pair.cpp index 105c57e0b..09515f7a4 100644 --- a/test/hdf5/hdf5_pair.cpp +++ b/test/hdf5/hdf5_pair.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/hdf5/hdf5_parms.cpp b/test/hdf5/hdf5_parms.cpp index a360c8cfe..58e71900a 100644 --- a/test/hdf5/hdf5_parms.cpp +++ b/test/hdf5/hdf5_parms.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/hdf5/hdf5_real_complex.cpp b/test/hdf5/hdf5_real_complex.cpp index 3688f115c..b2f01a106 100644 --- a/test/hdf5/hdf5_real_complex.cpp +++ b/test/hdf5/hdf5_real_complex.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Michele Dolfi * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/hdf5/hdf5_real_complex_matrix.cpp b/test/hdf5/hdf5_real_complex_matrix.cpp index 0b139fc74..5ac53c49c 100644 --- a/test/hdf5/hdf5_real_complex_matrix.cpp +++ b/test/hdf5/hdf5_real_complex_matrix.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Michele Dolfi * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/hdf5/hdf5_real_complex_vec.cpp b/test/hdf5/hdf5_real_complex_vec.cpp index 3ecb071d3..196b14eae 100644 --- a/test/hdf5/hdf5_real_complex_vec.cpp +++ b/test/hdf5/hdf5_real_complex_vec.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Michele Dolfi * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/hdf5/hdf5_replace.cpp b/test/hdf5/hdf5_replace.cpp index 784786d6a..48e63f33f 100644 --- a/test/hdf5/hdf5_replace.cpp +++ b/test/hdf5/hdf5_replace.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/hdf5/hdf5_valgrind.cpp b/test/hdf5/hdf5_valgrind.cpp index ebbf1204a..6f61dbe84 100644 --- a/test/hdf5/hdf5_valgrind.cpp +++ b/test/hdf5/hdf5_valgrind.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/hdf5/hdf5_vecveccplx.cpp b/test/hdf5/hdf5_vecveccplx.cpp index 38514867b..76517d3ee 100644 --- a/test/hdf5/hdf5_vecveccplx.cpp +++ b/test/hdf5/hdf5_vecveccplx.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/hdf5/hdf5_vecvecdbl.cpp b/test/hdf5/hdf5_vecvecdbl.cpp index fe2d644d7..99e56e7a3 100644 --- a/test/hdf5/hdf5_vecvecdbl.cpp +++ b/test/hdf5/hdf5_vecvecdbl.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/hdf5/type_check.cpp.in b/test/hdf5/type_check.cpp.in index 4f63af2e2..2d3792e2a 100644 --- a/test/hdf5/type_check.cpp.in +++ b/test/hdf5/type_check.cpp.in @@ -6,22 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Lukas Gamper * * * - * This software is part of the ALPS libraries, published under the ALPS * - * Library License; you can use, redistribute it and/or modify it under * - * the terms of the license, either version 1 or (at your option) any later * - * version. * - * * - * You should have received a copy of the ALPS Library License along with * - * the ALPS Libraries; see the file LICENSE.txt. If not, the license is also * - * available from http://alps.comp-phys.org/. * - * * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT * - * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE * - * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, * - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/lattice/coloring.C b/test/lattice/coloring.C index f0f0023c3..0027aa100 100644 --- a/test/lattice/coloring.C +++ b/test/lattice/coloring.C @@ -6,23 +6,8 @@ * * Copyright (C) 2009 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/lattice/example1.C b/test/lattice/example1.C index af218f389..2d7a0407d 100644 --- a/test/lattice/example1.C +++ b/test/lattice/example1.C @@ -7,23 +7,8 @@ * Copyright (C) 2001-2003 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/lattice/example10.C b/test/lattice/example10.C index 977140629..32de99561 100644 --- a/test/lattice/example10.C +++ b/test/lattice/example10.C @@ -7,23 +7,8 @@ * Copyright (C) 2001-2006 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/lattice/example11.C b/test/lattice/example11.C index a34ef1224..80ae496f3 100644 --- a/test/lattice/example11.C +++ b/test/lattice/example11.C @@ -6,23 +6,8 @@ * * Copyright (C) 2001-2007 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/lattice/example2.C b/test/lattice/example2.C index b144fb5be..7de56abf8 100644 --- a/test/lattice/example2.C +++ b/test/lattice/example2.C @@ -7,23 +7,8 @@ * Copyright (C) 2001-2003 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/lattice/example3.C b/test/lattice/example3.C index 740c0ef7d..39b477529 100644 --- a/test/lattice/example3.C +++ b/test/lattice/example3.C @@ -7,23 +7,8 @@ * Copyright (C) 2001-2003 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/lattice/example4.C b/test/lattice/example4.C index 1b541f3e6..a8c04cfe0 100644 --- a/test/lattice/example4.C +++ b/test/lattice/example4.C @@ -7,23 +7,8 @@ * Copyright (C) 2001-2003 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/lattice/example5.C b/test/lattice/example5.C index de3e0d028..2c983afe0 100644 --- a/test/lattice/example5.C +++ b/test/lattice/example5.C @@ -8,23 +8,8 @@ * Synge Todo , * Ian McCulloch * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/lattice/example6.C b/test/lattice/example6.C index d21804060..91a69eb4b 100644 --- a/test/lattice/example6.C +++ b/test/lattice/example6.C @@ -8,23 +8,8 @@ * Synge Todo , * Ian McCulloch * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/lattice/example7.C b/test/lattice/example7.C index 32601d21c..b9c24ee1d 100644 --- a/test/lattice/example7.C +++ b/test/lattice/example7.C @@ -8,23 +8,8 @@ * Synge Todo , * Ian McCulloch * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/lattice/example8.C b/test/lattice/example8.C index e3d72a11e..0c362a7c4 100644 --- a/test/lattice/example8.C +++ b/test/lattice/example8.C @@ -7,23 +7,8 @@ * Copyright (C) 2001-2005 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/lattice/example9.C b/test/lattice/example9.C index 9add57adb..1e2c2570e 100644 --- a/test/lattice/example9.C +++ b/test/lattice/example9.C @@ -7,23 +7,8 @@ * Copyright (C) 2001-2006 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/lattice/label.C b/test/lattice/label.C index 2e2816ad9..3fc2dc653 100644 --- a/test/lattice/label.C +++ b/test/lattice/label.C @@ -6,23 +6,8 @@ * * Copyright (C) 2006 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/lattice/parity.C b/test/lattice/parity.C index ea77df6fd..8f2d88e69 100644 --- a/test/lattice/parity.C +++ b/test/lattice/parity.C @@ -7,23 +7,8 @@ * Copyright (C) 2001-2006 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/model/example1.C b/test/model/example1.C index 11abc6fd7..ea31983ac 100644 --- a/test/model/example1.C +++ b/test/model/example1.C @@ -6,23 +6,8 @@ * * Copyright (C) 2003 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/model/example10.C b/test/model/example10.C index 93a480c32..4f47c4c8a 100644 --- a/test/model/example10.C +++ b/test/model/example10.C @@ -6,23 +6,8 @@ * * Copyright (C) 2003-2004 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/model/example11.C b/test/model/example11.C index eb47d2f22..3fd22c8d9 100644 --- a/test/model/example11.C +++ b/test/model/example11.C @@ -6,23 +6,8 @@ * * Copyright (C) 2003-2004 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/model/example12.C b/test/model/example12.C index 93a480c32..4f47c4c8a 100644 --- a/test/model/example12.C +++ b/test/model/example12.C @@ -6,23 +6,8 @@ * * Copyright (C) 2003-2004 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/model/example13.C b/test/model/example13.C index 5a6ae0aef..3844b89ae 100644 --- a/test/model/example13.C +++ b/test/model/example13.C @@ -6,23 +6,8 @@ * * Copyright (C) 2003-2004 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/model/example14.C b/test/model/example14.C index 3e50f3c86..1f77dc2f2 100644 --- a/test/model/example14.C +++ b/test/model/example14.C @@ -6,23 +6,8 @@ * * Copyright (C) 2003-2004 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/model/example15.C b/test/model/example15.C index f4bf99cc0..5d193136c 100644 --- a/test/model/example15.C +++ b/test/model/example15.C @@ -6,23 +6,8 @@ * * Copyright (C) 2003-2004 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/model/example16.C b/test/model/example16.C index f4bf99cc0..5d193136c 100644 --- a/test/model/example16.C +++ b/test/model/example16.C @@ -6,23 +6,8 @@ * * Copyright (C) 2003-2004 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/model/example17.C b/test/model/example17.C index 906776660..8925c910d 100644 --- a/test/model/example17.C +++ b/test/model/example17.C @@ -6,23 +6,8 @@ * * Copyright (C) 2003-2006 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/model/example18.C b/test/model/example18.C index 3e954ebbc..bf08a1571 100644 --- a/test/model/example18.C +++ b/test/model/example18.C @@ -6,23 +6,8 @@ * * Copyright (C) 2003-2005 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/model/example2.C b/test/model/example2.C index c378c39de..54e342e90 100644 --- a/test/model/example2.C +++ b/test/model/example2.C @@ -6,23 +6,8 @@ * * Copyright (C) 2003-2004 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/model/example3.C b/test/model/example3.C index 384fde000..79efd78b0 100644 --- a/test/model/example3.C +++ b/test/model/example3.C @@ -6,23 +6,8 @@ * * Copyright (C) 2003-2004 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/model/example4.C b/test/model/example4.C index a6f53db3d..737086be4 100644 --- a/test/model/example4.C +++ b/test/model/example4.C @@ -6,23 +6,8 @@ * * Copyright (C) 2003-2004 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/model/example5.C b/test/model/example5.C index 9bcd8de4c..ba2e74b92 100644 --- a/test/model/example5.C +++ b/test/model/example5.C @@ -6,23 +6,8 @@ * * Copyright (C) 2003-2005 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/model/example6.C b/test/model/example6.C index df221660e..9819e7009 100644 --- a/test/model/example6.C +++ b/test/model/example6.C @@ -7,23 +7,8 @@ * Copyright (C) 2003-2004 by Matthias Troyer , * Axel Grzesik * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/model/example7.C b/test/model/example7.C index 5bfbc3e79..c6c031f6d 100644 --- a/test/model/example7.C +++ b/test/model/example7.C @@ -7,23 +7,8 @@ * Copyright (C) 2003-2004 by Matthias Troyer , * Axel Grzesik * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/model/example8.C b/test/model/example8.C index 8feb775db..e05e23c09 100644 --- a/test/model/example8.C +++ b/test/model/example8.C @@ -6,23 +6,8 @@ * * Copyright (C) 2003-2006 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/model/example9.C b/test/model/example9.C index 412dc6244..f260eb3ec 100644 --- a/test/model/example9.C +++ b/test/model/example9.C @@ -6,23 +6,8 @@ * * Copyright (C) 2003-2004 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/ngs/alea/error_archetype.hpp b/test/ngs/alea/error_archetype.hpp index 0a613cc7c..492154aa1 100644 --- a/test/ngs/alea/error_archetype.hpp +++ b/test/ngs/alea/error_archetype.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/ngs/alea/hist_archetype.hpp b/test/ngs/alea/hist_archetype.hpp index 22e747bfc..1fdd6fd74 100644 --- a/test/ngs/alea/hist_archetype.hpp +++ b/test/ngs/alea/hist_archetype.hpp @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2011 by Lukas Gamper * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ #ifndef HIST_ARCHETYPE_HEADER diff --git a/test/ngs/alea/mean_archetype.hpp b/test/ngs/alea/mean_archetype.hpp index 5c7dedf1e..2e4ad2447 100644 --- a/test/ngs/alea/mean_archetype.hpp +++ b/test/ngs/alea/mean_archetype.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/ngs/alea/ngs_alea_compare.cpp b/test/ngs/alea/ngs_alea_compare.cpp index 3671ce9a9..8545fd47b 100644 --- a/test/ngs/alea/ngs_alea_compare.cpp +++ b/test/ngs/alea/ngs_alea_compare.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2013 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/ngs/alea/ngs_alea_count_test_compile.cpp b/test/ngs/alea/ngs_alea_count_test_compile.cpp index 97d425a94..adb2a2095 100644 --- a/test/ngs/alea/ngs_alea_count_test_compile.cpp +++ b/test/ngs/alea/ngs_alea_count_test_compile.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/ngs/alea/ngs_alea_count_test_runtime.cpp b/test/ngs/alea/ngs_alea_count_test_runtime.cpp index 2cb3df42f..caa9f01d0 100644 --- a/test/ngs/alea/ngs_alea_count_test_runtime.cpp +++ b/test/ngs/alea/ngs_alea_count_test_runtime.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/ngs/alea/ngs_alea_ctor_test_compile.cpp b/test/ngs/alea/ngs_alea_ctor_test_compile.cpp index f35c227ee..683bf2ec4 100644 --- a/test/ngs/alea/ngs_alea_ctor_test_compile.cpp +++ b/test/ngs/alea/ngs_alea_ctor_test_compile.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/ngs/alea/ngs_alea_ctor_test_runtime.cpp b/test/ngs/alea/ngs_alea_ctor_test_runtime.cpp index 9fb156843..04be826cf 100644 --- a/test/ngs/alea/ngs_alea_ctor_test_runtime.cpp +++ b/test/ngs/alea/ngs_alea_ctor_test_runtime.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/ngs/alea/ngs_alea_error_test_compile.cpp b/test/ngs/alea/ngs_alea_error_test_compile.cpp index 8d856c89e..b98577302 100644 --- a/test/ngs/alea/ngs_alea_error_test_compile.cpp +++ b/test/ngs/alea/ngs_alea_error_test_compile.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/ngs/alea/ngs_alea_error_test_runtime.cpp b/test/ngs/alea/ngs_alea_error_test_runtime.cpp index bcc8abd5a..c16b8413c 100644 --- a/test/ngs/alea/ngs_alea_error_test_runtime.cpp +++ b/test/ngs/alea/ngs_alea_error_test_runtime.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/ngs/alea/ngs_alea_fix_size_test_compile.cpp b/test/ngs/alea/ngs_alea_fix_size_test_compile.cpp index 8a4caa74b..f136a9fe1 100644 --- a/test/ngs/alea/ngs_alea_fix_size_test_compile.cpp +++ b/test/ngs/alea/ngs_alea_fix_size_test_compile.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/ngs/alea/ngs_alea_fix_size_test_runtime.cpp b/test/ngs/alea/ngs_alea_fix_size_test_runtime.cpp index e1bc2667d..1d91d6e55 100644 --- a/test/ngs/alea/ngs_alea_fix_size_test_runtime.cpp +++ b/test/ngs/alea/ngs_alea_fix_size_test_runtime.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/ngs/alea/ngs_alea_log_test_compile.cpp b/test/ngs/alea/ngs_alea_log_test_compile.cpp index 8d160fc16..6ca71f85d 100644 --- a/test/ngs/alea/ngs_alea_log_test_compile.cpp +++ b/test/ngs/alea/ngs_alea_log_test_compile.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/ngs/alea/ngs_alea_log_test_runtime.cpp b/test/ngs/alea/ngs_alea_log_test_runtime.cpp index 6c4364143..c9a45f40b 100644 --- a/test/ngs/alea/ngs_alea_log_test_runtime.cpp +++ b/test/ngs/alea/ngs_alea_log_test_runtime.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/ngs/alea/ngs_alea_max_num_test_compile.cpp b/test/ngs/alea/ngs_alea_max_num_test_compile.cpp index 2c40d660c..a772e9863 100644 --- a/test/ngs/alea/ngs_alea_max_num_test_compile.cpp +++ b/test/ngs/alea/ngs_alea_max_num_test_compile.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/ngs/alea/ngs_alea_max_num_test_runtime.cpp b/test/ngs/alea/ngs_alea_max_num_test_runtime.cpp index 1e53823a2..98163424c 100644 --- a/test/ngs/alea/ngs_alea_max_num_test_runtime.cpp +++ b/test/ngs/alea/ngs_alea_max_num_test_runtime.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/ngs/alea/ngs_alea_mean_test_compile.cpp b/test/ngs/alea/ngs_alea_mean_test_compile.cpp index 54071c825..00cff887b 100644 --- a/test/ngs/alea/ngs_alea_mean_test_compile.cpp +++ b/test/ngs/alea/ngs_alea_mean_test_compile.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/ngs/alea/ngs_alea_mean_test_runtime.cpp b/test/ngs/alea/ngs_alea_mean_test_runtime.cpp index 52e58a840..f92762da6 100644 --- a/test/ngs/alea/ngs_alea_mean_test_runtime.cpp +++ b/test/ngs/alea/ngs_alea_mean_test_runtime.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/ngs/alea/ngs_alea_next.cpp b/test/ngs/alea/ngs_alea_next.cpp index b8471d5e3..54cd29028 100644 --- a/test/ngs/alea/ngs_alea_next.cpp +++ b/test/ngs/alea/ngs_alea_next.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2013 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/ngs/alea/ngs_alea_stream_test_compile.cpp b/test/ngs/alea/ngs_alea_stream_test_compile.cpp index 346d70b93..3306a52dd 100644 --- a/test/ngs/alea/ngs_alea_stream_test_compile.cpp +++ b/test/ngs/alea/ngs_alea_stream_test_compile.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/ngs/alea/ngs_alea_stream_test_runtime.cpp b/test/ngs/alea/ngs_alea_stream_test_runtime.cpp index 8d18dbfcf..bcdb26e52 100644 --- a/test/ngs/alea/ngs_alea_stream_test_runtime.cpp +++ b/test/ngs/alea/ngs_alea_stream_test_runtime.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/ngs/alea/ngs_alea_value_type_test.cpp b/test/ngs/alea/ngs_alea_value_type_test.cpp index f81c96ab4..99039dffb 100644 --- a/test/ngs/alea/ngs_alea_value_type_test.cpp +++ b/test/ngs/alea/ngs_alea_value_type_test.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/ngs/alea/ngs_alea_weight_type_test.cpp b/test/ngs/alea/ngs_alea_weight_type_test.cpp index 8ebb189da..3b00ae5ab 100644 --- a/test/ngs/alea/ngs_alea_weight_type_test.cpp +++ b/test/ngs/alea/ngs_alea_weight_type_test.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/ngs/alea/ngs_alea_wrapper_test_compile.cpp b/test/ngs/alea/ngs_alea_wrapper_test_compile.cpp index 4897bd38c..a1056bea1 100644 --- a/test/ngs/alea/ngs_alea_wrapper_test_compile.cpp +++ b/test/ngs/alea/ngs_alea_wrapper_test_compile.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/ngs/alea/ngs_alea_wrapper_test_runtime.cpp b/test/ngs/alea/ngs_alea_wrapper_test_runtime.cpp index 0e04da77f..b3f62d977 100644 --- a/test/ngs/alea/ngs_alea_wrapper_test_runtime.cpp +++ b/test/ngs/alea/ngs_alea_wrapper_test_runtime.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2011 - 2012 by Mario Koenz * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/ngs/ngs_hash.cpp b/test/ngs/ngs_hash.cpp index 03ee20df9..22a36dc2c 100644 --- a/test/ngs/ngs_hash.cpp +++ b/test/ngs/ngs_hash.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/ngs/ngs_hdf5.cpp b/test/ngs/ngs_hdf5.cpp index e34186e28..bcf4c1588 100644 --- a/test/ngs/ngs_hdf5.cpp +++ b/test/ngs/ngs_hdf5.cpp @@ -7,23 +7,8 @@ * Copyright (C) 2010 - 2011 by Lukas Gamper * * Matthias Troyer * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/ngs/params/assign.cpp b/test/ngs/params/assign.cpp index 0befb51ac..7e933d259 100644 --- a/test/ngs/params/assign.cpp +++ b/test/ngs/params/assign.cpp @@ -7,23 +7,8 @@ * Copyright (C) 2010 - 2011 by Lukas Gamper * * Matthias Troyer * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/ngs/params/default.cpp b/test/ngs/params/default.cpp index acca14ef6..a075aa31e 100644 --- a/test/ngs/params/default.cpp +++ b/test/ngs/params/default.cpp @@ -7,23 +7,8 @@ * Copyright (C) 2010 - 2011 by Lukas Gamper * * Matthias Troyer * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/ngs/params/ordering.cpp b/test/ngs/params/ordering.cpp index 245fca470..3076c6ec2 100644 --- a/test/ngs/params/ordering.cpp +++ b/test/ngs/params/ordering.cpp @@ -7,23 +7,8 @@ * Copyright (C) 2010 - 2011 by Lukas Gamper * * Matthias Troyer * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/ngs/params/stream.cpp b/test/ngs/params/stream.cpp index bcfe00749..64d599a1b 100644 --- a/test/ngs/params/stream.cpp +++ b/test/ngs/params/stream.cpp @@ -7,23 +7,8 @@ * Copyright (C) 2010 - 2011 by Lukas Gamper * * Matthias Troyer * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/ngs/params/todo.cpp b/test/ngs/params/todo.cpp index 16971ea9f..3da3c5da9 100644 --- a/test/ngs/params/todo.cpp +++ b/test/ngs/params/todo.cpp @@ -7,23 +7,8 @@ * Copyright (C) 2010 - 2011 by Lukas Gamper * * Matthias Troyer * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/ngs/scheduler/sum_mpi.cpp b/test/ngs/scheduler/sum_mpi.cpp index 85430c051..cb184c1c0 100644 --- a/test/ngs/scheduler/sum_mpi.cpp +++ b/test/ngs/scheduler/sum_mpi.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/ngs/scheduler/sum_single.cpp b/test/ngs/scheduler/sum_single.cpp index 9a35efd27..4c04c3066 100644 --- a/test/ngs/scheduler/sum_single.cpp +++ b/test/ngs/scheduler/sum_single.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/numeric/accumulate_if.C b/test/numeric/accumulate_if.C index c13b3f2ff..82bb1871c 100644 --- a/test/numeric/accumulate_if.C +++ b/test/numeric/accumulate_if.C @@ -7,23 +7,8 @@ * Copyright (C) 1994-2010 by Ping Nang Ma , * Matthias Troyer , * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/numeric/matrix_algorithms.C b/test/numeric/matrix_algorithms.C index 8d01dcd3e..f5212ac0c 100644 --- a/test/numeric/matrix_algorithms.C +++ b/test/numeric/matrix_algorithms.C @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 by Tim Ewart * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/numeric/matrix_column_view.C b/test/numeric/matrix_column_view.C index 83f4ec255..bb0abf8b1 100644 --- a/test/numeric/matrix_column_view.C +++ b/test/numeric/matrix_column_view.C @@ -6,23 +6,8 @@ * * * Copyright (C) 2013 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #include "matrix_unit_tests.hpp" diff --git a/test/numeric/matrix_deprecated_hdf5_format_test.C b/test/numeric/matrix_deprecated_hdf5_format_test.C index 0cad2ec68..91855ab55 100644 --- a/test/numeric/matrix_deprecated_hdf5_format_test.C +++ b/test/numeric/matrix_deprecated_hdf5_format_test.C @@ -7,23 +7,8 @@ * Copyright (C) 2013 by Michele Dolfi , * * Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/numeric/matrix_hdf5.C b/test/numeric/matrix_hdf5.C index dd69ff5a7..a0ce4d276 100644 --- a/test/numeric/matrix_hdf5.C +++ b/test/numeric/matrix_hdf5.C @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/numeric/matrix_kron.C b/test/numeric/matrix_kron.C index 07abd2201..68978e449 100644 --- a/test/numeric/matrix_kron.C +++ b/test/numeric/matrix_kron.C @@ -6,23 +6,8 @@ * * Copyright (C) 2026 by the ALPS collaboration * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/numeric/matrix_transpose_view.C b/test/numeric/matrix_transpose_view.C index 1e7de8661..6ba820f29 100644 --- a/test/numeric/matrix_transpose_view.C +++ b/test/numeric/matrix_transpose_view.C @@ -6,23 +6,8 @@ * * * Copyright (C) 2013 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #include "matrix_unit_tests.hpp" diff --git a/test/numeric/matrix_unit_tests.C b/test/numeric/matrix_unit_tests.C index 730aa2b64..8b2354ee7 100644 --- a/test/numeric/matrix_unit_tests.C +++ b/test/numeric/matrix_unit_tests.C @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/numeric/matrix_unit_tests.hpp b/test/numeric/matrix_unit_tests.hpp index 8a7b5259c..d7f944911 100644 --- a/test/numeric/matrix_unit_tests.hpp +++ b/test/numeric/matrix_unit_tests.hpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 by Andreas Hehn * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/numeric/real_tests.C b/test/numeric/real_tests.C index ccb486ca7..f79193c0c 100644 --- a/test/numeric/real_tests.C +++ b/test/numeric/real_tests.C @@ -6,23 +6,8 @@ * * * Copyright (C) 2012 by Michele Dolfi * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/test/numeric/vector_functions.C b/test/numeric/vector_functions.C index 6f0423fa9..94ffcea16 100644 --- a/test/numeric/vector_functions.C +++ b/test/numeric/vector_functions.C @@ -7,23 +7,8 @@ * Copyright (C) 1994-2010 by Ping Nang Ma , * Matthias Troyer , * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/numeric/vector_valarray_conversion.C b/test/numeric/vector_valarray_conversion.C index 26810fd06..b4eb86540 100644 --- a/test/numeric/vector_valarray_conversion.C +++ b/test/numeric/vector_valarray_conversion.C @@ -7,23 +7,8 @@ * Copyright (C) 1994-2010 by Ping Nang Ma , * Matthias Troyer , * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/osiris/boostdump.C b/test/osiris/boostdump.C index 253e074d8..dc25d37cf 100644 --- a/test/osiris/boostdump.C +++ b/test/osiris/boostdump.C @@ -7,23 +7,8 @@ * Copyright (C) 2001-2003 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/osiris/boostdump2.C b/test/osiris/boostdump2.C index 08b3baedb..75a4dae67 100644 --- a/test/osiris/boostdump2.C +++ b/test/osiris/boostdump2.C @@ -7,23 +7,8 @@ * Copyright (C) 2001-2003 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/osiris/boostdump3.C b/test/osiris/boostdump3.C index 8aac076b4..10a029b52 100644 --- a/test/osiris/boostdump3.C +++ b/test/osiris/boostdump3.C @@ -7,23 +7,8 @@ * Copyright (C) 2001-2005 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/osiris/boostdump4.C b/test/osiris/boostdump4.C index 5d02e0d27..f50c87a70 100644 --- a/test/osiris/boostdump4.C +++ b/test/osiris/boostdump4.C @@ -7,23 +7,8 @@ * Copyright (C) 2001-2005 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/osiris/os.C b/test/osiris/os.C index 404d18d14..f215cd78c 100644 --- a/test/osiris/os.C +++ b/test/osiris/os.C @@ -6,23 +6,8 @@ * * Copyright (C) 2008 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/osiris/sizeof.C b/test/osiris/sizeof.C index bb5dd7916..4824b253f 100644 --- a/test/osiris/sizeof.C +++ b/test/osiris/sizeof.C @@ -6,23 +6,8 @@ * * Copyright (C) 2003 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/osiris/xdrdump.C b/test/osiris/xdrdump.C index e8ced69af..0b32cbc90 100644 --- a/test/osiris/xdrdump.C +++ b/test/osiris/xdrdump.C @@ -7,23 +7,8 @@ * Copyright (C) 2001-2003 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/osiris/xdrdump2.C b/test/osiris/xdrdump2.C index c2b6b4c3f..03feeca9b 100644 --- a/test/osiris/xdrdump2.C +++ b/test/osiris/xdrdump2.C @@ -7,23 +7,8 @@ * Copyright (C) 2001-2003 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/parameter/expression.C b/test/parameter/expression.C index 5350fb62e..4ee204b6a 100644 --- a/test/parameter/expression.C +++ b/test/parameter/expression.C @@ -7,23 +7,8 @@ * Copyright (C) 2001-2006 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/parameter/expression2.C b/test/parameter/expression2.C index 7b5444e89..967c6d43e 100644 --- a/test/parameter/expression2.C +++ b/test/parameter/expression2.C @@ -7,23 +7,8 @@ * Copyright (C) 2001-2003 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/parameter/flatten.C b/test/parameter/flatten.C index 3e5ac17a7..f1bb799cf 100644 --- a/test/parameter/flatten.C +++ b/test/parameter/flatten.C @@ -7,23 +7,8 @@ * Copyright (C) 2001-2002 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/parameter/parameter.C b/test/parameter/parameter.C index a07f870c5..e4b4d0762 100644 --- a/test/parameter/parameter.C +++ b/test/parameter/parameter.C @@ -6,23 +6,8 @@ * * Copyright (C) 2006-2009 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/parameter/parameterlist.C b/test/parameter/parameterlist.C index 7471ca055..0d283c737 100644 --- a/test/parameter/parameterlist.C +++ b/test/parameter/parameterlist.C @@ -7,23 +7,8 @@ * Copyright (C) 2001-2009 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/parameter/parameterlist_xml.C b/test/parameter/parameterlist_xml.C index b9da497d1..dc7283585 100644 --- a/test/parameter/parameterlist_xml.C +++ b/test/parameter/parameterlist_xml.C @@ -7,23 +7,8 @@ * Copyright (C) 2001-2006 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/parameter/parameters.C b/test/parameter/parameters.C index 3de8cd2a0..176e56852 100644 --- a/test/parameter/parameters.C +++ b/test/parameter/parameters.C @@ -6,23 +6,8 @@ * * Copyright (C) 2006-2009 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/parameter/parameters_hdf5.C b/test/parameter/parameters_hdf5.C index 3f3bdfe2b..53100b398 100644 --- a/test/parameter/parameters_hdf5.C +++ b/test/parameter/parameters_hdf5.C @@ -6,23 +6,8 @@ * * Copyright (C) 2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/parameter/parameters_mpi.C b/test/parameter/parameters_mpi.C index f6bb1a5fb..b2c57a397 100644 --- a/test/parameter/parameters_mpi.C +++ b/test/parameter/parameters_mpi.C @@ -6,23 +6,8 @@ * * Copyright (C) 2008 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/parameter/parameters_xml.C b/test/parameter/parameters_xml.C index d6c8beeda..5fbf1c68f 100644 --- a/test/parameter/parameters_xml.C +++ b/test/parameter/parameters_xml.C @@ -7,23 +7,8 @@ * Copyright (C) 2001-2006 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/parapack/clone_info.C b/test/parapack/clone_info.C index da8b65f5f..38d724dfd 100644 --- a/test/parapack/clone_info.C +++ b/test/parapack/clone_info.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/parapack/clone_mpi.C b/test/parapack/clone_mpi.C index 755070e8d..cc9271a04 100644 --- a/test/parapack/clone_mpi.C +++ b/test/parapack/clone_mpi.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2008 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/parapack/clone_phase.C b/test/parapack/clone_phase.C index 8c6669d5d..b2b26e29d 100644 --- a/test/parapack/clone_phase.C +++ b/test/parapack/clone_phase.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/parapack/clone_timer.C b/test/parapack/clone_timer.C index bcbac8b7d..d675671ec 100644 --- a/test/parapack/clone_timer.C +++ b/test/parapack/clone_timer.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2009 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/parapack/collect_mpi.C b/test/parapack/collect_mpi.C index 512f3db4f..3acec3c09 100644 --- a/test/parapack/collect_mpi.C +++ b/test/parapack/collect_mpi.C @@ -6,23 +6,8 @@ * * Copyright (C) 2005-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/parapack/comm_mpi.C b/test/parapack/comm_mpi.C index 83ae6aadd..61421ddf7 100644 --- a/test/parapack/comm_mpi.C +++ b/test/parapack/comm_mpi.C @@ -6,23 +6,8 @@ * * Copyright (C) 2005-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/parapack/exmc_optimize.C b/test/parapack/exmc_optimize.C index 4d41dbe96..81c97fb1c 100644 --- a/test/parapack/exmc_optimize.C +++ b/test/parapack/exmc_optimize.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2011 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/parapack/exp_number.C b/test/parapack/exp_number.C index 4c0b84041..d40a4148b 100644 --- a/test/parapack/exp_number.C +++ b/test/parapack/exp_number.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2009 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/parapack/filelock_mpi.C b/test/parapack/filelock_mpi.C index 993e2681d..63a6338d3 100644 --- a/test/parapack/filelock_mpi.C +++ b/test/parapack/filelock_mpi.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/parapack/footprint.C b/test/parapack/footprint.C index 19d73c553..01c73d0f9 100644 --- a/test/parapack/footprint.C +++ b/test/parapack/footprint.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/parapack/halt_mpi.C b/test/parapack/halt_mpi.C index a13cbe20b..106e92a2e 100644 --- a/test/parapack/halt_mpi.C +++ b/test/parapack/halt_mpi.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/parapack/id2string.C b/test/parapack/id2string.C index d88190114..528750359 100644 --- a/test/parapack/id2string.C +++ b/test/parapack/id2string.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2008 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/parapack/info_test.C b/test/parapack/info_test.C index aea6e5e70..2b29cd08a 100644 --- a/test/parapack/info_test.C +++ b/test/parapack/info_test.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2009 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/parapack/info_test_mpi.C b/test/parapack/info_test_mpi.C index 660aff2e4..b67b8af49 100644 --- a/test/parapack/info_test_mpi.C +++ b/test/parapack/info_test_mpi.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/parapack/integer_range.C b/test/parapack/integer_range.C index 68495ed98..6d6f0f189 100644 --- a/test/parapack/integer_range.C +++ b/test/parapack/integer_range.C @@ -6,23 +6,8 @@ * * Copyright (C) 2005-2008 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/parapack/linear_regression.C b/test/parapack/linear_regression.C index a21abfbb7..3867ae691 100644 --- a/test/parapack/linear_regression.C +++ b/test/parapack/linear_regression.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2011 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/parapack/merge.C b/test/parapack/merge.C index bb2761705..6c4b5f55f 100644 --- a/test/parapack/merge.C +++ b/test/parapack/merge.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2008 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/parapack/percentage.C b/test/parapack/percentage.C index a9402340a..d83de156d 100644 --- a/test/parapack/percentage.C +++ b/test/parapack/percentage.C @@ -6,23 +6,8 @@ * * Copyright (C) 2005-2008 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/parapack/process_mpi.C b/test/parapack/process_mpi.C index 5f7f74a2a..0c3d70889 100644 --- a/test/parapack/process_mpi.C +++ b/test/parapack/process_mpi.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/parapack/temperature_scan.C b/test/parapack/temperature_scan.C index f0de1c11a..bd1c514dc 100644 --- a/test/parapack/temperature_scan.C +++ b/test/parapack/temperature_scan.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2009 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/parapack/time.C b/test/parapack/time.C index 7f140a2a4..f86fc285f 100644 --- a/test/parapack/time.C +++ b/test/parapack/time.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2008 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/parapack/version.C b/test/parapack/version.C index 12bd58dfb..bba8234e8 100644 --- a/test/parapack/version.C +++ b/test/parapack/version.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/parapack/wl_weight.C b/test/parapack/wl_weight.C index 1cdfd2d3c..6319d1a10 100644 --- a/test/parapack/wl_weight.C +++ b/test/parapack/wl_weight.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2008 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/parapack/worker_mpi.C b/test/parapack/worker_mpi.C index c8b95d936..688528616 100644 --- a/test/parapack/worker_mpi.C +++ b/test/parapack/worker_mpi.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2008 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/parser/xmlhandler.C b/test/parser/xmlhandler.C index 4a7b02f7b..e28d93103 100644 --- a/test/parser/xmlhandler.C +++ b/test/parser/xmlhandler.C @@ -6,23 +6,8 @@ * * Copyright (C) 2001-2003 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/parser/xmlparser.C b/test/parser/xmlparser.C index a35753d77..4df0ce94f 100644 --- a/test/parser/xmlparser.C +++ b/test/parser/xmlparser.C @@ -7,23 +7,8 @@ * Copyright (C) 2001-2003 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/parser/xmlstream.C b/test/parser/xmlstream.C index b2481cddd..f9f5fc3d7 100644 --- a/test/parser/xmlstream.C +++ b/test/parser/xmlstream.C @@ -6,23 +6,8 @@ * * Copyright (C) 2001-2006 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/pyalps/hlist_test.py b/test/pyalps/hlist_test.py index a4c2b502a..07a795361 100644 --- a/test/pyalps/hlist_test.py +++ b/test/pyalps/hlist_test.py @@ -6,22 +6,8 @@ # # Copyright (C) 2010 by Ping Nang Ma # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** from pyalps.hlist import HList diff --git a/test/pyalps/loadobs.cpp b/test/pyalps/loadobs.cpp index 57cb2c7a2..c8b20473a 100644 --- a/test/pyalps/loadobs.cpp +++ b/test/pyalps/loadobs.cpp @@ -6,23 +6,8 @@ * * Copyright (C) 2010 by Lukas Gamper * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/pyalps/loadobs.py b/test/pyalps/loadobs.py index 08a6a50bd..761624248 100644 --- a/test/pyalps/loadobs.py +++ b/test/pyalps/loadobs.py @@ -8,22 +8,8 @@ # Copyright (C) 2010 by Lukas Gamper # Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/test/pyalps/mcanalyze.py b/test/pyalps/mcanalyze.py index bd8ed7576..cf2ddd3be 100644 --- a/test/pyalps/mcanalyze.py +++ b/test/pyalps/mcanalyze.py @@ -8,22 +8,8 @@ # Copyright (C) 2010 by Lukas Gamper # Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/test/pyalps/mcdata_test.py b/test/pyalps/mcdata_test.py index a9c937be6..56bdb7b17 100644 --- a/test/pyalps/mcdata_test.py +++ b/test/pyalps/mcdata_test.py @@ -9,22 +9,8 @@ # Lukas Gamper # Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/test/pyalps/numpylarge.py b/test/pyalps/numpylarge.py index c230bf87b..77cf29c18 100644 --- a/test/pyalps/numpylarge.py +++ b/test/pyalps/numpylarge.py @@ -7,22 +7,8 @@ # # # Copyright (C) 2010 - 2012 by Lukas Gamper # # # - # This software is part of the ALPS libraries, published under the ALPS # - # Library License; you can use, redistribute it and/or modify it under # - # the terms of the license, either version 1 or (at your option) any later # - # version. # - # # - # You should have received a copy of the ALPS Library License along with # - # the ALPS Libraries; see the file LICENSE.txt. If not, the license is also # - # available from http://alps.comp-phys.org/. # - # # - # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # - # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # - # FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT # - # SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE # - # FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, # - # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # - # DEALINGS IN THE SOFTWARE. # + # ALPS Project: https://alps.comp-phys.org/ # + # SPDX-License-Identifier: MIT # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # diff --git a/test/pyalps/pyhdf5_test.py b/test/pyalps/pyhdf5_test.py index 40fb76a68..efee3a53a 100644 --- a/test/pyalps/pyhdf5_test.py +++ b/test/pyalps/pyhdf5_test.py @@ -8,22 +8,8 @@ # Copyright (C) 2010 by Lukas Gamper # Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/test/pyalps/pyhdf5io_test.py b/test/pyalps/pyhdf5io_test.py index d44c29a7a..cdae9d723 100644 --- a/test/pyalps/pyhdf5io_test.py +++ b/test/pyalps/pyhdf5io_test.py @@ -8,22 +8,8 @@ # Copyright (C) 2010 - 2012 by Lukas Gamper # # 2016 - 2016 by Michele Dolfi # # # - # This software is part of the ALPS libraries, published under the ALPS # - # Library License; you can use, redistribute it and/or modify it under # - # the terms of the license, either version 1 or (at your option) any later # - # version. # - # # - # You should have received a copy of the ALPS Library License along with # - # the ALPS Libraries; see the file LICENSE.txt. If not, the license is also # - # available from http://alps.comp-phys.org/. # - # # - # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # - # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # - # FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT # - # SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE # - # FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, # - # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # - # DEALINGS IN THE SOFTWARE. # + # ALPS Project: https://alps.comp-phys.org/ # + # SPDX-License-Identifier: MIT # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # diff --git a/test/pyalps/pyioarchive.py b/test/pyalps/pyioarchive.py index ba659895a..81e4d8c82 100644 --- a/test/pyalps/pyioarchive.py +++ b/test/pyalps/pyioarchive.py @@ -6,22 +6,8 @@ # # # Copyright (C) 2010 - 2012 by Lukas Gamper # # # - # This software is part of the ALPS libraries, published under the ALPS # - # Library License; you can use, redistribute it and/or modify it under # - # the terms of the license, either version 1 or (at your option) any later # - # version. # - # # - # You should have received a copy of the ALPS Library License along with # - # the ALPS Libraries; see the file LICENSE.txt. If not, the license is also # - # available from http://alps.comp-phys.org/. # - # # - # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # - # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # - # FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT # - # SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE # - # FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, # - # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # - # DEALINGS IN THE SOFTWARE. # + # ALPS Project: https://alps.comp-phys.org/ # + # SPDX-License-Identifier: MIT # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # diff --git a/test/pyalps/pyparams_test.py b/test/pyalps/pyparams_test.py index 09b4e5388..98336b7b6 100644 --- a/test/pyalps/pyparams_test.py +++ b/test/pyalps/pyparams_test.py @@ -7,22 +7,8 @@ # # # Copyright (C) 2010 - 2012 by Lukas Gamper # # # - # This software is part of the ALPS libraries, published under the ALPS # - # Library License; you can use, redistribute it and/or modify it under # - # the terms of the license, either version 1 or (at your option) any later # - # version. # - # # - # You should have received a copy of the ALPS Library License along with # - # the ALPS Libraries; see the file LICENSE.txt. If not, the license is also # - # available from http://alps.comp-phys.org/. # - # # - # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # - # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # - # FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT # - # SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE # - # FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, # - # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # - # DEALINGS IN THE SOFTWARE. # + # ALPS Project: https://alps.comp-phys.org/ # + # SPDX-License-Identifier: MIT # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # diff --git a/test/random/random_choice.C b/test/random/random_choice.C index 77a19594b..ce1252679 100644 --- a/test/random/random_choice.C +++ b/test/random/random_choice.C @@ -6,23 +6,8 @@ * * Copyright (C) 2006-2013 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/random/uniform_on_sphere_n.C b/test/random/uniform_on_sphere_n.C index 9cf218188..a1761e131 100644 --- a/test/random/uniform_on_sphere_n.C +++ b/test/random/uniform_on_sphere_n.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2012 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/utility/bitops.cpp b/test/utility/bitops.cpp index 17ccab2b4..a59081a5c 100644 --- a/test/utility/bitops.cpp +++ b/test/utility/bitops.cpp @@ -6,23 +6,8 @@ * * Copyright (C) 2013 by Andreas Hehn * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/test/utility/vmusage.cpp b/test/utility/vmusage.cpp index df01621ae..40120234c 100644 --- a/test/utility/vmusage.cpp +++ b/test/utility/vmusage.cpp @@ -7,23 +7,8 @@ * Copyright (C) 2010-2012 by Haruhiko Matsuo , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/tool/alea/mcanalyze_tools.hpp b/tool/alea/mcanalyze_tools.hpp index 7c13c8c86..4be9f1d98 100644 --- a/tool/alea/mcanalyze_tools.hpp +++ b/tool/alea/mcanalyze_tools.hpp @@ -6,23 +6,8 @@ * Matthias Troyer , * Maximilian Poprawe * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/tool/alea/mcanalyze_tools.ipp b/tool/alea/mcanalyze_tools.ipp index c7ead9aee..3fafe4183 100644 --- a/tool/alea/mcanalyze_tools.ipp +++ b/tool/alea/mcanalyze_tools.ipp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/tool/alea/mcanalyze_tools.py b/tool/alea/mcanalyze_tools.py index 934bb5ff6..c9eda22f8 100644 --- a/tool/alea/mcanalyze_tools.py +++ b/tool/alea/mcanalyze_tools.py @@ -7,23 +7,8 @@ #* Matthias Troyer , #* Maximilian Poprawe #* -#* Permission is hereby granted, free of charge, to any person obtaining -#* a copy of this software and associated documentation files (the “Software”), -#* to deal in the Software without restriction, including without limitation -#* the rights to use, copy, modify, merge, publish, distribute, sublicense, -#* and/or sell copies of the Software, and to permit persons to whom the -#* Software is furnished to do so, subject to the following conditions: -#* -#* The above copyright notice and this permission notice shall be included -#* in all copies or substantial portions of the Software. -#* -#* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -#* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -#* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -#* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -#* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -#* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -#* DEALINGS IN THE SOFTWARE. +#* ALPS Project: https://alps.comp-phys.org/ +#* SPDX-License-Identifier: MIT #* #*****************************************************************************/ diff --git a/tool/alea/mean.cpp b/tool/alea/mean.cpp index bf9995935..611f54ec4 100644 --- a/tool/alea/mean.cpp +++ b/tool/alea/mean.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/tool/alea/mean.py b/tool/alea/mean.py index 22cfa2799..8b06b83a6 100644 --- a/tool/alea/mean.py +++ b/tool/alea/mean.py @@ -7,23 +7,8 @@ #* Matthias Troyer , #* Maximilian Poprawe #* -#* Permission is hereby granted, free of charge, to any person obtaining -#* a copy of this software and associated documentation files (the “Software”), -#* to deal in the Software without restriction, including without limitation -#* the rights to use, copy, modify, merge, publish, distribute, sublicense, -#* and/or sell copies of the Software, and to permit persons to whom the -#* Software is furnished to do so, subject to the following conditions: -#* -#* The above copyright notice and this permission notice shall be included -#* in all copies or substantial portions of the Software. -#* -#* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -#* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -#* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -#* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -#* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -#* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -#* DEALINGS IN THE SOFTWARE. +#* ALPS Project: https://alps.comp-phys.org/ +#* SPDX-License-Identifier: MIT #* #*****************************************************************************/ diff --git a/tool/alea/variance.cpp b/tool/alea/variance.cpp index 93e7d8990..bae7b88cd 100644 --- a/tool/alea/variance.cpp +++ b/tool/alea/variance.cpp @@ -6,23 +6,8 @@ * * * Copyright (C) 2010 - 2011 by Lukas Gamper * * * - * Permission is hereby granted, free of charge, to any person obtaining * - * a copy of this software and associated documentation files (the “Software”), * - * to deal in the Software without restriction, including without limitation * - * the rights to use, copy, modify, merge, publish, distribute, sublicense, * - * and/or sell copies of the Software, and to permit persons to whom the * - * Software is furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included * - * in all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS * - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/tool/alea/variance.py b/tool/alea/variance.py index 2e830f446..b15225e8f 100644 --- a/tool/alea/variance.py +++ b/tool/alea/variance.py @@ -7,23 +7,8 @@ #* Matthias Troyer , #* Maximilian Poprawe #* -#* Permission is hereby granted, free of charge, to any person obtaining -#* a copy of this software and associated documentation files (the “Software”), -#* to deal in the Software without restriction, including without limitation -#* the rights to use, copy, modify, merge, publish, distribute, sublicense, -#* and/or sell copies of the Software, and to permit persons to whom the -#* Software is furnished to do so, subject to the following conditions: -#* -#* The above copyright notice and this permission notice shall be included -#* in all copies or substantial portions of the Software. -#* -#* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -#* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -#* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -#* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -#* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -#* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -#* DEALINGS IN THE SOFTWARE. +#* ALPS Project: https://alps.comp-phys.org/ +#* SPDX-License-Identifier: MIT #* #*****************************************************************************/ diff --git a/tool/archive.cpp b/tool/archive.cpp index 30b2de031..bf9e204e8 100644 --- a/tool/archive.cpp +++ b/tool/archive.cpp @@ -7,23 +7,8 @@ * Copyright (C) 2005-2008 by Lukas Gamper , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/tool/archive_index.cpp b/tool/archive_index.cpp index 4273d6e01..3b0656ab1 100644 --- a/tool/archive_index.cpp +++ b/tool/archive_index.cpp @@ -7,23 +7,8 @@ * Copyright (C) 2006-2013 by Lukas Gamper , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/tool/archive_index.hpp b/tool/archive_index.hpp index d7b639493..480caac1e 100644 --- a/tool/archive_index.hpp +++ b/tool/archive_index.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2005-2009 by Lukas Gamper , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/tool/archive_node.cpp b/tool/archive_node.cpp index 8efec6afd..9b1aa8951 100644 --- a/tool/archive_node.cpp +++ b/tool/archive_node.cpp @@ -7,23 +7,8 @@ * Copyright (C) 2005-2008 by Lukas Gamper , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/tool/archive_node.hpp b/tool/archive_node.hpp index d43ba60f5..d7bf147dc 100644 --- a/tool/archive_node.hpp +++ b/tool/archive_node.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2005-2008 by Lukas Gamper , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/tool/archive_plot.cpp b/tool/archive_plot.cpp index 909857db8..96229298e 100644 --- a/tool/archive_plot.cpp +++ b/tool/archive_plot.cpp @@ -8,23 +8,8 @@ * Synge Todo , * Niall Moran * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/tool/archive_plot.hpp b/tool/archive_plot.hpp index 42d971406..9ded02026 100644 --- a/tool/archive_plot.hpp +++ b/tool/archive_plot.hpp @@ -6,23 +6,8 @@ * * Copyright (C) 2005 by Lukas Gamper * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/tool/archive_sqlite.cpp b/tool/archive_sqlite.cpp index 29ebf5806..8f13c84ab 100644 --- a/tool/archive_sqlite.cpp +++ b/tool/archive_sqlite.cpp @@ -7,23 +7,8 @@ * Copyright (C) 2005-2008 by Lukas Gamper , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/tool/archive_sqlite.hpp b/tool/archive_sqlite.hpp index 1b4890e6c..734c3d575 100644 --- a/tool/archive_sqlite.hpp +++ b/tool/archive_sqlite.hpp @@ -7,23 +7,8 @@ * Copyright (C) 2005-2006 by Lukas Gamper , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/tool/archive_xml.cpp b/tool/archive_xml.cpp index 59d61c890..37db92a0b 100644 --- a/tool/archive_xml.cpp +++ b/tool/archive_xml.cpp @@ -8,23 +8,8 @@ * Synge Todo , * Niall Moran * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/tool/archive_xml.hpp b/tool/archive_xml.hpp index 43a7a2fb8..3eb30b412 100644 --- a/tool/archive_xml.hpp +++ b/tool/archive_xml.hpp @@ -6,23 +6,8 @@ * * Copyright (C) 2005 by Lukas Gamper * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/tool/compactrun.C b/tool/compactrun.C index 5dc0a1e30..3ec7d7037 100644 --- a/tool/compactrun.C +++ b/tool/compactrun.C @@ -6,23 +6,8 @@ * * Copyright (C) 2002-2003 by Matthias Troyer * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/tool/config.py.in b/tool/config.py.in index 3982bde75..f939a7d0e 100644 --- a/tool/config.py.in +++ b/tool/config.py.in @@ -6,22 +6,8 @@ # # Copyright (C) 2006-2009 by Synge Todo # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # ############################################################################## diff --git a/tool/convert2xml.C b/tool/convert2xml.C index c77cd241c..38997b5da 100644 --- a/tool/convert2xml.C +++ b/tool/convert2xml.C @@ -8,23 +8,8 @@ * Simon Trebst , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/tool/default_model.hpp b/tool/default_model.hpp index 29bab6bb8..63ea89d76 100644 --- a/tool/default_model.hpp +++ b/tool/default_model.hpp @@ -6,22 +6,8 @@ * Thomas Pruschke * Matthias Troyer * -* This software is part of the ALPS Applications, published under the ALPS -* Application License; you can use, redistribute it and/or modify it under -* the terms of the license, either version 1 or (at your option) any later -* version. -* -* You should have received a copy of the ALPS Application License along with -* the ALPS Applications; see the file LICENSE.txt. If not, the license is also -* available from http://alps.comp-phys.org/. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -* SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -* FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/tool/lattice2xml.C b/tool/lattice2xml.C index a901b6103..267cff496 100644 --- a/tool/lattice2xml.C +++ b/tool/lattice2xml.C @@ -6,23 +6,8 @@ * * Copyright (C) 2006-2009 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/tool/license.py b/tool/license.py index f148c7143..ae7795807 100644 --- a/tool/license.py +++ b/tool/license.py @@ -6,22 +6,8 @@ # # Copyright (C) 2006-2009 by Synge Todo # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # ############################################################################## diff --git a/tool/maxent.cpp b/tool/maxent.cpp index eb43d8d96..ae5b4ac21 100644 --- a/tool/maxent.cpp +++ b/tool/maxent.cpp @@ -6,22 +6,8 @@ * Thomas Pruschke * Matthias Troyer * -* This software is part of the ALPS Applications, published under the ALPS -* Application License; you can use, redistribute it and/or modify it under -* the terms of the license, either version 1 or (at your option) any later -* version. -* -* You should have received a copy of the ALPS Application License along with -* the ALPS Applications; see the file LICENSE.txt. If not, the license is also -* available from http://alps.comp-phys.org/. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -* SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -* FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/tool/maxent.hpp b/tool/maxent.hpp index 0a289a7d3..97a1b15c8 100644 --- a/tool/maxent.hpp +++ b/tool/maxent.hpp @@ -7,22 +7,8 @@ * Matthias Troyer * 2011 by Emanuel Gull * -* This software is part of the ALPS Applications, published under the ALPS -* Application License; you can use, redistribute it and/or modify it under -* the terms of the license, either version 1 or (at your option) any later -* version. -* -* You should have received a copy of the ALPS Application License along with -* the ALPS Applications; see the file LICENSE.txt. If not, the license is also -* available from http://alps.comp-phys.org/. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -* SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -* FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/tool/maxent_helper.cpp b/tool/maxent_helper.cpp index 1cba2ff9a..3b5f65a5c 100644 --- a/tool/maxent_helper.cpp +++ b/tool/maxent_helper.cpp @@ -7,22 +7,8 @@ * Matthias Troyer * 2011 by Emanuel Gull * - * This software is part of the ALPS Applications, published under the ALPS - * Application License; you can use, redistribute it and/or modify it under - * the terms of the license, either version 1 or (at your option) any later - * version. - * - * You should have received a copy of the ALPS Application License along with - * the ALPS Applications; see the file LICENSE.txt. If not, the license is also - * available from http://alps.comp-phys.org/. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT - * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE - * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - * DEALINGS IN THE SOFTWARE. + * ALPS Project: https://alps.comp-phys.org/ + * SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/tool/maxent_parms.cpp b/tool/maxent_parms.cpp index 4fac8b97c..b546b0a9f 100644 --- a/tool/maxent_parms.cpp +++ b/tool/maxent_parms.cpp @@ -6,22 +6,8 @@ * Thomas Pruschke * Matthias Troyer * - * This software is part of the ALPS Applications, published under the ALPS - * Application License; you can use, redistribute it and/or modify it under - * the terms of the license, either version 1 or (at your option) any later - * version. - * - * You should have received a copy of the ALPS Application License along with - * the ALPS Applications; see the file LICENSE.txt. If not, the license is also - * available from http://alps.comp-phys.org/. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT - * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE - * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - * DEALINGS IN THE SOFTWARE. + * ALPS Project: https://alps.comp-phys.org/ + * SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/tool/maxent_parms.hpp b/tool/maxent_parms.hpp index cbf7ac6c2..a03d11ce8 100644 --- a/tool/maxent_parms.hpp +++ b/tool/maxent_parms.hpp @@ -6,22 +6,8 @@ * Thomas Pruschke * Matthias Troyer * -* This software is part of the ALPS Applications, published under the ALPS -* Application License; you can use, redistribute it and/or modify it under -* the terms of the license, either version 1 or (at your option) any later -* version. -* -* You should have received a copy of the ALPS Application License along with -* the ALPS Applications; see the file LICENSE.txt. If not, the license is also -* available from http://alps.comp-phys.org/. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -* SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -* FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/tool/maxent_simulation.cpp b/tool/maxent_simulation.cpp index fe5615296..226eb8625 100644 --- a/tool/maxent_simulation.cpp +++ b/tool/maxent_simulation.cpp @@ -7,22 +7,8 @@ * Matthias Troyer * 2012 by Emanuel Gull * - * This software is part of the ALPS Applications, published under the ALPS - * Application License; you can use, redistribute it and/or modify it under - * the terms of the license, either version 1 or (at your option) any later - * version. - * - * You should have received a copy of the ALPS Application License along with - * the ALPS Applications; see the file LICENSE.txt. If not, the license is also - * available from http://alps.comp-phys.org/. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT - * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE - * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - * DEALINGS IN THE SOFTWARE. + * ALPS Project: https://alps.comp-phys.org/ + * SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/tool/p2h5.cpp b/tool/p2h5.cpp index 72d98f380..c92eb941d 100644 --- a/tool/p2h5.cpp +++ b/tool/p2h5.cpp @@ -6,23 +6,8 @@ * * Copyright (C) 2010 by Lukas Gamper * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/tool/parameter2hdf5.C b/tool/parameter2hdf5.C index 9dfd2b71b..6e710775d 100644 --- a/tool/parameter2hdf5.C +++ b/tool/parameter2hdf5.C @@ -9,23 +9,8 @@ * Synge Todo * Lukas Gamper * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/tool/parameter2xml.C b/tool/parameter2xml.C index 4419706b9..1b0ecf7f0 100644 --- a/tool/parameter2xml.C +++ b/tool/parameter2xml.C @@ -8,23 +8,8 @@ * Simon Trebst , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/tool/pconfig.C b/tool/pconfig.C index 78eeefa3f..1c189734e 100644 --- a/tool/pconfig.C +++ b/tool/pconfig.C @@ -6,23 +6,8 @@ * * Copyright (C) 2002-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/tool/pevaluate.C b/tool/pevaluate.C index f001ae3e5..6224ee93f 100644 --- a/tool/pevaluate.C +++ b/tool/pevaluate.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/tool/poutput.C b/tool/poutput.C index a61791311..4c77abf4e 100644 --- a/tool/poutput.C +++ b/tool/poutput.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2010 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/tool/preview.py b/tool/preview.py index cd84aeb7b..f86ba8802 100644 --- a/tool/preview.py +++ b/tool/preview.py @@ -6,22 +6,8 @@ # # Copyright (C) 2006-2009 by Synge Todo # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # ############################################################################## diff --git a/tool/printgraph.C b/tool/printgraph.C index 8472630ed..ca5b30842 100644 --- a/tool/printgraph.C +++ b/tool/printgraph.C @@ -7,23 +7,8 @@ * Copyright (C) 2001-2003 by Matthias Troyer , * Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/tool/snap2vtk.C b/tool/snap2vtk.C index 5a67f6d49..1978aa800 100644 --- a/tool/snap2vtk.C +++ b/tool/snap2vtk.C @@ -6,23 +6,8 @@ * * Copyright (C) 2012-2015 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/tool/txt2archive.C b/tool/txt2archive.C index ad3cdab49..ce01e150d 100644 --- a/tool/txt2archive.C +++ b/tool/txt2archive.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2009 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/tool/xml2archive.C b/tool/xml2archive.C index 0ccdf0919..48861d66e 100644 --- a/tool/xml2archive.C +++ b/tool/xml2archive.C @@ -6,23 +6,8 @@ * * Copyright (C) 1997-2013 by Synge Todo * -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the “Software”), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. +* ALPS Project: https://alps.comp-phys.org/ +* SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/tutorials/code-01-python/ising-skeleton.py b/tutorials/code-01-python/ising-skeleton.py index 267f4e0d9..0dcf43eaf 100644 --- a/tutorials/code-01-python/ising-skeleton.py +++ b/tutorials/code-01-python/ising-skeleton.py @@ -9,22 +9,8 @@ # Jan Gukelberger # Brigitte Surer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/code-01-python/solution/ising.py b/tutorials/code-01-python/solution/ising.py index 4e42997c1..1d82a4be5 100644 --- a/tutorials/code-01-python/solution/ising.py +++ b/tutorials/code-01-python/solution/ising.py @@ -8,22 +8,8 @@ # Jan Gukelberger # Brigitte Surer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/code-01-python/solution/ising_binder.py b/tutorials/code-01-python/solution/ising_binder.py index fc2ade6c8..402068905 100644 --- a/tutorials/code-01-python/solution/ising_binder.py +++ b/tutorials/code-01-python/solution/ising_binder.py @@ -8,22 +8,8 @@ # Jan Gukelberger # Brigitte Surer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/code-01-python/solution/run.py b/tutorials/code-01-python/solution/run.py index 35c26e14d..cb2bae2a3 100644 --- a/tutorials/code-01-python/solution/run.py +++ b/tutorials/code-01-python/solution/run.py @@ -8,22 +8,8 @@ # Jan Gukelberger # Brigitte Surer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/code-02-c++/ising-skeleton.cpp b/tutorials/code-02-c++/ising-skeleton.cpp index b82fc860d..adbd2f759 100644 --- a/tutorials/code-02-c++/ising-skeleton.cpp +++ b/tutorials/code-02-c++/ising-skeleton.cpp @@ -7,22 +7,8 @@ * Copyright (C) 2003 by Brigitte Surer * and Jan Gukelberger * - * This software is part of the ALPS libraries, published under the ALPS - * Library License; you can use, redistribute it and/or modify it under - * the terms of the license, either version 1 or (at your option) any later - * version. - * - * You should have received a copy of the ALPS Library License along with - * the ALPS Libraries; see the file LICENSE.txt. If not, the license is also - * available from http://alps.comp-phys.org/. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT - * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE - * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - * DEALINGS IN THE SOFTWARE. + * ALPS Project: https://alps.comp-phys.org/ + * SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/tutorials/code-02-c++/solution/ising.cpp b/tutorials/code-02-c++/solution/ising.cpp index d0a26c9eb..51e33e9f4 100644 --- a/tutorials/code-02-c++/solution/ising.cpp +++ b/tutorials/code-02-c++/solution/ising.cpp @@ -7,22 +7,8 @@ * Copyright (C) 2003 by Brigitte Surer * and Jan Gukelberger * - * This software is part of the ALPS libraries, published under the ALPS - * Library License; you can use, redistribute it and/or modify it under - * the terms of the license, either version 1 or (at your option) any later - * version. - * - * You should have received a copy of the ALPS Library License along with - * the ALPS Libraries; see the file LICENSE.txt. If not, the license is also - * available from http://alps.comp-phys.org/. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT - * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE - * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - * DEALINGS IN THE SOFTWARE. + * ALPS Project: https://alps.comp-phys.org/ + * SPDX-License-Identifier: MIT * *****************************************************************************/ diff --git a/tutorials/code-06-mcmain-c++/ising.cpp b/tutorials/code-06-mcmain-c++/ising.cpp index 7a44f0425..4e7fd7dec 100644 --- a/tutorials/code-06-mcmain-c++/ising.cpp +++ b/tutorials/code-06-mcmain-c++/ising.cpp @@ -6,22 +6,8 @@ * * * Copyright (C) 2010 - 2013 by Lukas Gamper * * * - * This software is part of the ALPS libraries, published under the ALPS * - * Library License; you can use, redistribute it and/or modify it under * - * the terms of the license, either version 1 or (at your option) any later * - * version. * - * * - * You should have received a copy of the ALPS Library License along with * - * the ALPS Libraries; see the file LICENSE.txt. If not, the license is also * - * available from http://alps.comp-phys.org/. * - * * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT * - * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE * - * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, * - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/tutorials/code-06-mcmain-c++/ising.hpp b/tutorials/code-06-mcmain-c++/ising.hpp index 6f8dbc806..0ff40b136 100644 --- a/tutorials/code-06-mcmain-c++/ising.hpp +++ b/tutorials/code-06-mcmain-c++/ising.hpp @@ -6,22 +6,8 @@ * * * Copyright (C) 2010 - 2013 by Lukas Gamper * * * - * This software is part of the ALPS libraries, published under the ALPS * - * Library License; you can use, redistribute it and/or modify it under * - * the terms of the license, either version 1 or (at your option) any later * - * version. * - * * - * You should have received a copy of the ALPS Library License along with * - * the ALPS Libraries; see the file LICENSE.txt. If not, the license is also * - * available from http://alps.comp-phys.org/. * - * * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT * - * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE * - * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, * - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/tutorials/code-06-mcmain-c++/main.cpp b/tutorials/code-06-mcmain-c++/main.cpp index 2c894e828..df94af44b 100644 --- a/tutorials/code-06-mcmain-c++/main.cpp +++ b/tutorials/code-06-mcmain-c++/main.cpp @@ -6,22 +6,8 @@ * * * Copyright (C) 2010 - 2013 by Lukas Gamper * * * - * This software is part of the ALPS libraries, published under the ALPS * - * Library License; you can use, redistribute it and/or modify it under * - * the terms of the license, either version 1 or (at your option) any later * - * version. * - * * - * You should have received a copy of the ALPS Library License along with * - * the ALPS Libraries; see the file LICENSE.txt. If not, the license is also * - * available from http://alps.comp-phys.org/. * - * * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT * - * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE * - * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, * - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/tutorials/code-07-mcmain-mcbase/export.cpp b/tutorials/code-07-mcmain-mcbase/export.cpp index 19f2d1e19..f2341db81 100644 --- a/tutorials/code-07-mcmain-mcbase/export.cpp +++ b/tutorials/code-07-mcmain-mcbase/export.cpp @@ -6,22 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Lukas Gamper * * * - * This software is part of the ALPS libraries, published under the ALPS * - * Library License; you can use, redistribute it and/or modify it under * - * the terms of the license, either version 1 or (at your option) any later * - * version. * - * * - * You should have received a copy of the ALPS Library License along with * - * the ALPS Libraries; see the file LICENSE.txt. If not, the license is also * - * available from http://alps.comp-phys.org/. * - * * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT * - * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE * - * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, * - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/tutorials/code-07-mcmain-mcbase/export.py b/tutorials/code-07-mcmain-mcbase/export.py index ccb0e5010..69fef1458 100644 --- a/tutorials/code-07-mcmain-mcbase/export.py +++ b/tutorials/code-07-mcmain-mcbase/export.py @@ -6,22 +6,8 @@ # # # Copyright (C) 2010 - 2013 by Lukas Gamper # # # - # This software is part of the ALPS libraries, published under the ALPS # - # Library License; you can use, redistribute it and/or modify it under # - # the terms of the license, either version 1 or (at your option) any later # - # version. # - # # - # You should have received a copy of the ALPS Library License along with # - # the ALPS Libraries; see the file LICENSE.txt. If not, the license is also # - # available from http://alps.comp-phys.org/. # - # # - # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # - # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # - # FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT # - # SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE # - # FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, # - # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # - # DEALINGS IN THE SOFTWARE. # + # ALPS Project: https://alps.comp-phys.org/ # + # SPDX-License-Identifier: MIT # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # import pyalps.hdf5 as hdf5 diff --git a/tutorials/code-07-mcmain-mcbase/heisenberg/1d_lattice/single.cpp b/tutorials/code-07-mcmain-mcbase/heisenberg/1d_lattice/single.cpp index cacc8c722..68cfac44a 100644 --- a/tutorials/code-07-mcmain-mcbase/heisenberg/1d_lattice/single.cpp +++ b/tutorials/code-07-mcmain-mcbase/heisenberg/1d_lattice/single.cpp @@ -6,22 +6,8 @@ * * * Copyright (C) 2010 - 2013 by Lukas Gamper * * * - * This software is part of the ALPS libraries, published under the ALPS * - * Library License; you can use, redistribute it and/or modify it under * - * the terms of the license, either version 1 or (at your option) any later * - * version. * - * * - * You should have received a copy of the ALPS Library License along with * - * the ALPS Libraries; see the file LICENSE.txt. If not, the license is also * - * available from http://alps.comp-phys.org/. * - * * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT * - * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE * - * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, * - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/tutorials/code-07-mcmain-mcbase/heisenberg/nd_lattice/single.cpp b/tutorials/code-07-mcmain-mcbase/heisenberg/nd_lattice/single.cpp index f8cdf1629..454a51512 100644 --- a/tutorials/code-07-mcmain-mcbase/heisenberg/nd_lattice/single.cpp +++ b/tutorials/code-07-mcmain-mcbase/heisenberg/nd_lattice/single.cpp @@ -6,22 +6,8 @@ * * * Copyright (C) 2010 - 2013 by Lukas Gamper * * * - * This software is part of the ALPS libraries, published under the ALPS * - * Library License; you can use, redistribute it and/or modify it under * - * the terms of the license, either version 1 or (at your option) any later * - * version. * - * * - * You should have received a copy of the ALPS Library License along with * - * the ALPS Libraries; see the file LICENSE.txt. If not, the license is also * - * available from http://alps.comp-phys.org/. * - * * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT * - * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE * - * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, * - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/tutorials/code-07-mcmain-mcbase/heisenberg/o_n_model/heisenberg.cpp b/tutorials/code-07-mcmain-mcbase/heisenberg/o_n_model/heisenberg.cpp index 958221ca8..b04a7cdec 100644 --- a/tutorials/code-07-mcmain-mcbase/heisenberg/o_n_model/heisenberg.cpp +++ b/tutorials/code-07-mcmain-mcbase/heisenberg/o_n_model/heisenberg.cpp @@ -6,22 +6,8 @@ * * * Copyright (C) 2010 - 2013 by Lukas Gamper * * * - * This software is part of the ALPS libraries, published under the ALPS * - * Library License; you can use, redistribute it and/or modify it under * - * the terms of the license, either version 1 or (at your option) any later * - * version. * - * * - * You should have received a copy of the ALPS Library License along with * - * the ALPS Libraries; see the file LICENSE.txt. If not, the license is also * - * available from http://alps.comp-phys.org/. * - * * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT * - * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE * - * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, * - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/tutorials/code-07-mcmain-mcbase/ising.cpp b/tutorials/code-07-mcmain-mcbase/ising.cpp index d1af49778..d978be00d 100644 --- a/tutorials/code-07-mcmain-mcbase/ising.cpp +++ b/tutorials/code-07-mcmain-mcbase/ising.cpp @@ -6,22 +6,8 @@ * * * Copyright (C) 2010 - 2013 by Lukas Gamper * * * - * This software is part of the ALPS libraries, published under the ALPS * - * Library License; you can use, redistribute it and/or modify it under * - * the terms of the license, either version 1 or (at your option) any later * - * version. * - * * - * You should have received a copy of the ALPS Library License along with * - * the ALPS Libraries; see the file LICENSE.txt. If not, the license is also * - * available from http://alps.comp-phys.org/. * - * * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT * - * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE * - * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, * - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/tutorials/code-07-mcmain-mcbase/ising.hpp b/tutorials/code-07-mcmain-mcbase/ising.hpp index 4c8639342..369d54134 100644 --- a/tutorials/code-07-mcmain-mcbase/ising.hpp +++ b/tutorials/code-07-mcmain-mcbase/ising.hpp @@ -6,22 +6,8 @@ * * * Copyright (C) 2010 - 2013 by Lukas Gamper * * * - * This software is part of the ALPS libraries, published under the ALPS * - * Library License; you can use, redistribute it and/or modify it under * - * the terms of the license, either version 1 or (at your option) any later * - * version. * - * * - * You should have received a copy of the ALPS Library License along with * - * the ALPS Libraries; see the file LICENSE.txt. If not, the license is also * - * available from http://alps.comp-phys.org/. * - * * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT * - * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE * - * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, * - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/tutorials/code-07-mcmain-mcbase/mpi.cpp b/tutorials/code-07-mcmain-mcbase/mpi.cpp index 2dd4fd81f..0b881dadf 100644 --- a/tutorials/code-07-mcmain-mcbase/mpi.cpp +++ b/tutorials/code-07-mcmain-mcbase/mpi.cpp @@ -6,22 +6,8 @@ * * * Copyright (C) 2010 - 2013 by Lukas Gamper * * * - * This software is part of the ALPS libraries, published under the ALPS * - * Library License; you can use, redistribute it and/or modify it under * - * the terms of the license, either version 1 or (at your option) any later * - * version. * - * * - * You should have received a copy of the ALPS Library License along with * - * the ALPS Libraries; see the file LICENSE.txt. If not, the license is also * - * available from http://alps.comp-phys.org/. * - * * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT * - * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE * - * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, * - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/tutorials/code-07-mcmain-mcbase/mpi_pscan.cpp b/tutorials/code-07-mcmain-mcbase/mpi_pscan.cpp index cbed93d57..7e4ca186c 100644 --- a/tutorials/code-07-mcmain-mcbase/mpi_pscan.cpp +++ b/tutorials/code-07-mcmain-mcbase/mpi_pscan.cpp @@ -6,22 +6,8 @@ * * * Copyright (C) 2010 - 2013 by Lukas Gamper * * * - * This software is part of the ALPS libraries, published under the ALPS * - * Library License; you can use, redistribute it and/or modify it under * - * the terms of the license, either version 1 or (at your option) any later * - * version. * - * * - * You should have received a copy of the ALPS Library License along with * - * the ALPS Libraries; see the file LICENSE.txt. If not, the license is also * - * available from http://alps.comp-phys.org/. * - * * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT * - * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE * - * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, * - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/tutorials/code-07-mcmain-mcbase/single.cpp b/tutorials/code-07-mcmain-mcbase/single.cpp index fc1beb30d..6b063b9fe 100644 --- a/tutorials/code-07-mcmain-mcbase/single.cpp +++ b/tutorials/code-07-mcmain-mcbase/single.cpp @@ -6,22 +6,8 @@ * * * Copyright (C) 2010 - 2013 by Lukas Gamper * * * - * This software is part of the ALPS libraries, published under the ALPS * - * Library License; you can use, redistribute it and/or modify it under * - * the terms of the license, either version 1 or (at your option) any later * - * version. * - * * - * You should have received a copy of the ALPS Library License along with * - * the ALPS Libraries; see the file LICENSE.txt. If not, the license is also * - * available from http://alps.comp-phys.org/. * - * * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT * - * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE * - * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, * - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/tutorials/code-08-mcmain-python/ising.py b/tutorials/code-08-mcmain-python/ising.py index d50b71697..cf3ce6636 100644 --- a/tutorials/code-08-mcmain-python/ising.py +++ b/tutorials/code-08-mcmain-python/ising.py @@ -5,22 +5,8 @@ # # # Copyright (C) 2010 - 2013 by Lukas Gamper # # # - # This software is part of the ALPS libraries, published under the ALPS # - # Library License; you can use, redistribute it and/or modify it under # - # the terms of the license, either version 1 or (at your option) any later # - # version. # - # # - # You should have received a copy of the ALPS Library License along with # - # the ALPS Libraries; see the file LICENSE.txt. If not, the license is also # - # available from http://alps.comp-phys.org/. # - # # - # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # - # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # - # FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT # - # SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE # - # FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, # - # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # - # DEALINGS IN THE SOFTWARE. # + # ALPS Project: https://alps.comp-phys.org/ # + # SPDX-License-Identifier: MIT # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # import pyalps.hdf5 as hdf5 diff --git a/tutorials/code-08-mcmain-python/main.py b/tutorials/code-08-mcmain-python/main.py index 2ed03d14a..dfcd987ed 100644 --- a/tutorials/code-08-mcmain-python/main.py +++ b/tutorials/code-08-mcmain-python/main.py @@ -6,22 +6,8 @@ # # # Copyright (C) 2010 - 2013 by Lukas Gamper # # # - # This software is part of the ALPS libraries, published under the ALPS # - # Library License; you can use, redistribute it and/or modify it under # - # the terms of the license, either version 1 or (at your option) any later # - # version. # - # # - # You should have received a copy of the ALPS Library License along with # - # the ALPS Libraries; see the file LICENSE.txt. If not, the license is also # - # available from http://alps.comp-phys.org/. # - # # - # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # - # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # - # FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT # - # SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE # - # FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, # - # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # - # DEALINGS IN THE SOFTWARE. # + # ALPS Project: https://alps.comp-phys.org/ # + # SPDX-License-Identifier: MIT # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # import pyalps.hdf5 as hdf5 diff --git a/tutorials/code-09-mcmain-python-hybrid/ising.py b/tutorials/code-09-mcmain-python-hybrid/ising.py index 74cf0c884..8b8a595a0 100644 --- a/tutorials/code-09-mcmain-python-hybrid/ising.py +++ b/tutorials/code-09-mcmain-python-hybrid/ising.py @@ -5,22 +5,8 @@ # # # Copyright (C) 2010 - 2013 by Lukas Gamper # # # - # This software is part of the ALPS libraries, published under the ALPS # - # Library License; you can use, redistribute it and/or modify it under # - # the terms of the license, either version 1 or (at your option) any later # - # version. # - # # - # You should have received a copy of the ALPS Library License along with # - # the ALPS Libraries; see the file LICENSE.txt. If not, the license is also # - # available from http://alps.comp-phys.org/. # - # # - # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # - # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # - # FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT # - # SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE # - # FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, # - # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # - # DEALINGS IN THE SOFTWARE. # + # ALPS Project: https://alps.comp-phys.org/ # + # SPDX-License-Identifier: MIT # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # import pyalps.ngs as ngs diff --git a/tutorials/code-09-mcmain-python-hybrid/main.py b/tutorials/code-09-mcmain-python-hybrid/main.py index 28af551f6..37ffa3823 100644 --- a/tutorials/code-09-mcmain-python-hybrid/main.py +++ b/tutorials/code-09-mcmain-python-hybrid/main.py @@ -6,22 +6,8 @@ # # # Copyright (C) 2010 - 2013 by Lukas Gamper # # # - # This software is part of the ALPS libraries, published under the ALPS # - # Library License; you can use, redistribute it and/or modify it under # - # the terms of the license, either version 1 or (at your option) any later # - # version. # - # # - # You should have received a copy of the ALPS Library License along with # - # the ALPS Libraries; see the file LICENSE.txt. If not, the license is also # - # available from http://alps.comp-phys.org/. # - # # - # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # - # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # - # FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT # - # SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE # - # FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, # - # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # - # DEALINGS IN THE SOFTWARE. # + # ALPS Project: https://alps.comp-phys.org/ # + # SPDX-License-Identifier: MIT # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # import pyalps.hdf5 as hdf5 diff --git a/tutorials/dmft-02-hybridization/tutorial2.py b/tutorials/dmft-02-hybridization/tutorial2.py index d13e0a6b1..68636a583 100644 --- a/tutorials/dmft-02-hybridization/tutorial2.py +++ b/tutorials/dmft-02-hybridization/tutorial2.py @@ -6,22 +6,8 @@ # Copyright (C) 2010 by Brigitte Surer # 2012-2013 by Jakub Imriska # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/dmft-02-hybridization/tutorial2_long.py b/tutorials/dmft-02-hybridization/tutorial2_long.py index f3a4a84ff..d5b610f11 100644 --- a/tutorials/dmft-02-hybridization/tutorial2_long.py +++ b/tutorials/dmft-02-hybridization/tutorial2_long.py @@ -6,22 +6,8 @@ # Copyright (C) 2010 by Brigitte Surer # 2012-2013 by Jakub Imriska # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/dmft-02-hybridization/tutorial2eval.py b/tutorials/dmft-02-hybridization/tutorial2eval.py index eaf266a43..c996a0efc 100644 --- a/tutorials/dmft-02-hybridization/tutorial2eval.py +++ b/tutorials/dmft-02-hybridization/tutorial2eval.py @@ -6,22 +6,8 @@ # # Copyright (C) 2012-2013 by Jakub Imriska # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/dmft-03-interaction/tutorial3.py b/tutorials/dmft-03-interaction/tutorial3.py index 3a8ec11fb..1686386a6 100644 --- a/tutorials/dmft-03-interaction/tutorial3.py +++ b/tutorials/dmft-03-interaction/tutorial3.py @@ -6,22 +6,8 @@ # Copyright (C) 2010 by Brigitte Surer # 2012-2013 by Jakub Imriska # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/dmft-03-interaction/tutorial3_long.py b/tutorials/dmft-03-interaction/tutorial3_long.py index 635abd038..e8dd0d42f 100644 --- a/tutorials/dmft-03-interaction/tutorial3_long.py +++ b/tutorials/dmft-03-interaction/tutorial3_long.py @@ -6,22 +6,8 @@ # Copyright (C) 2010 by Brigitte Surer # 2012-2013 by Jakub Imriska # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/dmft-03-interaction/tutorial3eval.py b/tutorials/dmft-03-interaction/tutorial3eval.py index eaf266a43..c996a0efc 100644 --- a/tutorials/dmft-03-interaction/tutorial3eval.py +++ b/tutorials/dmft-03-interaction/tutorial3eval.py @@ -6,22 +6,8 @@ # # Copyright (C) 2012-2013 by Jakub Imriska # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/dmft-04-mott/tutorial4a.py b/tutorials/dmft-04-mott/tutorial4a.py index aba0a5887..a539cb91d 100644 --- a/tutorials/dmft-04-mott/tutorial4a.py +++ b/tutorials/dmft-04-mott/tutorial4a.py @@ -6,22 +6,8 @@ # Copyright (C) 2010 by Brigitte Surer # 2012-2013 by Jakub Imriska # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/dmft-04-mott/tutorial4b.py b/tutorials/dmft-04-mott/tutorial4b.py index 0c02755b2..1486e1343 100644 --- a/tutorials/dmft-04-mott/tutorial4b.py +++ b/tutorials/dmft-04-mott/tutorial4b.py @@ -6,22 +6,8 @@ # Copyright (C) 2010 by Brigitte Surer # 2012-2013 by Jakub Imriska # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/dmft-05-osmt/tutorial5a.py b/tutorials/dmft-05-osmt/tutorial5a.py index 7794a3614..5339ef55d 100644 --- a/tutorials/dmft-05-osmt/tutorial5a.py +++ b/tutorials/dmft-05-osmt/tutorial5a.py @@ -6,22 +6,8 @@ # Copyright (C) 2010 by Brigitte Surer # 2012-2013 by Jakub Imriska # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/dmft-05-osmt/tutorial5b.py b/tutorials/dmft-05-osmt/tutorial5b.py index c51517717..2cb817a09 100644 --- a/tutorials/dmft-05-osmt/tutorial5b.py +++ b/tutorials/dmft-05-osmt/tutorial5b.py @@ -6,22 +6,8 @@ # Copyright (C) 2010 by Brigitte Surer # 2012-2013 by Jakub Imriska # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/dmft-06-paramagnet/hyb/tutorial6a.py b/tutorials/dmft-06-paramagnet/hyb/tutorial6a.py index 74d12fd24..83c10ee44 100644 --- a/tutorials/dmft-06-paramagnet/hyb/tutorial6a.py +++ b/tutorials/dmft-06-paramagnet/hyb/tutorial6a.py @@ -6,22 +6,8 @@ # Copyright (C) 2010 by Brigitte Surer # 2012-2013 by Jakub Imriska # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/dmft-06-paramagnet/int/tutorial6b.py b/tutorials/dmft-06-paramagnet/int/tutorial6b.py index 720ee26ba..4014a7a5d 100644 --- a/tutorials/dmft-06-paramagnet/int/tutorial6b.py +++ b/tutorials/dmft-06-paramagnet/int/tutorial6b.py @@ -6,22 +6,8 @@ # Copyright (C) 2010 by Brigitte Surer # 2012 by Jakub Imriska # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/dmft-07-hirschfye/tutorial7.py b/tutorials/dmft-07-hirschfye/tutorial7.py index 766362ca0..4e02b33da 100644 --- a/tutorials/dmft-07-hirschfye/tutorial7.py +++ b/tutorials/dmft-07-hirschfye/tutorial7.py @@ -6,22 +6,8 @@ # Copyright (C) 2010 by Brigitte Surer # 2012-2013 by Jakub Imriska # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/dmft-07-hirschfye/tutorial7_long.py b/tutorials/dmft-07-hirschfye/tutorial7_long.py index dfcd5bed0..db17c4777 100644 --- a/tutorials/dmft-07-hirschfye/tutorial7_long.py +++ b/tutorials/dmft-07-hirschfye/tutorial7_long.py @@ -6,22 +6,8 @@ # Copyright (C) 2010 by Brigitte Surer # 2012-2013 by Jakub Imriska # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/dmft-07-hirschfye/tutorial7eval.py b/tutorials/dmft-07-hirschfye/tutorial7eval.py index eaf266a43..c996a0efc 100644 --- a/tutorials/dmft-07-hirschfye/tutorial7eval.py +++ b/tutorials/dmft-07-hirschfye/tutorial7eval.py @@ -6,22 +6,8 @@ # # Copyright (C) 2012-2013 by Jakub Imriska # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/dmft-08-lattices/DOS/DOS_Bethe.py b/tutorials/dmft-08-lattices/DOS/DOS_Bethe.py index 4429496a0..375b02b99 100644 --- a/tutorials/dmft-08-lattices/DOS/DOS_Bethe.py +++ b/tutorials/dmft-08-lattices/DOS/DOS_Bethe.py @@ -5,22 +5,8 @@ # # Copyright (C) 2012 by Jakub Imriska # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/dmft-08-lattices/DOS/DOS_Cubic.py b/tutorials/dmft-08-lattices/DOS/DOS_Cubic.py index 7a29cb076..fed514ee5 100644 --- a/tutorials/dmft-08-lattices/DOS/DOS_Cubic.py +++ b/tutorials/dmft-08-lattices/DOS/DOS_Cubic.py @@ -5,22 +5,8 @@ # # Copyright (C) 2012 by Jakub Imriska # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/dmft-08-lattices/DOS/DOS_Hexagonal.py b/tutorials/dmft-08-lattices/DOS/DOS_Hexagonal.py index 5fe56e699..dbf76627d 100644 --- a/tutorials/dmft-08-lattices/DOS/DOS_Hexagonal.py +++ b/tutorials/dmft-08-lattices/DOS/DOS_Hexagonal.py @@ -5,22 +5,8 @@ # # Copyright (C) 2012 by Jakub Imriska # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/dmft-08-lattices/DOS/DOS_Square.py b/tutorials/dmft-08-lattices/DOS/DOS_Square.py index d9366450e..ba5f8c555 100644 --- a/tutorials/dmft-08-lattices/DOS/DOS_Square.py +++ b/tutorials/dmft-08-lattices/DOS/DOS_Square.py @@ -5,22 +5,8 @@ # # Copyright (C) 2012 by Jakub Imriska # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/dmft-08-lattices/tutorial8a.py b/tutorials/dmft-08-lattices/tutorial8a.py index fbc476222..54dc7daba 100644 --- a/tutorials/dmft-08-lattices/tutorial8a.py +++ b/tutorials/dmft-08-lattices/tutorial8a.py @@ -5,22 +5,8 @@ # # Copyright (C) 2012-2013 by Jakub Imriska # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/dmft-08-lattices/tutorial8b.py b/tutorials/dmft-08-lattices/tutorial8b.py index 5c40f2b8f..c7e915cde 100644 --- a/tutorials/dmft-08-lattices/tutorial8b.py +++ b/tutorials/dmft-08-lattices/tutorial8b.py @@ -5,22 +5,8 @@ # # Copyright (C) 2012-2013 by Jakub Imriska # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/dmrg-03-ground-state-energies/build_lattice.py b/tutorials/dmrg-03-ground-state-energies/build_lattice.py index eecf631ca..a4ce8602e 100755 --- a/tutorials/dmrg-03-ground-state-energies/build_lattice.py +++ b/tutorials/dmrg-03-ground-state-energies/build_lattice.py @@ -9,22 +9,8 @@ # Jan Gukelberger # Adrian Feiguin # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/dmrg-03-ground-state-energies/spin_one.py b/tutorials/dmrg-03-ground-state-energies/spin_one.py index d5e2abfe5..c19381839 100644 --- a/tutorials/dmrg-03-ground-state-energies/spin_one.py +++ b/tutorials/dmrg-03-ground-state-energies/spin_one.py @@ -7,22 +7,8 @@ # # Copyright (C) 2010 by Jan Gukelberger # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/dmrg-03-ground-state-energies/spin_one_half.py b/tutorials/dmrg-03-ground-state-energies/spin_one_half.py index 9bb618c3a..806df88fd 100644 --- a/tutorials/dmrg-03-ground-state-energies/spin_one_half.py +++ b/tutorials/dmrg-03-ground-state-energies/spin_one_half.py @@ -7,22 +7,8 @@ # # Copyright (C) 2010 by Jan Gukelberger # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/dmrg-03-ground-state-energies/spin_one_half_multiple.py b/tutorials/dmrg-03-ground-state-energies/spin_one_half_multiple.py index d2d8e022a..d676919e2 100644 --- a/tutorials/dmrg-03-ground-state-energies/spin_one_half_multiple.py +++ b/tutorials/dmrg-03-ground-state-energies/spin_one_half_multiple.py @@ -7,22 +7,8 @@ # # Copyright (C) 2010 by Jan Gukelberger # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/dmrg-03-ground-state-energies/spin_one_multiple.py b/tutorials/dmrg-03-ground-state-energies/spin_one_multiple.py index c7f624bea..30ee390dc 100644 --- a/tutorials/dmrg-03-ground-state-energies/spin_one_multiple.py +++ b/tutorials/dmrg-03-ground-state-energies/spin_one_multiple.py @@ -7,22 +7,8 @@ # # Copyright (C) 2010 by Jan Gukelberger # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/dmrg-04-gaps/spin_one_gap.py b/tutorials/dmrg-04-gaps/spin_one_gap.py index 241896890..e55674ce5 100644 --- a/tutorials/dmrg-04-gaps/spin_one_gap.py +++ b/tutorials/dmrg-04-gaps/spin_one_gap.py @@ -6,22 +6,8 @@ # # Copyright (C) 2025 by ALPS Collaboration # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/dmrg-04-gaps/spin_one_gap_multiple.py b/tutorials/dmrg-04-gaps/spin_one_gap_multiple.py index 3db527fe7..be7dc7bf7 100644 --- a/tutorials/dmrg-04-gaps/spin_one_gap_multiple.py +++ b/tutorials/dmrg-04-gaps/spin_one_gap_multiple.py @@ -6,22 +6,8 @@ # # Copyright (C) 2025 by ALPS Collaboration # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/dmrg-04-gaps/spin_one_half_gap.py b/tutorials/dmrg-04-gaps/spin_one_half_gap.py index ae2805d3c..0a7131183 100644 --- a/tutorials/dmrg-04-gaps/spin_one_half_gap.py +++ b/tutorials/dmrg-04-gaps/spin_one_half_gap.py @@ -7,22 +7,8 @@ # # Copyright (C) 2010 by Jan Gukelberger # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/dmrg-04-gaps/spin_one_half_gap_multiple.py b/tutorials/dmrg-04-gaps/spin_one_half_gap_multiple.py index c82780180..1732ae3c9 100644 --- a/tutorials/dmrg-04-gaps/spin_one_half_gap_multiple.py +++ b/tutorials/dmrg-04-gaps/spin_one_half_gap_multiple.py @@ -6,22 +6,8 @@ # # Copyright (C) 2025 by ALPS Collaboration # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/dmrg-04-gaps/spin_one_half_triplet.py b/tutorials/dmrg-04-gaps/spin_one_half_triplet.py index fafa2160e..9623e62a0 100644 --- a/tutorials/dmrg-04-gaps/spin_one_half_triplet.py +++ b/tutorials/dmrg-04-gaps/spin_one_half_triplet.py @@ -7,22 +7,8 @@ # # Copyright (C) 2010 by Jan Gukelberger # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/dmrg-04-gaps/spin_one_triplet.py b/tutorials/dmrg-04-gaps/spin_one_triplet.py index a3bf908ee..de6e8843a 100644 --- a/tutorials/dmrg-04-gaps/spin_one_triplet.py +++ b/tutorials/dmrg-04-gaps/spin_one_triplet.py @@ -6,22 +6,8 @@ # # Copyright (C) 2025 by ALPS Collaboration # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/dmrg-05-local-observables/build_lattice.py b/tutorials/dmrg-05-local-observables/build_lattice.py index eecf631ca..a4ce8602e 100755 --- a/tutorials/dmrg-05-local-observables/build_lattice.py +++ b/tutorials/dmrg-05-local-observables/build_lattice.py @@ -9,22 +9,8 @@ # Jan Gukelberger # Adrian Feiguin # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/dmrg-05-local-observables/spin_one.py b/tutorials/dmrg-05-local-observables/spin_one.py index f80119a0a..991b9bd5d 100644 --- a/tutorials/dmrg-05-local-observables/spin_one.py +++ b/tutorials/dmrg-05-local-observables/spin_one.py @@ -6,22 +6,8 @@ # # Copyright (C) 2010 by Jan Gukelberger # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/dmrg-05-local-observables/spin_one_capped.py b/tutorials/dmrg-05-local-observables/spin_one_capped.py index a727d514a..c7f458f91 100644 --- a/tutorials/dmrg-05-local-observables/spin_one_capped.py +++ b/tutorials/dmrg-05-local-observables/spin_one_capped.py @@ -6,22 +6,8 @@ # # Copyright (C) 2010 by Jan Gukelberger # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/dmrg-05-local-observables/spin_one_half.py b/tutorials/dmrg-05-local-observables/spin_one_half.py index 3bc39ae05..50a354d5a 100644 --- a/tutorials/dmrg-05-local-observables/spin_one_half.py +++ b/tutorials/dmrg-05-local-observables/spin_one_half.py @@ -6,22 +6,8 @@ # # Copyright (C) 2010 by Jan Gukelberger # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/dmrg-05-local-observables/spin_one_uniform.py b/tutorials/dmrg-05-local-observables/spin_one_uniform.py index 13617e51d..0cbbfb353 100644 --- a/tutorials/dmrg-05-local-observables/spin_one_uniform.py +++ b/tutorials/dmrg-05-local-observables/spin_one_uniform.py @@ -6,22 +6,8 @@ # # Copyright (C) 2010 by Jan Gukelberger # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/dmrg-06-correlations/spin_one.py b/tutorials/dmrg-06-correlations/spin_one.py index 8d9975a1b..09fc3284c 100644 --- a/tutorials/dmrg-06-correlations/spin_one.py +++ b/tutorials/dmrg-06-correlations/spin_one.py @@ -7,22 +7,8 @@ # # Copyright (C) 2010 by Jan Gukelberger # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/dmrg-06-correlations/spin_one_half.py b/tutorials/dmrg-06-correlations/spin_one_half.py index 69abee10e..862ca3802 100644 --- a/tutorials/dmrg-06-correlations/spin_one_half.py +++ b/tutorials/dmrg-06-correlations/spin_one_half.py @@ -7,22 +7,8 @@ # # Copyright (C) 2010 by Jan Gukelberger # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/dwa-01-bosons/tutorial1a.py b/tutorials/dwa-01-bosons/tutorial1a.py index b11960111..f5bd550c9 100644 --- a/tutorials/dwa-01-bosons/tutorial1a.py +++ b/tutorials/dwa-01-bosons/tutorial1a.py @@ -7,22 +7,8 @@ # Copyright (C) 2013 by Matthias Troyer , # Ping Nang Ma # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/dwa-01-bosons/tutorial1b.py b/tutorials/dwa-01-bosons/tutorial1b.py index 925663f0b..80cf9536f 100644 --- a/tutorials/dwa-01-bosons/tutorial1b.py +++ b/tutorials/dwa-01-bosons/tutorial1b.py @@ -7,22 +7,8 @@ # Copyright (C) 2013 by Matthias Troyer , # Ping Nang Ma # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/dwa-02-density-profile/tutorial2a.py b/tutorials/dwa-02-density-profile/tutorial2a.py index da2057a8a..851adbcf8 100644 --- a/tutorials/dwa-02-density-profile/tutorial2a.py +++ b/tutorials/dwa-02-density-profile/tutorial2a.py @@ -7,22 +7,8 @@ # Copyright (C) 2013 by Matthias Troyer , # Ping Nang Ma # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/dwa-02-density-profile/tutorial2b.py b/tutorials/dwa-02-density-profile/tutorial2b.py index e27031483..64fc72e42 100644 --- a/tutorials/dwa-02-density-profile/tutorial2b.py +++ b/tutorials/dwa-02-density-profile/tutorial2b.py @@ -7,22 +7,8 @@ # Copyright (C) 2013 by Matthias Troyer , # Ping Nang Ma # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/ed-01-sparsediag/tutorial1a.py b/tutorials/ed-01-sparsediag/tutorial1a.py index 3f247db0e..e34924f3c 100644 --- a/tutorials/ed-01-sparsediag/tutorial1a.py +++ b/tutorials/ed-01-sparsediag/tutorial1a.py @@ -6,22 +6,8 @@ # # Copyright (C) 2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/ed-02-gaps/tutorial2a.py b/tutorials/ed-02-gaps/tutorial2a.py index f5b952bd3..e3245b327 100644 --- a/tutorials/ed-02-gaps/tutorial2a.py +++ b/tutorials/ed-02-gaps/tutorial2a.py @@ -5,22 +5,8 @@ # # Copyright (C) 2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/ed-02-gaps/tutorial2b.py b/tutorials/ed-02-gaps/tutorial2b.py index b880a8570..0053b13d4 100644 --- a/tutorials/ed-02-gaps/tutorial2b.py +++ b/tutorials/ed-02-gaps/tutorial2b.py @@ -5,22 +5,8 @@ # # Copyright (C) 2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/ed-02-gaps/tutorial2c.py b/tutorials/ed-02-gaps/tutorial2c.py index 739cf4d64..709069733 100644 --- a/tutorials/ed-02-gaps/tutorial2c.py +++ b/tutorials/ed-02-gaps/tutorial2c.py @@ -5,22 +5,8 @@ # # Copyright (C) 2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/ed-03-1dspectra/chain.py b/tutorials/ed-03-1dspectra/chain.py index 8f7cdd811..2f5769c8b 100644 --- a/tutorials/ed-03-1dspectra/chain.py +++ b/tutorials/ed-03-1dspectra/chain.py @@ -5,22 +5,8 @@ # # Copyright (C) 2010 by Jan Gukelberger # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/ed-03-1dspectra/dimers.py b/tutorials/ed-03-1dspectra/dimers.py index dff7de83e..cabfd588d 100644 --- a/tutorials/ed-03-1dspectra/dimers.py +++ b/tutorials/ed-03-1dspectra/dimers.py @@ -5,22 +5,8 @@ # # Copyright (C) 2010 by Jan Gukelberger # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/ed-03-1dspectra/ladder.py b/tutorials/ed-03-1dspectra/ladder.py index 3b849e50c..13d50a36c 100644 --- a/tutorials/ed-03-1dspectra/ladder.py +++ b/tutorials/ed-03-1dspectra/ladder.py @@ -6,22 +6,8 @@ # # Copyright (C) 2010 by Jan Gukelberger # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/ed-04-criticality/heisenberg.py b/tutorials/ed-04-criticality/heisenberg.py index fae6b4663..f27015224 100644 --- a/tutorials/ed-04-criticality/heisenberg.py +++ b/tutorials/ed-04-criticality/heisenberg.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Bela Bauer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/ed-04-criticality/ising.py b/tutorials/ed-04-criticality/ising.py index ac7caa132..7184637b6 100644 --- a/tutorials/ed-04-criticality/ising.py +++ b/tutorials/ed-04-criticality/ising.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Bela Bauer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/ed-05-nnn-chain/nnn-crit-pt.py b/tutorials/ed-05-nnn-chain/nnn-crit-pt.py index 07733ca39..527e34edc 100644 --- a/tutorials/ed-05-nnn-chain/nnn-crit-pt.py +++ b/tutorials/ed-05-nnn-chain/nnn-crit-pt.py @@ -7,22 +7,8 @@ # # Copyright (C) 2009-2010 by Bela Bauer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/ed-05-nnn-chain/nnn-heisenberg.py b/tutorials/ed-05-nnn-chain/nnn-heisenberg.py index 203f731a9..52f5a2613 100644 --- a/tutorials/ed-05-nnn-chain/nnn-heisenberg.py +++ b/tutorials/ed-05-nnn-chain/nnn-heisenberg.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Bela Bauer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/ed-06-fulldiag/tutorial6a.py b/tutorials/ed-06-fulldiag/tutorial6a.py index 4518f204f..c5d5857b4 100644 --- a/tutorials/ed-06-fulldiag/tutorial6a.py +++ b/tutorials/ed-06-fulldiag/tutorial6a.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/ed-06-fulldiag/tutorial6b.py b/tutorials/ed-06-fulldiag/tutorial6b.py index 3cb8fecff..802e65792 100644 --- a/tutorials/ed-06-fulldiag/tutorial6b.py +++ b/tutorials/ed-06-fulldiag/tutorial6b.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/ed-06-fulldiag/tutorial6c.py b/tutorials/ed-06-fulldiag/tutorial6c.py index a0851813c..3f96847ea 100644 --- a/tutorials/ed-06-fulldiag/tutorial6c.py +++ b/tutorials/ed-06-fulldiag/tutorial6c.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/ed-06-fulldiag/tutorial6d.py b/tutorials/ed-06-fulldiag/tutorial6d.py index af8b22abe..c1eb67a0b 100644 --- a/tutorials/ed-06-fulldiag/tutorial6d.py +++ b/tutorials/ed-06-fulldiag/tutorial6d.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/hybridization-01-python/tutorial1.py b/tutorials/hybridization-01-python/tutorial1.py index 0b3676fea..4eb448b96 100644 --- a/tutorials/hybridization-01-python/tutorial1.py +++ b/tutorials/hybridization-01-python/tutorial1.py @@ -7,22 +7,8 @@ # Copyright (C) 2012 by Hartmut Hafermann # # - # This software is part of the ALPS Applications, published under the ALPS - # Application License; you can use, redistribute it and/or modify it under - # the terms of the license, either version 1 or (at your option) any later - # version. - # - # You should have received a copy of the ALPS Application License along with - # the ALPS Applications; see the file LICENSE.txt. If not, the license is also - # available from http://alps.comp-phys.org/. - # - # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - # FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT - # SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE - # FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, - # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - # DEALINGS IN THE SOFTWARE. + # ALPS Project: https://alps.comp-phys.org/ + # SPDX-License-Identifier: MIT # #############################################################################/ diff --git a/tutorials/hybridization-02-kondo/tutorial2.py b/tutorials/hybridization-02-kondo/tutorial2.py index 4e2a62351..c2cac627e 100644 --- a/tutorials/hybridization-02-kondo/tutorial2.py +++ b/tutorials/hybridization-02-kondo/tutorial2.py @@ -8,22 +8,8 @@ # Copyright (C) 2012 by Hartmut Hafermann # # - # This software is part of the ALPS Applications, published under the ALPS - # Application License; you can use, redistribute it and/or modify it under - # the terms of the license, either version 1 or (at your option) any later - # version. - # - # You should have received a copy of the ALPS Application License along with - # the ALPS Applications; see the file LICENSE.txt. If not, the license is also - # available from http://alps.comp-phys.org/. - # - # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - # FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT - # SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE - # FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, - # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - # DEALINGS IN THE SOFTWARE. + # ALPS Project: https://alps.comp-phys.org/ + # SPDX-License-Identifier: MIT # #############################################################################/ diff --git a/tutorials/hybridization-03-retarded-interaction/tutorial3.py b/tutorials/hybridization-03-retarded-interaction/tutorial3.py index c89524c0b..9c7c130ea 100644 --- a/tutorials/hybridization-03-retarded-interaction/tutorial3.py +++ b/tutorials/hybridization-03-retarded-interaction/tutorial3.py @@ -8,22 +8,8 @@ # Copyright (C) 2012 by Hartmut Hafermann # # - # This software is part of the ALPS Applications, published under the ALPS - # Application License; you can use, redistribute it and/or modify it under - # the terms of the license, either version 1 or (at your option) any later - # version. - # - # You should have received a copy of the ALPS Application License along with - # the ALPS Applications; see the file LICENSE.txt. If not, the license is also - # available from http://alps.comp-phys.org/. - # - # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - # FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT - # SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE - # FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, - # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - # DEALINGS IN THE SOFTWARE. + # ALPS Project: https://alps.comp-phys.org/ + # SPDX-License-Identifier: MIT # #############################################################################/ diff --git a/tutorials/hybridization-04-spinfreezing/tutorial4a.py b/tutorials/hybridization-04-spinfreezing/tutorial4a.py index 4886b213d..95d2f2b43 100644 --- a/tutorials/hybridization-04-spinfreezing/tutorial4a.py +++ b/tutorials/hybridization-04-spinfreezing/tutorial4a.py @@ -8,22 +8,8 @@ # Copyright (C) 2012 by Hartmut Hafermann # # - # This software is part of the ALPS Applications, published under the ALPS - # Application License; you can use, redistribute it and/or modify it under - # the terms of the license, either version 1 or (at your option) any later - # version. - # - # You should have received a copy of the ALPS Application License along with - # the ALPS Applications; see the file LICENSE.txt. If not, the license is also - # available from http://alps.comp-phys.org/. - # - # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - # FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT - # SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE - # FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, - # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - # DEALINGS IN THE SOFTWARE. + # ALPS Project: https://alps.comp-phys.org/ + # SPDX-License-Identifier: MIT # #############################################################################/ diff --git a/tutorials/hybridization-04-spinfreezing/tutorial4b.py b/tutorials/hybridization-04-spinfreezing/tutorial4b.py index 855d99d71..e62037e2b 100644 --- a/tutorials/hybridization-04-spinfreezing/tutorial4b.py +++ b/tutorials/hybridization-04-spinfreezing/tutorial4b.py @@ -8,22 +8,8 @@ # Copyright (C) 2012 by Hartmut Hafermann # # - # This software is part of the ALPS Applications, published under the ALPS - # Application License; you can use, redistribute it and/or modify it under - # the terms of the license, either version 1 or (at your option) any later - # version. - # - # You should have received a copy of the ALPS Application License along with - # the ALPS Applications; see the file LICENSE.txt. If not, the license is also - # available from http://alps.comp-phys.org/. - # - # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - # FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT - # SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE - # FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, - # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - # DEALINGS IN THE SOFTWARE. + # ALPS Project: https://alps.comp-phys.org/ + # SPDX-License-Identifier: MIT # #############################################################################/ diff --git a/tutorials/hybridization-04-spinfreezing/tutorial4c.py b/tutorials/hybridization-04-spinfreezing/tutorial4c.py index a05a8a777..82c37daac 100644 --- a/tutorials/hybridization-04-spinfreezing/tutorial4c.py +++ b/tutorials/hybridization-04-spinfreezing/tutorial4c.py @@ -7,22 +7,8 @@ # Copyright (C) 2012 by Hartmut Hafermann # # - # This software is part of the ALPS Applications, published under the ALPS - # Application License; you can use, redistribute it and/or modify it under - # the terms of the license, either version 1 or (at your option) any later - # version. - # - # You should have received a copy of the ALPS Application License along with - # the ALPS Applications; see the file LICENSE.txt. If not, the license is also - # available from http://alps.comp-phys.org/. - # - # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - # FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT - # SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE - # FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, - # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - # DEALINGS IN THE SOFTWARE. + # ALPS Project: https://alps.comp-phys.org/ + # SPDX-License-Identifier: MIT # #############################################################################/ diff --git a/tutorials/intro-01-basics/tutorial-binder.py b/tutorials/intro-01-basics/tutorial-binder.py index 19aee0c0f..66fb9ce3f 100644 --- a/tutorials/intro-01-basics/tutorial-binder.py +++ b/tutorials/intro-01-basics/tutorial-binder.py @@ -7,22 +7,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/intro-01-basics/tutorial-evaluate.py b/tutorials/intro-01-basics/tutorial-evaluate.py index 810ecdd15..f7dfd31de 100644 --- a/tutorials/intro-01-basics/tutorial-evaluate.py +++ b/tutorials/intro-01-basics/tutorial-evaluate.py @@ -7,22 +7,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/intro-01-basics/tutorial-full.py b/tutorials/intro-01-basics/tutorial-full.py index c013c14ed..f95b43226 100644 --- a/tutorials/intro-01-basics/tutorial-full.py +++ b/tutorials/intro-01-basics/tutorial-full.py @@ -7,22 +7,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/intro-01-basics/tutorial-gnuplot.py b/tutorials/intro-01-basics/tutorial-gnuplot.py index 96ff534d9..9b4a605be 100644 --- a/tutorials/intro-01-basics/tutorial-gnuplot.py +++ b/tutorials/intro-01-basics/tutorial-gnuplot.py @@ -7,22 +7,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/intro-01-basics/tutorial-graceplot.py b/tutorials/intro-01-basics/tutorial-graceplot.py index d73e1bd00..56bcca1f4 100644 --- a/tutorials/intro-01-basics/tutorial-graceplot.py +++ b/tutorials/intro-01-basics/tutorial-graceplot.py @@ -7,22 +7,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/intro-01-basics/tutorial-magnetization.py b/tutorials/intro-01-basics/tutorial-magnetization.py index 81d433a40..f903844f6 100644 --- a/tutorials/intro-01-basics/tutorial-magnetization.py +++ b/tutorials/intro-01-basics/tutorial-magnetization.py @@ -7,22 +7,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/intro-01-basics/tutorial-prepareinput.py b/tutorials/intro-01-basics/tutorial-prepareinput.py index 9e84bfeaa..6be0394a2 100644 --- a/tutorials/intro-01-basics/tutorial-prepareinput.py +++ b/tutorials/intro-01-basics/tutorial-prepareinput.py @@ -7,22 +7,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/intro-01-basics/tutorial-runsimulation.py b/tutorials/intro-01-basics/tutorial-runsimulation.py index 0bfbccb89..2ff56ae6a 100644 --- a/tutorials/intro-01-basics/tutorial-runsimulation.py +++ b/tutorials/intro-01-basics/tutorial-runsimulation.py @@ -7,22 +7,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/intro-01-basics/tutorial-text.py b/tutorials/intro-01-basics/tutorial-text.py index 3e8fa7526..d1476af4a 100644 --- a/tutorials/intro-01-basics/tutorial-text.py +++ b/tutorials/intro-01-basics/tutorial-text.py @@ -7,22 +7,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/mc-01-autocorrelations/tutorial1a.py b/tutorials/mc-01-autocorrelations/tutorial1a.py index 9bf822ba3..ab424a5cd 100644 --- a/tutorials/mc-01-autocorrelations/tutorial1a.py +++ b/tutorials/mc-01-autocorrelations/tutorial1a.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/mc-01-autocorrelations/tutorial1b.py b/tutorials/mc-01-autocorrelations/tutorial1b.py index 12359c027..61edab770 100644 --- a/tutorials/mc-01-autocorrelations/tutorial1b.py +++ b/tutorials/mc-01-autocorrelations/tutorial1b.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/mc-01b-equilibration-and-convergence/tutorial1a.py b/tutorials/mc-01b-equilibration-and-convergence/tutorial1a.py index 3d58bbf80..576fda65c 100644 --- a/tutorials/mc-01b-equilibration-and-convergence/tutorial1a.py +++ b/tutorials/mc-01b-equilibration-and-convergence/tutorial1a.py @@ -7,22 +7,8 @@ # Ping Nang Ma # Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # ############################################################################# diff --git a/tutorials/mc-02-susceptibilities/tutorial2a.py b/tutorials/mc-02-susceptibilities/tutorial2a.py index a772b796a..faed896eb 100644 --- a/tutorials/mc-02-susceptibilities/tutorial2a.py +++ b/tutorials/mc-02-susceptibilities/tutorial2a.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/mc-02-susceptibilities/tutorial2b.py b/tutorials/mc-02-susceptibilities/tutorial2b.py index 6f9e22abf..c6d62fdc2 100644 --- a/tutorials/mc-02-susceptibilities/tutorial2b.py +++ b/tutorials/mc-02-susceptibilities/tutorial2b.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/mc-02-susceptibilities/tutorial2c.py b/tutorials/mc-02-susceptibilities/tutorial2c.py index 4c36407ca..5bab6fce8 100644 --- a/tutorials/mc-02-susceptibilities/tutorial2c.py +++ b/tutorials/mc-02-susceptibilities/tutorial2c.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/mc-02-susceptibilities/tutorial2d.py b/tutorials/mc-02-susceptibilities/tutorial2d.py index 5ac6ea11a..ab0885d2f 100644 --- a/tutorials/mc-02-susceptibilities/tutorial2d.py +++ b/tutorials/mc-02-susceptibilities/tutorial2d.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/mc-02-susceptibilities/tutorial2full.py b/tutorials/mc-02-susceptibilities/tutorial2full.py index 4e60645f3..6c22a45f0 100644 --- a/tutorials/mc-02-susceptibilities/tutorial2full.py +++ b/tutorials/mc-02-susceptibilities/tutorial2full.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/mc-03-magnetization/tutorial3a.py b/tutorials/mc-03-magnetization/tutorial3a.py index 8beb785b7..72e1ee2d9 100644 --- a/tutorials/mc-03-magnetization/tutorial3a.py +++ b/tutorials/mc-03-magnetization/tutorial3a.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/mc-03-magnetization/tutorial3b.py b/tutorials/mc-03-magnetization/tutorial3b.py index 8bc76d540..b1143998a 100644 --- a/tutorials/mc-03-magnetization/tutorial3b.py +++ b/tutorials/mc-03-magnetization/tutorial3b.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/mc-03-magnetization/tutorial3full.py b/tutorials/mc-03-magnetization/tutorial3full.py index 84c4103ce..32a49e09d 100644 --- a/tutorials/mc-03-magnetization/tutorial3full.py +++ b/tutorials/mc-03-magnetization/tutorial3full.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/mc-04-measurements/tutorial4.py b/tutorials/mc-04-measurements/tutorial4.py index a70421fcf..61d4de55c 100644 --- a/tutorials/mc-04-measurements/tutorial4.py +++ b/tutorials/mc-04-measurements/tutorial4.py @@ -7,22 +7,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/mc-05-bosons/tutorial5a.py b/tutorials/mc-05-bosons/tutorial5a.py index e62a1565d..3e82ce7d1 100644 --- a/tutorials/mc-05-bosons/tutorial5a.py +++ b/tutorials/mc-05-bosons/tutorial5a.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/mc-05-bosons/tutorial5b.py b/tutorials/mc-05-bosons/tutorial5b.py index 534aa039f..83b2f6b55 100644 --- a/tutorials/mc-05-bosons/tutorial5b.py +++ b/tutorials/mc-05-bosons/tutorial5b.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/mc-06-qwl/tutorial6a.py b/tutorials/mc-06-qwl/tutorial6a.py index a237ed05f..c4cc4a977 100644 --- a/tutorials/mc-06-qwl/tutorial6a.py +++ b/tutorials/mc-06-qwl/tutorial6a.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/mc-06-qwl/tutorial6b.py b/tutorials/mc-06-qwl/tutorial6b.py index 835bb7413..0d641b4ae 100644 --- a/tutorials/mc-06-qwl/tutorial6b.py +++ b/tutorials/mc-06-qwl/tutorial6b.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/mc-06-qwl/tutorial6c.py b/tutorials/mc-06-qwl/tutorial6c.py index 3f548e8cf..16dbe0d37 100644 --- a/tutorials/mc-06-qwl/tutorial6c.py +++ b/tutorials/mc-06-qwl/tutorial6c.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/mc-06-qwl/tutorial6d.py b/tutorials/mc-06-qwl/tutorial6d.py index e594b3988..ad81d6cd7 100644 --- a/tutorials/mc-06-qwl/tutorial6d.py +++ b/tutorials/mc-06-qwl/tutorial6d.py @@ -7,22 +7,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/mc-07-phase-transition/tutorial7a.py b/tutorials/mc-07-phase-transition/tutorial7a.py index 7739414ec..9f93cd99a 100644 --- a/tutorials/mc-07-phase-transition/tutorial7a.py +++ b/tutorials/mc-07-phase-transition/tutorial7a.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Brigitte Surer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/mc-07-phase-transition/tutorial7b.py b/tutorials/mc-07-phase-transition/tutorial7b.py index d1627a2fb..0c913358f 100644 --- a/tutorials/mc-07-phase-transition/tutorial7b.py +++ b/tutorials/mc-07-phase-transition/tutorial7b.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Brigitte Surer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/mc-08-quantum-phase-transition/tutorial8a.py b/tutorials/mc-08-quantum-phase-transition/tutorial8a.py index 1debcc6d1..08c3bcf6f 100644 --- a/tutorials/mc-08-quantum-phase-transition/tutorial8a.py +++ b/tutorials/mc-08-quantum-phase-transition/tutorial8a.py @@ -7,22 +7,8 @@ # # Copyright (C) 2010 by Brigitte Surer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/mc-08-quantum-phase-transition/tutorial8b.py b/tutorials/mc-08-quantum-phase-transition/tutorial8b.py index 77a7e1b14..02601d330 100644 --- a/tutorials/mc-08-quantum-phase-transition/tutorial8b.py +++ b/tutorials/mc-08-quantum-phase-transition/tutorial8b.py @@ -6,22 +6,8 @@ # # Copyright (C) 2010 by Brigitte Surer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/mc-08-quantum-phase-transition/tutorial8c.py b/tutorials/mc-08-quantum-phase-transition/tutorial8c.py index 1adee0518..ad0ba549d 100644 --- a/tutorials/mc-08-quantum-phase-transition/tutorial8c.py +++ b/tutorials/mc-08-quantum-phase-transition/tutorial8c.py @@ -6,22 +6,8 @@ # # Copyright (C) 2010 by Brigitte Surer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/mc-08-quantum-phase-transition/tutorial8d.py b/tutorials/mc-08-quantum-phase-transition/tutorial8d.py index d91f66b24..53374e063 100644 --- a/tutorials/mc-08-quantum-phase-transition/tutorial8d.py +++ b/tutorials/mc-08-quantum-phase-transition/tutorial8d.py @@ -6,22 +6,8 @@ # # Copyright (C) 2010 by Brigitte Surer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/mc-09-snapshot/plot9a.py b/tutorials/mc-09-snapshot/plot9a.py index b27f7f7c1..e895696d1 100644 --- a/tutorials/mc-09-snapshot/plot9a.py +++ b/tutorials/mc-09-snapshot/plot9a.py @@ -6,22 +6,8 @@ # # Copyright (C) 2015 by Synge Todo # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/ngs/1_accumulator_only/ising.cpp b/tutorials/ngs/1_accumulator_only/ising.cpp index 74e64c0fa..7f2258637 100644 --- a/tutorials/ngs/1_accumulator_only/ising.cpp +++ b/tutorials/ngs/1_accumulator_only/ising.cpp @@ -6,22 +6,8 @@ * * * Copyright (C) 2010 - 2013 by Lukas Gamper * * * - * This software is part of the ALPS libraries, published under the ALPS * - * Library License; you can use, redistribute it and/or modify it under * - * the terms of the license, either version 1 or (at your option) any later * - * version. * - * * - * You should have received a copy of the ALPS Library License along with * - * the ALPS Libraries; see the file LICENSE.txt. If not, the license is also * - * available from http://alps.comp-phys.org/. * - * * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT * - * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE * - * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, * - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/tutorials/ngs/1_accumulator_only/ising.hpp b/tutorials/ngs/1_accumulator_only/ising.hpp index 6f8dbc806..0ff40b136 100644 --- a/tutorials/ngs/1_accumulator_only/ising.hpp +++ b/tutorials/ngs/1_accumulator_only/ising.hpp @@ -6,22 +6,8 @@ * * * Copyright (C) 2010 - 2013 by Lukas Gamper * * * - * This software is part of the ALPS libraries, published under the ALPS * - * Library License; you can use, redistribute it and/or modify it under * - * the terms of the license, either version 1 or (at your option) any later * - * version. * - * * - * You should have received a copy of the ALPS Library License along with * - * the ALPS Libraries; see the file LICENSE.txt. If not, the license is also * - * available from http://alps.comp-phys.org/. * - * * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT * - * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE * - * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, * - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/tutorials/ngs/1_accumulator_only/main.cpp b/tutorials/ngs/1_accumulator_only/main.cpp index e0244383e..10bc4f942 100644 --- a/tutorials/ngs/1_accumulator_only/main.cpp +++ b/tutorials/ngs/1_accumulator_only/main.cpp @@ -6,22 +6,8 @@ * * * Copyright (C) 2010 - 2013 by Lukas Gamper * * * - * This software is part of the ALPS libraries, published under the ALPS * - * Library License; you can use, redistribute it and/or modify it under * - * the terms of the license, either version 1 or (at your option) any later * - * version. * - * * - * You should have received a copy of the ALPS Library License along with * - * the ALPS Libraries; see the file LICENSE.txt. If not, the license is also * - * available from http://alps.comp-phys.org/. * - * * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT * - * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE * - * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, * - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/tutorials/ngs/2_single_core/ising.cpp b/tutorials/ngs/2_single_core/ising.cpp index 72e632ae5..4eb919437 100644 --- a/tutorials/ngs/2_single_core/ising.cpp +++ b/tutorials/ngs/2_single_core/ising.cpp @@ -6,22 +6,8 @@ * * * Copyright (C) 2010 - 2013 by Lukas Gamper * * * - * This software is part of the ALPS libraries, published under the ALPS * - * Library License; you can use, redistribute it and/or modify it under * - * the terms of the license, either version 1 or (at your option) any later * - * version. * - * * - * You should have received a copy of the ALPS Library License along with * - * the ALPS Libraries; see the file LICENSE.txt. If not, the license is also * - * available from http://alps.comp-phys.org/. * - * * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT * - * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE * - * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, * - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/tutorials/ngs/2_single_core/ising.hpp b/tutorials/ngs/2_single_core/ising.hpp index 86eac2f74..65a0b02a5 100644 --- a/tutorials/ngs/2_single_core/ising.hpp +++ b/tutorials/ngs/2_single_core/ising.hpp @@ -6,22 +6,8 @@ * * * Copyright (C) 2010 - 2013 by Lukas Gamper * * * - * This software is part of the ALPS libraries, published under the ALPS * - * Library License; you can use, redistribute it and/or modify it under * - * the terms of the license, either version 1 or (at your option) any later * - * version. * - * * - * You should have received a copy of the ALPS Library License along with * - * the ALPS Libraries; see the file LICENSE.txt. If not, the license is also * - * available from http://alps.comp-phys.org/. * - * * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT * - * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE * - * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, * - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/tutorials/ngs/2_single_core/main.cpp b/tutorials/ngs/2_single_core/main.cpp index 98337e128..7fbd971fd 100644 --- a/tutorials/ngs/2_single_core/main.cpp +++ b/tutorials/ngs/2_single_core/main.cpp @@ -6,22 +6,8 @@ * * * Copyright (C) 2010 - 2013 by Lukas Gamper * * * - * This software is part of the ALPS libraries, published under the ALPS * - * Library License; you can use, redistribute it and/or modify it under * - * the terms of the license, either version 1 or (at your option) any later * - * version. * - * * - * You should have received a copy of the ALPS Library License along with * - * the ALPS Libraries; see the file LICENSE.txt. If not, the license is also * - * available from http://alps.comp-phys.org/. * - * * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT * - * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE * - * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, * - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/tutorials/ngs/3_mpi/ising.cpp b/tutorials/ngs/3_mpi/ising.cpp index a022f0436..a1417e020 100644 --- a/tutorials/ngs/3_mpi/ising.cpp +++ b/tutorials/ngs/3_mpi/ising.cpp @@ -6,22 +6,8 @@ * * * Copyright (C) 2010 - 2013 by Lukas Gamper * * * - * This software is part of the ALPS libraries, published under the ALPS * - * Library License; you can use, redistribute it and/or modify it under * - * the terms of the license, either version 1 or (at your option) any later * - * version. * - * * - * You should have received a copy of the ALPS Library License along with * - * the ALPS Libraries; see the file LICENSE.txt. If not, the license is also * - * available from http://alps.comp-phys.org/. * - * * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT * - * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE * - * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, * - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/tutorials/ngs/3_mpi/ising.hpp b/tutorials/ngs/3_mpi/ising.hpp index 983a86128..2f91ee69d 100644 --- a/tutorials/ngs/3_mpi/ising.hpp +++ b/tutorials/ngs/3_mpi/ising.hpp @@ -6,22 +6,8 @@ * * * Copyright (C) 2010 - 2013 by Lukas Gamper * * * - * This software is part of the ALPS libraries, published under the ALPS * - * Library License; you can use, redistribute it and/or modify it under * - * the terms of the license, either version 1 or (at your option) any later * - * version. * - * * - * You should have received a copy of the ALPS Library License along with * - * the ALPS Libraries; see the file LICENSE.txt. If not, the license is also * - * available from http://alps.comp-phys.org/. * - * * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT * - * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE * - * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, * - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/tutorials/ngs/3_mpi/main.cpp b/tutorials/ngs/3_mpi/main.cpp index 8ca4fb44f..400b660b2 100644 --- a/tutorials/ngs/3_mpi/main.cpp +++ b/tutorials/ngs/3_mpi/main.cpp @@ -6,22 +6,8 @@ * * * Copyright (C) 2010 - 2013 by Lukas Gamper * * * - * This software is part of the ALPS libraries, published under the ALPS * - * Library License; you can use, redistribute it and/or modify it under * - * the terms of the license, either version 1 or (at your option) any later * - * version. * - * * - * You should have received a copy of the ALPS Library License along with * - * the ALPS Libraries; see the file LICENSE.txt. If not, the license is also * - * available from http://alps.comp-phys.org/. * - * * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT * - * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE * - * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, * - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/tutorials/ngs/4_mpi_pscan/ising.cpp b/tutorials/ngs/4_mpi_pscan/ising.cpp index a022f0436..a1417e020 100644 --- a/tutorials/ngs/4_mpi_pscan/ising.cpp +++ b/tutorials/ngs/4_mpi_pscan/ising.cpp @@ -6,22 +6,8 @@ * * * Copyright (C) 2010 - 2013 by Lukas Gamper * * * - * This software is part of the ALPS libraries, published under the ALPS * - * Library License; you can use, redistribute it and/or modify it under * - * the terms of the license, either version 1 or (at your option) any later * - * version. * - * * - * You should have received a copy of the ALPS Library License along with * - * the ALPS Libraries; see the file LICENSE.txt. If not, the license is also * - * available from http://alps.comp-phys.org/. * - * * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT * - * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE * - * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, * - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/tutorials/ngs/4_mpi_pscan/ising.hpp b/tutorials/ngs/4_mpi_pscan/ising.hpp index ac968b54a..6d90178cd 100644 --- a/tutorials/ngs/4_mpi_pscan/ising.hpp +++ b/tutorials/ngs/4_mpi_pscan/ising.hpp @@ -6,22 +6,8 @@ * * * Copyright (C) 2010 - 2013 by Lukas Gamper * * * - * This software is part of the ALPS libraries, published under the ALPS * - * Library License; you can use, redistribute it and/or modify it under * - * the terms of the license, either version 1 or (at your option) any later * - * version. * - * * - * You should have received a copy of the ALPS Library License along with * - * the ALPS Libraries; see the file LICENSE.txt. If not, the license is also * - * available from http://alps.comp-phys.org/. * - * * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT * - * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE * - * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, * - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/tutorials/ngs/4_mpi_pscan/main.cpp b/tutorials/ngs/4_mpi_pscan/main.cpp index 59b6ba9a8..8f1f24772 100644 --- a/tutorials/ngs/4_mpi_pscan/main.cpp +++ b/tutorials/ngs/4_mpi_pscan/main.cpp @@ -6,22 +6,8 @@ * * * Copyright (C) 2010 - 2013 by Lukas Gamper * * * - * This software is part of the ALPS libraries, published under the ALPS * - * Library License; you can use, redistribute it and/or modify it under * - * the terms of the license, either version 1 or (at your option) any later * - * version. * - * * - * You should have received a copy of the ALPS Library License along with * - * the ALPS Libraries; see the file LICENSE.txt. If not, the license is also * - * available from http://alps.comp-phys.org/. * - * * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT * - * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE * - * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, * - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/tutorials/ngs/5_export_python/export2py.cpp b/tutorials/ngs/5_export_python/export2py.cpp index 19f2d1e19..f2341db81 100644 --- a/tutorials/ngs/5_export_python/export2py.cpp +++ b/tutorials/ngs/5_export_python/export2py.cpp @@ -6,22 +6,8 @@ * * * Copyright (C) 2010 - 2012 by Lukas Gamper * * * - * This software is part of the ALPS libraries, published under the ALPS * - * Library License; you can use, redistribute it and/or modify it under * - * the terms of the license, either version 1 or (at your option) any later * - * version. * - * * - * You should have received a copy of the ALPS Library License along with * - * the ALPS Libraries; see the file LICENSE.txt. If not, the license is also * - * available from http://alps.comp-phys.org/. * - * * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT * - * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE * - * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, * - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/tutorials/ngs/5_export_python/ising.cpp b/tutorials/ngs/5_export_python/ising.cpp index a2a33ba07..68e32a10a 100644 --- a/tutorials/ngs/5_export_python/ising.cpp +++ b/tutorials/ngs/5_export_python/ising.cpp @@ -6,22 +6,8 @@ * * * Copyright (C) 2010 - 2013 by Lukas Gamper * * * - * This software is part of the ALPS libraries, published under the ALPS * - * Library License; you can use, redistribute it and/or modify it under * - * the terms of the license, either version 1 or (at your option) any later * - * version. * - * * - * You should have received a copy of the ALPS Library License along with * - * the ALPS Libraries; see the file LICENSE.txt. If not, the license is also * - * available from http://alps.comp-phys.org/. * - * * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT * - * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE * - * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, * - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/tutorials/ngs/5_export_python/ising.hpp b/tutorials/ngs/5_export_python/ising.hpp index ac968b54a..6d90178cd 100644 --- a/tutorials/ngs/5_export_python/ising.hpp +++ b/tutorials/ngs/5_export_python/ising.hpp @@ -6,22 +6,8 @@ * * * Copyright (C) 2010 - 2013 by Lukas Gamper * * * - * This software is part of the ALPS libraries, published under the ALPS * - * Library License; you can use, redistribute it and/or modify it under * - * the terms of the license, either version 1 or (at your option) any later * - * version. * - * * - * You should have received a copy of the ALPS Library License along with * - * the ALPS Libraries; see the file LICENSE.txt. If not, the license is also * - * available from http://alps.comp-phys.org/. * - * * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT * - * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE * - * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, * - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * - * DEALINGS IN THE SOFTWARE. * + * ALPS Project: https://alps.comp-phys.org/ * + * SPDX-License-Identifier: MIT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/tutorials/ngs/5_export_python/main.py b/tutorials/ngs/5_export_python/main.py index 98bd379d4..71ae9ea1d 100644 --- a/tutorials/ngs/5_export_python/main.py +++ b/tutorials/ngs/5_export_python/main.py @@ -5,22 +5,8 @@ # # # Copyright (C) 2010 - 2013 by Lukas Gamper # # # - # This software is part of the ALPS libraries, published under the ALPS # - # Library License; you can use, redistribute it and/or modify it under # - # the terms of the license, either version 1 or (at your option) any later # - # version. # - # # - # You should have received a copy of the ALPS Library License along with # - # the ALPS Libraries; see the file LICENSE.txt. If not, the license is also # - # available from http://alps.comp-phys.org/. # - # # - # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # - # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # - # FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT # - # SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE # - # FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, # - # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # - # DEALINGS IN THE SOFTWARE. # + # ALPS Project: https://alps.comp-phys.org/ # + # SPDX-License-Identifier: MIT # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # import pyalps.hdf5 as hdf5 diff --git a/tutorials/ngs/6_python_native/ising.py b/tutorials/ngs/6_python_native/ising.py index ff4099d33..243fc86f7 100644 --- a/tutorials/ngs/6_python_native/ising.py +++ b/tutorials/ngs/6_python_native/ising.py @@ -5,22 +5,8 @@ # # # Copyright (C) 2010 - 2013 by Lukas Gamper # # # - # This software is part of the ALPS libraries, published under the ALPS # - # Library License; you can use, redistribute it and/or modify it under # - # the terms of the license, either version 1 or (at your option) any later # - # version. # - # # - # You should have received a copy of the ALPS Library License along with # - # the ALPS Libraries; see the file LICENSE.txt. If not, the license is also # - # available from http://alps.comp-phys.org/. # - # # - # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # - # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # - # FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT # - # SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE # - # FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, # - # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # - # DEALINGS IN THE SOFTWARE. # + # ALPS Project: https://alps.comp-phys.org/ # + # SPDX-License-Identifier: MIT # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # import pyalps.hdf5 as hdf5 diff --git a/tutorials/ngs/6_python_native/main.py b/tutorials/ngs/6_python_native/main.py index 75d47183f..ff3585030 100644 --- a/tutorials/ngs/6_python_native/main.py +++ b/tutorials/ngs/6_python_native/main.py @@ -5,22 +5,8 @@ # # # Copyright (C) 2010 - 2013 by Lukas Gamper # # # - # This software is part of the ALPS libraries, published under the ALPS # - # Library License; you can use, redistribute it and/or modify it under # - # the terms of the license, either version 1 or (at your option) any later # - # version. # - # # - # You should have received a copy of the ALPS Library License along with # - # the ALPS Libraries; see the file LICENSE.txt. If not, the license is also # - # available from http://alps.comp-phys.org/. # - # # - # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # - # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # - # FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT # - # SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE # - # FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, # - # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # - # DEALINGS IN THE SOFTWARE. # + # ALPS Project: https://alps.comp-phys.org/ # + # SPDX-License-Identifier: MIT # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # import pyalps.hdf5 as hdf5 diff --git a/tutorials/ngs/7_python_extend/ising.py b/tutorials/ngs/7_python_extend/ising.py index 0910b491b..296bc6ca0 100644 --- a/tutorials/ngs/7_python_extend/ising.py +++ b/tutorials/ngs/7_python_extend/ising.py @@ -5,22 +5,8 @@ # # # Copyright (C) 2010 - 2013 by Lukas Gamper # # # - # This software is part of the ALPS libraries, published under the ALPS # - # Library License; you can use, redistribute it and/or modify it under # - # the terms of the license, either version 1 or (at your option) any later # - # version. # - # # - # You should have received a copy of the ALPS Library License along with # - # the ALPS Libraries; see the file LICENSE.txt. If not, the license is also # - # available from http://alps.comp-phys.org/. # - # # - # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # - # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # - # FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT # - # SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE # - # FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, # - # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # - # DEALINGS IN THE SOFTWARE. # + # ALPS Project: https://alps.comp-phys.org/ # + # SPDX-License-Identifier: MIT # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # import pyalps.ngs as ngs diff --git a/tutorials/ngs/7_python_extend/main.py b/tutorials/ngs/7_python_extend/main.py index f4b833804..fab878049 100644 --- a/tutorials/ngs/7_python_extend/main.py +++ b/tutorials/ngs/7_python_extend/main.py @@ -5,22 +5,8 @@ # # # Copyright (C) 2010 - 2013 by Lukas Gamper # # # - # This software is part of the ALPS libraries, published under the ALPS # - # Library License; you can use, redistribute it and/or modify it under # - # the terms of the license, either version 1 or (at your option) any later # - # version. # - # # - # You should have received a copy of the ALPS Library License along with # - # the ALPS Libraries; see the file LICENSE.txt. If not, the license is also # - # available from http://alps.comp-phys.org/. # - # # - # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # - # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # - # FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT # - # SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE # - # FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, # - # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # - # DEALINGS IN THE SOFTWARE. # + # ALPS Project: https://alps.comp-phys.org/ # + # SPDX-License-Identifier: MIT # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # import pyalps.hdf5 as hdf5 diff --git a/tutorials/notebook/ja/tutorial_ed01a.py b/tutorials/notebook/ja/tutorial_ed01a.py index 55ca02e55..c0e25b168 100644 --- a/tutorials/notebook/ja/tutorial_ed01a.py +++ b/tutorials/notebook/ja/tutorial_ed01a.py @@ -5,22 +5,8 @@ # # Copyright (C) 2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/notebook/ja/tutorial_ed02a.py b/tutorials/notebook/ja/tutorial_ed02a.py index a3a02f005..4cb924b9e 100644 --- a/tutorials/notebook/ja/tutorial_ed02a.py +++ b/tutorials/notebook/ja/tutorial_ed02a.py @@ -5,22 +5,8 @@ # # Copyright (C) 2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/notebook/ja/tutorial_ed02b.py b/tutorials/notebook/ja/tutorial_ed02b.py index 17bde5ff9..77b590790 100644 --- a/tutorials/notebook/ja/tutorial_ed02b.py +++ b/tutorials/notebook/ja/tutorial_ed02b.py @@ -5,22 +5,8 @@ # # Copyright (C) 2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/notebook/ja/tutorial_ed02c.py b/tutorials/notebook/ja/tutorial_ed02c.py index d34f4e24c..bab2ca6fb 100644 --- a/tutorials/notebook/ja/tutorial_ed02c.py +++ b/tutorials/notebook/ja/tutorial_ed02c.py @@ -5,22 +5,8 @@ # # Copyright (C) 2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/notebook/ja/tutorial_ed03a.py b/tutorials/notebook/ja/tutorial_ed03a.py index e7860f26b..0bb3181b1 100644 --- a/tutorials/notebook/ja/tutorial_ed03a.py +++ b/tutorials/notebook/ja/tutorial_ed03a.py @@ -5,22 +5,8 @@ # # Copyright (C) 2010 by Jan Gukelberger # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/notebook/ja/tutorial_ed03b.py b/tutorials/notebook/ja/tutorial_ed03b.py index 8922b1ea8..6a9a4c3e2 100644 --- a/tutorials/notebook/ja/tutorial_ed03b.py +++ b/tutorials/notebook/ja/tutorial_ed03b.py @@ -6,22 +6,8 @@ # # Copyright (C) 2010 by Jan Gukelberger # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/notebook/ja/tutorial_ed03c.py b/tutorials/notebook/ja/tutorial_ed03c.py index 59b191962..c50ece6e6 100644 --- a/tutorials/notebook/ja/tutorial_ed03c.py +++ b/tutorials/notebook/ja/tutorial_ed03c.py @@ -5,22 +5,8 @@ # # Copyright (C) 2010 by Jan Gukelberger # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/notebook/ja/tutorial_ed04a.py b/tutorials/notebook/ja/tutorial_ed04a.py index 9177b1d5d..c5927607d 100644 --- a/tutorials/notebook/ja/tutorial_ed04a.py +++ b/tutorials/notebook/ja/tutorial_ed04a.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Bela Bauer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/notebook/ja/tutorial_ed04b.py b/tutorials/notebook/ja/tutorial_ed04b.py index 2ccd3a2fd..67ddf724d 100644 --- a/tutorials/notebook/ja/tutorial_ed04b.py +++ b/tutorials/notebook/ja/tutorial_ed04b.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Bela Bauer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/notebook/ja/tutorial_ed05b.py b/tutorials/notebook/ja/tutorial_ed05b.py index 203f731a9..52f5a2613 100644 --- a/tutorials/notebook/ja/tutorial_ed05b.py +++ b/tutorials/notebook/ja/tutorial_ed05b.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Bela Bauer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/notebook/ja/tutorial_ed06a.py b/tutorials/notebook/ja/tutorial_ed06a.py index c164ac4d6..125e0b396 100644 --- a/tutorials/notebook/ja/tutorial_ed06a.py +++ b/tutorials/notebook/ja/tutorial_ed06a.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/notebook/ja/tutorial_ed06b.py b/tutorials/notebook/ja/tutorial_ed06b.py index 56eef07d4..84dff5377 100644 --- a/tutorials/notebook/ja/tutorial_ed06b.py +++ b/tutorials/notebook/ja/tutorial_ed06b.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/notebook/ja/tutorial_ed06c.py b/tutorials/notebook/ja/tutorial_ed06c.py index 001f53a55..47d28eb81 100644 --- a/tutorials/notebook/ja/tutorial_ed06c.py +++ b/tutorials/notebook/ja/tutorial_ed06c.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/notebook/ja/tutorial_ed06d.py b/tutorials/notebook/ja/tutorial_ed06d.py index 61d4040e2..ce6c7ffd3 100644 --- a/tutorials/notebook/ja/tutorial_ed06d.py +++ b/tutorials/notebook/ja/tutorial_ed06d.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/notebook/ja/tutorial_mc01a_1.py b/tutorials/notebook/ja/tutorial_mc01a_1.py index 9bf822ba3..ab424a5cd 100644 --- a/tutorials/notebook/ja/tutorial_mc01a_1.py +++ b/tutorials/notebook/ja/tutorial_mc01a_1.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/notebook/ja/tutorial_mc01a_2.py b/tutorials/notebook/ja/tutorial_mc01a_2.py index 12359c027..61edab770 100644 --- a/tutorials/notebook/ja/tutorial_mc01a_2.py +++ b/tutorials/notebook/ja/tutorial_mc01a_2.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/notebook/ja/tutorial_mc01b.py b/tutorials/notebook/ja/tutorial_mc01b.py index f6e049d56..1bb223a84 100644 --- a/tutorials/notebook/ja/tutorial_mc01b.py +++ b/tutorials/notebook/ja/tutorial_mc01b.py @@ -6,22 +6,8 @@ # Ping Nang Ma # Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # ############################################################################# diff --git a/tutorials/notebook/ja/tutorial_mc02a.py b/tutorials/notebook/ja/tutorial_mc02a.py index 7020ee7a6..650f89bb9 100644 --- a/tutorials/notebook/ja/tutorial_mc02a.py +++ b/tutorials/notebook/ja/tutorial_mc02a.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/notebook/ja/tutorial_mc02b.py b/tutorials/notebook/ja/tutorial_mc02b.py index 6ecdee48e..27885e412 100644 --- a/tutorials/notebook/ja/tutorial_mc02b.py +++ b/tutorials/notebook/ja/tutorial_mc02b.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/notebook/ja/tutorial_mc02c.py b/tutorials/notebook/ja/tutorial_mc02c.py index bab8c1e91..51b6ca206 100644 --- a/tutorials/notebook/ja/tutorial_mc02c.py +++ b/tutorials/notebook/ja/tutorial_mc02c.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/notebook/ja/tutorial_mc02d.py b/tutorials/notebook/ja/tutorial_mc02d.py index af8967947..4ccf7aaae 100644 --- a/tutorials/notebook/ja/tutorial_mc02d.py +++ b/tutorials/notebook/ja/tutorial_mc02d.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/notebook/ja/tutorial_mc02full.py b/tutorials/notebook/ja/tutorial_mc02full.py index 4e60645f3..6c22a45f0 100644 --- a/tutorials/notebook/ja/tutorial_mc02full.py +++ b/tutorials/notebook/ja/tutorial_mc02full.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/notebook/ja/tutorial_mc03a.py b/tutorials/notebook/ja/tutorial_mc03a.py index a045b5799..82f7d032f 100644 --- a/tutorials/notebook/ja/tutorial_mc03a.py +++ b/tutorials/notebook/ja/tutorial_mc03a.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/notebook/ja/tutorial_mc03b.py b/tutorials/notebook/ja/tutorial_mc03b.py index 5b3d89a94..c4f26637b 100644 --- a/tutorials/notebook/ja/tutorial_mc03b.py +++ b/tutorials/notebook/ja/tutorial_mc03b.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/notebook/ja/tutorial_mc03full.py b/tutorials/notebook/ja/tutorial_mc03full.py index 84c4103ce..32a49e09d 100644 --- a/tutorials/notebook/ja/tutorial_mc03full.py +++ b/tutorials/notebook/ja/tutorial_mc03full.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/notebook/ja/tutorial_mc04.py b/tutorials/notebook/ja/tutorial_mc04.py index a915f21a8..5a0704f07 100644 --- a/tutorials/notebook/ja/tutorial_mc04.py +++ b/tutorials/notebook/ja/tutorial_mc04.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/notebook/ja/tutorial_mc05a.py b/tutorials/notebook/ja/tutorial_mc05a.py index f2c84426f..45e3b4578 100644 --- a/tutorials/notebook/ja/tutorial_mc05a.py +++ b/tutorials/notebook/ja/tutorial_mc05a.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/notebook/ja/tutorial_mc05b.py b/tutorials/notebook/ja/tutorial_mc05b.py index cf99ce9c2..c17824055 100644 --- a/tutorials/notebook/ja/tutorial_mc05b.py +++ b/tutorials/notebook/ja/tutorial_mc05b.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/notebook/ja/tutorial_mc06a.py b/tutorials/notebook/ja/tutorial_mc06a.py index ad30bed65..d05d2ea0e 100644 --- a/tutorials/notebook/ja/tutorial_mc06a.py +++ b/tutorials/notebook/ja/tutorial_mc06a.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/notebook/ja/tutorial_mc06b.py b/tutorials/notebook/ja/tutorial_mc06b.py index 480b318f4..33d3772f9 100644 --- a/tutorials/notebook/ja/tutorial_mc06b.py +++ b/tutorials/notebook/ja/tutorial_mc06b.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/notebook/ja/tutorial_mc06c.py b/tutorials/notebook/ja/tutorial_mc06c.py index 3bb9c0c0f..8b547aa59 100644 --- a/tutorials/notebook/ja/tutorial_mc06c.py +++ b/tutorials/notebook/ja/tutorial_mc06c.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/notebook/ja/tutorial_mc06d.py b/tutorials/notebook/ja/tutorial_mc06d.py index dad727826..e15a8c0bc 100644 --- a/tutorials/notebook/ja/tutorial_mc06d.py +++ b/tutorials/notebook/ja/tutorial_mc06d.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/notebook/ja/tutorial_mc07a.py b/tutorials/notebook/ja/tutorial_mc07a.py index 9c1a8f557..c5b10cbfd 100644 --- a/tutorials/notebook/ja/tutorial_mc07a.py +++ b/tutorials/notebook/ja/tutorial_mc07a.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Brigitte Surer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/notebook/ja/tutorial_mc07b.py b/tutorials/notebook/ja/tutorial_mc07b.py index 7c7506ba3..3720ee4b1 100644 --- a/tutorials/notebook/ja/tutorial_mc07b.py +++ b/tutorials/notebook/ja/tutorial_mc07b.py @@ -6,22 +6,8 @@ # # Copyright (C) 2009-2010 by Brigitte Surer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/notebook/ja/tutorial_mc08a.py b/tutorials/notebook/ja/tutorial_mc08a.py index 9eeaf118f..8063e1827 100644 --- a/tutorials/notebook/ja/tutorial_mc08a.py +++ b/tutorials/notebook/ja/tutorial_mc08a.py @@ -6,22 +6,8 @@ # # Copyright (C) 2010 by Brigitte Surer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/notebook/ja/tutorial_mc08b.py b/tutorials/notebook/ja/tutorial_mc08b.py index f972a89d9..704a08029 100644 --- a/tutorials/notebook/ja/tutorial_mc08b.py +++ b/tutorials/notebook/ja/tutorial_mc08b.py @@ -6,22 +6,8 @@ # # Copyright (C) 2010 by Brigitte Surer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/notebook/ja/tutorial_mc08c.py b/tutorials/notebook/ja/tutorial_mc08c.py index 1bbb67a48..c8ab708fb 100644 --- a/tutorials/notebook/ja/tutorial_mc08c.py +++ b/tutorials/notebook/ja/tutorial_mc08c.py @@ -6,22 +6,8 @@ # # Copyright (C) 2010 by Brigitte Surer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** diff --git a/tutorials/test_py.py b/tutorials/test_py.py index 71b082481..0581fbc9a 100755 --- a/tutorials/test_py.py +++ b/tutorials/test_py.py @@ -8,22 +8,8 @@ # Copyright (C) 2010 by Bela Bauer # Matthias Troyer # -# This software is part of the ALPS libraries, published under the ALPS -# Library License; you can use, redistribute it and/or modify it under -# the terms of the license, either version 1 or (at your option) any later -# version. -# -# You should have received a copy of the ALPS Library License along with -# the ALPS Libraries; see the file LICENSE.txt. If not, the license is also -# available from http://alps.comp-phys.org/. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# ALPS Project: https://alps.comp-phys.org/ +# SPDX-License-Identifier: MIT # # **************************************************************************** From 641d8f997fd415c2295dbd69c957246fc2b58d15 Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Tue, 18 Aug 2026 03:37:18 -0500 Subject: [PATCH 20/51] fix: restore pyalea mcanalyze bindings The nanobind migration left the mcanalyze free functions unbound even though pyalps.alea still dispatches to them through alea_detail: autocorrelation_distance/_limit, cut_head_distance/_limit, cut_tail_distance/_limit, exponential_autocorrelation_time_distance/ _limit, uncorrelated_error, and binning_error all raised AttributeError at call time. Restore them with the same instantiation set as the Boost.Python module (scalar and vector mcdata/mctimeseries/ mctimeseries_view where each was previously exposed). The exponential fit helpers return StdPairDouble so the documented fit.first / fit.second attribute API keeps working, and integrated_autocorrelation_time now accepts that StdPairDouble as well as a plain 2-tuple, as its comment already promised. Co-Authored-By: Claude Fable 5 --- bindings/python/pyalps/cpp/pyalea.cpp | 84 +++++++++++++++++++ .../python/pyalps/src/pyalps/pyalps_config.py | 2 - 2 files changed, 84 insertions(+), 2 deletions(-) delete mode 100644 bindings/python/pyalps/src/pyalps/pyalps_config.py diff --git a/bindings/python/pyalps/cpp/pyalea.cpp b/bindings/python/pyalps/cpp/pyalea.cpp index b5ecd5607..fb9b2b86c 100644 --- a/bindings/python/pyalps/cpp/pyalea.cpp +++ b/bindings/python/pyalps/cpp/pyalea.cpp @@ -132,6 +132,14 @@ template nb::object variance_vector(T const & x) { return seq_to_numpy(alps::alea::variance(x)); } +template +nb::object uncorrelated_error_vector(T const & x) { + return seq_to_numpy(alps::alea::uncorrelated_error(x)); +} +template +nb::object binning_error_vector(T const & x) { + return seq_to_numpy(alps::alea::binning_error(x)); +} // mctimeseries.timeseries() returns std::vector; hand // back to Python as numpy. For scalar ValueType we pack 1-D; for // vector ValueType we pack 2-D. mctimeseries_view has the @@ -365,4 +373,80 @@ NB_MODULE(pyalea_c, m) { static_cast (*)(alps::alea::mctimeseries_view const &)>( &alps::alea::reverse_running_mean)); #undef DEF_ALL + // ─── mcanalyze free functions consumed by pyalps.alea ──────────── + // + // autocorrelation / cut_head / cut_tail / error in alea.py dispatch + // to these through alea_detail; the instantiation set matches the + // Boost.Python module. + #define DEF_TS_SCALAR(name, fn) \ + m.def(name, &fn>); \ + m.def(name, &fn>); \ + m.def(name, &fn>); + #define DEF_TS_VECTOR(name, fn) \ + m.def(name, &fn>>); \ + m.def(name, &fn>>); \ + m.def(name, &fn>>); + // autocorrelation — by distance or by decay limit. + DEF_TS_SCALAR("autocorrelation_distance", alps::alea::autocorrelation_distance) + DEF_TS_VECTOR("autocorrelation_distance", alps::alea::autocorrelation_distance) + DEF_TS_SCALAR("autocorrelation_limit", alps::alea::autocorrelation_limit) + DEF_TS_VECTOR("autocorrelation_limit", alps::alea::autocorrelation_limit) + // head/tail cuts — views by distance for scalar and vector series; + // by decay limit for scalar series only. + DEF_TS_SCALAR("cut_head_distance", alps::alea::cut_head_distance) + DEF_TS_VECTOR("cut_head_distance", alps::alea::cut_head_distance) + DEF_TS_SCALAR("cut_tail_distance", alps::alea::cut_tail_distance) + DEF_TS_VECTOR("cut_tail_distance", alps::alea::cut_tail_distance) + DEF_TS_SCALAR("cut_head_limit", alps::alea::cut_head_limit) + DEF_TS_SCALAR("cut_tail_limit", alps::alea::cut_tail_limit) + // error estimates — scalar overloads return float, vector overloads numpy. + DEF_TS_SCALAR("uncorrelated_error", alps::alea::uncorrelated_error) + DEF_TS_SCALAR("binning_error", alps::alea::binning_error) + m.def("uncorrelated_error", &uncorrelated_error_vector>>); + m.def("uncorrelated_error", &uncorrelated_error_vector>>); + m.def("uncorrelated_error", &uncorrelated_error_vector>>); + m.def("binning_error", &binning_error_vector>>); + m.def("binning_error", &binning_error_vector>>); + m.def("binning_error", &binning_error_vector>>); + #undef DEF_TS_SCALAR + #undef DEF_TS_VECTOR + // exponential_autocorrelation_time fits — return StdPairDouble so the + // fit.first / fit.second attribute API documented in pyalps.alea + // is preserved. + m.def("exponential_autocorrelation_time_distance", + [](alps::alea::mctimeseries const & ts, int from, int to) { + std::pair fit = + alps::alea::exponential_autocorrelation_time_distance(ts, from, to); + return StdPairDouble(fit.first, fit.second); + }); + m.def("exponential_autocorrelation_time_distance", + [](alps::alea::mctimeseries_view const & ts, int from, int to) { + std::pair fit = + alps::alea::exponential_autocorrelation_time_distance(ts, from, to); + return StdPairDouble(fit.first, fit.second); + }); + m.def("exponential_autocorrelation_time_limit", + [](alps::alea::mctimeseries const & ts, double max, double min) { + std::pair fit = + alps::alea::exponential_autocorrelation_time_limit(ts, max, min); + return StdPairDouble(fit.first, fit.second); + }); + m.def("exponential_autocorrelation_time_limit", + [](alps::alea::mctimeseries_view const & ts, double max, double min) { + std::pair fit = + alps::alea::exponential_autocorrelation_time_limit(ts, max, min); + return StdPairDouble(fit.first, fit.second); + }); + // integrated_autocorrelation_time also accepts the StdPairDouble + // returned by the fit helpers, in addition to a plain 2-tuple. + m.def("integrated_autocorrelation_time", + [](alps::alea::mctimeseries const & ts, StdPairDouble const & fit) { + return alps::alea::integrated_autocorrelation_time( + ts, std::pair(fit.first, fit.second)); + }); + m.def("integrated_autocorrelation_time", + [](alps::alea::mctimeseries_view const & ts, StdPairDouble const & fit) { + return alps::alea::integrated_autocorrelation_time( + ts, std::pair(fit.first, fit.second)); + }); } diff --git a/bindings/python/pyalps/src/pyalps/pyalps_config.py b/bindings/python/pyalps/src/pyalps/pyalps_config.py deleted file mode 100644 index 50a06b6f4..000000000 --- a/bindings/python/pyalps/src/pyalps/pyalps_config.py +++ /dev/null @@ -1,2 +0,0 @@ -ALPS_XML_INSTALL_DIR="" -ALPS_BIN_INSTALL_DIR="" \ No newline at end of file From c0884200617eee0a48acaf759972bf4d88a47c79 Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Tue, 18 Aug 2026 03:37:18 -0500 Subject: [PATCH 21/51] fix: bundle ALPS xml library in pyalps packages The standalone wheel dropped the XML/XSL data path: pyalps_config.py was checked in with hardcoded-empty install dirs and its template was never configured, and the wheel shipped no pyalps/xml directory, so pyalps.tools stylesheet and lattice/model-library workflows regressed against the legacy wheel build. Install the stylesheets plus the lattice and model libraries into pyalps/xml as the legacy ALPS_PYTHON_WHEEL build did, generate pyalps_config.py at build time with fallback paths pointing at the ALPS SDK the build used, drop the stale checked-in copy, and vendor lib/xml into the sdist so wheels rebuilt from it bundle the same files. Co-Authored-By: Claude Fable 5 --- bindings/python/pyalps/CMakeLists.txt | 28 +++++++++++++++++++ bindings/python/pyalps/pyproject.toml | 11 ++++++-- .../pyalps/src/pyalps/pyalps_config.py.in | 4 +-- 3 files changed, 38 insertions(+), 5 deletions(-) diff --git a/bindings/python/pyalps/CMakeLists.txt b/bindings/python/pyalps/CMakeLists.txt index ba658bba9..55d9bdb24 100644 --- a/bindings/python/pyalps/CMakeLists.txt +++ b/bindings/python/pyalps/CMakeLists.txt @@ -141,3 +141,31 @@ install(TARGETS ${_pyalps_targets} install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/src/pyalps/" DESTINATION pyalps FILES_MATCHING PATTERN "*.py") + +# Runtime fallback paths pointing at the ALPS SDK this build used. The +# in-package pyalps/xml and pyalps/bin directories take precedence in +# pyalps.tools when they exist. +set(PYALPS_ALPS_ROOT "${ALPS_ROOT_DIR}") +configure_file("${CMAKE_CURRENT_SOURCE_DIR}/src/pyalps/pyalps_config.py.in" + "${CMAKE_CURRENT_BINARY_DIR}/pyalps_config.py" @ONLY) +install(FILES "${CMAKE_CURRENT_BINARY_DIR}/pyalps_config.py" DESTINATION pyalps) + +# The ALPS XML/XSL library ships inside the package (pyalps/xml), as the +# legacy wheel build did: the stylesheets plus the lattice and model +# libraries that parameter files reference by default. +set(_alps_xml_source "${_alps_source_root}/lib/xml") +if(NOT EXISTS "${_alps_xml_source}/ALPS.xsl") + message(FATAL_ERROR + "ALPS XML stylesheets not found at ${_alps_xml_source}. " + "They are required so the pyalps package can bundle pyalps/xml.") +endif() +install(DIRECTORY "${_alps_xml_source}/" DESTINATION pyalps/xml + FILES_MATCHING PATTERN "*.xsl") +configure_file("${_alps_xml_source}/lattices.xml.in" + "${CMAKE_CURRENT_BINARY_DIR}/xml/lattices.xml" COPYONLY) +configure_file("${_alps_xml_source}/models.xml.in" + "${CMAKE_CURRENT_BINARY_DIR}/xml/models.xml" COPYONLY) +install(FILES + "${CMAKE_CURRENT_BINARY_DIR}/xml/lattices.xml" + "${CMAKE_CURRENT_BINARY_DIR}/xml/models.xml" + DESTINATION pyalps/xml) diff --git a/bindings/python/pyalps/pyproject.toml b/bindings/python/pyalps/pyproject.toml index 1becb4ccb..44f93b850 100644 --- a/bindings/python/pyalps/pyproject.toml +++ b/bindings/python/pyalps/pyproject.toml @@ -19,19 +19,24 @@ test = ["pytest>=8"] cmake.source-dir = "." wheel.packages = ["src/pyalps"] wheel.force-include = { "LICENSE.txt" = "${SKBUILD_METADATA_DIR}/licenses/LICENSE.txt" } +# pyalps_config.py is generated by CMake from this template; the template +# itself does not belong in the wheel. +wheel.exclude = ["pyalps/pyalps_config.py.in"] build.verbose = true [tool.scikit-build.cmake.define] ALPS_DIR = { env = "ALPS_DIR" } -# Application bindings compile selected legacy application sources. Preserve -# those sources when this subproject is distributed independently of the -# repository checkout so wheels can also be rebuilt from the sdist. +# Application bindings compile selected legacy application sources, and the +# package bundles the ALPS XML/XSL library. Preserve both when this subproject +# is distributed independently of the repository checkout so wheels can also +# be rebuilt from the sdist. [tool.scikit-build.sdist.force-include] "../../../LICENSE.txt" = "LICENSE.txt" "../../../applications/dmft/qmc" = "_vendor/applications/dmft/qmc" "../../../applications/qmc/dwa" = "_vendor/applications/qmc/dwa" "../../../tool" = "_vendor/tool" +"../../../lib/xml" = "_vendor/lib/xml" [tool.cibuildwheel] manylinux-x86_64-image = "manylinux_2_28" diff --git a/bindings/python/pyalps/src/pyalps/pyalps_config.py.in b/bindings/python/pyalps/src/pyalps/pyalps_config.py.in index 150ef0f5e..111f88995 100644 --- a/bindings/python/pyalps/src/pyalps/pyalps_config.py.in +++ b/bindings/python/pyalps/src/pyalps/pyalps_config.py.in @@ -1,2 +1,2 @@ -ALPS_XML_INSTALL_DIR="@CMAKE_INSTALL_PREFIX@/lib/xml" -ALPS_BIN_INSTALL_DIR="@CMAKE_INSTALL_PREFIX@/bin" +ALPS_XML_INSTALL_DIR="@PYALPS_ALPS_ROOT@/lib/xml" +ALPS_BIN_INSTALL_DIR="@PYALPS_ALPS_ROOT@/bin" From 48b4774e53e162997ecb8c8cb1d20f4bf7b19f36 Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Tue, 18 Aug 2026 03:37:18 -0500 Subject: [PATCH 22/51] test: cover restored mcanalyze surface and packaged xml Exercise the full pyalps.alea entry-point surface (autocorrelation, head/tail cuts, exponential fit attributes, integrated autocorrelation time from both StdPairDouble and tuple, uncorrelated and binning errors for scalar and vector series) and assert the installed package resolves ALPS.xsl and ships the lattice and model libraries. Co-Authored-By: Claude Fable 5 --- test/pyalps/test_binding_surface.py | 68 +++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/test/pyalps/test_binding_surface.py b/test/pyalps/test_binding_surface.py index 091913c22..bfcc35759 100644 --- a/test/pyalps/test_binding_surface.py +++ b/test/pyalps/test_binding_surface.py @@ -104,6 +104,72 @@ def test_alea_numpy_and_mcdata_operators(): assert duplicate.error == total.error +def test_alea_mcanalyze_surface(): + from pyalps import alea + from pyalps.cxx.pyalea_c import ( + MCScalarTimeseries, + MCScalarTimeseriesView, + MCVectorTimeseries, + StdPairDouble, + integrated_autocorrelation_time, + size, + ) + from pyalps.cxx.pytools_c import rng + + generator = rng(42) + samples = [] + state = 0.0 + for _ in range(512): + state = 0.9 * state + 0.1 * (2 * generator() - 1) + samples.append(state) + series = MCScalarTimeseries(np.asarray(samples)) + + correlation = alea.autocorrelation(series, _distance=16) + assert isinstance(correlation, MCScalarTimeseries) + assert size(correlation) == 16 + limited = alea.autocorrelation(series, _limit=0.2) + assert size(limited) >= 1 + + head = alea.cut_head(series, _distance=100) + tail = alea.cut_tail(series, _distance=100) + assert isinstance(head, MCScalarTimeseriesView) + assert size(head) == 412 + assert size(tail) == 412 + assert size(alea.cut_head(correlation, _limit=0.5)) < 16 + + fit = alea.exponential_autocorrelation_time(correlation, _from=1, _to=8) + assert isinstance(fit, StdPairDouble) + assert fit.second < 0 # decaying autocorrelation + ranged = alea.exponential_autocorrelation_time(correlation, _max=0.8, _min=0.2) + assert isinstance(ranged, StdPairDouble) + + tau_from_pair = integrated_autocorrelation_time(correlation, fit) + tau_from_tuple = integrated_autocorrelation_time(correlation, (fit.first, fit.second)) + assert tau_from_pair == tau_from_tuple + assert tau_from_pair > 0 + + assert alea.error(series) > 0 + assert alea.error(series, "binning") > 0 + + vector_series = MCVectorTimeseries(np.asarray([[float(i + j) for j in range(3)] for i in range(64)])) + vector_error = alea.error(vector_series) + assert vector_error.shape == (3,) + assert np.all(vector_error > 0) + vector_correlation = alea.autocorrelation(vector_series, _distance=4) + assert vector_correlation.timeseries().shape == (4, 3) + + +def test_packaged_xml_stylesheets(): + import pyalps.tools + + xsl = pyalps.tools.xslPath() + assert os.path.basename(xsl) == "ALPS.xsl" + assert os.path.exists(xsl) + xml_dir = os.path.dirname(xsl) + for name in ("lattices.xml", "models.xml", "plot2mpl.xsl"): + assert os.path.exists(os.path.join(xml_dir, name)) + + def test_ngs_observable_containers(): from pyalps import ngs @@ -186,6 +252,8 @@ def GetProperties(self, filenames): test_extension_import_surface, test_cross_module_parameter_archive_and_rng_roundtrip, test_alea_numpy_and_mcdata_operators, + test_alea_mcanalyze_surface, + test_packaged_xml_stylesheets, test_ngs_observable_containers, test_name_encoding_roundtrip, test_accumulator_surface, From e2f7ca0bb95be283338853878e7436c6fbcad97f Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Tue, 18 Aug 2026 10:54:43 -0500 Subject: [PATCH 23/51] fix: restore params parameter-file constructor The Boost.Python module exposed params(str), which reads a classic ALPS text parameter file through alps::params(boost::filesystem::path). The nanobind module only kept the default, dict, and archive constructors. Restore the filename form and cover it in the binding-surface test. Found by a symbol-level audit of the old module exports against the built nanobind modules; this was the only genuinely dropped entry point remaining (commented-out registrations in the legacy sources such as convert2numpy and the createSigned*/createSimple* factories were never exported by the old build). Co-Authored-By: Claude Fable 5 --- bindings/python/pyalps/cpp/ngs/params.cpp | 8 ++++++++ test/pyalps/test_binding_surface.py | 14 ++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/bindings/python/pyalps/cpp/ngs/params.cpp b/bindings/python/pyalps/cpp/ngs/params.cpp index f6d9c8957..0994346f9 100644 --- a/bindings/python/pyalps/cpp/ngs/params.cpp +++ b/bindings/python/pyalps/cpp/ngs/params.cpp @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include @@ -133,6 +134,13 @@ NB_MODULE(pyngsparams_c, m) { new (self) alps::params(py_dict_to_params(d)); }, nb::arg("dict")) + // Read a classic ALPS text parameter file, matching the str + // constructor of the Boost.Python module. + .def("__init__", + [](alps::params * self, std::string const & filename) { + new (self) alps::params(boost::filesystem::path(filename)); + }, + nb::arg("filename")) .def(nb::init(), nb::arg("archive"), nb::arg("path") = std::string("/parameters")) diff --git a/test/pyalps/test_binding_surface.py b/test/pyalps/test_binding_surface.py index bfcc35759..0d48df969 100644 --- a/test/pyalps/test_binding_surface.py +++ b/test/pyalps/test_binding_surface.py @@ -104,6 +104,19 @@ def test_alea_numpy_and_mcdata_operators(): assert duplicate.error == total.error +def test_params_from_parameter_file(): + from pyalps.cxx.pyngsparams_c import params + + with tempfile.TemporaryDirectory() as directory: + path = os.path.join(directory, "input.parm") + with open(path, "w") as parameter_file: + parameter_file.write('LATTICE="chain lattice";\nL=10;\nT=2.25;\n') + loaded = params(path) + assert str(loaded["LATTICE"]) == "chain lattice" + assert int(loaded["L"]) == 10 + assert float(loaded["T"]) == 2.25 + + def test_alea_mcanalyze_surface(): from pyalps import alea from pyalps.cxx.pyalea_c import ( @@ -251,6 +264,7 @@ def GetProperties(self, filenames): for test in ( test_extension_import_surface, test_cross_module_parameter_archive_and_rng_roundtrip, + test_params_from_parameter_file, test_alea_numpy_and_mcdata_operators, test_alea_mcanalyze_surface, test_packaged_xml_stylesheets, From 136584cb6e27ea8657144eeb63c97aba9b362102 Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Tue, 18 Aug 2026 11:43:41 -0500 Subject: [PATCH 24/51] docs: address PR review feedback --- CITATION.md | 26 ++---------- CMakeLists.txt | 2 +- CONTRIBUTING.md | 9 ++-- README-py.md | 2 +- README.md | 41 +------------------ tutorials/alpsize-01-cmake/CMakeLists.txt | 2 +- .../alpsize-02-original-c/CMakeLists.txt | 2 +- tutorials/alpsize-03-basic-cpp/CMakeLists.txt | 2 +- tutorials/alpsize-04-stl/CMakeLists.txt | 2 +- tutorials/alpsize-05-boost/CMakeLists.txt | 2 +- .../alpsize-06-parameters/CMakeLists.txt | 2 +- tutorials/alpsize-07-alea/CMakeLists.txt | 2 +- tutorials/alpsize-08-lattice/CMakeLists.txt | 2 +- tutorials/alpsize-09-scheduler/CMakeLists.txt | 2 +- .../CMakeLists.txt | 2 +- .../alpsize-11-fortran-ising/CMakeLists.txt | 2 +- tutorials/code-06-mcmain-c++/CMakeLists.txt | 2 +- .../code-07-mcmain-mcbase/CMakeLists.txt | 2 +- .../heisenberg/1d_lattice/CMakeLists.txt | 2 +- .../heisenberg/nd_lattice/CMakeLists.txt | 2 +- .../heisenberg/o_n_model/CMakeLists.txt | 2 +- 21 files changed, 27 insertions(+), 85 deletions(-) diff --git a/CITATION.md b/CITATION.md index 2f2ecf96c..3fbfcf163 100644 --- a/CITATION.md +++ b/CITATION.md @@ -1,29 +1,11 @@ # Citing ALPS -If ALPS contributes to published research, please cite the framework papers below and any method-specific paper relevant to the application you used. +If ALPS contributes to published research, cite the latest framework paper below and any method-specific paper relevant to the application you used. -## Framework papers +## Framework paper -Please cite both ALPS framework papers: - -1. A. F. Albuquerque *et al.*, “The ALPS project release 1.3: Open-source software for strongly correlated systems,” *Journal of Magnetism and Magnetic Materials* **310**, 1187–1193 (2007). [doi:10.1016/j.jmmm.2006.10.304](https://doi.org/10.1016/j.jmmm.2006.10.304) -2. B. Bauer *et al.*, “The ALPS project release 2.0: Open source software for strongly correlated systems,” *Journal of Statistical Mechanics: Theory and Experiment* **2011**, P05001 (2011). [doi:10.1088/1742-5468/2011/05/P05001](https://doi.org/10.1088/1742-5468/2011/05/P05001) +B. Bauer *et al.*, “The ALPS project release 2.0: Open source software for strongly correlated systems,” *Journal of Statistical Mechanics: Theory and Experiment* **2011**, P05001 (2011). [doi:10.1088/1742-5468/2011/05/P05001](https://doi.org/10.1088/1742-5468/2011/05/P05001) ## Method-specific papers -Add the applicable paper from this table. Application names match directories or executables in this repository. - -| Application or component | Additional citation | -| --- | --- | -| `applications/qmc/looper` (`loop`, `loop_mpi`) | S. Todo and K. Kato, “Cluster Algorithms for General-S Quantum Spin Systems,” *Physical Review Letters* **87**, 047203 (2001). [doi:10.1103/PhysRevLett.87.047203](https://doi.org/10.1103/PhysRevLett.87.047203) | -| `applications/qmc/qwl` | M. Troyer, S. Wessel, and F. Alet, “Flat Histogram Methods for Quantum Systems,” *Physical Review Letters* **90**, 120201 (2003). [doi:10.1103/PhysRevLett.90.120201](https://doi.org/10.1103/PhysRevLett.90.120201) | -| Continuous-time QMC impurity solvers and the DMFT framework | E. Gull, P. Werner, S. Fuchs, B. Surer, T. Pruschke, and M. Troyer, “Continuous-time quantum Monte Carlo impurity solvers,” *Computer Physics Communications* **182**, 1078–1082 (2011). [doi:10.1016/j.cpc.2010.12.050](https://doi.org/10.1016/j.cpc.2010.12.050) | -| DMRG/MPS applications | M. Dolfi *et al.*, “Matrix product state applications for the ALPS project,” *Computer Physics Communications* **185**, 3430–3440 (2014). [doi:10.1016/j.cpc.2014.08.019](https://doi.org/10.1016/j.cpc.2014.08.019) | - -The framework papers are sufficient for `sse`, `spinmc`, `fulldiag`, `sparsediag`, and `worm` unless a publication describes a more specific algorithmic reference. For specialized models or algorithms, also cite the primary scientific source on which the calculation is based. - -## Citation metadata - -Use the DOI links above to obtain current BibTeX, RIS, or other citation metadata from the publishers. This avoids maintaining duplicate hand-written records that can drift from the authoritative metadata. - -When describing reproducibility, also record the ALPS release or Git commit used in the calculation. +The maintained list of implementation and algorithm papers for individual ALPS applications is available on the [ALPS documentation website](https://alps.comp-phys.org/documentation/pubs/refs/). diff --git a/CMakeLists.txt b/CMakeLists.txt index c4513f28b..4463ff351 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,7 +17,7 @@ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # DEALINGS IN THE SOFTWARE. -cmake_minimum_required(VERSION 3.18.0) +cmake_minimum_required(VERSION 3.21) if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR}) message(FATAL_ERROR "In-source builds not allowed. Please make a new directory (called a build directory) and run CMake from there. You may need to remove CMakeCache.txt.") diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3fd052873..3fb93add7 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -50,13 +50,13 @@ Before opening a new issue, please search existing issues to avoid duplicates. ### Prerequisites -- CMake ≥ 3.18 for normal configuration; CMake ≥ 3.21 for presets +- CMake ≥ 3.21 - A C++17-capable compiler (GCC, Clang, Intel, or Fujitsu) - Boost (downloaded automatically during configuration; or use a system install with `-DALPS_USE_SYSTEM_BOOST=ON`) - For Fortran bindings: gfortran (or compatible Fortran compiler) - For Python bindings: Python ≥ 3.10, plus `numpy` and `scipy` -See the [installation page](https://alps.comp-phys.org/documentation/install/) for full platform-specific instructions. +See the [installation page](https://alps.comp-phys.org/install/) for full platform-specific instructions. ### Fork and clone @@ -79,7 +79,7 @@ cmake .. -DCMAKE_BUILD_TYPE=Release make -j$(nproc) ``` -Alternatively, use the bundled CMake preset (requires CMake ≥ 3.21): +Alternatively, use the bundled CMake preset: ```bash cmake --preset default cmake --build --preset default @@ -177,8 +177,7 @@ If you are contributing a new simulation application or library, the Governing C ### CMake -- CMake ≥ 3.18 features are acceptable. Preset files may use features available - in CMake ≥ 3.21. +- CMake ≥ 3.21 features are acceptable. - Use target-based linking (`target_link_libraries`, `target_include_directories`) rather than directory-level commands. --- diff --git a/README-py.md b/README-py.md index 4bd2da976..7ef7351c6 100644 --- a/README-py.md +++ b/README-py.md @@ -16,7 +16,7 @@ pip install pyalps ### Installation instruction from sources 1. Prerequisites - - CMake > 3.18 + - CMake >= 3.21 - Boost sources >= 1.76 - BLAS/LAPACK - HDF5 diff --git a/README.md b/README.md index 35d123abb..c4eee2653 100644 --- a/README.md +++ b/README.md @@ -10,46 +10,7 @@ The ALPS software package aims to provide a set of well tested, robust, and stan ## Installation -### Python - -Binary `pyalps` wheels are available for supported Linux and macOS systems: - -```sh -python -m pip install pyalps -``` - -Plotting with `pyalps` requires Matplotlib, which can be installed together with the package: - -```sh -python -m pip install "pyalps[plot]" -``` - -### Build from source - -A native build requires CMake 3.18 or newer, a C++14 compiler, HDF5, and BLAS/LAPACK. The bundled CMake presets require CMake 3.21 or newer. MPI is enabled by default when available. The legacy Fortran interface is disabled by default. If a Boost source tree is not supplied, configuration downloads one and therefore requires network access. - -Configure a release build with an explicit installation prefix, then build and install it: - -```sh -cmake -S . -B _build/release \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/path/to/alps -cmake --build _build/release --parallel -cmake --install _build/release -``` - -Alternatively, with CMake 3.21 or newer: - -```sh -cmake --preset default -cmake --build --preset default -``` - -Add `-DALPS_ENABLE_MPI=OFF` to the configure command for a serial-only build. To build the legacy Fortran interface and its examples, add `-DALPS_BUILD_FORTRAN=ON`; this requires a Fortran compiler and the HDF5 Fortran component. - -Building the Python bindings from source is a separate step against an installed ALPS C++ SDK; see the [`pyalps` build instructions](bindings/python/pyalps/README.md). - -Platform-specific binary, source, and Spack instructions are available on the [ALPS installation website](https://alps.comp-phys.org/documentation/install/). +For current binary, source, and Spack installation instructions, see the [ALPS installation website](https://alps.comp-phys.org/install/). ## Contributing diff --git a/tutorials/alpsize-01-cmake/CMakeLists.txt b/tutorials/alpsize-01-cmake/CMakeLists.txt index eddfdab20..b5f6a349c 100644 --- a/tutorials/alpsize-01-cmake/CMakeLists.txt +++ b/tutorials/alpsize-01-cmake/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.18) +cmake_minimum_required(VERSION 3.21) project(alpsize NONE) # find ALPS Library diff --git a/tutorials/alpsize-02-original-c/CMakeLists.txt b/tutorials/alpsize-02-original-c/CMakeLists.txt index 37b204a9f..4470f1ea4 100644 --- a/tutorials/alpsize-02-original-c/CMakeLists.txt +++ b/tutorials/alpsize-02-original-c/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.18) +cmake_minimum_required(VERSION 3.21) project(alpsize NONE) # enable C and C++ compilers diff --git a/tutorials/alpsize-03-basic-cpp/CMakeLists.txt b/tutorials/alpsize-03-basic-cpp/CMakeLists.txt index f8896c49d..1ebc80f4d 100644 --- a/tutorials/alpsize-03-basic-cpp/CMakeLists.txt +++ b/tutorials/alpsize-03-basic-cpp/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.18) +cmake_minimum_required(VERSION 3.21) project(alpsize NONE) # enable C and C++ compilers diff --git a/tutorials/alpsize-04-stl/CMakeLists.txt b/tutorials/alpsize-04-stl/CMakeLists.txt index f8896c49d..1ebc80f4d 100644 --- a/tutorials/alpsize-04-stl/CMakeLists.txt +++ b/tutorials/alpsize-04-stl/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.18) +cmake_minimum_required(VERSION 3.21) project(alpsize NONE) # enable C and C++ compilers diff --git a/tutorials/alpsize-05-boost/CMakeLists.txt b/tutorials/alpsize-05-boost/CMakeLists.txt index f3d5ea1fa..cdd7214a5 100644 --- a/tutorials/alpsize-05-boost/CMakeLists.txt +++ b/tutorials/alpsize-05-boost/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.18) +cmake_minimum_required(VERSION 3.21) project(alpsize NONE) # find ALPS Library diff --git a/tutorials/alpsize-06-parameters/CMakeLists.txt b/tutorials/alpsize-06-parameters/CMakeLists.txt index ae449f6b5..9500a5d21 100644 --- a/tutorials/alpsize-06-parameters/CMakeLists.txt +++ b/tutorials/alpsize-06-parameters/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.18) +cmake_minimum_required(VERSION 3.21) project(alpsize NONE) # find ALPS Library diff --git a/tutorials/alpsize-07-alea/CMakeLists.txt b/tutorials/alpsize-07-alea/CMakeLists.txt index ae449f6b5..9500a5d21 100644 --- a/tutorials/alpsize-07-alea/CMakeLists.txt +++ b/tutorials/alpsize-07-alea/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.18) +cmake_minimum_required(VERSION 3.21) project(alpsize NONE) # find ALPS Library diff --git a/tutorials/alpsize-08-lattice/CMakeLists.txt b/tutorials/alpsize-08-lattice/CMakeLists.txt index 23c419577..41ff9424f 100644 --- a/tutorials/alpsize-08-lattice/CMakeLists.txt +++ b/tutorials/alpsize-08-lattice/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.18) +cmake_minimum_required(VERSION 3.21) project(alpsize NONE) # find ALPS Library diff --git a/tutorials/alpsize-09-scheduler/CMakeLists.txt b/tutorials/alpsize-09-scheduler/CMakeLists.txt index 6b1e8de07..ae527fde9 100644 --- a/tutorials/alpsize-09-scheduler/CMakeLists.txt +++ b/tutorials/alpsize-09-scheduler/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.18) +cmake_minimum_required(VERSION 3.21) project(alpsize NONE) # find ALPS Library diff --git a/tutorials/alpsize-10-fortran-scheduler/CMakeLists.txt b/tutorials/alpsize-10-fortran-scheduler/CMakeLists.txt index c32ad0ad3..25aa9e4c0 100644 --- a/tutorials/alpsize-10-fortran-scheduler/CMakeLists.txt +++ b/tutorials/alpsize-10-fortran-scheduler/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.18) +cmake_minimum_required(VERSION 3.21) project(alpsize NONE) # find ALPS Library diff --git a/tutorials/alpsize-11-fortran-ising/CMakeLists.txt b/tutorials/alpsize-11-fortran-ising/CMakeLists.txt index 78de7d796..97b7f8022 100644 --- a/tutorials/alpsize-11-fortran-ising/CMakeLists.txt +++ b/tutorials/alpsize-11-fortran-ising/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.18) +cmake_minimum_required(VERSION 3.21) project(alpsize NONE) # find ALPS Library diff --git a/tutorials/code-06-mcmain-c++/CMakeLists.txt b/tutorials/code-06-mcmain-c++/CMakeLists.txt index 11055b87f..f8128411a 100644 --- a/tutorials/code-06-mcmain-c++/CMakeLists.txt +++ b/tutorials/code-06-mcmain-c++/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.18) +cmake_minimum_required(VERSION 3.21) project(alpsize NONE) # find ALPS Library diff --git a/tutorials/code-07-mcmain-mcbase/CMakeLists.txt b/tutorials/code-07-mcmain-mcbase/CMakeLists.txt index 12ad7d69b..a9ad07fa1 100644 --- a/tutorials/code-07-mcmain-mcbase/CMakeLists.txt +++ b/tutorials/code-07-mcmain-mcbase/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.18) +cmake_minimum_required(VERSION 3.21) project(alpsize NONE) # find ALPS Library diff --git a/tutorials/code-07-mcmain-mcbase/heisenberg/1d_lattice/CMakeLists.txt b/tutorials/code-07-mcmain-mcbase/heisenberg/1d_lattice/CMakeLists.txt index 1fc795c32..779802067 100644 --- a/tutorials/code-07-mcmain-mcbase/heisenberg/1d_lattice/CMakeLists.txt +++ b/tutorials/code-07-mcmain-mcbase/heisenberg/1d_lattice/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.18) +cmake_minimum_required(VERSION 3.21) project(heisenberg NONE) # find ALPS Library diff --git a/tutorials/code-07-mcmain-mcbase/heisenberg/nd_lattice/CMakeLists.txt b/tutorials/code-07-mcmain-mcbase/heisenberg/nd_lattice/CMakeLists.txt index 103997448..adb42a53f 100644 --- a/tutorials/code-07-mcmain-mcbase/heisenberg/nd_lattice/CMakeLists.txt +++ b/tutorials/code-07-mcmain-mcbase/heisenberg/nd_lattice/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.18) +cmake_minimum_required(VERSION 3.21) project(heisenberg NONE) # find ALPS Library diff --git a/tutorials/code-07-mcmain-mcbase/heisenberg/o_n_model/CMakeLists.txt b/tutorials/code-07-mcmain-mcbase/heisenberg/o_n_model/CMakeLists.txt index 4b5ea3948..4ed469b92 100644 --- a/tutorials/code-07-mcmain-mcbase/heisenberg/o_n_model/CMakeLists.txt +++ b/tutorials/code-07-mcmain-mcbase/heisenberg/o_n_model/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.18) +cmake_minimum_required(VERSION 3.21) project(ndim_spin NONE) # find ALPS Library From 729070bf1f9710f1cef8c2c0531818f0d33e68d3 Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Tue, 18 Aug 2026 12:24:20 -0500 Subject: [PATCH 25/51] build: drive the wheel SDK build through a CMake preset The libs-only ALPS SDK configure was spelled out three times with drifting variations: CIBW_BEFORE_ALL_LINUX, CIBW_BEFORE_ALL_MACOS, and the developer instructions in the pyalps README. Capture it once as the wheel-deps configure/build preset (building on the CMakePresets.json introduced by the root-layout consolidation) and invoke the preset from all three places. Platform-specific extras stay on the command line: ccache launcher and musl XDR flags in CI, HDF5_ROOT now resolved via brew --prefix instead of a hard-coded matrix key. Co-Authored-By: Claude Fable 5 --- .github/workflows/build_wheels.yml | 43 ++++++++++++------------------ CMakePresets.json | 21 +++++++++++++++ bindings/python/pyalps/README.md | 23 ++++++++-------- 3 files changed, 49 insertions(+), 38 deletions(-) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 4d331c15a..f0acb9fde 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -17,11 +17,11 @@ jobs: strategy: matrix: # macos-13 is an intel runner, macos-14 is apple silicon - plat: - - { os: ubuntu-latest, target: "", arch: x86_64, homebrew: ''} - #- { os: macos-13, target: "13.0" , arch: x86_64, homebrew: '/usr/local'} #DEPRECATED. Too old. - - { os: macos-15, target: "15.0" , arch: arm64, homebrew: '/opt/homebrew'} - - { os: macos-26, target: "26.0" , arch: arm64, homebrew: '/opt/homebrew'} + plat: + - { os: ubuntu-latest, target: "", arch: x86_64 } + #- { os: macos-13, target: "13.0" , arch: x86_64 } #DEPRECATED. Too old. + - { os: macos-15, target: "15.0" , arch: arm64 } + - { os: macos-26, target: "26.0" , arch: arm64 } steps: - uses: actions/checkout@v7 @@ -42,10 +42,13 @@ jobs: CIBW_ARCHS: ${{ matrix.plat.arch }} CIBW_ARCHS_MACOS: ${{ matrix.plat.arch }} CIBW_ENVIRONMENT: > - ALPS_DIR=$(pwd)/_build/cibw-install/share/alps + ALPS_DIR=$(pwd)/_build/wheel-deps/install/share/alps CCACHE_DIR=$(pwd)/_build/ccache CCACHE_NAMESPACE=pyalps-wheel CMAKE_ARGS="-DCMAKE_CXX_COMPILER_LAUNCHER=ccache" + # The SDK configuration lives in the wheel-deps preset in + # CMakePresets.json; only per-platform dependency setup and extra + # cache entries are spelled out here. # manylinux (AlmaLinux/glibc) uses dnf and glibc's SunRPC/XDR + execinfo. # musllinux (Alpine/musl) has neither: install libtirpc for the system # XDR path (ALPS_HAVE_RPC_XDR_H) and disable the execinfo backtrace. @@ -58,32 +61,20 @@ jobs: export CXXFLAGS="-DALPS_NGS_NO_STACKTRACE"; EXTRA="-DALPS_HAVE_RPC_XDR_H=1 -DCMAKE_CXX_STANDARD_LIBRARIES=-ltirpc"; fi && - cmake -S {project} -B {project}/_build/cibw-alps -G Ninja - -DCMAKE_BUILD_TYPE=Release - -DCMAKE_INSTALL_PREFIX={project}/_build/cibw-install + cd {project} && + cmake --preset wheel-deps -DCMAKE_CXX_COMPILER_LAUNCHER=ccache - -DALPS_BUILD_LIBS_ONLY=ON - -DALPS_BUILD_TESTS=OFF - -DALPS_BUILD_EXAMPLES=OFF - -DALPS_BUILD_APPLICATIONS=OFF - -DALPS_ENABLE_MPI=OFF $EXTRA && - cmake --build {project}/_build/cibw-alps --target install -j2 + cmake --build --preset wheel-deps -j2 CIBW_BEFORE_ALL_MACOS: > brew install ccache cmake hdf5 ninja && - cmake -S {project} -B {project}/_build/cibw-alps -G Ninja - -DCMAKE_BUILD_TYPE=Release - -DCMAKE_INSTALL_PREFIX={project}/_build/cibw-install + cd {project} && + cmake --preset wheel-deps -DCMAKE_CXX_COMPILER_LAUNCHER=ccache - -DALPS_BUILD_LIBS_ONLY=ON - -DALPS_BUILD_TESTS=OFF - -DALPS_BUILD_EXAMPLES=OFF - -DALPS_BUILD_APPLICATIONS=OFF - -DALPS_ENABLE_MPI=OFF - -DHDF5_ROOT=${{ matrix.plat.homebrew }}/opt/hdf5 && - cmake --build {project}/_build/cibw-alps --target install -j2 + -DHDF5_ROOT=$(brew --prefix hdf5) && + cmake --build --preset wheel-deps -j2 CIBW_ENVIRONMENT_MACOS: > - ALPS_DIR=$(pwd)/_build/cibw-install/share/alps + ALPS_DIR=$(pwd)/_build/wheel-deps/install/share/alps CCACHE_DIR=$(pwd)/_build/ccache CCACHE_NAMESPACE=pyalps-wheel CMAKE_ARGS="-DCMAKE_CXX_COMPILER_LAUNCHER=ccache" diff --git a/CMakePresets.json b/CMakePresets.json index 693c0c554..8d59587b7 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -13,12 +13,33 @@ "cacheVariables": { "CMAKE_BUILD_TYPE": "Release" } + }, + { + "name": "wheel-deps", + "displayName": "ALPS C++ SDK for pyalps wheels", + "description": "Libs-only SDK install that the standalone pyalps wheel build links against (ALPS_DIR=_build/wheel-deps/install/share/alps).", + "generator": "Ninja", + "binaryDir": "${sourceDir}/_build/wheel-deps", + "cacheVariables": { + "CMAKE_BUILD_TYPE": "Release", + "CMAKE_INSTALL_PREFIX": "${sourceDir}/_build/wheel-deps/install", + "ALPS_BUILD_LIBS_ONLY": "ON", + "ALPS_BUILD_TESTS": "OFF", + "ALPS_BUILD_EXAMPLES": "OFF", + "ALPS_BUILD_APPLICATIONS": "OFF", + "ALPS_ENABLE_MPI": "OFF" + } } ], "buildPresets": [ { "name": "default", "configurePreset": "default" + }, + { + "name": "wheel-deps", + "configurePreset": "wheel-deps", + "targets": ["install"] } ], "testPresets": [ diff --git a/bindings/python/pyalps/README.md b/bindings/python/pyalps/README.md index 911b49fed..26b045750 100644 --- a/bindings/python/pyalps/README.md +++ b/bindings/python/pyalps/README.md @@ -11,26 +11,25 @@ Install `pyalps[plot]` to use the Matplotlib plotting helpers. The bindings are built as a standalone `scikit-build-core` project using nanobind. A source build requires Python 3.10 or newer, CMake 3.21 or newer, -a C++17 compiler, BLAS/LAPACK, HDF5, and an installed ALPS C++ SDK. Point -`ALPS_DIR` at the SDK's `share/alps` package directory. +Ninja, a C++17 compiler, BLAS/LAPACK, HDF5, and an installed ALPS C++ SDK. +Point `ALPS_DIR` at the SDK's `share/alps` package directory. +The `wheel-deps` CMake preset builds the SDK exactly as the wheel CI does. From the repository root: ```sh -cmake -S . -B _build/alps -G Ninja \ - -DCMAKE_INSTALL_PREFIX="$PWD/_build/install" \ - -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ - -DALPS_ENABLE_MPI=OFF \ - -DALPS_BUILD_LIBS_ONLY=ON -cmake --build _build/alps --target install - -ALPS_DIR="$PWD/_build/install/share/alps" \ - CMAKE_ARGS="-DCMAKE_CXX_COMPILER_LAUNCHER=ccache" \ +cmake --preset wheel-deps +cmake --build --preset wheel-deps + +ALPS_DIR="$PWD/_build/wheel-deps/install/share/alps" \ python -m build --wheel bindings/python/pyalps ``` The wheel is written to `bindings/python/pyalps/dist` and can be installed -with `python -m pip install`. +with `python -m pip install`. With ccache installed, configure with +`cmake --preset wheel-deps -DCMAKE_CXX_COMPILER_LAUNCHER=ccache` and set +`CMAKE_ARGS="-DCMAKE_CXX_COMPILER_LAUNCHER=ccache"` for the wheel build to +speed up rebuilds. `PYALPS_BUILD_APPLICATIONS=ON` is the default and preserves the MaxEnt, DWA, CT-HYB, and CT-INT extension modules. Set it to `OFF` through CMake From 728c2ec80d0dbfb3a5eab8439833a1376e02886c Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Tue, 18 Aug 2026 12:27:23 -0500 Subject: [PATCH 26/51] build: move static cibuildwheel config into pyproject The workflow carried the full cibuildwheel configuration as CIBW_* env vars, duplicating the shared environment block for macOS just to add two entries. Keep the static configuration in [tool.cibuildwheel] next to the package (where the manylinux image already lived) so local cibuildwheel runs match CI, and express the macOS-only CXXFLAGS as an inherit/append override instead of a copy of the common block. The workflow now sets only matrix-derived values: CIBW_ARCHS and MACOSX_DEPLOYMENT_TARGET, which cibuildwheel reads from the host environment. Co-Authored-By: Claude Fable 5 --- .github/workflows/build_wheels.yml | 53 ++------------------------- bindings/python/pyalps/pyproject.toml | 44 ++++++++++++++++++++++ 2 files changed, 48 insertions(+), 49 deletions(-) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index f0acb9fde..a23e5e591 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -38,56 +38,11 @@ jobs: with: package-dir: bindings/python/pyalps env: - CIBW_BUILD: cp310-* cp311-* cp312-* cp313-* cp314-* + # The wheel build is configured in [tool.cibuildwheel] in + # bindings/python/pyalps/pyproject.toml and the wheel-deps preset in + # CMakePresets.json; only matrix-derived values live here. CIBW_ARCHS: ${{ matrix.plat.arch }} - CIBW_ARCHS_MACOS: ${{ matrix.plat.arch }} - CIBW_ENVIRONMENT: > - ALPS_DIR=$(pwd)/_build/wheel-deps/install/share/alps - CCACHE_DIR=$(pwd)/_build/ccache - CCACHE_NAMESPACE=pyalps-wheel - CMAKE_ARGS="-DCMAKE_CXX_COMPILER_LAUNCHER=ccache" - # The SDK configuration lives in the wheel-deps preset in - # CMakePresets.json; only per-platform dependency setup and extra - # cache entries are spelled out here. - # manylinux (AlmaLinux/glibc) uses dnf and glibc's SunRPC/XDR + execinfo. - # musllinux (Alpine/musl) has neither: install libtirpc for the system - # XDR path (ALPS_HAVE_RPC_XDR_H) and disable the execinfo backtrace. - CIBW_BEFORE_ALL_LINUX: > - if command -v dnf >/dev/null 2>&1; - then dnf install -y ccache cmake hdf5-devel lapack-devel ninja-build; EXTRA=; - else apk add --no-cache ccache ninja-is-really-ninja hdf5-dev lapack-dev libtirpc-dev; - ln -sf /usr/include/tirpc/rpc /usr/include/rpc; - ln -sf /usr/include/tirpc/netconfig.h /usr/include/netconfig.h; - export CXXFLAGS="-DALPS_NGS_NO_STACKTRACE"; - EXTRA="-DALPS_HAVE_RPC_XDR_H=1 -DCMAKE_CXX_STANDARD_LIBRARIES=-ltirpc"; - fi && - cd {project} && - cmake --preset wheel-deps - -DCMAKE_CXX_COMPILER_LAUNCHER=ccache - $EXTRA && - cmake --build --preset wheel-deps -j2 - CIBW_BEFORE_ALL_MACOS: > - brew install ccache cmake hdf5 ninja && - cd {project} && - cmake --preset wheel-deps - -DCMAKE_CXX_COMPILER_LAUNCHER=ccache - -DHDF5_ROOT=$(brew --prefix hdf5) && - cmake --build --preset wheel-deps -j2 - CIBW_ENVIRONMENT_MACOS: > - ALPS_DIR=$(pwd)/_build/wheel-deps/install/share/alps - CCACHE_DIR=$(pwd)/_build/ccache - CCACHE_NAMESPACE=pyalps-wheel - CMAKE_ARGS="-DCMAKE_CXX_COMPILER_LAUNCHER=ccache" - MACOSX_DEPLOYMENT_TARGET=${{ matrix.plat.target }} - CXXFLAGS="-stdlib=libc++" - CIBW_REPAIR_WHEEL_COMMAND_LINUX: > - auditwheel repair -w {dest_dir} {wheel} && - auditwheel show {dest_dir}/*.whl - CIBW_REPAIR_WHEEL_COMMAND_MACOS: > - delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel} && - delocate-listdeps --all {dest_dir}/*.whl - CIBW_TEST_REQUIRES: pytest - CIBW_TEST_COMMAND: pytest -q {project}/test/pyalps + MACOSX_DEPLOYMENT_TARGET: ${{ matrix.plat.target }} - uses: actions/upload-artifact@v7 with: diff --git a/bindings/python/pyalps/pyproject.toml b/bindings/python/pyalps/pyproject.toml index 44f93b850..3526cb1a1 100644 --- a/bindings/python/pyalps/pyproject.toml +++ b/bindings/python/pyalps/pyproject.toml @@ -39,4 +39,48 @@ ALPS_DIR = { env = "ALPS_DIR" } "../../../lib/xml" = "_vendor/lib/xml" [tool.cibuildwheel] +build = ["cp310-*", "cp311-*", "cp312-*", "cp313-*", "cp314-*"] manylinux-x86_64-image = "manylinux_2_28" +test-requires = ["pytest"] +test-command = "pytest -q {project}/test/pyalps" + +# The ALPS C++ SDK is built once per platform in before-all via the wheel-deps +# CMake preset; ALPS_DIR points every wheel build at that install. The ccache +# in _build/ccache spans the SDK and all wheel builds (cached across CI runs). +[tool.cibuildwheel.environment] +ALPS_DIR = "$(pwd)/_build/wheel-deps/install/share/alps" +CCACHE_DIR = "$(pwd)/_build/ccache" +CCACHE_NAMESPACE = "pyalps-wheel" +CMAKE_ARGS = "-DCMAKE_CXX_COMPILER_LAUNCHER=ccache" + +# manylinux (AlmaLinux/glibc) uses dnf and glibc's SunRPC/XDR + execinfo. +# musllinux (Alpine/musl) has neither: install libtirpc for the system +# XDR path (ALPS_HAVE_RPC_XDR_H) and disable the execinfo backtrace. +[tool.cibuildwheel.linux] +before-all = [ + "if command -v dnf >/dev/null 2>&1; then dnf install -y ccache cmake hdf5-devel lapack-devel ninja-build; EXTRA=; else apk add --no-cache ccache ninja-is-really-ninja hdf5-dev lapack-dev libtirpc-dev; ln -sf /usr/include/tirpc/rpc /usr/include/rpc; ln -sf /usr/include/tirpc/netconfig.h /usr/include/netconfig.h; export CXXFLAGS=-DALPS_NGS_NO_STACKTRACE; EXTRA='-DALPS_HAVE_RPC_XDR_H=1 -DCMAKE_CXX_STANDARD_LIBRARIES=-ltirpc'; fi", + "cd {project}", + "cmake --preset wheel-deps -DCMAKE_CXX_COMPILER_LAUNCHER=ccache $EXTRA", + "cmake --build --preset wheel-deps -j2", +] +repair-wheel-command = [ + "auditwheel repair -w {dest_dir} {wheel}", + "auditwheel show {dest_dir}/*.whl", +] + +[tool.cibuildwheel.macos] +before-all = [ + "brew install ccache cmake hdf5 ninja", + "cd {project}", + "cmake --preset wheel-deps -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DHDF5_ROOT=$(brew --prefix hdf5)", + "cmake --build --preset wheel-deps -j2", +] +repair-wheel-command = [ + "delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}", + "delocate-listdeps --all {dest_dir}/*.whl", +] + +[[tool.cibuildwheel.overrides]] +select = "*-macosx_*" +inherit.environment = "append" +environment = { CXXFLAGS = "-stdlib=libc++" } From 3223bd74726f7a66dc064ad43943cd1a6dc5228a Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Tue, 18 Aug 2026 13:24:17 -0500 Subject: [PATCH 27/51] ci: smoke test packaged artifacts before upload cibuildwheel already tests each wheel inside its build environment; this adds checks on the artifacts as they would reach PyPI. The sdist job now runs twine check and asserts the vendored ALPS sources are present, and a smoke_test matrix installs the repaired wheel with pip on a clean runner (oldest and newest supported Python per platform) and runs the binding surface tests. upload_pypi is gated on all of it. Co-Authored-By: Claude Fable 5 --- .github/workflows/build_wheels.yml | 52 +++++++++++++++++++++++++++++- 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index a23e5e591..297f2131a 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -59,14 +59,64 @@ jobs: - name: Build sdist run: pipx run build --sdist --outdir dist bindings/python/pyalps + # The sdist must remain buildable outside the repository checkout: + # verify its metadata and that the vendored ALPS sources it needs + # (applications, tools, XML library) actually made it in. + - name: Smoke check sdist + run: | + pipx run twine check dist/*.tar.gz + tar -tzf dist/*.tar.gz > sdist-manifest.txt + for path in _vendor/lib/xml/ALPS.xsl _vendor/tool/maxent.cpp \ + _vendor/applications/dmft/qmc _vendor/applications/qmc/dwa \ + LICENSE.txt src/pyalps/__init__.py; do + grep -q "$path" sdist-manifest.txt || { echo "missing $path in sdist"; exit 1; } + done + - uses: actions/upload-artifact@v7 with: name: cibw-sdist path: dist/*.tar.gz + # cibuildwheel already runs test/pyalps against every wheel inside the build + # environment; this job checks the artifacts as they would reach PyPI: the + # repaired, uploaded-and-downloaded wheel installed with pip on a clean + # runner, at the oldest and newest supported Python. + smoke_test: + name: Smoke test wheels on ${{ matrix.os }} / py${{ matrix.python }} + needs: [build_wheels] + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-15, macos-26] + python: ["3.10", "3.14"] + steps: + - uses: actions/checkout@v7 + + - uses: actions/setup-python@v7 + with: + python-version: ${{ matrix.python }} + + - uses: actions/download-artifact@v8 + with: + pattern: cibw-wheels-* + path: wheelhouse + merge-multiple: true + + - name: Install wheel from artifacts + run: | + pipx run twine check wheelhouse/*.whl + python -m pip install numpy scipy pytest + python -m pip install --no-index --no-deps --find-links wheelhouse pyalps + + - name: Import and run binding surface tests + run: | + python -c "import pyalps, pyalps.alea, pyalps.hdf5, pyalps.pytools; print(pyalps.__file__)" + python -m pytest -q test/pyalps + upload_pypi: - needs: [build_wheels, build_sdist] + needs: [build_wheels, build_sdist, smoke_test] runs-on: ubuntu-latest environment: pypi permissions: From 58454e38f14e86da37520782d6b086c2d1a7c9e1 Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Tue, 18 Aug 2026 13:52:17 -0500 Subject: [PATCH 28/51] ci: bump actions/cache to v6 v4 targets Node.js 20, which GitHub runners now warn is deprecated. Co-Authored-By: Claude Fable 5 --- .github/workflows/build_wheels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 297f2131a..287269f1d 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -27,7 +27,7 @@ jobs: - uses: actions/checkout@v7 - name: Restore compiler cache - uses: actions/cache@v4 + uses: actions/cache@v6 with: path: _build/ccache key: pyalps-ccache-${{ runner.os }}-${{ matrix.plat.arch }}-${{ hashFiles('src/**', 'bindings/python/**', 'applications/**', 'tool/maxent*') }} From 11248c6a15e8b9acdf9e5ea222f42be3b4f9ad30 Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Tue, 18 Aug 2026 16:24:42 -0500 Subject: [PATCH 29/51] build: raise CMake minimum to 3.22 3.21 was chosen as the CMakePresets v3 schema floor, but no supported distro ships exactly 3.21, so that floor is never exercised. 3.22 is what Ubuntu 22.04 (the oldest CI platform) ships, making the declared minimum one that CI actually builds with. RHEL 9 (3.31) and Debian 12 (3.25) are unaffected. Co-Authored-By: Claude Fable 5 --- CMakeLists.txt | 2 +- CMakePresets.json | 2 +- CONTRIBUTING.md | 4 ++-- README-py.md | 2 +- tutorials/alpsize-01-cmake/CMakeLists.txt | 2 +- tutorials/alpsize-02-original-c/CMakeLists.txt | 2 +- tutorials/alpsize-03-basic-cpp/CMakeLists.txt | 2 +- tutorials/alpsize-04-stl/CMakeLists.txt | 2 +- tutorials/alpsize-05-boost/CMakeLists.txt | 2 +- tutorials/alpsize-06-parameters/CMakeLists.txt | 2 +- tutorials/alpsize-07-alea/CMakeLists.txt | 2 +- tutorials/alpsize-08-lattice/CMakeLists.txt | 2 +- tutorials/alpsize-09-scheduler/CMakeLists.txt | 2 +- tutorials/alpsize-10-fortran-scheduler/CMakeLists.txt | 2 +- tutorials/alpsize-11-fortran-ising/CMakeLists.txt | 2 +- tutorials/code-06-mcmain-c++/CMakeLists.txt | 2 +- tutorials/code-07-mcmain-mcbase/CMakeLists.txt | 2 +- .../heisenberg/1d_lattice/CMakeLists.txt | 2 +- .../heisenberg/nd_lattice/CMakeLists.txt | 2 +- .../code-07-mcmain-mcbase/heisenberg/o_n_model/CMakeLists.txt | 2 +- 20 files changed, 21 insertions(+), 21 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4463ff351..31d47fc5f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,7 +17,7 @@ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # DEALINGS IN THE SOFTWARE. -cmake_minimum_required(VERSION 3.21) +cmake_minimum_required(VERSION 3.22) if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR}) message(FATAL_ERROR "In-source builds not allowed. Please make a new directory (called a build directory) and run CMake from there. You may need to remove CMakeCache.txt.") diff --git a/CMakePresets.json b/CMakePresets.json index 693c0c554..512f514ea 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -2,7 +2,7 @@ "version": 3, "cmakeMinimumRequired": { "major": 3, - "minor": 21, + "minor": 22, "patch": 0 }, "configurePresets": [ diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3fb93add7..d7f1a1636 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -50,7 +50,7 @@ Before opening a new issue, please search existing issues to avoid duplicates. ### Prerequisites -- CMake ≥ 3.21 +- CMake ≥ 3.22 - A C++17-capable compiler (GCC, Clang, Intel, or Fujitsu) - Boost (downloaded automatically during configuration; or use a system install with `-DALPS_USE_SYSTEM_BOOST=ON`) - For Fortran bindings: gfortran (or compatible Fortran compiler) @@ -177,7 +177,7 @@ If you are contributing a new simulation application or library, the Governing C ### CMake -- CMake ≥ 3.21 features are acceptable. +- CMake ≥ 3.22 features are acceptable. - Use target-based linking (`target_link_libraries`, `target_include_directories`) rather than directory-level commands. --- diff --git a/README-py.md b/README-py.md index 7ef7351c6..25cf9467d 100644 --- a/README-py.md +++ b/README-py.md @@ -16,7 +16,7 @@ pip install pyalps ### Installation instruction from sources 1. Prerequisites - - CMake >= 3.21 + - CMake >= 3.22 - Boost sources >= 1.76 - BLAS/LAPACK - HDF5 diff --git a/tutorials/alpsize-01-cmake/CMakeLists.txt b/tutorials/alpsize-01-cmake/CMakeLists.txt index b5f6a349c..c88de950d 100644 --- a/tutorials/alpsize-01-cmake/CMakeLists.txt +++ b/tutorials/alpsize-01-cmake/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.21) +cmake_minimum_required(VERSION 3.22) project(alpsize NONE) # find ALPS Library diff --git a/tutorials/alpsize-02-original-c/CMakeLists.txt b/tutorials/alpsize-02-original-c/CMakeLists.txt index 4470f1ea4..bd133b065 100644 --- a/tutorials/alpsize-02-original-c/CMakeLists.txt +++ b/tutorials/alpsize-02-original-c/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.21) +cmake_minimum_required(VERSION 3.22) project(alpsize NONE) # enable C and C++ compilers diff --git a/tutorials/alpsize-03-basic-cpp/CMakeLists.txt b/tutorials/alpsize-03-basic-cpp/CMakeLists.txt index 1ebc80f4d..da0773fcb 100644 --- a/tutorials/alpsize-03-basic-cpp/CMakeLists.txt +++ b/tutorials/alpsize-03-basic-cpp/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.21) +cmake_minimum_required(VERSION 3.22) project(alpsize NONE) # enable C and C++ compilers diff --git a/tutorials/alpsize-04-stl/CMakeLists.txt b/tutorials/alpsize-04-stl/CMakeLists.txt index 1ebc80f4d..da0773fcb 100644 --- a/tutorials/alpsize-04-stl/CMakeLists.txt +++ b/tutorials/alpsize-04-stl/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.21) +cmake_minimum_required(VERSION 3.22) project(alpsize NONE) # enable C and C++ compilers diff --git a/tutorials/alpsize-05-boost/CMakeLists.txt b/tutorials/alpsize-05-boost/CMakeLists.txt index cdd7214a5..572fb6c00 100644 --- a/tutorials/alpsize-05-boost/CMakeLists.txt +++ b/tutorials/alpsize-05-boost/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.21) +cmake_minimum_required(VERSION 3.22) project(alpsize NONE) # find ALPS Library diff --git a/tutorials/alpsize-06-parameters/CMakeLists.txt b/tutorials/alpsize-06-parameters/CMakeLists.txt index 9500a5d21..0d59f06a7 100644 --- a/tutorials/alpsize-06-parameters/CMakeLists.txt +++ b/tutorials/alpsize-06-parameters/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.21) +cmake_minimum_required(VERSION 3.22) project(alpsize NONE) # find ALPS Library diff --git a/tutorials/alpsize-07-alea/CMakeLists.txt b/tutorials/alpsize-07-alea/CMakeLists.txt index 9500a5d21..0d59f06a7 100644 --- a/tutorials/alpsize-07-alea/CMakeLists.txt +++ b/tutorials/alpsize-07-alea/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.21) +cmake_minimum_required(VERSION 3.22) project(alpsize NONE) # find ALPS Library diff --git a/tutorials/alpsize-08-lattice/CMakeLists.txt b/tutorials/alpsize-08-lattice/CMakeLists.txt index 41ff9424f..51c07e9b9 100644 --- a/tutorials/alpsize-08-lattice/CMakeLists.txt +++ b/tutorials/alpsize-08-lattice/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.21) +cmake_minimum_required(VERSION 3.22) project(alpsize NONE) # find ALPS Library diff --git a/tutorials/alpsize-09-scheduler/CMakeLists.txt b/tutorials/alpsize-09-scheduler/CMakeLists.txt index ae527fde9..ea503b5cd 100644 --- a/tutorials/alpsize-09-scheduler/CMakeLists.txt +++ b/tutorials/alpsize-09-scheduler/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.21) +cmake_minimum_required(VERSION 3.22) project(alpsize NONE) # find ALPS Library diff --git a/tutorials/alpsize-10-fortran-scheduler/CMakeLists.txt b/tutorials/alpsize-10-fortran-scheduler/CMakeLists.txt index 25aa9e4c0..b68a64f4f 100644 --- a/tutorials/alpsize-10-fortran-scheduler/CMakeLists.txt +++ b/tutorials/alpsize-10-fortran-scheduler/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.21) +cmake_minimum_required(VERSION 3.22) project(alpsize NONE) # find ALPS Library diff --git a/tutorials/alpsize-11-fortran-ising/CMakeLists.txt b/tutorials/alpsize-11-fortran-ising/CMakeLists.txt index 97b7f8022..c2e2dcc69 100644 --- a/tutorials/alpsize-11-fortran-ising/CMakeLists.txt +++ b/tutorials/alpsize-11-fortran-ising/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.21) +cmake_minimum_required(VERSION 3.22) project(alpsize NONE) # find ALPS Library diff --git a/tutorials/code-06-mcmain-c++/CMakeLists.txt b/tutorials/code-06-mcmain-c++/CMakeLists.txt index f8128411a..3c2cc0c8e 100644 --- a/tutorials/code-06-mcmain-c++/CMakeLists.txt +++ b/tutorials/code-06-mcmain-c++/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.21) +cmake_minimum_required(VERSION 3.22) project(alpsize NONE) # find ALPS Library diff --git a/tutorials/code-07-mcmain-mcbase/CMakeLists.txt b/tutorials/code-07-mcmain-mcbase/CMakeLists.txt index a9ad07fa1..1de3e807f 100644 --- a/tutorials/code-07-mcmain-mcbase/CMakeLists.txt +++ b/tutorials/code-07-mcmain-mcbase/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.21) +cmake_minimum_required(VERSION 3.22) project(alpsize NONE) # find ALPS Library diff --git a/tutorials/code-07-mcmain-mcbase/heisenberg/1d_lattice/CMakeLists.txt b/tutorials/code-07-mcmain-mcbase/heisenberg/1d_lattice/CMakeLists.txt index 779802067..54fc1ec20 100644 --- a/tutorials/code-07-mcmain-mcbase/heisenberg/1d_lattice/CMakeLists.txt +++ b/tutorials/code-07-mcmain-mcbase/heisenberg/1d_lattice/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.21) +cmake_minimum_required(VERSION 3.22) project(heisenberg NONE) # find ALPS Library diff --git a/tutorials/code-07-mcmain-mcbase/heisenberg/nd_lattice/CMakeLists.txt b/tutorials/code-07-mcmain-mcbase/heisenberg/nd_lattice/CMakeLists.txt index adb42a53f..3d8641b39 100644 --- a/tutorials/code-07-mcmain-mcbase/heisenberg/nd_lattice/CMakeLists.txt +++ b/tutorials/code-07-mcmain-mcbase/heisenberg/nd_lattice/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.21) +cmake_minimum_required(VERSION 3.22) project(heisenberg NONE) # find ALPS Library diff --git a/tutorials/code-07-mcmain-mcbase/heisenberg/o_n_model/CMakeLists.txt b/tutorials/code-07-mcmain-mcbase/heisenberg/o_n_model/CMakeLists.txt index 4ed469b92..c76d63126 100644 --- a/tutorials/code-07-mcmain-mcbase/heisenberg/o_n_model/CMakeLists.txt +++ b/tutorials/code-07-mcmain-mcbase/heisenberg/o_n_model/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.21) +cmake_minimum_required(VERSION 3.22) project(ndim_spin NONE) # find ALPS Library From 05f3dffc46d3a80716725a9d113bb197b11d1c34 Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Mon, 17 Aug 2026 16:37:09 -0500 Subject: [PATCH 30/51] Qualify size()/data() calls ambiguous with C++17 std::size/std::data C++17 added std::size and std::data. Arguments whose types carry std template arguments (std::vector, mcdata>, ...) pull namespace std in via ADL, making unqualified size()/data() calls that previously resolved to alps::size/alps::data ambiguous. Qualify the call sites in alea/mcanalyze.hpp, alea/mcdata.hpp, numeric/vector_valarray_conversion.hpp, and test/alea/mcanalyze.C. Co-Authored-By: Claude Fable 5 --- src/alps/alea/mcanalyze.hpp | 26 +++++++++---------- src/alps/alea/mcdata.hpp | 2 +- .../numeric/vector_valarray_conversion.hpp | 6 ++--- test/alea/mcanalyze.C | 2 +- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/alps/alea/mcanalyze.hpp b/src/alps/alea/mcanalyze.hpp index 233912894..1dbdc989a 100644 --- a/src/alps/alea/mcanalyze.hpp +++ b/src/alps/alea/mcanalyze.hpp @@ -326,7 +326,7 @@ typename average_type< typename TimeseriesType::value_type >::type mean(const Ti for (typename const_iterator_type::type iter = range_begin(timeseries); iter != range_end(timeseries); ++iter) OUT = OUT + *iter; - return OUT / double(size(timeseries)); + return OUT / double(alps::size(timeseries)); } @@ -340,7 +340,7 @@ typename average_type< typename TimeseriesType::value_type >::type variance(cons using std::pow; using alps::numeric::pow; - if (size(timeseries) < 2) boost::throw_exception(NotEnoughMeasurementsError()); + if (alps::size(timeseries) < 2) boost::throw_exception(NotEnoughMeasurementsError()); return_type _mean = mean(timeseries); return_type OUT; @@ -351,7 +351,7 @@ typename average_type< typename TimeseriesType::value_type >::type variance(cons OUT = OUT + pow(*iter-_mean, 2.); } - return OUT / double(size(timeseries) - 1); + return OUT / double(alps::size(timeseries) - 1); } @@ -365,7 +365,7 @@ mctimeseries< typename average_type< typename TimeseriesType::value_type >::type using boost::numeric::operators::operator/; using boost::numeric::operators::operator+; - std::size_t _size = size(timeseries); + std::size_t _size = alps::size(timeseries); average_type _mean = alps::alea::mean(timeseries); average_type _variance = alps::alea::variance(timeseries); mctimeseries< average_type > OUT; @@ -397,7 +397,7 @@ mctimeseries< typename average_type< typename TimeseriesType::value_type >::type using boost::numeric::operators::operator/; using boost::numeric::operators::operator+; - std::size_t _size = size(timeseries); + std::size_t _size = alps::size(timeseries); average_type _mean = mean(timeseries); average_type _variance = variance(timeseries); mctimeseries< average_type > OUT; @@ -431,10 +431,10 @@ std::pair::type, typ typedef typename average_type::type average_type; using std::exp; - if (from < 0) from = from + size(autocorrelation); - if (to < 0) to = to + size(autocorrelation); + if (from < 0) from = from + alps::size(autocorrelation); + if (to < 0) to = to + alps::size(autocorrelation); - mctimeseries_view autocorrelation_view = cut_head_distance(cut_tail_distance(autocorrelation, size(autocorrelation) - to), from - 1); + mctimeseries_view autocorrelation_view = cut_head_distance(cut_tail_distance(autocorrelation, alps::size(autocorrelation) - to), from - 1); std::pair OUT( alps::numeric::exponential_timeseries_fit(autocorrelation_view.begin(), autocorrelation_view.end()) ); OUT.first *= exp((-1.) * OUT.second * (from - 1)); @@ -477,7 +477,7 @@ typename average_type< typename TimeseriesType::value_type >::type integrated_au return_type OUT = std::accumulate(autocorrelation.begin(), autocorrelation.end(), 0.); - OUT -= (tau.first / tau.second) * std::exp(tau.second * (size(autocorrelation) + 0.5)); + OUT -= (tau.first / tau.second) * std::exp(tau.second * (alps::size(autocorrelation) + 0.5)); return OUT; } @@ -496,7 +496,7 @@ typename average_type< typename TimeseriesType::value_type >::type error (const using alps::numeric::sqrt; using boost::numeric::operators::operator/; - return sqrt( variance(timeseries) / double(size(timeseries)) ); + return sqrt( variance(timeseries) / double(alps::size(timeseries)) ); } @@ -532,7 +532,7 @@ mctimeseries< typename average_type::type > using boost::numeric::operators::operator/; return_type _running_mean; - _running_mean.resize(size(timeseries) ); + _running_mean.resize(alps::size(timeseries) ); std::partial_sum(range_begin(timeseries), range_end(timeseries), _running_mean.begin(), alps::numeric::plus() ); @@ -550,13 +550,13 @@ mctimeseries< typename average_type::type > using boost::numeric::operators::operator/; mctimeseries _reverse_running_mean; - _reverse_running_mean.resize(size(timeseries) ); + _reverse_running_mean.resize(alps::size(timeseries) ); std::partial_sum(static_cast ::type> > (range_end(timeseries)), static_cast ::type> > (range_begin(timeseries)), static_cast ::type> > (_reverse_running_mean.end() ), alps::numeric::plus() ); - std::size_t count = size(timeseries); + std::size_t count = alps::size(timeseries); for (typename iterator_type::type iter = _reverse_running_mean.begin(); iter != _reverse_running_mean.end(); ++iter) *iter = *iter / count--; diff --git a/src/alps/alea/mcdata.hpp b/src/alps/alea/mcdata.hpp index c96a424d2..772c32cf4 100644 --- a/src/alps/alea/mcdata.hpp +++ b/src/alps/alea/mcdata.hpp @@ -812,7 +812,7 @@ namespace alps { } template std::vector replace_valarray_by_vector(std::valarray const & value) { - return std::vector(data(value), data(value) + value.size()); + return std::vector(alps::data(value), alps::data(value) + value.size()); } void collect_bins(uint64_t howmany) { diff --git a/src/alps/numeric/vector_valarray_conversion.hpp b/src/alps/numeric/vector_valarray_conversion.hpp index 3d11bd495..47a82799d 100644 --- a/src/alps/numeric/vector_valarray_conversion.hpp +++ b/src/alps/numeric/vector_valarray_conversion.hpp @@ -59,7 +59,7 @@ namespace alps { { std::vector to; to.reserve(from.size()); - std::copy(data(from),data(from)+from.size(),std::back_inserter(to)); + std::copy(alps::data(from),alps::data(from)+from.size(),std::back_inserter(to)); return to; } @@ -72,7 +72,7 @@ namespace alps { std::valarray vector2valarray(std::vector const & from) { std::valarray to(from.size()); - std::copy(from.begin(),from.end(),data(to)); + std::copy(from.begin(),from.end(),alps::data(to)); return to; } @@ -80,7 +80,7 @@ namespace alps { std::valarray vector2valarray(std::vector const & from) { std::valarray to(from.size()); - std::copy(from.begin(),from.end(),data(to)); + std::copy(from.begin(),from.end(),alps::data(to)); return to; } diff --git a/test/alea/mcanalyze.C b/test/alea/mcanalyze.C index 106e2516c..4c0e38423 100644 --- a/test/alea/mcanalyze.C +++ b/test/alea/mcanalyze.C @@ -58,7 +58,7 @@ int main() { scalar_data.load(filename, "/test/result/Scalar"); std::cout << scalar_data; - std::cout << size(scalar_data) << "\n"; + std::cout << alps::size(scalar_data) << "\n"; std::cout << alps::alea::mean(scalar_data) << "\n"; From e82b5a303cfe7078d16bd666ea33e0aa87b5f84f Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Mon, 17 Aug 2026 17:53:27 -0500 Subject: [PATCH 31/51] Fix C++20 reversed-operator infinite recursion in fixed_capacity tests non_pod's mixed-type friends delegated T==non_pod to non_pod==T, which under C++20 operator rewriting resolves back to the same friend as a reversed candidate: infinite recursion (a hang at -O3, stack overflow at -O0). test_deque/test_vector timed out at 600 s in the first real C++23 CI run. Compare data_ directly instead. Verified with g++ 16 -std=c++23 -O3: both tests pass. Co-Authored-By: Claude Fable 5 --- test/fixed_capacity/test_main.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test/fixed_capacity/test_main.h b/test/fixed_capacity/test_main.h index 459bb2aca..1ffa0c517 100644 --- a/test/fixed_capacity/test_main.h +++ b/test/fixed_capacity/test_main.h @@ -63,8 +63,13 @@ struct non_pod { } bool operator!=(const non_pod& x) const { return !operator==(x); } - friend bool operator==(T x, const non_pod& y) { return y == x; } - friend bool operator!=(T x, const non_pod& y) { return y != x; } + // Compare data_ directly: delegating to (y == x) selects this same + // operator as a C++20 reversed candidate and recurses infinitely. + friend bool operator==(T x, const non_pod& y) { + if (y.init_ != magic) throw std::logic_error("non_pod 6"); + return y.data_ == x; + } + friend bool operator!=(T x, const non_pod& y) { return !(x == y); } friend std::ostream& operator<<(std::ostream& os, const non_pod& x) { os << x.data_; return os; From 5d0a47414a8e64593ca3af6946a99a604da6212d Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Tue, 18 Aug 2026 16:28:08 -0500 Subject: [PATCH 32/51] Default to C++17 and make the standard selectable CI has been sweeping C++11-23 by passing -std=c++XX via CMAKE_CXX_FLAGS, but the unconditional set(CMAKE_CXX_STANDARD 14) appended its own -std flag afterwards, so every job silently built C++14. CONTRIBUTING.md has claimed C++17 all along; this makes the build match the docs. - CMakeLists.txt now defaults CMAKE_CXX_STANDARD to 17 and honors -DCMAKE_CXX_STANDARD=20/23; CI passes the standard that way instead of through CMAKE_CXX_FLAGS. The sweep tests 20/23 on top of the 17 baseline (the 11/14 entries are gone with the floor raise). - Remove ' throw (std::runtime_error)' exception specifications in src/ietl/krylov_wrapper.h (ill-formed since C++17) and the dead, never-included src/boost/function_objects.hpp (std::binary_function was removed in C++17). - Drop GCC 10 / Clang 13 from the matrix; GCC 11 / Clang 14 (Ubuntu 22.04 / RHEL 9 defaults) are the new tested floor. - Delete requirements.txt: unreferenced, and its numpy<2.1 ceiling contradicted pyproject.toml and CI reality. Verified on the skilledwolf/ALPS fork: full builds green at C++17/20/23 with GCC 11-16 and Clang 14-22. Co-Authored-By: Claude Fable 5 --- .github/workflows/build.yml | 19 ++++---- CMakeLists.txt | 6 ++- README-py.md | 2 +- requirements.txt | 2 - src/boost/function_objects.hpp | 83 ---------------------------------- src/ietl/krylov_wrapper.h | 20 ++++---- 6 files changed, 25 insertions(+), 107 deletions(-) delete mode 100644 requirements.txt delete mode 100644 src/boost/function_objects.hpp diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 55542f277..7bac762fa 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,15 +19,14 @@ jobs: - { os: ubuntu-24.04, comp_pack: "clang-18", c_compiler: clang, cxx_compiler: clang++, c_version: 18, py_version: "3.14", boost_version: 91 } # ── Group 2: Compiler versions ──────────────────────────────────────── - # Full sweep of GCC 10–15 and Clang 13–22, modern Python + Boost. + # Full sweep of GCC 11–15 and Clang 14–22, modern Python + Boost. + # GCC 11 / Clang 14 (Ubuntu 22.04 / RHEL 9 defaults) are the tested floor. # gcc-12, gcc-14, clang-15, clang-18 already covered in Group 1. # GCC 15: installed via ubuntu-toolchain-r/test PPA on ubuntu-24.04. # Clang 19–22: installed via apt.llvm.org on ubuntu-24.04. - - { os: ubuntu-22.04, comp_pack: "gcc-10 g++-10", c_compiler: gcc, cxx_compiler: g++, c_version: 10, py_version: "3.14", boost_version: 91 } - { os: ubuntu-22.04, comp_pack: "gcc-11 g++-11", c_compiler: gcc, cxx_compiler: g++, c_version: 11, py_version: "3.14", boost_version: 91 } - { os: ubuntu-24.04, comp_pack: "gcc-13 g++-13", c_compiler: gcc, cxx_compiler: g++, c_version: 13, py_version: "3.14", boost_version: 91 } - { os: ubuntu-24.04, comp_pack: "gcc-15 g++-15", c_compiler: gcc, cxx_compiler: g++, c_version: 15, py_version: "3.14", boost_version: 91 } - - { os: ubuntu-22.04, comp_pack: "clang-13", c_compiler: clang, cxx_compiler: clang++, c_version: 13, py_version: "3.14", boost_version: 91 } - { os: ubuntu-22.04, comp_pack: "clang-14", c_compiler: clang, cxx_compiler: clang++, c_version: 14, py_version: "3.14", boost_version: 91 } - { os: ubuntu-24.04, comp_pack: "clang-16", c_compiler: clang, cxx_compiler: clang++, c_version: 16, py_version: "3.14", boost_version: 91 } - { os: ubuntu-24.04, comp_pack: "clang-17", c_compiler: clang, cxx_compiler: clang++, c_version: 17, py_version: "3.14", boost_version: 91 } @@ -57,11 +56,9 @@ jobs: - { os: ubuntu-24.04, comp_pack: "gcc-14 g++-14", c_compiler: gcc, cxx_compiler: g++, c_version: 14, py_version: "3.13", boost_version: 91 } # ── Group 5: C++ standard versions ─────────────────────────────────── - # Full sweep C++11 through C++23, newest everything else. - # ubuntu-24.04, gcc-14, Python 3.14, Boost 1.91. cxx_standard defaults to 14. - - { os: ubuntu-24.04, comp_pack: "gcc-14 g++-14", c_compiler: gcc, cxx_compiler: g++, c_version: 14, py_version: "3.14", boost_version: 91, cxx_standard: 11 } - - { os: ubuntu-24.04, comp_pack: "gcc-14 g++-14", c_compiler: gcc, cxx_compiler: g++, c_version: 14, py_version: "3.14", boost_version: 91, cxx_standard: 14 } - - { os: ubuntu-24.04, comp_pack: "gcc-14 g++-14", c_compiler: gcc, cxx_compiler: g++, c_version: 14, py_version: "3.14", boost_version: 91, cxx_standard: 17 } + # C++17 is the default and minimum (set in CMakeLists.txt); every other + # job in the matrix builds it. Sweep the newer standards on top. + # ubuntu-24.04, gcc-14, Python 3.14, Boost 1.91. - { os: ubuntu-24.04, comp_pack: "gcc-14 g++-14", c_compiler: gcc, cxx_compiler: g++, c_version: 14, py_version: "3.14", boost_version: 91, cxx_standard: 20 } - { os: ubuntu-24.04, comp_pack: "gcc-14 g++-14", c_compiler: gcc, cxx_compiler: g++, c_version: 14, py_version: "3.14", boost_version: 91, cxx_standard: 23 } @@ -97,7 +94,8 @@ jobs: run: | cmake -S $GITHUB_WORKSPACE -B build \ -DBoost_ROOT_DIR=`pwd`/boost_1_${{ matrix.plat.boost_version }}_0 \ - -DCMAKE_CXX_FLAGS="-std=c++${{ matrix.plat.cxx_standard || '14' }} -fpermissive -DBOOST_NO_AUTO_PTR -DBOOST_FILESYSTEM_NO_CXX20_ATOMIC_REF -DBOOST_TIMER_ENABLE_DEPRECATED" + -DCMAKE_CXX_STANDARD=${{ matrix.plat.cxx_standard || '17' }} \ + -DCMAKE_CXX_FLAGS="-fpermissive -DBOOST_NO_AUTO_PTR -DBOOST_FILESYSTEM_NO_CXX20_ATOMIC_REF -DBOOST_TIMER_ENABLE_DEPRECATED" cmake --build build -j 2 cmake --build build -j 2 -t test @@ -143,7 +141,8 @@ jobs: -DCMAKE_C_COMPILER=${{ matrix.plat.c_compiler }} \ -DCMAKE_CXX_COMPILER=${{ matrix.plat.cxx_compiler }} \ -DBoost_ROOT_DIR=`pwd`/boost_1_${{ matrix.plat.boost_version }}_0 \ - -DCMAKE_CXX_FLAGS="${{ matrix.plat.cxx_stdlib }} -std=c++14 -fpermissive -DBOOST_NO_AUTO_PTR -DBOOST_FILESYSTEM_NO_CXX20_ATOMIC_REF -DBOOST_TIMER_ENABLE_DEPRECATED" \ + -DCMAKE_CXX_STANDARD=17 \ + -DCMAKE_CXX_FLAGS="${{ matrix.plat.cxx_stdlib }} -fpermissive -DBOOST_NO_AUTO_PTR -DBOOST_FILESYSTEM_NO_CXX20_ATOMIC_REF -DBOOST_TIMER_ENABLE_DEPRECATED" \ -DPython_ROOT_DIR=`$(brew --prefix)/bin/python${{ matrix.plat.py_version }} -c "import sys, os; print(os.path.dirname(os.path.dirname(str(sys.executable))));"` \ -DCMAKE_Fortran_COMPILER=gfortran cmake --build build -j $(sysctl -n hw.ncpu) diff --git a/CMakeLists.txt b/CMakeLists.txt index 31d47fc5f..90985ca22 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -96,7 +96,11 @@ else(ALPS_BUILD_FORTRAN) project(alps VERSION ${ALPS_VERSION_CORE} LANGUAGES C CXX) endif(ALPS_BUILD_FORTRAN) -set(CMAKE_CXX_STANDARD 14) +# C++17 is the minimum supported standard; allow callers (and CI) to select +# a newer one with -DCMAKE_CXX_STANDARD=20/23. +if(NOT DEFINED CMAKE_CXX_STANDARD) + set(CMAKE_CXX_STANDARD 17) +endif() set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) diff --git a/README-py.md b/README-py.md index 25cf9467d..66a571a86 100644 --- a/README-py.md +++ b/README-py.md @@ -24,7 +24,7 @@ pip install pyalps - Python >= 3.9 - Python 3.13 requires Boost version 1.87 or later - Earlier versions maybe also work but unsupported - - C++ compiler (build has been tested on GCC 10.5 through 14.2) + - C++ compiler with C++17 support (CI covers GCC 11 through 15, Clang 14 through 22, and AppleClang) - GNU Make or Ninja build system You need to download and unpack boost library: diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 92825131a..000000000 --- a/requirements.txt +++ /dev/null @@ -1,2 +0,0 @@ -numpy<2.1 -scipy \ No newline at end of file diff --git a/src/boost/function_objects.hpp b/src/boost/function_objects.hpp deleted file mode 100644 index 2f0bc6017..000000000 --- a/src/boost/function_objects.hpp +++ /dev/null @@ -1,83 +0,0 @@ -/***************************************************************************** -* -* ALPS Project: Algorithms and Libraries for Physics Simulations -* -* ALPS Libraries -* -* Copyright (C) 2003 by Matthias Troyer -* -* ALPS Project: https://alps.comp-phys.org/ -* SPDX-License-Identifier: MIT -* -*****************************************************************************/ - -/* $Id$ */ - -#ifndef FUNCTION_OBJECTS_HPP -#define FUNCTION_OBJECTS_HPP - -#include - -namespace boost -{ - // improved function objects taking optionally different argument types - template - struct plus : std::binary_function { - Result operator () (const Arg1& x, const Arg2& y) const { return x + y; } - }; - - template - struct minus : std::binary_function { - Result operator () (const Arg1& x, const Arg2& y) const { return x - y; } - }; - - template - struct multiplies : std::binary_function { - Result operator () (const Arg1& x, const Arg2& y) const { return x * y; } - }; - - template - struct divides : std::binary_function { - Result operator () (const Arg1& x, const Arg2& y) const { return x / y; } - }; - - template - struct modulus : std::binary_function { - Result operator () (const Arg1& x, const Arg2& y) const { return x % y; } - }; - - template - struct logical_and : std::binary_function { - Result operator () (const Arg1& x, const Arg2& y) const { return x && y; } - }; - - template - struct logical_or : std::binary_function { - Result operator () (const Arg1& x, const Arg2& y) const { return x || y; } - }; - - // additional function objects for bit operations missing from the standard - - template - struct bit_and : std::binary_function { - Result operator () (const Arg1& x, const Arg2& y) const { return x & y; } - }; - - template - struct bit_or : std::binary_function { - Result operator () (const Arg1& x, const Arg2& y) const { return x | y; } - }; - - template - struct bit_xor : std::binary_function { - Result operator () (const Arg1& x, const Arg2& y) const { return x ^ y; } - }; - - template - struct bit_not : std::unary_function { - T operator () (const T& x) const { return ~x; } - }; - -} // namespace boost - -#endif diff --git a/src/ietl/krylov_wrapper.h b/src/ietl/krylov_wrapper.h index 6ac6f544d..a776aac8b 100644 --- a/src/ietl/krylov_wrapper.h +++ b/src/ietl/krylov_wrapper.h @@ -34,7 +34,7 @@ class cg_wrapper } template < class scalar_type > - void operator()(const Matrix& A, scalar_type s, VectorX& x, const VectorB& b) throw (std::runtime_error) + void operator()(const Matrix& A, scalar_type s, VectorX& x, const VectorB& b) { if (N_ == 0) { @@ -89,7 +89,7 @@ class cgs_wrapper } template < class scalar_type > - void operator()(const Matrix& A, scalar_type s, VectorX& x, const VectorB& b) throw (std::runtime_error) + void operator()(const Matrix& A, scalar_type s, VectorX& x, const VectorB& b) { if (N_ == 0) { @@ -144,7 +144,7 @@ class bicg_wrapper } template < class scalar_type > - void operator()(const Matrix& A, scalar_type s, VectorX& x, const VectorB& b) throw (std::runtime_error) + void operator()(const Matrix& A, scalar_type s, VectorX& x, const VectorB& b) { if (N_ == 0) { @@ -200,7 +200,7 @@ class gmres_wrapper } template < class scalar_type > - void operator()(const Matrix& A, scalar_type s, VectorX& x, const VectorB& b) throw (std::runtime_error) + void operator()(const Matrix& A, scalar_type s, VectorX& x, const VectorB& b) { if (N_ == 0) { @@ -255,7 +255,7 @@ class bicgstab_wrapper } template < class scalar_type > - void operator()(const Matrix& A, scalar_type s, VectorX& x, const VectorB& b) throw (std::runtime_error) + void operator()(const Matrix& A, scalar_type s, VectorX& x, const VectorB& b) { if (N_ == 0) { @@ -311,7 +311,7 @@ class qmr_wrapper } template < class scalar_type > - void operator()(const Matrix& A, scalar_type s, VectorX& x, const VectorB& b) throw (std::runtime_error) + void operator()(const Matrix& A, scalar_type s, VectorX& x, const VectorB& b) { if (N_ == 0) { @@ -385,7 +385,7 @@ class tfqmr_wrapper } template < class scalar_type > - void operator()(const Matrix& A, scalar_type s, VectorX& x, const VectorB& b) throw (std::runtime_error) + void operator()(const Matrix& A, scalar_type s, VectorX& x, const VectorB& b) { if (N_ == 0) { @@ -455,7 +455,7 @@ class gcr_wrapper } template < class scalar_type > - void operator()(const Matrix& A, scalar_type s, VectorX& x, const VectorB& b) throw (std::runtime_error) + void operator()(const Matrix& A, scalar_type s, VectorX& x, const VectorB& b) { if (N_ == 0) { @@ -513,7 +513,7 @@ class cheby_wrapper } template < class scalar_type > - void operator()(const Matrix& A, scalar_type s, VectorX& x, const VectorB& b) throw (std::runtime_error) + void operator()(const Matrix& A, scalar_type s, VectorX& x, const VectorB& b) { if (N_ == 0) { @@ -568,7 +568,7 @@ class richardson_wrapper } template < class scalar_type > - void operator()(const Matrix& A, scalar_type s, VectorX& x, const VectorB& b) throw (std::runtime_error) + void operator()(const Matrix& A, scalar_type s, VectorX& x, const VectorB& b) { if (N_ == 0) { From 1e71a02651819f0bf52f720c9ccd62153eb4b7a2 Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Tue, 18 Aug 2026 15:56:18 -0500 Subject: [PATCH 33/51] fix(pyalps): address nanobind-migration audit findings Restore legacy HDF5 list save semantics (audit issue 13): exact-type homogeneous rectangular list trees are written as one N-D dataset that keeps the element type ([1,2,3] stays int32, floats stay float64, out-of-int32-range widens to int64), equal-shape numpy-array lists stack via numpy, and bool-containing / mixed-type / ragged lists fall back to the legacy per-index group descent. The previous probe ladder cast with implicit conversion enabled and double first, so integer lists were silently written as float64. Unify the three dict->params converters into dict_to_params.hpp (issue 17): params, mcbase and the application modules now ingest values identically; oversized ints raise instead of silently truncating through paramvalue's 32-bit int; int lists round-trip as ints; complex scalars are supported; None is rejected with a message that names it (issue 8). Copy __eq__/__ne__/__hash__ onto the MutableMapping shims (issue 1): the hasattr guard could never copy them (object provides both), so mapping equality was lost relative to the Boost.Python __bases__ inheritance. Move observable.__lshift__ from a type monkeypatch into the C++ binding, returning self for chaining (issue 2). Forward save/load through the mcbase trampoline (issue 9) so Python overrides are reached by C++ virtual dispatch; slot count pinned to the five virtuals in src/alps/mcbase.hpp. Smaller items: cache the numpy module and use limited-API PyTuple_SetItem in numpy_compat.hpp (issues 24, 29); release the previous entry on archive-exception re-registration (issue 12); in-place accumulator result operators use rv_policy::none + is_operator (issue 11); document copy semantics on the dwa worldlines accessors (issue 7) and overload ordering in pyalea (issue 14); mirror libalps' BOOST_* config defines in the bindings build (issue 16); replace the dead pyalps.mpi import chain with a clear ImportError (issue 18); cap nanobind below the next major (issue 19). Issues 10/43 (duplicate wrapper) and the issue-11 leak were checked empirically against nanobind 2.15 and refuted; comments record the verified behaviour. Co-Authored-By: Claude Fable 5 --- bindings/python/pyalps/CMakeLists.txt | 8 + bindings/python/pyalps/cpp/apps/dwa.cpp | 15 +- bindings/python/pyalps/cpp/dict_to_params.hpp | 83 ++++++-- .../python/pyalps/cpp/ngs/accumulator.cpp | 20 +- bindings/python/pyalps/cpp/ngs/hdf5.cpp | 181 ++++++++++++++++-- bindings/python/pyalps/cpp/ngs/mcbase.cpp | 58 ++---- bindings/python/pyalps/cpp/ngs/observable.cpp | 13 ++ .../python/pyalps/cpp/ngs/observables.cpp | 4 + bindings/python/pyalps/cpp/ngs/params.cpp | 69 +------ bindings/python/pyalps/cpp/numpy_compat.hpp | 21 +- bindings/python/pyalps/cpp/pyalea.cpp | 8 + bindings/python/pyalps/pyproject.toml | 5 +- bindings/python/pyalps/src/pyalps/mpi.py | 39 ++-- bindings/python/pyalps/src/pyalps/ngs.py | 15 +- test/pyalps/hlist_test.output | 9 - test/pyalps/mcdata.output | 180 ----------------- test/pyalps/pyhdf5io.output | 39 ---- test/pyalps/pyparams.output | 15 -- test/pyalps/run_python_test.cmake | 66 ------- 19 files changed, 357 insertions(+), 491 deletions(-) delete mode 100644 test/pyalps/hlist_test.output delete mode 100644 test/pyalps/mcdata.output delete mode 100644 test/pyalps/pyhdf5io.output delete mode 100644 test/pyalps/pyparams.output delete mode 100644 test/pyalps/run_python_test.cmake diff --git a/bindings/python/pyalps/CMakeLists.txt b/bindings/python/pyalps/CMakeLists.txt index c79fa46ce..9a4410ff0 100644 --- a/bindings/python/pyalps/CMakeLists.txt +++ b/bindings/python/pyalps/CMakeLists.txt @@ -124,6 +124,14 @@ if(PYALPS_BUILD_APPLICATIONS) endif() foreach(_target IN LISTS _pyalps_targets) + # Mirror the Boost configuration macros libalps is compiled with + # (root CMakeLists.txt, CMAKE_CXX_FLAGS) so the Boost headers both + # sides of the ALPS library boundary include are configured + # identically. + target_compile_definitions(${_target} PRIVATE + BOOST_NO_AUTO_PTR + BOOST_FILESYSTEM_NO_CXX20_ATOMIC_REF + BOOST_TIMER_ENABLE_DEPRECATED) target_include_directories(${_target} PRIVATE ${ALPS_INCLUDE_DIRS} ${ALPS_EXTRA_INCLUDE_DIRS}) diff --git a/bindings/python/pyalps/cpp/apps/dwa.cpp b/bindings/python/pyalps/cpp/apps/dwa.cpp index 9016fd6e8..f4098764b 100644 --- a/bindings/python/pyalps/cpp/apps/dwa.cpp +++ b/bindings/python/pyalps/cpp/apps/dwa.cpp @@ -61,12 +61,19 @@ NB_MODULE(dwa_c, m) { .def("load", static_cast(&worldlines::load)) .def("save", static_cast(&worldlines::save)) .def("open_worldlines", &worldlines::open_worldlines) - .def("worldlines_siteindicator", &worldlines::worldlines_siteindicator) - .def("worldlines_time", &worldlines::worldlines_time) - .def("worldlines_state", &worldlines::worldlines_state) + // The four sequence accessors below return snapshots (nanobind's + // STL caster copies); mutating the returned list does not touch + // the worldline, unlike the old vector_indexing_suite proxies. + .def("worldlines_siteindicator", &worldlines::worldlines_siteindicator, + "Returns a copy; mutating it does not affect the worldline.") + .def("worldlines_time", &worldlines::worldlines_time, + "Returns a copy; mutating it does not affect the worldline.") + .def("worldlines_state", &worldlines::worldlines_state, + "Returns a copy; mutating it does not affect the worldline.") .def("num_sites", &worldlines::num_sites) .def("num_kinks", &worldlines::num_kinks) - .def("states", &worldlines::states) + .def("states", &worldlines::states, + "Returns a copy; mutating it does not affect the worldline.") .def("location", &worldlines::location) .def("state_before", &worldlines::state_before) .def("state", &worldlines::state) diff --git a/bindings/python/pyalps/cpp/dict_to_params.hpp b/bindings/python/pyalps/cpp/dict_to_params.hpp index d50c84e8d..b3b7bc20e 100644 --- a/bindings/python/pyalps/cpp/dict_to_params.hpp +++ b/bindings/python/pyalps/cpp/dict_to_params.hpp @@ -1,34 +1,85 @@ // Copyright (C) 2026 by the ALPS collaboration // Part of the ALPS Project — see LICENSE.txt for full license text. // SPDX-License-Identifier: MIT +// +// The single Python→alps::params conversion ladder, shared by +// pyngsparams_c (__setitem__ / dict ctor), pyngsbase_c (mcbase ctor) +// and the application modules (maxent_c / cthyb / ctint), so every +// module ingests parameters identically. #ifndef PYALPS_DICT_TO_PARAMS_HPP #define PYALPS_DICT_TO_PARAMS_HPP #include #include +#include #include #include +#include #include #include namespace pyalps { namespace nb = nanobind; +// Store one Python value under `key`. paramvalue's only integral +// alternative is a 32-bit int and libalps static_casts wider integer +// types down to it, so out-of-range Python ints are rejected loudly +// here rather than truncated silently. List probes use exact element +// types first (convert=false) so integer lists round-trip as ints; +// mixed numeric lists without bools widen to double. +inline void set_param_value(alps::params & p, std::string const & key, nb::handle value) { + if (value.is_none()) + throw nb::type_error(("cannot store None for parameter '" + key + + "': params has no null type; delete the key instead").c_str()); + if (nb::isinstance(value)) { + p[key] = nb::cast(value); + } else if (nb::isinstance(value)) { + try { + p[key] = nb::cast(value); + } catch (nb::cast_error const &) { + throw nb::type_error(("parameter '" + key + + "' does not fit params' 32-bit integer type").c_str()); + } + } else if (nb::isinstance(value)) { + p[key] = nb::cast(value); + } else if (PyComplex_Check(value.ptr())) { + p[key] = nb::cast>(value); + } else if (nb::isinstance(value)) { + p[key] = nb::cast(value); + } else if (nb::isinstance(value) || nb::isinstance(value)) { + try { p[key] = nb::cast>(value, false); return; } + catch (nb::cast_error const &) {} + try { p[key] = nb::cast>(value, false); return; } + catch (nb::cast_error const &) {} + try { p[key] = nb::cast>>(value, false); return; } + catch (nb::cast_error const &) {} + try { p[key] = nb::cast>(value, false); return; } + catch (nb::cast_error const &) {} + // mixed numeric content (e.g. [1, 2.5]) widens to double — + // but never bools, which would silently become 0.0/1.0 + nb::object seq = nb::borrow(value); + std::size_t const n = nb::len(seq); + bool has_bool = false; + for (std::size_t i = 0; i < n && !has_bool; ++i) { + nb::object item = seq[i]; + has_bool = nb::isinstance(item); + } + if (!has_bool) { + try { p[key] = nb::cast>(value); return; } + catch (nb::cast_error const &) {} + try { p[key] = nb::cast>>(value); return; } + catch (nb::cast_error const &) {} + } + throw nb::type_error(("unsupported list for parameter '" + key + + "' (expected homogeneous numbers or strings)").c_str()); + } else { + throw nb::type_error(("unsupported type for parameter '" + key + + "' (expected bool/int/float/complex/str or a list of those)").c_str()); + } +} inline alps::params params_from_dict(nb::dict const & values) { alps::params result; - for (auto item : values) { - std::string key = nb::cast(nb::str(item.first)); - nb::handle value = item.second; - if (nb::isinstance(value)) - result[key] = nb::cast(value); - else if (nb::isinstance(value)) - result[key] = nb::cast(value); - else if (nb::isinstance(value)) - result[key] = nb::cast(value); - else if (nb::isinstance(value)) - result[key] = nb::cast(value); - else if (nb::isinstance(value) || nb::isinstance(value)) - result[key] = nb::cast>(value); - else - throw nb::type_error(("unsupported parameter type for '" + key + "'").c_str()); - } + for (auto item : values) + set_param_value(result, + nb::cast(nb::str(item.first)), + item.second); return result; } } // namespace pyalps diff --git a/bindings/python/pyalps/cpp/ngs/accumulator.cpp b/bindings/python/pyalps/cpp/ngs/accumulator.cpp index f3ca7f005..9cb2824bf 100644 --- a/bindings/python/pyalps/cpp/ngs/accumulator.cpp +++ b/bindings/python/pyalps/cpp/ngs/accumulator.cpp @@ -28,14 +28,18 @@ template void bind_result_operators(nb::class_ & cls) { cls .def("__neg__", [](Result value) { value.negate(); return value; }) - .def("__iadd__", [](Result & self, Result const & other) -> Result & { self += other; return self; }, nb::rv_policy::reference_internal) - .def("__iadd__", [](Result & self, double value) -> Result & { self += value; return self; }, nb::rv_policy::reference_internal) - .def("__isub__", [](Result & self, Result const & other) -> Result & { self -= other; return self; }, nb::rv_policy::reference_internal) - .def("__isub__", [](Result & self, double value) -> Result & { self -= value; return self; }, nb::rv_policy::reference_internal) - .def("__imul__", [](Result & self, Result const & other) -> Result & { self *= other; return self; }, nb::rv_policy::reference_internal) - .def("__imul__", [](Result & self, double value) -> Result & { self *= value; return self; }, nb::rv_policy::reference_internal) - .def("__itruediv__", [](Result & self, Result const & other) -> Result & { self /= other; return self; }, nb::rv_policy::reference_internal) - .def("__itruediv__", [](Result & self, double value) -> Result & { self /= value; return self; }, nb::rv_policy::reference_internal) + // In-place operators return *this: rv_policy::none hands back + // the existing Python wrapper without any ownership or + // keep_alive bookkeeping, and is_operator() gives the standard + // NotImplemented behaviour on foreign operand types. + .def("__iadd__", [](Result & self, Result const & other) -> Result & { self += other; return self; }, nb::rv_policy::none, nb::is_operator()) + .def("__iadd__", [](Result & self, double value) -> Result & { self += value; return self; }, nb::rv_policy::none, nb::is_operator()) + .def("__isub__", [](Result & self, Result const & other) -> Result & { self -= other; return self; }, nb::rv_policy::none, nb::is_operator()) + .def("__isub__", [](Result & self, double value) -> Result & { self -= value; return self; }, nb::rv_policy::none, nb::is_operator()) + .def("__imul__", [](Result & self, Result const & other) -> Result & { self *= other; return self; }, nb::rv_policy::none, nb::is_operator()) + .def("__imul__", [](Result & self, double value) -> Result & { self *= value; return self; }, nb::rv_policy::none, nb::is_operator()) + .def("__itruediv__", [](Result & self, Result const & other) -> Result & { self /= other; return self; }, nb::rv_policy::none, nb::is_operator()) + .def("__itruediv__", [](Result & self, double value) -> Result & { self /= value; return self; }, nb::rv_policy::none, nb::is_operator()) .def("__add__", [](Result value, Result const & other) { value += other; return value; }, nb::is_operator()) .def("__add__", [](Result value, double other) { value += other; return value; }, nb::is_operator()) .def("__radd__", [](Result value, double other) { value += other; return value; }, nb::is_operator()) diff --git a/bindings/python/pyalps/cpp/ngs/hdf5.cpp b/bindings/python/pyalps/cpp/ngs/hdf5.cpp index 05eeefe92..128e7de23 100644 --- a/bindings/python/pyalps/cpp/ngs/hdf5.cpp +++ b/bindings/python/pyalps/cpp/ngs/hdf5.cpp @@ -27,12 +27,95 @@ #include #include #include +#include #include #include #include namespace nb = nanobind; namespace alps { namespace detail { + // Analysis of a Python list/tuple tree against the legacy + // Boost.Python vectorization rules (src/alps/hdf5/python.cpp, + // is_vectorizable_generic): a list is written as one dataset + // only when every leaf has the SAME exact scalar type — plain + // bool was never a vectorizable dtype — and all nested extents + // are rectangular. Everything else becomes a group with one + // child per index. The checked-in pyhdf5io fixture documents + // this contract ([1, 2, 3] must stay int32 on disk). + struct list_vectorizer { + enum class leaf_kind { none, integral, floating, cplx, text }; + std::vector extent; // rectangular extents per depth + std::ptrdiff_t leaf_depth = -1; + leaf_kind kind = leaf_kind::none; + std::vector ints; + std::vector reals; + std::vector> cplxs; + std::vector texts; + bool fits_int = true; + bool analyze(nb::handle node, std::size_t depth) { + nb::object seq = nb::borrow(node); + std::size_t const n = nb::len(seq); + if (depth == extent.size()) + extent.push_back(n); + else if (extent[depth] != n) + return false; // ragged + for (std::size_t i = 0; i < n; ++i) { + nb::object item = seq[i]; + PyObject * p = item.ptr(); + if (PyBool_Check(p)) + return false; // legacy: bool never vectorizes + if (PyList_Check(p) || PyTuple_Check(p)) { + // a sequence may not appear at the leaf level + if (leaf_depth != -1 + && static_cast(depth + 1) >= leaf_depth) + return false; + if (!analyze(item, depth + 1)) + return false; + continue; + } + // scalar leaf: all leaves must sit at one depth + if (leaf_depth == -1) { + if (extent.size() != depth + 1) + return false; + leaf_depth = static_cast(depth + 1); + } else if (leaf_depth != static_cast(depth + 1)) + return false; + if (PyLong_Check(p)) { + int overflow = 0; + long long v = PyLong_AsLongLongAndOverflow(p, &overflow); + if (overflow) + return false; // → descent; the per-element save raises, like legacy + if (!accept(leaf_kind::integral)) + return false; + if (v < std::numeric_limits::min() || v > std::numeric_limits::max()) + fits_int = false; + ints.push_back(v); + } else if (PyFloat_Check(p)) { + // includes numpy.float64, which subclasses float + if (!accept(leaf_kind::floating)) + return false; + reals.push_back(PyFloat_AsDouble(p)); + } else if (PyComplex_Check(p)) { + // includes numpy.complex128, which subclasses complex + if (!accept(leaf_kind::cplx)) + return false; + Py_complex c = PyComplex_AsCComplex(p); + cplxs.emplace_back(c.real, c.imag); + } else if (PyUnicode_Check(p)) { + if (!accept(leaf_kind::text)) + return false; + texts.push_back(nb::cast(item)); + } else + return false; // numpy scalars/arrays, other objects + } + return true; + } + bool accept(leaf_kind k) { + if (kind == leaf_kind::none) + kind = k; + return kind == k; // legacy: mixed scalar kinds → group + } + }; // Save-side visitor: receives a concrete C++ value (or a // nb::list / nb::dict) from extract_from_pyobject_py11 and // writes it to the archive at `path`. @@ -51,25 +134,71 @@ namespace alps { ar << alps::make_pvp(path, ptr, sizes); } void operator()(nb::list const & l) const { - // Order: flat numeric first, then nested numeric, then - // strings. Heterogeneous / deeply-nested / mixed-type - // lists fall through to the descent branch below which - // stores each entry under a numeric child path. - try { ar[path] << nb::cast>(l); return; } - catch (nb::cast_error const &) {} - try { ar[path] << nb::cast>(l); return; } - catch (nb::cast_error const &) {} - try { ar[path] << nb::cast>>(l); return; } - catch (nb::cast_error const &) {} - try { ar[path] << nb::cast>>(l); return; } - catch (nb::cast_error const &) {} - try { ar[path] << nb::cast>>(l); return; } - catch (nb::cast_error const &) {} - try { ar[path] << nb::cast>(l); return; } - catch (nb::cast_error const &) {} - // Inhomogeneous — recurse per-element into - // /, letting each entry be stored as its - // own native type. + // Reproduce the legacy vectorization rules (see + // list_vectorizer above): exact-type homogeneous + // rectangular list trees become one N-D dataset that + // keeps the element type — [1, 2, 3] stays int32 on + // disk, floats stay float64 — while bool-containing, + // mixed-type and ragged lists become a group with one + // child per index. + if (nb::len(l) == 0) { + // legacy wrote an empty integer dataset + ar[path] << std::vector(); + return; + } + list_vectorizer v; + if (v.analyze(l, 0)) { + switch (v.kind) { + case list_vectorizer::leaf_kind::integral: + if (v.fits_int) { + std::vector buf(v.ints.begin(), v.ints.end()); + (*this)(buf.data(), v.extent); + } else + (*this)(v.ints.data(), v.extent); + return; + case list_vectorizer::leaf_kind::floating: + (*this)(v.reals.data(), v.extent); + return; + case list_vectorizer::leaf_kind::cplx: + (*this)(v.cplxs.data(), v.extent); + return; + case list_vectorizer::leaf_kind::text: + if (v.extent.size() == 1) { + ar[path] << v.texts; + return; + } + break; // nested string lists → group descent + case list_vectorizer::leaf_kind::none: + break; // e.g. [[], []] → group descent + } + } else if (all_ndarrays(l)) { + // Legacy stacked equal-shape numpy arrays into one + // dataset; delegate to numpy so shape checking and + // dtype promotion match numpy's rules, then feed + // the stacked array through the ndarray save path. + // Ragged shapes (numpy raises) and object dtype + // fall through to the group descent below. + nb::object arr; + try { + arr = nb::borrow(alps::python::numpy_module()) + .attr("asarray")(l); + } catch (nb::python_error &) { + arr = nb::object(); + } + if (arr.is_valid()) { + std::string dtype_kind = + nb::cast(arr.attr("dtype").attr("kind")); + if (dtype_kind.find_first_of("biufc") != std::string::npos + && dtype_kind.size() == 1) { + hdf5_save_py11_visitor child_visitor{ar, path}; + extract_from_pyobject_py11(child_visitor, arr); + return; + } + } + } + // Heterogeneous / ragged / bool-containing — recurse + // per-element into /, letting each entry + // be stored as its own native type (legacy behaviour). ar.create_group(path); Py_ssize_t i = 0; for (auto item : l) { @@ -78,6 +207,12 @@ namespace alps { extract_from_pyobject_py11(child_visitor, item); } } + static bool all_ndarrays(nb::list const & l) { + for (auto item : l) + if (std::string(item.ptr()->ob_type->tp_name) != "numpy.ndarray") + return false; + return true; + } void operator()(nb::dict const & d) const { // Store a dict as a group with one child per key. Keys // are stringified (HDF5 paths are strings), values go @@ -252,10 +387,14 @@ namespace alps { if (id < 0 || id >= static_cast(exception_type.size())) throw std::out_of_range( "register_archive_exception_type: id out of range"); - // Py_INCREF the incoming type so it survives past this call - // (we're keeping a raw PyObject* in a static array). + // Keep a strong reference in the static table — the entry + // is deliberately pinned until process exit because the + // translators can fire at any time — but release any + // previous entry so re-registration doesn't leak it. + PyObject * previous = exception_type[id]; Py_INCREF(type.ptr()); exception_type[id] = type.ptr(); + Py_XDECREF(previous); } } } diff --git a/bindings/python/pyalps/cpp/ngs/mcbase.cpp b/bindings/python/pyalps/cpp/ngs/mcbase.cpp index 0c4b704c7..21bc6bff1 100644 --- a/bindings/python/pyalps/cpp/ngs/mcbase.cpp +++ b/bindings/python/pyalps/cpp/ngs/mcbase.cpp @@ -38,9 +38,10 @@ // libalps still declares a params(boost::python::dict) ctor in its // header, but we don't want to drag boost::python through the // nanobind bindings. Instead, we convert nb::dict → alps::params at the -// binding boundary by iterating and setitem-ing concrete C++ values -// (int/float/bool/str/list). That sidesteps the cross-registry issue -// and keeps the libalps ABI untouched. +// binding boundary through the shared ladder in ../dict_to_params.hpp, +// so mcbase, params and the application modules ingest parameters +// identically. That sidesteps the cross-registry issue and keeps the +// libalps ABI untouched. #define PY_ARRAY_UNIQUE_SYMBOL pyngsbase_PyArrayHandle #include #include @@ -59,37 +60,7 @@ namespace nb = nanobind; #include #include #include -namespace alps { - namespace detail { - // Convert a Python dict into an alps::params, extracting concrete - // C++ values for each entry. This mirrors what the libalps - // params(boost::python::dict) ctor does, but without routing the - // nb::object through the boost::python::object variant alternative - // — everything stays within the nanobind type registry. - inline alps::params py_dict_to_params(nb::dict const & d) { - alps::params p; - for (auto item : d) { - std::string k = nb::cast(nb::str(item.first)); - nb::handle v = item.second; - if (nb::isinstance(v)) - p[k] = nb::cast(v); - else if (nb::isinstance(v)) - p[k] = nb::cast(v); - else if (nb::isinstance(v)) - p[k] = nb::cast(v); - else if (nb::isinstance(v)) - p[k] = nb::cast(v); - else if (nb::isinstance(v) || nb::isinstance(v)) - p[k] = nb::cast>(v); - else - throw nb::type_error(( - "unsupported type for key '" + k + - "' in params dict (expected bool/int/float/str/list)").c_str()); - } - return p; - } - } -} +#include "../dict_to_params.hpp" namespace alps { // Trampoline: holds Python overrides for pure-virtuals. The // protected mcbase members (random / parameters / measurements) @@ -98,16 +69,21 @@ namespace alps { // class's own member functions / friends). class PyMCBase : public mcbase { public: - NB_TRAMPOLINE(mcbase, 3); + // Slot count = the number of NB_OVERRIDE* calls below. + // mcbase (src/alps/mcbase.hpp) declares five virtuals: + // update / measure / fraction_completed (pure) and + // save(archive&) / load(archive&); all five must be + // forwarded so Python overrides are seen by C++ callers. + NB_TRAMPOLINE(mcbase, 5); #ifdef ALPS_HAVE_MPI PyMCBase(nb::dict const & arg, std::size_t seed_offset = 42, boost::mpi::communicator const & /*comm*/ = boost::mpi::communicator()) - : mcbase(alps::detail::py_dict_to_params(arg), seed_offset) + : mcbase(pyalps::params_from_dict(arg), seed_offset) {} #else PyMCBase(nb::dict const & arg, std::size_t seed_offset = 42) - : mcbase(alps::detail::py_dict_to_params(arg), seed_offset) + : mcbase(pyalps::params_from_dict(arg), seed_offset) {} #endif void update() override { @@ -119,6 +95,14 @@ namespace alps { double fraction_completed() const override { NB_OVERRIDE_PURE(fraction_completed); } + // Non-pure: fall through to the C++ implementation when the + // Python subclass doesn't override (NB_OVERRIDE, not _PURE). + void save(alps::hdf5::archive & ar) const override { + NB_OVERRIDE(save, ar); + } + void load(alps::hdf5::archive & ar) override { + NB_OVERRIDE(load, ar); + } // Accessors for protected mcbase members. Called from the // binding lambdas below (they friend-in through PyMCBase). alps::random01 & get_random() { return random; } diff --git a/bindings/python/pyalps/cpp/ngs/observable.cpp b/bindings/python/pyalps/cpp/ngs/observable.cpp index dde673f21..8c653517b 100644 --- a/bindings/python/pyalps/cpp/ngs/observable.cpp +++ b/bindings/python/pyalps/cpp/ngs/observable.cpp @@ -74,8 +74,21 @@ NB_MODULE(pyngsobservable_c, m) { m.def("createRealVectorObservable", &alps::detail::create_RealVectorObservable_export); nb::class_(m, "observable") .def("append", &alps::detail::observable_append) + // obs << value appends and returns obs so it chains. Bound in + // C++ (rv_policy::none returns the existing wrapper) instead of + // the former ngs.py monkeypatch onto the extension type, which + // would break if nanobind ever marks its types immutable. + .def("__lshift__", + [](alps::mcobservable & self, nb::object const & data) -> alps::mcobservable & { + alps::detail::observable_append(self, data); + return self; + }, + nb::rv_policy::none) .def("merge", &alps::mcobservable::merge) .def("save", &alps::mcobservable::save) .def("load", &alps::detail::observable_load) + // Mirrors the legacy Boost.Python module, which (oddly, but + // load-compatibly) bound addToObservable to the same helper + // as load. .def("addToObservable", &alps::detail::observable_load); } diff --git a/bindings/python/pyalps/cpp/ngs/observables.cpp b/bindings/python/pyalps/cpp/ngs/observables.cpp index 7b121fe64..1813112b6 100644 --- a/bindings/python/pyalps/cpp/ngs/observables.cpp +++ b/bindings/python/pyalps/cpp/ngs/observables.cpp @@ -62,6 +62,10 @@ void createRealVectorObservable(alps::mcobservables & self, std::string const & void addObservable(alps::mcobservables & self, nb::object const & obj) { // Mirror boost::python::call_method(obj, "addToObservables", ref(self)): // bounce the call back into Python, passing `self` by reference. + // nanobind's instance registry returns the already-registered + // wrapper for &self (the one this call came through, verified + // empirically), so the callback sees the identical Python object — + // no duplicate wrapper, no separate lifetime to manage. obj.attr("addToObservables")(nb::cast(&self, nb::rv_policy::reference)); } } // namespace diff --git a/bindings/python/pyalps/cpp/ngs/params.cpp b/bindings/python/pyalps/cpp/ngs/params.cpp index 0994346f9..93238e513 100644 --- a/bindings/python/pyalps/cpp/ngs/params.cpp +++ b/bindings/python/pyalps/cpp/ngs/params.cpp @@ -5,6 +5,7 @@ // SPDX-License-Identifier: MIT #include #include +#include #include #include #include @@ -18,13 +19,9 @@ #include #include #include +#include "../dict_to_params.hpp" namespace nb = nanobind; namespace { -// Convert a Python dict into an alps::params. Same shape as the -// helper in mcbase.cpp but kept local to params.cpp so a change to -// the dispatch (e.g. adding complex support) can stay in one place -// alongside the other setitem logic. -alps::params py_dict_to_params(nb::dict const & d); // Walk the paramvalue variant and wrap each native alternative as a // nb::object. Called from __getitem__. struct paramvalue_to_py_visitor : boost::static_visitor { @@ -39,39 +36,21 @@ nb::object paramvalue_to_py(alps::detail::paramvalue const & pv) { static_cast(pv)); } // Deposit a native C++ value from a Python object into the paramvalue -// via paramproxy's templated operator=. +// via paramproxy's templated operator= — shared ladder in +// ../dict_to_params.hpp so params, mcbase and the application modules +// all ingest values identically. void params_setitem(alps::params & self, nb::object const & key_obj, nb::object const & value) { - std::string key = nb::cast(nb::str(key_obj)); - if (nb::isinstance(value)) - self[key] = nb::cast(value); - else if (nb::isinstance(value)) - self[key] = nb::cast(value); - else if (nb::isinstance(value)) - self[key] = nb::cast(value); - else if (nb::isinstance(value)) - self[key] = nb::cast(value); - else if (nb::isinstance(value) || nb::isinstance(value)) { - // Heuristic: try doubles first, strings as fallback. - try { - self[key] = nb::cast>(value); - } catch (nb::cast_error &) { - self[key] = nb::cast>(value); - } - } else { - throw nb::type_error("unsupported value type for params[]"); - } + pyalps::set_param_value(self, nb::cast(nb::str(key_obj)), value); } nb::object params_getitem(alps::params & self, nb::object const & key_obj) { std::string key = nb::cast(nb::str(key_obj)); - if (!self.defined(key)) - return nb::none(); // params doesn't expose the underlying map directly, but - // paramiterator yields (key, paramvalue) pairs; walk it to find the - // entry and hand the variant to paramvalue_to_py. + // paramiterator yields (key, paramvalue) pairs; a single walk both + // answers "defined?" and hands the variant to paramvalue_to_py. for (auto it = self.begin(); it != self.end(); ++it) if (it->first == key) return paramvalue_to_py(it->second); - return nb::none(); // defensive — defined()==true should guarantee a hit + return nb::none(); } void params_delitem(alps::params & self, nb::object const & key_obj) { self.erase(nb::cast(nb::str(key_obj))); @@ -97,41 +76,13 @@ std::string params_print(alps::params & self) { alps::params params_deepcopy(alps::params const & self, nb::handle /*memo*/) { return alps::params(self); } -// Materialise an alps::params from a Python dict. Re-uses the same -// type dispatch as params_setitem so a round-tripped dict-built -// params contains exactly the same variant alternatives. -alps::params py_dict_to_params(nb::dict const & d) { - alps::params p; - for (auto item : d) { - std::string k = nb::cast(nb::str(item.first)); - nb::handle v = item.second; - if (nb::isinstance(v)) - p[k] = nb::cast(v); - else if (nb::isinstance(v)) - p[k] = nb::cast(v); - else if (nb::isinstance(v)) - p[k] = nb::cast(v); - else if (nb::isinstance(v)) - p[k] = nb::cast(v); - else if (nb::isinstance(v) || nb::isinstance(v)) { - try { p[k] = nb::cast>(v); } - catch (nb::cast_error &) { - p[k] = nb::cast>(v); - } - } else { - throw nb::type_error( - ("unsupported value type for params key '" + k + "'").c_str()); - } - } - return p; -} } // namespace NB_MODULE(pyngsparams_c, m) { nb::class_(m, "params") .def(nb::init<>()) .def("__init__", [](alps::params * self, nb::dict const & d) { - new (self) alps::params(py_dict_to_params(d)); + new (self) alps::params(pyalps::params_from_dict(d)); }, nb::arg("dict")) // Read a classic ALPS text parameter file, matching the str diff --git a/bindings/python/pyalps/cpp/numpy_compat.hpp b/bindings/python/pyalps/cpp/numpy_compat.hpp index b23cafc0e..187b86781 100644 --- a/bindings/python/pyalps/cpp/numpy_compat.hpp +++ b/bindings/python/pyalps/cpp/numpy_compat.hpp @@ -38,17 +38,30 @@ namespace alps { template <> struct numpy_dtype { static constexpr char const* name = "float64"; }; template <> struct numpy_dtype> { static constexpr char const* name = "complex64"; }; template <> struct numpy_dtype> { static constexpr char const* name = "complex128"; }; + // Cached numpy module. Importing per call was a sys.modules + // lookup + import-lock acquisition on every array conversion. + // The reference is deliberately leaked: a static nb_::object + // would decref during static destruction, potentially after + // interpreter finalization. + inline nb_::handle numpy_module() { + static PyObject * mod = nb_::module_::import_("numpy").release().ptr(); + return mod; + } // Allocates numpy.empty(shape, dtype=numpy_dtype::name) and // memcpy's `data` (length = product(shape)) into it. Returns // a writable numpy.ndarray. template inline nb_::object make_numpy_array(T const* data, std::vector const& shape) { - nb_::object np = nb_::module_::import_("numpy"); + nb_::handle np = numpy_module(); nb_::tuple shape_tuple = nb_::steal(PyTuple_New(static_cast(shape.size()))); + // PyTuple_SetItem (not the SET_ITEM macro): the macro pokes + // tuple internals directly and is unavailable under the + // limited API, which is otherwise within reach for these + // bindings. for (std::size_t i = 0; i < shape.size(); ++i) - PyTuple_SET_ITEM(shape_tuple.ptr(), static_cast(i), - PyLong_FromUnsignedLongLong(shape[i])); + PyTuple_SetItem(shape_tuple.ptr(), static_cast(i), + PyLong_FromUnsignedLongLong(shape[i])); nb_::object arr = np.attr("empty")( shape_tuple, nb_::arg("dtype") = numpy_dtype::name); // Bridge the freshly-allocated numpy buffer through nb::ndarray @@ -84,7 +97,7 @@ namespace alps { // of through the numpy C headers at compile time. template inline contiguous_view as_contiguous(nb_::handle obj) { - nb_::object np = nb_::module_::import_("numpy"); + nb_::handle np = numpy_module(); nb_::object arr = np.attr("ascontiguousarray")( obj, nb_::arg("dtype") = numpy_dtype::name); auto nd = nb_::cast>(arr); diff --git a/bindings/python/pyalps/cpp/pyalea.cpp b/bindings/python/pyalps/cpp/pyalea.cpp index fb9b2b86c..34756f9f8 100644 --- a/bindings/python/pyalps/cpp/pyalea.cpp +++ b/bindings/python/pyalps/cpp/pyalea.cpp @@ -345,6 +345,14 @@ NB_MODULE(pyalea_c, m) { m.def("variance", &variance_vector>>); // integrated_autocorrelation_time — scalar only. The C++ signature // takes the (slope, intercept) pair by const-ref. + // + // NOTE: four overloads in total — the two std::pair forms here + // (satisfied by any 2-tuple via ) and the two + // StdPairDouble forms further down. They are disjoint today because + // StdPairDouble's implicit conversion to std::pair is invisible to + // nanobind; keep the pair overloads registered FIRST and do not add + // an implicitly_convertible between the two, or the dispatch order + // silently changes. m.def("integrated_autocorrelation_time", static_cast const &, std::pair const &)>( diff --git a/bindings/python/pyalps/pyproject.toml b/bindings/python/pyalps/pyproject.toml index 3526cb1a1..06a42f388 100644 --- a/bindings/python/pyalps/pyproject.toml +++ b/bindings/python/pyalps/pyproject.toml @@ -1,5 +1,8 @@ [build-system] -requires = ["scikit-build-core>=1.0", "nanobind>=2.10"] +# nanobind is capped below the next major: all extension modules in one +# process must agree on the nanobind ABI, and its API/ABI may break at +# major versions. Bump the cap deliberately, with a full test run. +requires = ["scikit-build-core>=1.0", "nanobind>=2.10,<3"] build-backend = "scikit_build_core.build" [project] diff --git a/bindings/python/pyalps/src/pyalps/mpi.py b/bindings/python/pyalps/src/pyalps/mpi.py index bd984bc3b..72d4ed87b 100644 --- a/bindings/python/pyalps/src/pyalps/mpi.py +++ b/bindings/python/pyalps/src/pyalps/mpi.py @@ -1,34 +1,23 @@ # **************************************************************************** -# +# # ALPS Project: Algorithms and Libraries for Physics Simulations -# +# # ALPS Libraries -# +# # Copyright (C) 2012 by Matthias Troyer # # ALPS Project: https://alps.comp-phys.org/ # SPDX-License-Identifier: MIT -# +# # **************************************************************************** -import sys -if sys.platform == 'linux2': - import DLFCN as dl - flags = sys.getdlopenflags() - sys.setdlopenflags(dl.RTLD_NOW|dl.RTLD_GLOBAL) - try: - try: - from .cxx.mpi_c import * - except ImportError: - from mpi_c import * - except ImportError: - from boost.mpi import * - sys.setdlopenflags(flags) -else: - try: - try: - from .cxx.mpi_c import * - except ImportError: - from mpi_c import * - except ImportError: - from boost.mpi import * \ No newline at end of file +# The Boost.Python-era mpi_c extension is not part of the nanobind +# wheel build (no target builds it), so the old fallback chain +# (.cxx.mpi_c → mpi_c → boost.mpi) could never succeed anyway. Fail +# with an explanation instead of a misleading "No module named +# 'boost'". +raise ImportError( + "pyalps.mpi is not available: the MPI bindings were not ported to the " + "nanobind build of pyalps. Drive MPI-parallel simulations from C++, or " + "use mpi4py for Python-side MPI communication." +) diff --git a/bindings/python/pyalps/src/pyalps/ngs.py b/bindings/python/pyalps/src/pyalps/ngs.py index 9612a0149..516527cf5 100644 --- a/bindings/python/pyalps/src/pyalps/ngs.py +++ b/bindings/python/pyalps/src/pyalps/ngs.py @@ -16,10 +16,6 @@ from .cxx.pyngsparams_c import params from .cxx.pyngsobservable_c import observable -def _observable_lshift(self, other): - self.append(other) - return self -observable.__lshift__ = _observable_lshift class RealObservable: def __init__(self, name, binnum = 0): @@ -48,12 +44,17 @@ def addToObservables(self, observables): #rename this with new ALEA # Boost.Python allowed mutating extension-type base classes after creation. # nanobind extension types use a different allocator/deallocator layout, so # register them as virtual MutableMapping implementations and copy the mixin -# methods onto the concrete classes instead. +# methods onto the concrete classes instead. A method is copied when the +# class doesn't provide its own — "inherited from object" counts as absent, +# otherwise __eq__/__ne__ (which every type inherits from object) would be +# skipped and mapping equality lost. __hash__ rides along as None, exactly +# as MutableMapping inheritance made these types unhashable before. for _mapping_type in (params, observables, results): MutableMapping.register(_mapping_type) for _method in ("keys", "values", "items", "get", "pop", "popitem", - "clear", "update", "setdefault", "__eq__", "__ne__"): - if not hasattr(_mapping_type, _method): + "clear", "update", "setdefault", "__eq__", "__ne__", + "__hash__"): + if getattr(_mapping_type, _method, None) is getattr(object, _method, None): setattr(_mapping_type, _method, getattr(MutableMapping, _method)) from .cxx.pyngsbase_c import mcbase diff --git a/test/pyalps/hlist_test.output b/test/pyalps/hlist_test.output deleted file mode 100644 index 343f1e659..000000000 --- a/test/pyalps/hlist_test.output +++ /dev/null @@ -1,9 +0,0 @@ -[1, 2, 3, 4, 5] -1 -[1, 2] -1 -5 -27 -27 -13 -13 diff --git a/test/pyalps/mcdata.output b/test/pyalps/mcdata.output deleted file mode 100644 index 61ca7b3d8..000000000 --- a/test/pyalps/mcdata.output +++ /dev/null @@ -1,180 +0,0 @@ - -Testing MCScalarData - ------------------------- - -Initialization: - -a: 0.81 +/- 0.1 -b: 1.21 +/- 0.15 -c: -1.5 +/- 0.2 - - -Operation: - -a += b: 2.020000000000 +/- 0.180277563773 -a -= b: -0.010000000000 +/- 0.180277563773 -a *= b: 1.452000000000 +/- 0.216889372723 -a /= b: 0.991735537190 +/- 0.148138359895 - - -a += 2.: 3.200000000000 +/- 0.100000000000 -a -= 2.: -0.800000000000 +/- 0.100000000000 -a *= 2.: 2.400000000000 +/- 0.200000000000 -a /= 2.: 0.600000000000 +/- 0.050000000000 - - -a + b: 0.991735537190 +/- 0.148138359895 -a + 2.: 0.600000000000 +/- 0.050000000000 -2. + a: 1.666666666667 +/- 0.138888888889 -a - b: 0.991735537190 +/- 0.148138359895 -a - 2.: 0.600000000000 +/- 0.050000000000 -2. - a: 1.666666666667 +/- 0.138888888889 -a * b: 0.991735537190 +/- 0.148138359895 -a * 2.: 0.600000000000 +/- 0.050000000000 -2. * a: 1.666666666667 +/- 0.138888888889 -a / b: 0.991735537190 +/- 0.148138359895 -a / 2.: 0.600000000000 +/- 0.050000000000 -2. / a: 1.666666666667 +/- 0.138888888889 - - --a: 1.200000000000 +/- 0.100000000000 -abs(c): 1.500000000000 +/- 0.200000000000 - - -pow(a,2.71): 1.639008390308 +/- 0.370142728145 -a.sq() 1.440000000000 +/- 0.240000000000 -a.sqrt() 1.095445115010 +/- 0.045643546459 -a.cb() 1.728000000000 +/- 0.432000000000 -a.cbrt() 1.062658569183 +/- 0.029518293588 -a.exp() 3.320116922737 +/- 0.332011692274 -a.log() 0.182321556794 +/- 0.083333333333 -a.sin() 0.932039085967 +/- 0.036235775448 -a.cos() 0.362357754477 +/- 0.093203908597 -a.tan() 2.572151622126 +/- 0.761596396721 -a.tanh() 0.833654607012 +/- 0.030501999621 - - - -Testing MCVectorData - ------------------------- - -Manipulation - -X: -2.300000000000 +/- 0.010000000000 -1.200000000000 +/- 0.010000000000 -0.700000000000 +/- 0.010000000000 -Y: -3.300000000000 +/- 0.010000000000 -2.200000000000 +/- 0.010000000000 -1.700000000000 +/- 0.010000000000 -X + Y: -5.600000000000 +/- 0.014142135624 -3.400000000000 +/- 0.014142135624 -2.400000000000 +/- 0.014142135624 -X + 2.: -4.300000000000 +/- 0.010000000000 -3.200000000000 +/- 0.010000000000 -2.700000000000 +/- 0.010000000000 -2. + X: -4.300000000000 +/- 0.010000000000 -3.200000000000 +/- 0.010000000000 -2.700000000000 +/- 0.010000000000 -X + Y: -5.600000000000 +/- 0.014142135624 -3.400000000000 +/- 0.014142135624 -2.400000000000 +/- 0.014142135624 -X + 2.: -4.300000000000 +/- 0.010000000000 -3.200000000000 +/- 0.010000000000 -2.700000000000 +/- 0.010000000000 -2. + X: -4.300000000000 +/- 0.010000000000 -3.200000000000 +/- 0.010000000000 -2.700000000000 +/- 0.010000000000 -X / Y: -0.696969696970 +/- 0.003693697954 -0.545454545455 +/- 0.005177671110 -0.411764705882 +/- 0.006361514294 -X / 2.: -1.150000000000 +/- 0.005000000000 -0.600000000000 +/- 0.005000000000 -0.350000000000 +/- 0.005000000000 -2. / X: -0.869565217391 +/- 0.003780718336 -1.666666666667 +/- 0.013888888889 -2.857142857143 +/- 0.040816326531 -X / Y: -0.696969696970 +/- 0.003693697954 -0.545454545455 +/- 0.005177671110 -0.411764705882 +/- 0.006361514294 -X / 2.: -1.150000000000 +/- 0.005000000000 -0.600000000000 +/- 0.005000000000 -0.350000000000 +/- 0.005000000000 -2. / X: -0.869565217391 +/- 0.003780718336 -1.666666666667 +/- 0.013888888889 -2.857142857143 +/- 0.040816326531 --X: -2.300000000000 +/- 0.010000000000 -1.200000000000 +/- 0.010000000000 -0.700000000000 +/- 0.010000000000 -abs(X): -2.300000000000 +/- 0.010000000000 -1.200000000000 +/- 0.010000000000 -0.700000000000 +/- 0.010000000000 -pow(X,2.71): -9.556138502711 +/- 0.112596240619 -1.639008390308 +/- 0.037014272814 -0.380378260851 +/- 0.014726072670 -X.sq(): -5.290000000000 +/- 0.046000000000 -1.440000000000 +/- 0.024000000000 -0.490000000000 +/- 0.014000000000 -X.sqrt(): -1.516575088810 +/- 0.003296902367 -1.095445115010 +/- 0.004564354646 -0.836660026534 +/- 0.005976143047 -X.cb(): -12.167000000000 +/- 0.158700000000 -1.728000000000 +/- 0.043200000000 -0.343000000000 +/- 0.014700000000 -X.cbrt(): -1.320006121796 +/- 0.001913052350 -1.062658569183 +/- 0.002951829359 -0.887904001743 +/- 0.004228114294 -X.exp(): -9.974182454815 +/- 0.099741824548 -3.320116922737 +/- 0.033201169227 -2.013752707470 +/- 0.020137527075 -X.log(): -0.832909122935 +/- 0.004347826087 -0.182321556794 +/- 0.008333333333 --0.356674943939 +/- 0.014285714286 -X.sin(): -0.745705212177 +/- 0.006662760213 -0.932039085967 +/- 0.003623577545 -0.644217687238 +/- 0.007648421873 -X.cos(): --0.666276021280 +/- 0.007457052122 -0.362357754477 +/- 0.009320390860 -0.764842187284 +/- 0.006442176872 -X.tan(): --1.119213641734 +/- 0.022526391758 -2.572151622126 +/- 0.076159639672 -0.842288380463 +/- 0.017094497159 -X.sinh(): -4.936961805546 +/- 0.050372206493 -1.509461355412 +/- 0.018106555673 -0.758583701840 +/- 0.012551690056 -X.cosh(): -5.037220649269 +/- 0.049369618055 -1.810655567324 +/- 0.015094613554 -1.255169005631 +/- 0.007585837018 -X.tanh(): -0.980096396266 +/- 0.000394110540 -0.833654607012 +/- 0.003050199962 -0.604367777117 +/- 0.006347395900 diff --git a/test/pyalps/pyhdf5io.output b/test/pyalps/pyhdf5io.output deleted file mode 100644 index 2d30bf3ab..000000000 --- a/test/pyalps/pyhdf5io.output +++ /dev/null @@ -1,39 +0,0 @@ -childs: 23 -/list: array([1, 2, 3], dtype=int32) -/list2: array([[[1, 2], - [3, 4]], - - [[1, 2], - [3, 4]], - - [[1, 2], - [3, 4]], - - [[1, 2], - [3, 4]]], dtype=int32) -/tuple: array([1, 2, 3], dtype=int32) -/dict: [('1', 1), ('4', {'a': array([1, 2, 3]), '(2+3j)': 'foo'}), ('list', array([1, 2, 3], dtype=int32)), ('numpy', array([1, 2, 3])), ('numpycpx', array([1.1+1.j, 0. +2.j, 3.5+0.j])), ('scalar', 1), ('string', 'str')] -/numpy: array([1, 2, 3]) -/numpy2: array([1.1, 2. , 3.5]) -/numpy3: array([1.1+1.j, 0. +2.j, 3.5+0.j]) -/numpyel: 1 -/numpyel2: 1.1 -/numpyel3: (1.1+1j) -/int: 1 -/long: 1 -/double: 1.0 -/complex: (1+1j) -/string: 'str' -/stringlist: ['a', 'list', 'of', 'strings'] -/inhomogenious: [array([1, 2, 3], dtype=int32), array([1, 2, 3]), 'gurke', [[array([1, 2, 3]), 2, 3], ['x', (1+1j)]]] -/inhomogenious2: [array([[1, 2], - [3, 4]], dtype=int32), array([[1, 2], - [3, 4]], dtype=int32), array([[1, 2], - [3, 4]], dtype=int32), [array([1, 2], dtype=int32), array([3], dtype=int32)]] -/inhomogenious3: [array([0, 1, 2]), array([0, 1, 2, 3, 4])] -/inhomogenious4: array([[ 0, 1, 2], - [ 0, 10, 20]]) -/inhomogenious5: [array([0, 1, 2], dtype=int32), array([0, 1, 2, 3, 4], dtype=int32), array([0, 1, 2], dtype=int32)] -/numpylist1: array([[0, 1, 2, 3, 4], - [5, 6, 7, 8, 9]]) -/numpylist2: [array([0, 1, 2, 3, 4]), array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])] diff --git a/test/pyalps/pyparams.output b/test/pyalps/pyparams.output deleted file mode 100644 index fe41df989..000000000 --- a/test/pyalps/pyparams.output +++ /dev/null @@ -1,15 +0,0 @@ -a ok! -b ok! -val1 ok! -val2 ok! -x ok! -a -b -val1 -val2 -x -a ok! -b ok! -val1 ok! -val2 ok! -x ok! diff --git a/test/pyalps/run_python_test.cmake b/test/pyalps/run_python_test.cmake deleted file mode 100644 index f90e20bfd..000000000 --- a/test/pyalps/run_python_test.cmake +++ /dev/null @@ -1,66 +0,0 @@ -# Copyright Matthias Troyer, Synge Todo and Lukas Gamper 2009 - 2010. -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the “Software”), -# to deal in the Software without restriction, including without limitation -# the rights to use, copy, modify, merge, publish, distribute, sublicense, -# and/or sell copies of the Software, and to permit persons to whom the -# Software is furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included -# in all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS -# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. - -file(WRITE tmp_${cmd}.sh "PYTHONPATH=\$PYTHONPATH:${pythonpath} ${python_interpreter} ${cmddir}/${cmd}") - -find_file(input_path ${input}.input ${binarydir} ${sourcedir}) -find_file(output_path ${output}.output ${binarydir} ${sourcedir}) - -if(input_path) - execute_process( - COMMAND sh tmp_${cmd}.sh - RESULT_VARIABLE not_successful - INPUT_FILE ${input_path} - OUTPUT_FILE ${cmd}_output - ERROR_VARIABLE err - TIMEOUT 600 - ) -else(input_path) - execute_process( - COMMAND sh tmp_${cmd}.sh - RESULT_VARIABLE not_successful - OUTPUT_FILE ${cmd}_output - ERROR_VARIABLE err - TIMEOUT 600 - ) -endif(input_path) - -file(REMOVE tmp_${cmd}.sh) - -if(not_successful) - message(SEND_ERROR "error runing test 'python_${cmd}': ${err}; shell output: ${not_successful}!") -endif(not_successful) - -if(output_path) - if(WIN32) - configure_file(${cmd}_output ${cmd}_output NEWLINE_STYLE LF) - endif(WIN32) - execute_process( - COMMAND ${CMAKE_COMMAND} -E compare_files ${output_path} ${cmd}_output - RESULT_VARIABLE not_successful - OUTPUT_VARIABLE out - ERROR_VARIABLE err - TIMEOUT 600 - ) - if(not_successful) - message(SEND_ERROR "output does not match for 'python_${cmd}': ${err}; ${out}; shell output: ${not_successful}!") - endif(not_successful) -endif(output_path) - -file(REMOVE ${cmd}_output) From 74f5a167a80f0eb61ca07e1c4cc25f2b650569e8 Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Tue, 18 Aug 2026 15:56:31 -0500 Subject: [PATCH 34/51] test(pyalps): make the Python suite assert instead of print MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pyhdf5io_test and mcdata_test consisted of print() calls diffed by a CTest harness that no longer exists, so the wheel CI's pytest run passed vacuously — exactly why the HDF5 int->float64 regression went unnoticed. Rewrite both with assertions derived from the historic .output fixtures (which are removed along with the dead run_python_test.cmake), including dtype checks for every list shape the old build distinguished, plus regression cases for bool/mixed/ int64-range lists. Extend test_binding_surface with regression tests for mapping equality and the params value ladder, observable << chaining, save/load overrides reached through C++ virtual dispatch, and in-place accumulator result identity. mcdata's unary minus expectations document a long-standing libalps bug (mcdata::operator-() returns *this unchanged) that the old fixture also recorded; flip them when the C++ operator is fixed. Co-Authored-By: Claude Fable 5 --- test/pyalps/mcdata_test.py | 286 ++++++++++++++-------------- test/pyalps/pyhdf5io_test.py | 219 ++++++++++++++------- test/pyalps/test_binding_surface.py | 115 +++++++++++ 3 files changed, 404 insertions(+), 216 deletions(-) diff --git a/test/pyalps/mcdata_test.py b/test/pyalps/mcdata_test.py index 56bdb7b17..6e7b7b038 100644 --- a/test/pyalps/mcdata_test.py +++ b/test/pyalps/mcdata_test.py @@ -1,4 +1,3 @@ -from __future__ import print_function # **************************************************************************** # # ALPS Project: Algorithms and Libraries for Physics Simulations @@ -14,152 +13,155 @@ # # **************************************************************************** +# Assertion-based MCScalarData / MCVectorData arithmetic test. The +# expected values are the ones recorded in the historic mcdata.output +# fixture (error propagation without covariance). + from pyalps.alea import * import numpy as np -def str_prec(a): - return '{:.12f}'.format(a) - - -def test_mcdata(): - - print("\nTesting MCScalarData") - print("\n------------------------\n") - - a = MCScalarData(0.81,0.1) - b = MCScalarData(1.21,0.15) - c = MCScalarData(-1.5,0.2) - - print("Initialization:\n") - print("a:\t" + str(a)) - print("b:\t" + str(b)) - print("c:\t" + str(c)) - - print("\n") - - print("Operation:\n") - + +def assert_scalar(value, mean, error): + assert np.isclose(value.mean, mean, rtol=1e-9), (value.mean, mean) + assert np.isclose(value.error, error, rtol=1e-9), (value.error, error) + + +def assert_vector(value, means, errors): + np.testing.assert_allclose(value.mean, means, rtol=1e-9) + np.testing.assert_allclose(value.error, errors, rtol=1e-9) + + +def test_mcdata_scalar(): + b = MCScalarData(1.21, 0.15) + c = MCScalarData(-1.5, 0.2) + + a = MCScalarData(0.81, 0.1) a += b - print("a += b:\t" + str_prec(a)) - a = MCScalarData(1.2,0.1) - + assert_scalar(a, 2.02, 0.180277563773) + + a = MCScalarData(1.2, 0.1) a -= b - print("a -= b:\t" + str_prec(a)) - a = MCScalarData(1.2,0.1) - + assert_scalar(a, -0.01, 0.180277563773) + + a = MCScalarData(1.2, 0.1) a *= b - print("a *= b:\t" + str_prec(a)) - a = MCScalarData(1.2,0.1) - + assert_scalar(a, 1.452, 0.216889372723) + + a = MCScalarData(1.2, 0.1) a /= b - print("a /= b:\t" + str_prec(a)) - a = MCScalarData(1.2,0.1) - - print("\n") - - a += 2. - print("a += 2.:\t" + str_prec(a)) - a = MCScalarData(1.2,0.1) - - a -= 2. - print("a -= 2.:\t" + str_prec(a)) - a = MCScalarData(1.2,0.1) - - a *= 2. - print("a *= 2.:\t" + str_prec(a)) - a = MCScalarData(1.2,0.1) - - a /= 2. - print("a /= 2.:\t" + str_prec(a)) - a = MCScalarData(1.2,0.1) - - print("\n") - - print("a + b:\t" + str_prec(a / b)) - print("a + 2.:\t" + str_prec(a / 2.)) - print("2. + a:\t" + str_prec(2. / a)) - print("a - b:\t" + str_prec(a / b)) - print("a - 2.:\t" + str_prec(a / 2.)) - print("2. - a:\t" + str_prec(2. / a)) - print("a * b:\t" + str_prec(a / b)) - print("a * 2.:\t" + str_prec(a / 2.)) - print("2. * a:\t" + str_prec(2. / a)) - print("a / b:\t" + str_prec(a / b)) - print("a / 2.:\t" + str_prec(a / 2.)) - print("2. / a:\t" + str_prec(2. / a)) - - print("\n") - - print("-a:\t" + str_prec(-a)) - print("abs(c):\t" + str_prec(abs(c))) - - print("\n") - - print("pow(a,2.71):\t" + str_prec(pow(a,2.71))) - print("a.sq()\t" + str_prec(a.sq())) - print("a.sqrt()\t" + str_prec(a.sqrt())) - print("a.cb()\t" + str_prec(a.cb())) - print("a.cbrt()\t" + str_prec(a.cbrt())) - print("a.exp()\t" + str_prec(a.exp())) - print("a.log()\t" + str_prec(a.log())) - - print("a.sin()\t" + str_prec(a.sin())) - print("a.cos()\t" + str_prec(a.cos())) - print("a.tan()\t" + str_prec(a.tan())) - # print("a.asin()\t" + str_prec(a.asin())) - # print("a.acos()\t" + str_prec(a.acos())) - # print("a.atan()\t" + str_prec(a.atan())) - print("a.tanh()\t" + str_prec(a.tanh())) - - print("\n") - print("\nTesting MCVectorData") - print("\n------------------------\n") - - print("Manipulation\n") - + assert_scalar(a, 0.991735537190, 0.148138359895) + + a = MCScalarData(1.2, 0.1) + a += 2.0 + assert_scalar(a, 3.2, 0.1) + + a = MCScalarData(1.2, 0.1) + a -= 2.0 + assert_scalar(a, -0.8, 0.1) + + a = MCScalarData(1.2, 0.1) + a *= 2.0 + assert_scalar(a, 2.4, 0.2) + + a = MCScalarData(1.2, 0.1) + a /= 2.0 + assert_scalar(a, 0.6, 0.05) + + a = MCScalarData(1.2, 0.1) + assert_scalar(a + b, 2.41, 0.180277563773) + assert_scalar(a - b, -0.01, 0.180277563773) + assert_scalar(a * b, 1.452, 0.216889372723) + assert_scalar(a / b, 0.991735537190, 0.148138359895) + assert_scalar(a + 2.0, 3.2, 0.1) + assert_scalar(a - 2.0, -0.8, 0.1) + assert_scalar(a * 2.0, 2.4, 0.2) + assert_scalar(a / 2.0, 0.6, 0.05) + assert_scalar(2.0 / a, 1.666666666667, 0.138888888889) + + # NOTE: documents a long-standing libalps bug, present in the old + # Boost.Python build too (the historic fixture also shows +1.2): + # mcdata::operator-() (src/alps/alea/mcdata.hpp) negates a copy + # and returns *this unchanged, so unary minus is a no-op. When the + # C++ operator is fixed, flip these expectations to -1.2 / negated + # means. + assert_scalar(-a, 1.2, 0.1) + assert_scalar(abs(c), 1.5, 0.2) + + assert_scalar(pow(a, 2.71), 1.639008390308, 0.370142728145) + assert_scalar(a.sq(), 1.44, 0.24) + assert_scalar(a.sqrt(), 1.095445115010, 0.045643546459) + assert_scalar(a.cb(), 1.728, 0.432) + assert_scalar(a.cbrt(), 1.062658569183, 0.029518293588) + assert_scalar(a.exp(), 3.320116922737, 0.332011692274) + assert_scalar(a.log(), 0.182321556794, 0.083333333333) + assert_scalar(a.sin(), 0.932039085967, 0.036235775448) + assert_scalar(a.cos(), 0.362357754477, 0.093203908597) + assert_scalar(a.tan(), 2.572151622126, 0.761596396721) + assert_scalar(a.tanh(), 0.833654607012, 0.030501999621) + + +def test_mcdata_vector(): X = MCVectorData(np.array([2.3, 1.2, 0.7]), np.array([0.01, 0.01, 0.01])) - Y = X+1. - - print("X:\n" + str_prec(X)) - print("Y:\n" + str_prec(Y)) - - print("X + Y:\n" + str_prec(X+Y)) - print("X + 2.:\n" + str_prec(X+2.)) - print("2. + X:\n" + str_prec(2.+X)) - - print("X + Y:\n" + str_prec(X+Y)) - print("X + 2.:\n" + str_prec(X+2.)) - print("2. + X:\n" + str_prec(2.+X)) - - print("X / Y:\n" + str_prec(X/Y)) - print("X / 2.:\n" + str_prec(X/2.)) - print("2. / X:\n" + str_prec(2./X)) - - print("X / Y:\n" + str_prec(X/Y)) - print("X / 2.:\n" + str_prec(X/2.)) - print("2. / X:\n" + str_prec(2./X)) - - print("-X:\n" + str_prec(-X)) - print("abs(X):\n" + str_prec(X)) - - print("pow(X,2.71):\n" + str_prec(pow(X,2.71))) - print("X.sq():\n" + str_prec(X.sq())) - print("X.sqrt():\n" + str_prec(X.sqrt())) - print("X.cb():\n" + str_prec(X.cb())) - print("X.cbrt():\n" + str_prec(X.cbrt())) - print("X.exp():\n" + str_prec(X.exp())) - print("X.log():\n" + str_prec(X.log())) - - print("X.sin():\n" + str_prec(X.sin())) - print("X.cos():\n" + str_prec(X.cos())) - print("X.tan():\n" + str_prec(X.tan())) - # print("X.asin():\n" + str_prec(X.asin())) - # print("X.acos():\n" + str_prec(X.acos())) - # print("X.atan():\n" + str_prec(X.atan())) - print("X.sinh():\n" + str_prec(X.sinh())) - print("X.cosh():\n" + str_prec(X.cosh())) - print("X.tanh():\n" + str_prec(X.tanh())) - - -if __name__ == '__main__': - test_mcdata() \ No newline at end of file + Y = X + 1.0 + + assert_vector(X, [2.3, 1.2, 0.7], [0.01] * 3) + assert_vector(Y, [3.3, 2.2, 1.7], [0.01] * 3) + + assert_vector(X + Y, [5.6, 3.4, 2.4], [0.014142135624] * 3) + assert_vector(X + 2.0, [4.3, 3.2, 2.7], [0.01] * 3) + assert_vector(2.0 + X, [4.3, 3.2, 2.7], [0.01] * 3) + + assert_vector(X / Y, + [0.696969696970, 0.545454545455, 0.411764705882], + [0.003693697954, 0.005177671110, 0.006361514294]) + assert_vector(X / 2.0, [1.15, 0.6, 0.35], [0.005] * 3) + assert_vector(2.0 / X, + [0.869565217391, 1.666666666667, 2.857142857143], + [0.003780718336, 0.013888888889, 0.040816326531]) + + # unary minus is a no-op — same libalps mcdata bug as in the scalar + # test above; flip to negated means once the C++ operator is fixed + assert_vector(-X, [2.3, 1.2, 0.7], [0.01] * 3) + assert_vector(abs(X), [2.3, 1.2, 0.7], [0.01] * 3) + + assert_vector(pow(X, 2.71), + [9.556138502711, 1.639008390308, 0.380378260851], + [0.112596240619, 0.037014272814, 0.014726072670]) + assert_vector(X.sq(), [5.29, 1.44, 0.49], [0.046, 0.024, 0.014]) + assert_vector(X.sqrt(), + [1.516575088810, 1.095445115010, 0.836660026534], + [0.003296902367, 0.004564354646, 0.005976143047]) + assert_vector(X.cb(), [12.167, 1.728, 0.343], [0.1587, 0.0432, 0.0147]) + assert_vector(X.cbrt(), + [1.320006121796, 1.062658569183, 0.887904001743], + [0.001913052350, 0.002951829359, 0.004228114294]) + assert_vector(X.exp(), + [9.974182454815, 3.320116922737, 2.013752707470], + [0.099741824548, 0.033201169227, 0.020137527075]) + assert_vector(X.log(), + [0.832909122935, 0.182321556794, -0.356674943939], + [0.004347826087, 0.008333333333, 0.014285714286]) + assert_vector(X.sin(), + [0.745705212177, 0.932039085967, 0.644217687238], + [0.006662760213, 0.003623577545, 0.007648421873]) + assert_vector(X.cos(), + [-0.666276021280, 0.362357754477, 0.764842187284], + [0.007457052122, 0.009320390860, 0.006442176872]) + assert_vector(X.tan(), + [-1.119213641734, 2.572151622126, 0.842288380463], + [0.022526391758, 0.076159639672, 0.017094497159]) + assert_vector(X.sinh(), + [4.936961805546, 1.509461355412, 0.758583701840], + [0.050372206493, 0.018106555673, 0.012551690056]) + assert_vector(X.cosh(), + [5.037220649269, 1.810655567324, 1.255169005631], + [0.049369618055, 0.015094613554, 0.007585837018]) + assert_vector(X.tanh(), + [0.980096396266, 0.833654607012, 0.604367777117], + [0.000394110540, 0.003050199962, 0.006347395900]) + + +if __name__ == "__main__": + test_mcdata_scalar() + test_mcdata_vector() + print("SUCCESS") diff --git a/test/pyalps/pyhdf5io_test.py b/test/pyalps/pyhdf5io_test.py index cdae9d723..2ee96a37f 100644 --- a/test/pyalps/pyhdf5io_test.py +++ b/test/pyalps/pyhdf5io_test.py @@ -1,4 +1,3 @@ -from __future__ import print_function # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # ALPS Project: Algorithms and Libraries for Physics Simulations # @@ -13,100 +12,172 @@ # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # +# Assertion-based HDF5 round-trip test. The expectations encode the +# legacy Boost.Python on-disk behaviour recorded in pyhdf5io.output: +# exact-type homogeneous lists keep their element type on disk +# ([1, 2, 3] stays int32), bool/mixed/ragged lists become groups that +# read back as lists, and equal-shape numpy-array lists stack into one +# dataset with numpy's dtype. + +import os +import tempfile + import numpy as np import pyalps.hdf5 as hdf5 -## Python 3 does not have `long` type anymore -import sys -if sys.version_info > (3,): - long = int -def test_hdf5io(): - ar = hdf5.archive('pyngs.h5', 'w') - a = np.array([1, 2, 3]); - b = np.array([1.1, 2.0, 3.5]); - c = np.array([1.1 + 1j, 2.0j, 3.5]); +def _write_all(ar): + a = np.array([1, 2, 3]) + c = np.array([1.1 + 1j, 2.0j, 3.5]) d = {"a": a, 2 + 3j: "foo"} - + ar["/list"] = [1, 2, 3] ar["/list2"] = [[[1, 2], [3, 4]], [[1, 2], [3, 4]], [[1, 2], [3, 4]], [[1, 2], [3, 4]]] ar["/tuple"] = (1, 2, 3) ar["/dict"] = {"scalar": 1, "numpy": a, "numpycpx": c, "list": [1, 2, 3], "string": "str", 1: 1, 4: d} ar["/numpy"] = a - ar["/numpy2"] = b + ar["/numpy2"] = np.array([1.1, 2.0, 3.5]) ar["/numpy3"] = c ar["/numpyel"] = a[0] - ar["/numpyel2"] = b[0] + ar["/numpyel2"] = np.array([1.1, 2.0, 3.5])[0] ar["/numpyel3"] = c[0] ar["/int"] = int(1) - ar["/long"] = long(1) + ar["/long"] = 1 ar["/double"] = float(1) ar["/complex"] = complex(1, 1) ar["/string"] = "str" - ar["/stringlist"] = ['a','list','of','strings'] + ar["/stringlist"] = ['a', 'list', 'of', 'strings'] ar["/inhomogenious"] = [[1, 2, 3], a, "gurke", [[a, 2, 3], ["x", complex(1, 1)]]] ar["/inhomogenious2"] = [[[1, 2], [3, 4]], [[1, 2], [3, 4]], [[1, 2], [3, 4]], [[1, 2], [3]]] ar["/inhomogenious3"] = [np.arange(3), np.arange(5)] ar["/inhomogenious4"] = [np.arange(3), 10 * np.arange(3)] ar["/inhomogenious5"] = [list(range(3)), list(range(5)), list(range(3))] - ar["/numpylist1"] = [np.arange(5), np.arange(5,10)] + ar["/numpylist1"] = [np.arange(5), np.arange(5, 10)] ar["/numpylist2"] = [np.arange(5), np.arange(10)] - - del ar - - ar = hdf5.archive('pyngs.h5', 'r') - - childs = ar.list_children('/') - l1 = ar["/list"] - l2 = ar["/list2"] - t1 = ar["/tuple"] - d1 = ar["/dict"] - n1 = ar["/numpy"] - n2 = ar["/numpy2"] - n3 = ar["/numpy3"] - e1 = ar["/numpyel"] - e2 = ar["/numpyel2"] - e3 = ar["/numpyel3"] - s1 = ar["/int"] - s2 = ar["/long"] - s3 = ar["/double"] - s4 = ar["/complex"] - s5 = ar["/string"] - ls = ar["/stringlist"] - i1 = ar["/inhomogenious"] - i2 = ar["/inhomogenious2"] - i3 = ar["/inhomogenious3"] - i4 = ar["/inhomogenious4"] - i5 = ar["/inhomogenious5"] - nl1 = ar["/numpylist1"] - nl2 = ar["/numpylist2"] - - print("childs: ", len(childs)) - print("/list: ", repr(l1)) - print("/list2: ", repr(l2)) - print("/tuple: ", repr(t1)) - print("/dict: ", repr(list(sorted(d1.items())))) - print("/numpy: ", repr(n1)) - print("/numpy2: ", repr(n2)) - print("/numpy3: ", repr(n3)) - print("/numpyel: ", repr(e1)) - print("/numpyel2: ", repr(e2)) - print("/numpyel3: ", repr(e3)) - print("/int: ", repr(s1)) - print("/long: ", repr(s1)) - print("/double: ", repr(s3)) - print("/complex: ", repr(s4)) - print("/string: ", repr(s5)) - print("/stringlist: ", repr(ls)) - print("/inhomogenious: ", repr(i1)) - print("/inhomogenious2: ", repr(i2)) - print("/inhomogenious3: ", repr(i3)) - print("/inhomogenious4: ", repr(i4)) - print("/inhomogenious5: ", repr(i5)) - print("/numpylist1: ", repr(nl1)) - print("/numpylist2: ", repr(nl2)) - - del ar - -if __name__ == '__main__': + # regression cases for the nanobind save path + ar["/floatlist"] = [1.5, 2.5] + ar["/cplxlist"] = [1 + 1j, 2j] + ar["/boollist"] = [True, False] + ar["/mixedlist"] = [1, 2.5] + ar["/biglist"] = [2 ** 40, 2 ** 41] + + +def _assert_int_array(value, expected, dtype=np.int32): + assert isinstance(value, np.ndarray), repr(value) + assert value.dtype == dtype, "expected %s, got %s" % (dtype, value.dtype) + np.testing.assert_array_equal(value, expected) + + +def test_hdf5io(): + with tempfile.TemporaryDirectory() as directory: + path = os.path.join(directory, "pyngs.h5") + ar = hdf5.archive(path, "w") + _write_all(ar) + del ar + + ar = hdf5.archive(path, "r") + + assert len(ar.list_children("/")) == 28 + + # homogeneous int lists/tuples keep the int element type on disk + _assert_int_array(ar["/list"], [1, 2, 3]) + _assert_int_array(ar["/tuple"], [1, 2, 3]) + list2 = ar["/list2"] + assert list2.dtype == np.int32 + assert list2.shape == (4, 2, 2) + np.testing.assert_array_equal(list2, [[[1, 2], [3, 4]]] * 4) + + # dict → group keyed by stringified keys + d = ar["/dict"] + assert sorted(d.keys()) == ["1", "4", "list", "numpy", "numpycpx", "scalar", "string"] + assert d["scalar"] == 1 and d["1"] == 1 and d["string"] == "str" + _assert_int_array(d["list"], [1, 2, 3]) + np.testing.assert_array_equal(d["numpy"], [1, 2, 3]) + np.testing.assert_allclose(d["numpycpx"], [1.1 + 1j, 2.0j, 3.5]) + assert d["4"]["(2+3j)"] == "foo" + np.testing.assert_array_equal(d["4"]["a"], [1, 2, 3]) + + # numpy arrays and scalars round-trip + np.testing.assert_array_equal(ar["/numpy"], [1, 2, 3]) + assert np.issubdtype(ar["/numpy"].dtype, np.integer) + np.testing.assert_allclose(ar["/numpy2"], [1.1, 2.0, 3.5]) + np.testing.assert_allclose(ar["/numpy3"], [1.1 + 1j, 2.0j, 3.5]) + assert ar["/numpyel"] == 1 + assert abs(ar["/numpyel2"] - 1.1) < 1e-12 + assert ar["/numpyel3"] == 1.1 + 1j + + # python scalars keep their types + assert type(ar["/int"]) is int and ar["/int"] == 1 + assert type(ar["/long"]) is int and ar["/long"] == 1 + assert type(ar["/double"]) is float and ar["/double"] == 1.0 + assert type(ar["/complex"]) is complex and ar["/complex"] == 1 + 1j + assert ar["/string"] == "str" + assert ar["/stringlist"] == ['a', 'list', 'of', 'strings'] + + # heterogeneous list → group, read back as a list + i1 = ar["/inhomogenious"] + assert isinstance(i1, list) and len(i1) == 4 + _assert_int_array(i1[0], [1, 2, 3]) + np.testing.assert_array_equal(i1[1], [1, 2, 3]) + assert i1[2] == "gurke" + np.testing.assert_array_equal(i1[3][0][0], [1, 2, 3]) + assert i1[3][0][1] == 2 and i1[3][0][2] == 3 + assert i1[3][1] == ["x", 1 + 1j] + + # rectangular prefix + one ragged entry → group of matrices + i2 = ar["/inhomogenious2"] + assert isinstance(i2, list) and len(i2) == 4 + for entry in i2[:3]: + assert entry.dtype == np.int32 and entry.shape == (2, 2) + np.testing.assert_array_equal(entry, [[1, 2], [3, 4]]) + _assert_int_array(i2[3][0], [1, 2]) + _assert_int_array(i2[3][1], [3]) + + # numpy-array lists: unequal shapes → group; equal shapes → stacked + i3 = ar["/inhomogenious3"] + assert isinstance(i3, list) and len(i3) == 2 + np.testing.assert_array_equal(i3[0], np.arange(3)) + np.testing.assert_array_equal(i3[1], np.arange(5)) + i4 = ar["/inhomogenious4"] + assert isinstance(i4, np.ndarray) and i4.shape == (2, 3) + assert np.issubdtype(i4.dtype, np.integer) + np.testing.assert_array_equal(i4, [[0, 1, 2], [0, 10, 20]]) + i5 = ar["/inhomogenious5"] + assert isinstance(i5, list) and len(i5) == 3 + for entry, size in zip(i5, (3, 5, 3)): + _assert_int_array(entry, np.arange(size)) + nl1 = ar["/numpylist1"] + assert isinstance(nl1, np.ndarray) and nl1.shape == (2, 5) + assert np.issubdtype(nl1.dtype, np.integer) + np.testing.assert_array_equal(nl1, [np.arange(5), np.arange(5, 10)]) + nl2 = ar["/numpylist2"] + assert isinstance(nl2, list) and len(nl2) == 2 + np.testing.assert_array_equal(nl2[0], np.arange(5)) + np.testing.assert_array_equal(nl2[1], np.arange(10)) + + # regression: homogeneous float / complex lists keep their type + fl = ar["/floatlist"] + assert fl.dtype == np.float64 + np.testing.assert_allclose(fl, [1.5, 2.5]) + cl = ar["/cplxlist"] + assert cl.dtype == np.complex128 + np.testing.assert_allclose(cl, [1 + 1j, 2j]) + + # regression: bool and mixed-type lists follow the legacy + # per-element group behaviour instead of silently widening + assert ar["/boollist"] == [True, False] + ml = ar["/mixedlist"] + assert ml == [1, 2.5] + assert type(ml[0]) is int and type(ml[1]) is float + + # regression: out-of-int32-range values widen to int64, not float + bl = ar["/biglist"] + assert np.issubdtype(bl.dtype, np.integer) + np.testing.assert_array_equal(bl, [2 ** 40, 2 ** 41]) + + del ar + + +if __name__ == "__main__": test_hdf5io() + print("SUCCESS") diff --git a/test/pyalps/test_binding_surface.py b/test/pyalps/test_binding_surface.py index 0d48df969..3e54bd13a 100644 --- a/test/pyalps/test_binding_surface.py +++ b/test/pyalps/test_binding_surface.py @@ -243,6 +243,117 @@ def test_current_python_numpy_and_scipy_compatibility(monkeypatch): assert isinstance(steady["value"], (bool, np.bool_)) +def test_params_mapping_equality_and_value_ladder(): + from pyalps import ngs + + # MutableMapping equality — lost by the old hasattr-guarded shim, + # present under the Boost.Python __bases__ inheritance + assert ngs.params({"a": 1}) == ngs.params({"a": 1}) + assert ngs.params({"a": 1}) != ngs.params({"a": 2}) + assert ngs.params({"a": 1}) == {"a": 1} + # and, like a Mapping with __eq__, unhashable + try: + hash(ngs.params({})) + raise AssertionError("params must be unhashable") + except TypeError: + pass + + p = ngs.params({}) + # None is rejected with a message that says so + try: + p["x"] = None + raise AssertionError("None must be rejected") + except TypeError as error: + assert "None" in str(error) + # oversized integers raise instead of truncating silently + try: + p["n"] = 2 ** 40 + raise AssertionError("2**40 must be rejected") + except TypeError as error: + assert "32-bit" in str(error) + # exact-type lists round-trip with their element type + p["ilist"] = [1, 2, 3] + assert p["ilist"] == [1, 2, 3] + assert all(type(v) is int for v in p["ilist"]) + p["flist"] = [1.5, 2.5] + assert p["flist"] == [1.5, 2.5] + p["slist"] = ["a", "b"] + assert p["slist"] == ["a", "b"] + # mixed numeric lists widen to double; complex scalars are stored + p["mixed"] = [1, 2.5] + assert p["mixed"] == [1.0, 2.5] + p["cplx"] = 1 + 2j + assert p["cplx"] == 1 + 2j + + +def test_observable_lshift_chains(): + from pyalps import ngs + + observables = ngs.observables() + observables.createRealObservable("chain") + observable = observables["chain"] + returned = (observable << 1.0) << 2.0 + assert returned is observable + assert ngs.observable2result(observable).count == 2 + + +def test_mcbase_save_load_overrides_reach_cpp_dispatch(): + from pyalps import ngs + from pyalps.cxx import pyngshdf5_c + + calls = [] + + class Simulation(ngs.mcbase): + def update(self): + pass + + def measure(self): + pass + + def fraction_completed(self): + return 1.0 + + def save(self, archive): + calls.append("save") + super().save(archive) + + def load(self, archive): + calls.append("load") + super().load(archive) + + simulation = Simulation({"SEED": 42}) + # the base save/load expects a non-empty measurements container + simulation.measurements << ngs.RealObservable("energy") + simulation.measurements["energy"] << 1.0 + with tempfile.TemporaryDirectory() as directory: + path = os.path.join(directory, "checkpoint.h5") + archive = pyngshdf5_c.hdf5_archive_impl(path, "w") + # Call through the base binding: this goes through C++ virtual + # dispatch — the same path any C++-side checkpoint takes — and + # must reach the Python override (trampoline forwards save/load). + ngs.mcbase.save(simulation, archive) + del archive + assert calls == ["save"] + + archive = pyngshdf5_c.hdf5_archive_impl(path, "r") + ngs.mcbase.load(simulation, archive) + del archive + assert calls == ["save", "load"] + + +def test_accumulator_result_inplace_identity(): + from pyalps.cxx.pyngsaccumulator_c import error_accumulator + + accumulator = error_accumulator() + accumulator(1.0) + accumulator(2.0) + result = accumulator.result() + alias = result + alias += 1.0 + assert alias is result + assert np.isclose(result.mean(), 2.5) + + def test_python3_property_comparison(monkeypatch): import pyalps import pyalps.apptest as apptest @@ -272,6 +383,10 @@ def GetProperties(self, filenames): test_name_encoding_roundtrip, test_accumulator_surface, test_optional_application_extension_surface, + test_params_mapping_equality_and_value_ladder, + test_observable_lshift_chains, + test_mcbase_save_load_overrides_reach_cpp_dispatch, + test_accumulator_result_inplace_identity, ): test() print("pyalps binding surface: green") From 89c0a5d832e521bc0a58f11235f3693d61dc1848 Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Tue, 18 Aug 2026 16:10:27 -0500 Subject: [PATCH 35/51] refactor: drop the legacy Boost.Python binding tree The nanobind bindings in bindings/python/pyalps fully replace the Boost.Python modules, but the old sources stayed in the tree: nothing built them, they declared the same module and type names as the shipped extensions, and they could no longer compile anyway because ALPS_HAVE_PYTHON (and paramvalue's boost::python::object variant alternative) is not emitted by any build. Remove them (audit issue 3): - src/alps/python/ and src/alps/ngs/python/ (the module sources) - src/alps/hdf5/python.{hpp,cpp}, src/alps/ngs/boost_python.hpp, src/alps/ngs/detail/{export_sim_to_python,get_numpy_type, extract_from_pyobject}.hpp, src/alps/ngs/lib/get_numpy_type.cpp - src/boost/mpi/module.cpp (the never-built mpi_c source) - applications/qmc/dwa/python/dwa.cpp (superseded by bindings/python/pyalps/cpp/apps/dwa.cpp) - the unbuilt Boost.Python export tutorials (tutorials/ngs/5_export_python, the code-07 export.{cpp,py} files) Collapse the now-unreachable ALPS_HAVE_PYTHON conditionals in the surviving headers and sources (mcanalyze, mcdata, value_with_error, params, paramvalue, paramvalue_reader, scheduler/proto/mcbase), which removes the boost::python::object declarations for good. No reference to boost::python remains outside explanatory comments. Validated: full wheel-deps SDK rebuild, pyalps wheel rebuild against it, and 22/22 Python tests green. Co-Authored-By: Claude Fable 5 --- applications/qmc/dwa/python/dwa.cpp | 130 ----- bindings/python/pyalps/cpp/ngs/mcbase.cpp | 10 +- src/alps/alea/mcanalyze.hpp | 13 - src/alps/alea/mcdata.hpp | 17 - src/alps/alea/value_with_error.hpp | 11 - src/alps/hdf5/python.cpp | 465 ------------------ src/alps/hdf5/python.hpp | 176 ------- src/alps/ngs/boost_python.hpp | 29 -- src/alps/ngs/detail/export_sim_to_python.hpp | 80 --- src/alps/ngs/detail/extract_from_pyobject.hpp | 98 ---- src/alps/ngs/detail/get_numpy_type.hpp | 57 --- src/alps/ngs/detail/paramvalue.hpp | 14 - src/alps/ngs/detail/paramvalue_reader.hpp | 77 --- src/alps/ngs/lib/get_numpy_type.cpp | 38 -- src/alps/ngs/lib/params.cpp | 25 - src/alps/ngs/lib/paramvalue.cpp | 44 -- src/alps/ngs/params.hpp | 8 - src/alps/ngs/python/accumulator.cpp | 400 --------------- src/alps/ngs/python/api.cpp | 35 -- src/alps/ngs/python/hdf5.cpp | 156 ------ src/alps/ngs/python/mcbase.cpp | 109 ---- src/alps/ngs/python/observable.cpp | 88 ---- src/alps/ngs/python/observables.cpp | 72 --- src/alps/ngs/python/params.cpp | 108 ---- src/alps/ngs/python/random01.cpp | 33 -- src/alps/ngs/python/result.cpp | 193 -------- src/alps/ngs/python/results.cpp | 52 -- src/alps/ngs/scheduler/proto/mcbase.hpp | 15 - src/alps/python/make_copy.hpp | 27 - src/alps/python/numpy_array.cpp | 84 ---- src/alps/python/numpy_array.hpp | 132 ----- src/alps/python/numpy_import.hpp | 63 --- src/alps/python/pyalea.cpp | 439 ----------------- src/alps/python/pymcdata.cpp | 355 ------------- src/alps/python/pytools.cpp | 115 ----- src/alps/python/save_observable_to_hdf5.hpp | 30 -- src/boost/mpi/module.cpp | 55 --- tutorials/code-07-mcmain-mcbase/export.cpp | 22 - tutorials/code-07-mcmain-mcbase/export.py | 61 --- .../heisenberg/o_n_model/export.cpp | 12 - tutorials/ngs/5_export_python/export2py.cpp | 22 - tutorials/ngs/5_export_python/ising.cpp | 102 ---- tutorials/ngs/5_export_python/ising.hpp | 51 -- tutorials/ngs/5_export_python/main.py | 62 --- 44 files changed, 3 insertions(+), 4182 deletions(-) delete mode 100644 applications/qmc/dwa/python/dwa.cpp delete mode 100644 src/alps/hdf5/python.cpp delete mode 100644 src/alps/hdf5/python.hpp delete mode 100644 src/alps/ngs/boost_python.hpp delete mode 100644 src/alps/ngs/detail/export_sim_to_python.hpp delete mode 100644 src/alps/ngs/detail/extract_from_pyobject.hpp delete mode 100644 src/alps/ngs/detail/get_numpy_type.hpp delete mode 100644 src/alps/ngs/lib/get_numpy_type.cpp delete mode 100644 src/alps/ngs/python/accumulator.cpp delete mode 100644 src/alps/ngs/python/api.cpp delete mode 100644 src/alps/ngs/python/hdf5.cpp delete mode 100644 src/alps/ngs/python/mcbase.cpp delete mode 100644 src/alps/ngs/python/observable.cpp delete mode 100644 src/alps/ngs/python/observables.cpp delete mode 100644 src/alps/ngs/python/params.cpp delete mode 100644 src/alps/ngs/python/random01.cpp delete mode 100644 src/alps/ngs/python/result.cpp delete mode 100644 src/alps/ngs/python/results.cpp delete mode 100644 src/alps/python/make_copy.hpp delete mode 100644 src/alps/python/numpy_array.cpp delete mode 100644 src/alps/python/numpy_array.hpp delete mode 100644 src/alps/python/numpy_import.hpp delete mode 100644 src/alps/python/pyalea.cpp delete mode 100644 src/alps/python/pymcdata.cpp delete mode 100644 src/alps/python/pytools.cpp delete mode 100644 src/alps/python/save_observable_to_hdf5.hpp delete mode 100644 src/boost/mpi/module.cpp delete mode 100644 tutorials/code-07-mcmain-mcbase/export.cpp delete mode 100644 tutorials/code-07-mcmain-mcbase/export.py delete mode 100644 tutorials/code-07-mcmain-mcbase/heisenberg/o_n_model/export.cpp delete mode 100644 tutorials/ngs/5_export_python/export2py.cpp delete mode 100644 tutorials/ngs/5_export_python/ising.cpp delete mode 100644 tutorials/ngs/5_export_python/ising.hpp delete mode 100644 tutorials/ngs/5_export_python/main.py diff --git a/applications/qmc/dwa/python/dwa.cpp b/applications/qmc/dwa/python/dwa.cpp deleted file mode 100644 index 9ada2d294..000000000 --- a/applications/qmc/dwa/python/dwa.cpp +++ /dev/null @@ -1,130 +0,0 @@ -/***************************************************************************** -* -* ALPS Project Applications: Directed Worm Algorithm -* -* Copyright (C) 2013 by Matthias Troyer , -* Lode Pollet , -* Ping Nang Ma -* -* ALPS Project: https://alps.comp-phys.org/ -* SPDX-License-Identifier: MIT -* -*****************************************************************************/ - - - -#include -#include -#include -#include - -#include "../worldlines.hpp" -#include "../bandstructure.hpp" - - -BOOST_PYTHON_MODULE(dwa_c) { - -boost::python::class_ >("std_vector_unsigned_int") - .def(boost::python::vector_indexing_suite >()) - ; -boost::python::class_ >("std_vector_double") - .def(boost::python::vector_indexing_suite >()) - ; -boost::python::class_ >("std_vector_unsigned_short") - .def(boost::python::vector_indexing_suite >()) - ; - -boost::python::class_ > >("std_vector_std_vector_double") - .def(boost::python::vector_indexing_suite > >()) - ; -boost::python::class_ > >("std_vector_std_vector_double") - .def(boost::python::vector_indexing_suite > >()) - ; -boost::python::class_ > >("std_vector_std_vector_unsigned_short") - .def(boost::python::vector_indexing_suite > >()) - ; - -boost::python::class_("kink", boost::python::init()) - .def(boost::python::init()) - - .def("__repr__", &kink::representation) - - .def("siteindicator", &kink::siteindicator) - .def("time" , &kink::time) - .def("state" , &kink::state) - ; - -boost::python::class_("location_type", boost::python::no_init); - -boost::python::class_("worldlines", boost::python::init<>()) - .def(boost::python::init()) - - .def("__repr__", &worldlines::representation) - - .def("load", static_cast(&worldlines::load)) - .def("save", static_cast(&worldlines::save)) - - .def("open_worldlines", &worldlines::open_worldlines) - - .def("worldlines_siteindicator" , &worldlines::worldlines_siteindicator) - .def("worldlines_time" , &worldlines::worldlines_time) - .def("worldlines_state" , &worldlines::worldlines_state) - - .def("num_sites", &worldlines::num_sites) - .def("num_kinks", &worldlines::num_kinks) - - .def("states", &worldlines::states) - - .def("location", &worldlines::location) - - .def("state_before", &worldlines::state_before) - .def("state", &worldlines::state) - - .def("is_valid", static_cast(&worldlines::is_valid)) - ; - -boost::python::class_("wormpair", boost::python::init<>()) - .def(boost::python::init()) - - .def("__repr__", &wormpair::representation) - - .def("wormhead", &wormpair::wormhead) - .def("wormtail", &wormpair::wormtail) - - .def("wormhead_site", &wormpair::site) - .def("wormhead_time", &wormpair::time) - .def("wormhead_forward", &wormpair::forward) - - .def("wormtail_site", &wormpair::wormtail_site) - .def("wormtail_time", &wormpair::wormtail_time) - - .def("next_partnersite", &wormpair::next_partnersite) - .def("next_time" , &wormpair::next_time) - - .def("wormhead_turns_around" , &wormpair::wormhead_turns_around) - .def("wormhead_moves_to_new_time" , &wormpair::wormhead_moves_to_new_time) - .def("wormhead_inserts_vertex_and_jumps_to_new_site" , &wormpair::wormhead_inserts_vertex_and_jumps_to_new_site) - .def("wormhead_deletes_vertex_and_jumps_to_new_site" , &wormpair::wormhead_deletes_vertex_and_jumps_to_new_site) - .def("wormhead_relinks_vertex_and_jumps_to_new_site" , &wormpair::wormhead_relinks_vertex_and_jumps_to_new_site) - .def("wormhead_crosses_vertex" , &wormpair::wormhead_crosses_vertex) - .def("wormhead_annihilates_wormtail" , &wormpair::wormhead_annihilates_wormtail) - ; - -boost::python::class_("bandstructure", boost::python::init()) - .def(boost::python::init()) - .def("__repr__", static_cast(&bandstructure::representation)) - - .def("t" , static_cast (bandstructure::*)()>(&bandstructure::get_t)) - .def("U" , static_cast(&bandstructure::get_U)) - .def("Ut" , static_cast (bandstructure::*)()>(&bandstructure::get_Ut)) - - .def("norm" , static_cast (bandstructure::*)()>(&bandstructure::get_norm)) - - .def("q" , static_cast (bandstructure::*)(unsigned int)>(&bandstructure::get_q)) - .def("wk2" , static_cast (bandstructure::*)(unsigned int)>(&bandstructure::get_wk2)) - - .def("wk2_c" , static_cast(&bandstructure::get_wk2_c)) - .def("wk2_d" , static_cast(&bandstructure::get_wk2_d)) - ; - -} diff --git a/bindings/python/pyalps/cpp/ngs/mcbase.cpp b/bindings/python/pyalps/cpp/ngs/mcbase.cpp index 21bc6bff1..a842a5c1b 100644 --- a/bindings/python/pyalps/cpp/ngs/mcbase.cpp +++ b/bindings/python/pyalps/cpp/ngs/mcbase.cpp @@ -35,13 +35,9 @@ // pattern becomes a standard trampoline-plus-alias pair. // // Params ingestion: the public alps::mcbase ctor wants an alps::params. -// libalps still declares a params(boost::python::dict) ctor in its -// header, but we don't want to drag boost::python through the -// nanobind bindings. Instead, we convert nb::dict → alps::params at the -// binding boundary through the shared ladder in ../dict_to_params.hpp, -// so mcbase, params and the application modules ingest parameters -// identically. That sidesteps the cross-registry issue and keeps the -// libalps ABI untouched. +// We convert nb::dict → alps::params at the binding boundary through +// the shared ladder in ../dict_to_params.hpp, so mcbase, params and +// the application modules ingest parameters identically. #define PY_ARRAY_UNIQUE_SYMBOL pyngsbase_PyArrayHandle #include #include diff --git a/src/alps/alea/mcanalyze.hpp b/src/alps/alea/mcanalyze.hpp index e8eff12fb..af8a90d0f 100644 --- a/src/alps/alea/mcanalyze.hpp +++ b/src/alps/alea/mcanalyze.hpp @@ -31,10 +31,6 @@ #include #include -#ifdef ALPS_HAVE_PYTHON - #include - #include -#endif #include @@ -134,9 +130,6 @@ class mctimeseries { // debug constructors. can eventually be deleted. mctimeseries(const std::vector& timeseries):_timeseries(new std::vector(timeseries)) {} -#ifdef ALPS_HAVE_PYTHON - mctimeseries(boost::python::object IN); -#endif // shallow assign void shallow_assign(const mctimeseries& IN) { @@ -165,9 +158,6 @@ class mctimeseries { // get functions inline std::vector timeseries() const {return *_timeseries;} -#ifdef ALPS_HAVE_PYTHON - boost::python::object timeseries_python() const; -#endif void print () const { using alps::numeric::operator<<; @@ -216,9 +206,6 @@ class mctimeseries_view { // this copies the sub-vector. is there a better way? inline std::vector timeseries() const {return std::vector(begin(), end());} -#ifdef ALPS_HAVE_PYTHON - boost::python::object timeseries_python() const; -#endif void print () const { using alps::numeric::operator<<; diff --git a/src/alps/alea/mcdata.hpp b/src/alps/alea/mcdata.hpp index c96a424d2..7579a02b5 100644 --- a/src/alps/alea/mcdata.hpp +++ b/src/alps/alea/mcdata.hpp @@ -60,19 +60,6 @@ #include #include -#ifdef ALPS_HAVE_PYTHON - - #include - - #ifdef tolower - #undef tolower - #endif - - #ifdef toupper - #undef toupper - #endif - -#endif namespace alps { namespace alea { @@ -166,10 +153,6 @@ namespace alps { , error_(error) {} - #ifdef ALPS_HAVE_PYTHON - mcdata(boost::python::object const & mean); - mcdata(boost::python::object const & mean, boost::python::object const & error); - #endif std::size_t size() const { return bins().size();} diff --git a/src/alps/alea/value_with_error.hpp b/src/alps/alea/value_with_error.hpp index 10e4b3069..65eff12e6 100644 --- a/src/alps/alea/value_with_error.hpp +++ b/src/alps/alea/value_with_error.hpp @@ -19,10 +19,6 @@ #include #include -#ifdef ALPS_HAVE_PYTHON -#include -#include -#endif #include #include @@ -53,9 +49,6 @@ namespace alps { public: // constructors, assignment operator -#ifdef ALPS_HAVE_PYTHON - value_with_error(boost::python::object const & mean_nparray, boost::python::object const & error_nparray); -#endif value_with_error(value_type mean =value_type(), value_type error =value_type()) : _mean(mean) , _error(error) @@ -72,10 +65,6 @@ namespace alps { inline value_type mean() const { return _mean; } inline value_type error() const { return _error; } -#ifdef ALPS_HAVE_PYTHON - boost::python::object mean_nparray() const; - boost::python::object error_nparray() const; -#endif // comparison inline bool operator==(value_with_error const & rhs) { return ((_mean == rhs._mean) && (_error == rhs._error)); } diff --git a/src/alps/hdf5/python.cpp b/src/alps/hdf5/python.cpp deleted file mode 100644 index 264181718..000000000 --- a/src/alps/hdf5/python.cpp +++ /dev/null @@ -1,465 +0,0 @@ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * * - * ALPS Project: Algorithms and Libraries for Physics Simulations * - * * - * ALPS Libraries * - * * - * Copyright (C) 2010 - 2011 by Lukas Gamper * - * * - * ALPS Project: https://alps.comp-phys.org/ * - * SPDX-License-Identifier: MIT * - * * - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -#include -#include -#include -#include -#include - -namespace alps { - namespace hdf5 { - - namespace detail { - - template bool is_vectorizable_generic(T const & value) { - static char const * scalar_types[] = { "int", "long", "float", "complex", "str" - , "numpy.str", "numpy.bool", "numpy.int8", "numpy.int16", "numpy.int32", "numpy.int64", "numpy.uint8" - , "numpy.uint16", "numpy.uint32", "numpy.uint64", "numpy.float32", "numpy.float64", "numpy.complex64", "numpy.complex128" }; - using boost::python::len; - using alps::hdf5::get_extent; - boost::python::ssize_t size = len(value); - if (size == 0) - return true; - else { - std::string first_dtype = boost::python::object(value[0]).ptr()->ob_type->tp_name; - bool next_homogenious; - std::vector first_extent; - if (first_dtype == "list") { - if (!is_vectorizable::apply(boost::python::extract(value[0])())) - return false; - first_extent = get_extent(boost::python::extract(value[0])()); - } else if (first_dtype == "tuple") { - if (!is_vectorizable::apply(boost::python::extract(value[0])())) - return false; - first_extent = get_extent(boost::python::extract(value[0])()); - } else if (first_dtype == "numpy.ndarray") - first_extent = get_extent(boost::python::extract(value[0])()); - for(boost::python::ssize_t i = 0; i < size; ++i) { - std::string dtype = boost::python::object(value[i]).ptr()->ob_type->tp_name; - if (dtype == "list") { - if (!is_vectorizable::apply(boost::python::extract(value[i])())) - return false; - std::vector extent = get_extent(boost::python::extract(value[i])()); - if (first_extent.size() != extent.size() || !std::equal(first_extent.begin(), first_extent.end(), extent.begin())) - return false; - } else if (dtype == "tuple") { - if (!is_vectorizable::apply(boost::python::extract(value[i])())) - return false; - std::vector extent = get_extent(boost::python::extract(value[i])()); - if (first_extent.size() != extent.size() || !std::equal(first_extent.begin(), first_extent.end(), extent.begin())) - return false; - } else if (dtype == "numpy.ndarray") { - std::vector extent = get_extent(boost::python::extract(value[i])()); - if (first_extent.size() != extent.size() || !std::equal(first_extent.begin(), first_extent.end(), extent.begin())) - return false; - } else if (first_dtype != dtype || find(scalar_types, scalar_types + 19, dtype) == scalar_types + 19) - return false; - } - return true; - } - } - bool is_vectorizable::apply(boost::python::list const & value) { - return is_vectorizable_generic(value); - } - bool is_vectorizable::apply(boost::python::tuple const & value) { - return is_vectorizable_generic(value); - } - - template std::vector get_extent_generic(T const & value) { - using boost::python::len; - using alps::hdf5::get_extent; - using alps::hdf5::is_vectorizable; - if (!is_vectorizable(value)) - throw archive_error("no rectengual matrix" + ALPS_STACKTRACE); - std::vector extent(1, len(value)); - std::string first_dtype = boost::python::object(value[0]).ptr()->ob_type->tp_name; - if (first_dtype == "list") { - std::vector first_extent(get_extent(boost::python::extract(value[0])())); - copy(first_extent.begin(), first_extent.end(), back_inserter(extent)); - } else if (first_dtype == "tuple") { - std::vector first_extent(get_extent(boost::python::extract(value[0])())); - copy(first_extent.begin(), first_extent.end(), back_inserter(extent)); - } else if (first_dtype == "numpy.ndarray") { - std::vector first_extent = get_extent(boost::python::extract(value[0])()); - copy(first_extent.begin(), first_extent.end(), back_inserter(extent)); - } - return extent; - } - std::vector get_extent::apply(boost::python::list const & value) { - return get_extent_generic(value); - } - std::vector get_extent::apply(boost::python::tuple const & value) { - return get_extent_generic(value); - } - - void set_extent::apply(boost::python::list & value, std::vector const & extent) {} - } - - template void save_generic( - archive & ar - , std::string const & path - , T const & value - , std::vector size - , std::vector chunk - , std::vector offset - ) { - using alps::cast; - using boost::python::len; - if (ar.is_group(path)) - ar.delete_group(path); - if (len(value) == 0) - ar.write(path, static_cast(NULL), std::vector()); - else if (is_vectorizable(value)) { - size.push_back(len(value)); - chunk.push_back(1); - offset.push_back(0); - for(boost::python::ssize_t i = 0; i < len(value); ++i) { - offset.back() = i; - save(ar, path, boost::python::object(value[i]), size, chunk, offset); - } - } else { - if (ar.is_data(path)) - ar.delete_data(path); - for(boost::python::ssize_t i = 0; i < len(value); ++i) - save(ar, path + "/" + cast(i), boost::python::object(value[i])); - } - } - - void save( - archive & ar - , std::string const & path - , boost::python::list const & value - , std::vector size - , std::vector chunk - , std::vector offset - ) { - save_generic(ar, path, value, size, chunk, offset); - } - - void save( - archive & ar - , std::string const & path - , boost::python::tuple const & value - , std::vector size - , std::vector chunk - , std::vector offset - ) { - save_generic(ar, path, value, size, chunk, offset); - } - - void load( - archive & ar - , std::string const & path - , boost::python::list & value - , std::vector chunk - , std::vector offset - ) { - if (ar.is_group(path)) { - std::vector list = ar.list_children(path); - if (list.size()) { - std::vector data; - load(ar, path, data, chunk, offset); - for (std::vector::const_iterator it = data.begin(); it != data.end(); ++it) - value.append(*it); - } - } else if (!ar.is_scalar(path) && ar.is_datatype(path)) { - if (ar.dimensions(path) != 1) - throw archive_error("More than 1 Dimension is not supported." + ALPS_STACKTRACE); - std::vector data; - load(ar, path, data, chunk, offset); - for (std::vector::const_iterator it = data.begin(); it != data.end(); ++it) - value.append(boost::python::str(*it)); - } - } - - namespace detail { - - bool is_vectorizable::apply(alps::python::numpy::array const & value) { - return true; - } - - std::vector get_extent::apply(alps::python::numpy::array const & value) { - if (!is_vectorizable::apply(value)) - throw archive_error("no rectangular matrix" + ALPS_STACKTRACE); - PyArrayObject * ptr = (PyArrayObject *)value.ptr(); - return std::vector(PyArray_DIMS(ptr), PyArray_DIMS(ptr) + PyArray_NDIM(ptr)); - } - - // To set the extent of a numpy array, we need the type, extent is set in load - void set_extent::apply(alps::python::numpy::array & value, std::vector const & extent) {} - - template void load_python_numeric( - archive & ar - , std::string const & path - , alps::python::numpy::array & value - , std::vector chunk - , std::vector offset - , int type - ) { - std::vector extent(ar.extent(path)); - if (ar.is_complex(path)) - extent.pop_back(); - std::vector npextent(extent.begin(), extent.end()); - std::size_t len = std::accumulate(extent.begin(), extent.end(), std::size_t(1), std::multiplies()); - value = alps::python::numpy::from_pyobject(boost::python::object(boost::python::handle<>(PyArray_SimpleNew(npextent.size(), &npextent.front(), type)))); - if (len) { - boost::scoped_ptr raw(new T[len]); - std::pair > data(raw.get(), extent); - load(ar, path, data, chunk, offset); - PyArrayObject * ptr = (PyArrayObject *)value.ptr(); - memcpy(PyArray_DATA(ptr), raw.get(), PyArray_ITEMSIZE(ptr) * PyArray_SIZE(ptr)); - } - } - } - - void save( - archive & ar - , std::string const & path - , alps::python::numpy::array const & value - , std::vector size - , std::vector chunk - , std::vector offset - ) { - import_numpy(); - if (ar.is_group(path)) - ar.delete_group(path); - PyArrayObject * ptr = (PyArrayObject *)value.ptr(); - if (!PyArray_Check(ptr)) - throw std::runtime_error("invalid numpy data" + ALPS_STACKTRACE); - else if (!PyArray_ISNOTSWAPPED(ptr)) - throw std::runtime_error("numpy array is not native" + ALPS_STACKTRACE); - else if (!(ptr = PyArray_GETCONTIGUOUS(ptr))) // this does Py_INCREF(ptr) - throw std::runtime_error("numpy array cannot be converted to continous array" + ALPS_STACKTRACE); - std::vector extent(PyArray_DIMS(ptr), PyArray_DIMS(ptr) + PyArray_NDIM(ptr)); - std::copy(extent.begin(), extent.end(), std::back_inserter(size)); - std::copy(extent.begin(), extent.end(), std::back_inserter(chunk)); - std::fill_n(std::back_inserter(offset), extent.size(), 0); - if (false); - #define NGS_PYTHON_HDF5_CHECK_NUMPY(T) \ - else if (PyArray_DESCR(ptr)->type_num == ::alps::detail::get_numpy_type(alps::detail::type_wrapper< T >::type())) { \ - save(ar, path, *static_cast< T const *>(PyArray_DATA(ptr)), size, chunk, offset); \ - if (has_complex_elements< T >::value) \ - ar.set_complex(path); \ - } - ALPS_NGS_FOREACH_NATIVE_NUMPY_TYPE(NGS_PYTHON_HDF5_CHECK_NUMPY) - #undef NGS_PYTHON_HDF5_CHECK_NUMPY - else - throw std::runtime_error("unknown numpy element type" + ALPS_STACKTRACE); - Py_DECREF((PyObject *)ptr); - } - - void load( - archive & ar - , std::string const & path - , alps::python::numpy::array & value - , std::vector chunk - , std::vector offset - ) { - import_numpy(); - if (false); - #define NGS_PYTHON_HDF5_LOAD_NUMPY(T) \ - else if (ar.is_datatype::type>(path) && ar.is_complex(path) == has_complex_elements< T >::value) \ - detail::load_python_numeric< T >(ar, path, value, chunk, offset, ::alps::detail::get_numpy_type(alps::detail::type_wrapper< T >::type())); - ALPS_NGS_FOREACH_NATIVE_NUMPY_TYPE(NGS_PYTHON_HDF5_LOAD_NUMPY) - #undef NGS_PYTHON_HDF5_LOAD_NUMPY - else - throw std::runtime_error("Unsupported type." + ALPS_STACKTRACE); - } - - void save( - archive & ar - , std::string const & path - , boost::python::dict const & value - , std::vector size - , std::vector chunk - , std::vector offset - ) { - if (ar.is_group(path)) - ar.delete_group(path); - const boost::python::list keys = value.keys(); - using boost::python::len; - for (boost::python::ssize_t i = 0; i < len(keys); ++i) { - boost::python::object pyk = keys[i]; - std::string k = boost::python::call_method(pyk.ptr(), "__str__"); - save( - ar - , ar.complete_path(path) + "/" + ar.encode_segment(k) - , value.get(pyk) - ); - } - } - - void load( - archive & ar - , std::string const & path - , boost::python::dict & value - , std::vector chunk - , std::vector offset - ) { - std::vector children = ar.list_children(path); - for (std::vector::const_iterator it = children.begin(); it != children.end(); ++it) { - boost::python::object item; - load(ar, path + "/" + *it, item); - boost::python::call_method(value.ptr(), "__setitem__", *it, item); - } - } - - namespace detail { - - bool is_vectorizable::apply(boost::python::object const & value) { - static char const * scalar_types[] = { "int", "long", "float", "complex", "str" - , "numpy.str", "numpy.bool", "numpy.int8", "numpy.int16", "numpy.int32", "numpy.int64", "numpy.uint8" - , "numpy.uint16", "numpy.uint32", "numpy.uint64", "numpy.float32", "numpy.float64", "numpy.complex64", "numpy.complex128" }; - std::string dtype = value.ptr()->ob_type->tp_name; - if (dtype == "list") - return is_vectorizable::apply(boost::python::extract(value)()); - else if (dtype == "numpy.ndarray") - return is_vectorizable::apply(boost::python::extract(value)()); - return find(scalar_types, scalar_types + 19, dtype) < scalar_types + 19; - } - - std::vector get_extent::apply(boost::python::object const & value) { - using alps::hdf5::get_extent; - std::string dtype = value.ptr()->ob_type->tp_name; - if (!is_vectorizable::apply(value)) - throw archive_error("no rectengual matrix" + ALPS_STACKTRACE); - if (dtype == "list") - return get_extent(boost::python::extract(value)()); - else if (dtype == "numpy.ndarray") - return get_extent(boost::python::extract(value)()); - else - return std::vector(); - } - - void set_extent::apply(boost::python::object & value, std::vector const & extent) {} - - struct save_python_object_visitor { - save_python_object_visitor( - archive & ar - , std::string const & path - , std::vector size - , std::vector chunk - , std::vector offset - ) - : _ar(ar) - , _path(path) - , _size(size) - , _chunk(chunk) - , _offset(offset) - {} - template void operator()(T const & value) { - save(_ar, _path, value, _size, _chunk, _offset); - if (has_complex_elements< T >::value) - _ar.set_complex(_path); - } - template void operator()(T const *, std::vector) { - throw std::runtime_error("Unsupported type." + ALPS_STACKTRACE); - } - archive & _ar; - std::string const & _path; - std::vector _size; - std::vector _chunk; - std::vector _offset; - }; - - template void load_python_object( - archive & ar - , std::string const & path - , boost::python::object & value - , std::vector chunk - , std::vector offset - , int type - ) { - T data; - load(ar, path, data, chunk, offset); - value = boost::python::object(data); - } - } - - void save( - archive & ar - , std::string const & path - , boost::python::object const & value - , std::vector size - , std::vector chunk - , std::vector offset - ) { - std::string dtype = value.ptr()->ob_type->tp_name; - if (dtype == "numpy.ndarray") - save(ar, path, boost::python::extract(value)(), size, chunk, offset); - else if (PyObject_HasAttrString(value.ptr(), "save") && std::string(PyObject_GetAttrString(value.ptr(), "save")->ob_type->tp_name) == "instancemethod") { - std::string context = ar.get_context(); - ar.set_context(ar.complete_path(path)); - boost::python::call_method(value.ptr(), "save", boost::python::object(ar)); - ar.set_context(context); - } else { - using ::alps::detail::extract_from_pyobject; - detail::save_python_object_visitor visitor(ar, path, size, chunk, offset); - extract_from_pyobject(visitor, value); - } - } - - void load( - archive & ar - , std::string const & path - , boost::python::object & value - , std::vector chunk - , std::vector offset - ) { - if (PyObject_HasAttrString(value.ptr(), "load") && std::string(PyObject_GetAttrString(value.ptr(), "load")->ob_type->tp_name) == "MethodType") { - std::string context = ar.get_context(); - ar.set_context(ar.complete_path(path)); - boost::python::call_method(value.ptr(), "load", boost::python::object(ar), path); - ar.set_context(context); - } else if (ar.is_group(path)) { - std::vector list = ar.list_children(path); - bool is_list = list.size(); - for (std::vector::const_iterator it = list.begin(); is_list && it != list.end(); ++it) { - for (std::string::const_iterator jt = it->begin(); is_list && jt != it->end(); ++jt) - if (std::string("1234567890").find_first_of(*jt) == std::string::npos) - is_list = false; - if (is_list && alps::cast(*it) > list.size() - 1) - is_list = false; - } - if (is_list) { - value = boost::python::list(); - load(ar, path, static_cast(value), chunk, offset); - } else { - value = boost::python::dict(); - load(ar, path, static_cast(value), chunk, offset); - } - } else if (ar.is_scalar(path) || (ar.is_datatype(path) && ar.is_complex(path) && ar.extent(path).size() == 1 && ar.extent(path)[0] == 2)) { - if (ar.is_datatype(path)) { - std::string data; - load(ar, path, data, chunk, offset); - value = boost::python::str(data); - #define NGS_PYTHON_HDF5_LOAD_SCALAR_NUMPY(T) \ - } else if (ar.is_datatype::type>(path) && ar.is_complex(path) == has_complex_elements< T >::value) { \ - detail::load_python_object< T >(ar, path, value, chunk, offset, ::alps::detail::get_numpy_type(alps::detail::type_wrapper< T >::type())); - ALPS_NGS_FOREACH_NATIVE_NUMPY_TYPE(NGS_PYTHON_HDF5_LOAD_SCALAR_NUMPY) - #undef NGS_PYTHON_HDF5_LOAD_SCALAR_NUMPY - } else - throw std::runtime_error("Unsupported type." + ALPS_STACKTRACE); - } else if (ar.is_datatype(path)) { - value = boost::python::list(); - load(ar, path, static_cast(value), chunk, offset); - } else { - alps::python::numpy::array array = alps::python::numpy::from_pyobject(boost::python::object()); - load(ar, path, array, chunk, offset); - value = array; - } - } - - } -} diff --git a/src/alps/hdf5/python.hpp b/src/alps/hdf5/python.hpp deleted file mode 100644 index 1fdbecf7b..000000000 --- a/src/alps/hdf5/python.hpp +++ /dev/null @@ -1,176 +0,0 @@ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * * - * ALPS Project: Algorithms and Libraries for Physics Simulations * - * * - * ALPS Libraries * - * * - * Copyright (C) 2010 - 2011 by Lukas Gamper * - * * - * ALPS Project: https://alps.comp-phys.org/ * - * SPDX-License-Identifier: MIT * - * * - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -#ifndef ALPS_NGS_HDF5_PYTHON_CPP -#define ALPS_NGS_HDF5_PYTHON_CPP - -#include -#include -#include -#include -#include -#include - -#include -#include - -#include - -#include -#include -#include - -#include -#include -#include - -namespace alps { - namespace hdf5 { - - namespace detail { - - template<> struct is_vectorizable { - static bool apply(boost::python::object const & value); - }; - - template<> struct get_extent { - static std::vector apply(boost::python::object const & value); - }; - - template<> struct set_extent { - static void apply(boost::python::object & value, std::vector const & extent); - }; - } - - ALPS_DECL void save( - archive & ar - , std::string const & path - , boost::python::object const & value - , std::vector size = std::vector() - , std::vector chunk = std::vector() - , std::vector offset = std::vector() - ); - - ALPS_DECL void load( - archive & ar - , std::string const & path - , boost::python::object & value - , std::vector chunk = std::vector() - , std::vector offset = std::vector() - ); - - namespace detail { - - template<> struct is_vectorizable { - static bool apply(boost::python::list const & value); - }; - - template<> struct get_extent { - static std::vector apply(boost::python::list const & value); - }; - - template<> struct set_extent { - static void apply(boost::python::list & value, std::vector const & extent); - }; - } - - ALPS_DECL void save( - archive & ar - , std::string const & path - , boost::python::list const & value - , std::vector size = std::vector() - , std::vector chunk = std::vector() - , std::vector offset = std::vector() - ); - - ALPS_DECL void load( - archive & ar - , std::string const & path - , boost::python::list & value - , std::vector chunk = std::vector() - , std::vector offset = std::vector() - ); - - namespace detail { - - template<> struct is_vectorizable { - static bool apply(boost::python::tuple const & value); - }; - - template<> struct get_extent { - static std::vector apply(boost::python::tuple const & value); - }; - } - - ALPS_DECL void save( - archive & ar - , std::string const & path - , boost::python::tuple const & value - , std::vector size = std::vector() - , std::vector chunk = std::vector() - , std::vector offset = std::vector() - ); - - namespace detail { - - template<> struct is_vectorizable { - static bool apply(alps::python::numpy::array const & value); - }; - - template<> struct get_extent { - static std::vector apply(alps::python::numpy::array const & value); - }; - - template<> struct set_extent { - // To set the extent of a numpy array, we need the type, extent is set in load - static void apply(alps::python::numpy::array & value, std::vector const & extent); - }; - } - - ALPS_DECL void save( - archive & ar - , std::string const & path - , alps::python::numpy::array const & value - , std::vector size = std::vector() - , std::vector chunk = std::vector() - , std::vector offset = std::vector() - ); - - ALPS_DECL void load( - archive & ar - , std::string const & path - , alps::python::numpy::array & value - , std::vector chunk = std::vector() - , std::vector offset = std::vector() - ); - - ALPS_DECL void save( - archive & ar - , std::string const & path - , boost::python::dict const & value - , std::vector size = std::vector() - , std::vector chunk = std::vector() - , std::vector offset = std::vector() - ); - - ALPS_DECL void load( - archive & ar - , std::string const & path - , boost::python::dict & value - , std::vector chunk = std::vector() - , std::vector offset = std::vector() - ); - } -} - -#endif diff --git a/src/alps/ngs/boost_python.hpp b/src/alps/ngs/boost_python.hpp deleted file mode 100644 index 676a7ea43..000000000 --- a/src/alps/ngs/boost_python.hpp +++ /dev/null @@ -1,29 +0,0 @@ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * * - * ALPS Project: Algorithms and Libraries for Physics Simulations * - * * - * ALPS Libraries * - * * - * Copyright (C) 2010 - 2011 by Lukas Gamper * - * * - * ALPS Project: https://alps.comp-phys.org/ * - * SPDX-License-Identifier: MIT * - * * - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -/// WARNING: This header has to be the first include ever! - -#ifndef ALPS_NGS_BOOST_PYTHON_HPP -#define ALPS_NGS_BOOST_PYTHON_HPP - -#include - -#ifdef tolower - #undef tolower -#endif - -#ifdef toupper - #undef toupper -#endif - -#endif diff --git a/src/alps/ngs/detail/export_sim_to_python.hpp b/src/alps/ngs/detail/export_sim_to_python.hpp deleted file mode 100644 index 643f00ba8..000000000 --- a/src/alps/ngs/detail/export_sim_to_python.hpp +++ /dev/null @@ -1,80 +0,0 @@ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * * - * ALPS Project: Algorithms and Libraries for Physics Simulations * - * * - * ALPS Libraries * - * * - * Copyright (C) 2010 - 2011 by Lukas Gamper * - * * - * ALPS Project: https://alps.comp-phys.org/ * - * SPDX-License-Identifier: MIT * - * * - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -#ifndef ALPS_NGS_DETAIL_EXPORT_SIM_TO_PYTHON_HPP -#define ALPS_NGS_DETAIL_EXPORT_SIM_TO_PYTHON_HPP - -#include - -#include - -#include -#include -#include -#include - -namespace alps { - - template class export2python_wrapper : public T { - - public: - - export2python_wrapper(typename T::parameters_type const & parm, std::size_t seed_offset = 0) - : T(parm, seed_offset) - {} - - typename T::results_type collect_results(typename T::result_names_type const & names = typename T::result_names_type()) { - return names.size() ? T::collect_results(names) : T::collect_results(); - } - - bool run(boost::python::object stop_callback) { - return T::run(boost::bind(&export2python_wrapper::run_helper, this, stop_callback)); - } - - alps::random01 & get_random() { - return T::random; - } - - typename T::parameters_type & get_parameters() { - return T::parameters; - } - - private: - - bool run_helper(boost::python::object stop_callback) { - return boost::python::call(stop_callback.ptr()); - } - }; - -} -BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(collect_results_overloads, collect_results, 0, 1) - -#define ALPS_EXPORT_SIM_TO_PYTHON(NAME, CLASS) \ - boost::python::class_< alps::export2python_wrapper< CLASS >, boost::noncopyable, boost::python::bases >( \ - #NAME , \ - boost::python::init< CLASS ::parameters_type const &, boost::python::optional >() \ - ) \ - .add_property("random", boost::python::make_function( \ - &alps::export2python_wrapper< CLASS >::get_random, boost::python::return_internal_reference<>()) \ - ) \ - .add_property("parameters", boost::python::make_function( \ - &alps::export2python_wrapper< CLASS >::get_parameters, boost::python::return_internal_reference<>()) \ - ) \ - .def("run", static_cast::*)(boost::python::object)>(&alps::export2python_wrapper< CLASS >::run)) \ - .def("resultNames", &alps::export2python_wrapper< CLASS >::result_names) \ - .def("unsavedResultNames", &alps::export2python_wrapper< CLASS >::unsaved_result_names) \ - .def("collectResults", &alps::export2python_wrapper< CLASS >::collect_results, collect_results_overloads(boost::python::args("names"))) \ - .def("save", static_cast::*)(alps::hdf5::archive &) const>(&alps::export2python_wrapper< CLASS >::save)) \ - .def("load", static_cast::*)(alps::hdf5::archive &)>(&alps::export2python_wrapper< CLASS >::load)) - -#endif diff --git a/src/alps/ngs/detail/extract_from_pyobject.hpp b/src/alps/ngs/detail/extract_from_pyobject.hpp deleted file mode 100644 index 24043e936..000000000 --- a/src/alps/ngs/detail/extract_from_pyobject.hpp +++ /dev/null @@ -1,98 +0,0 @@ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * * - * ALPS Project: Algorithms and Libraries for Physics Simulations * - * * - * ALPS Libraries * - * * - * Copyright (C) 2010 - 2012 by Lukas Gamper * - * * - * ALPS Project: https://alps.comp-phys.org/ * - * SPDX-License-Identifier: MIT * - * * - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -#ifndef ALPS_NGS_DETAIL_EXTRACT_FROM_PYOBJECT_HPP -#define ALPS_NGS_DETAIL_EXTRACT_FROM_PYOBJECT_HPP - -#include -#if defined(ALPS_HAVE_PYTHON) - - #include - #include - - #include - #include - #include - #include - - #include - #include - - #include - - namespace alps { - namespace detail { - - // TODO: move to file and use it in pyngshdf5 - template void extract_from_pyobject(T & visitor, boost::python::object const & data) { - import_numpy(); - std::string dtype = data.ptr()->ob_type->tp_name; - if (dtype == "bool") visitor(boost::python::extract(data)()); - else if (dtype == "int") visitor(boost::python::extract(data)()); - else if (dtype == "long") visitor(boost::python::extract(data)()); - else if (dtype == "float") visitor(boost::python::extract(data)()); - else if (dtype == "complex") visitor(boost::python::extract >(data)()); - else if (dtype == "str") visitor(boost::python::extract(data)()); - else if (dtype == "list") visitor(boost::python::list(data)); - else if (dtype == "tuple") visitor(boost::python::list(data)); - else if (dtype == "dict") visitor(boost::python::dict(data)); - else if (dtype == "numpy.str") visitor(boost::python::call_method(data.ptr(), "__str__")); - else if (dtype == "numpy.bool") visitor(boost::python::call_method(data.ptr(), "__bool__")); - else if (dtype == "numpy.int8") visitor(static_cast(PyArrayScalar_VAL(data.ptr(),Int8))); - else if (dtype == "numpy.int16") visitor(static_cast(PyArrayScalar_VAL(data.ptr(),Int16))); - else if (dtype == "numpy.int32") visitor(static_cast(PyArrayScalar_VAL(data.ptr(),Int32))); - else if (dtype == "numpy.int64") visitor(static_cast(PyArrayScalar_VAL(data.ptr(),Int64))); - else if (dtype == "numpy.uint8") visitor(static_cast(PyArrayScalar_VAL(data.ptr(),UInt8))); - else if (dtype == "numpy.uint16") visitor(static_cast(PyArrayScalar_VAL(data.ptr(),UInt16))); - else if (dtype == "numpy.uint32") visitor(static_cast(PyArrayScalar_VAL(data.ptr(),UInt32))); - else if (dtype == "numpy.uint64") visitor(static_cast(PyArrayScalar_VAL(data.ptr(),UInt64))); - else if (dtype == "numpy.float32") visitor(static_cast(boost::python::call_method(data.ptr(), "__float__"))); - else if (dtype == "numpy.float64") visitor(static_cast(boost::python::call_method(data.ptr(), "__float__"))); - else if (dtype == "numpy.complex64") - visitor(std::complex( - boost::python::call_method(PyObject_GetAttr(data.ptr(), boost::python::str("real").ptr()), "__float__") - , boost::python::call_method(PyObject_GetAttr(data.ptr(), boost::python::str("imag").ptr()), "__float__") - )); - else if (dtype == "numpy.complex128") - visitor(std::complex( - boost::python::call_method(PyObject_GetAttr(data.ptr(), boost::python::str("real").ptr()), "__float__") - , boost::python::call_method(PyObject_GetAttr(data.ptr(), boost::python::str("imag").ptr()), "__float__") - )); - else if (dtype == "numpy.ndarray") { - PyArrayObject * ptr = (PyArrayObject *)data.ptr(); - if (!PyArray_Check(ptr)) - throw std::runtime_error("invalid numpy data" + ALPS_STACKTRACE); - else if (!PyArray_ISNOTSWAPPED(ptr)) - throw std::runtime_error("numpy array is not native" + ALPS_STACKTRACE); - else if (!(ptr = PyArray_GETCONTIGUOUS(ptr))) - throw std::runtime_error("numpy array cannot be converted to continous array" + ALPS_STACKTRACE); - #define ALPS_NGS_EXTRACT_FROM_PYOBJECT_CHECK_NUMPY(T) \ - else if (PyArray_DESCR(ptr)->type_num == detail::get_numpy_type(type_wrapper< T >::type())) \ - visitor( \ - static_cast< T const *>(PyArray_DATA(ptr)) \ - , std::vector(PyArray_DIMS(ptr), PyArray_DIMS(ptr) + PyArray_NDIM(ptr)) \ - ); - ALPS_NGS_FOREACH_NATIVE_NUMPY_TYPE(ALPS_NGS_EXTRACT_FROM_PYOBJECT_CHECK_NUMPY) - #undef ALPS_NGS_EXTRACT_FROM_PYOBJECT_CHECK_NUMPY - else - throw std::runtime_error("Unknown numpy element type: " + cast(PyArray_DESCR(ptr)->type_num) + ALPS_STACKTRACE); - Py_DECREF((PyObject *)ptr); - } else - throw std::runtime_error("Unsupported type: " + dtype + ALPS_STACKTRACE); - } - } - } - -#endif - -#endif diff --git a/src/alps/ngs/detail/get_numpy_type.hpp b/src/alps/ngs/detail/get_numpy_type.hpp deleted file mode 100644 index 4b9c0bbfc..000000000 --- a/src/alps/ngs/detail/get_numpy_type.hpp +++ /dev/null @@ -1,57 +0,0 @@ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * * - * ALPS Project: Algorithms and Libraries for Physics Simulations * - * * - * ALPS Libraries * - * * - * Copyright (C) 2010 - 2012 by Lukas Gamper * - * * - * ALPS Project: https://alps.comp-phys.org/ * - * SPDX-License-Identifier: MIT * - * * - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -#ifndef ALPS_NGS_DETAIL_GET_NUMPY_TYPE_HPP -#define ALPS_NGS_DETAIL_GET_NUMPY_TYPE_HPP - -#include - -#if !defined(ALPS_HAVE_PYTHON) - #error numpy is only available if python is enabled -#endif - -#include -#include - -#include - -#define ALPS_NGS_FOREACH_NATIVE_NUMPY_TYPE(CALLBACK) \ - CALLBACK(bool) \ - CALLBACK(char) \ - CALLBACK(signed char) \ - CALLBACK(unsigned char) \ - CALLBACK(short) \ - CALLBACK(unsigned short) \ - CALLBACK(int) \ - CALLBACK(unsigned) \ - CALLBACK(long) \ - CALLBACK(unsigned long) \ - CALLBACK(long long) \ - CALLBACK(unsigned long long) \ - CALLBACK(float) \ - CALLBACK(double) \ - CALLBACK(long double) \ - CALLBACK(std::complex) \ - CALLBACK(std::complex) \ - CALLBACK(std::complex) - -namespace alps { - namespace detail { - #define ALPS_NGS_DECL_NUMPY_TYPE(T) \ - ALPS_DECL int get_numpy_type(T); - ALPS_NGS_FOREACH_NATIVE_NUMPY_TYPE(ALPS_NGS_DECL_NUMPY_TYPE) - #undef ALPS_NGS_DECL_NUMPY_TYPE - } -} - -#endif diff --git a/src/alps/ngs/detail/paramvalue.hpp b/src/alps/ngs/detail/paramvalue.hpp index 8138cb3eb..624349b5f 100644 --- a/src/alps/ngs/detail/paramvalue.hpp +++ b/src/alps/ngs/detail/paramvalue.hpp @@ -19,9 +19,6 @@ #include #include -#if defined(ALPS_HAVE_PYTHON) - #include -#endif #include #include @@ -48,14 +45,8 @@ CALLBACK(std::vector) \ CALLBACK(std::vector >) -#if defined(ALPS_HAVE_PYTHON) - #define ALPS_NGS_FOREACH_PARAMETERVALUE_TYPE(CALLBACK) \ - ALPS_NGS_FOREACH_PARAMETERVALUE_TYPE_NO_PYTHON(CALLBACK) \ - CALLBACK(boost::python::object) -#else #define ALPS_NGS_FOREACH_PARAMETERVALUE_TYPE(CALLBACK) \ ALPS_NGS_FOREACH_PARAMETERVALUE_TYPE_NO_PYTHON(CALLBACK) -#endif namespace alps { @@ -89,11 +80,6 @@ namespace alps { template <> struct paramvalue_index > > { enum { value = 8 }; }; - #if defined(ALPS_HAVE_PYTHON) - template <> struct paramvalue_index { - enum { value = 9 }; - }; - #endif class paramvalue; diff --git a/src/alps/ngs/detail/paramvalue_reader.hpp b/src/alps/ngs/detail/paramvalue_reader.hpp index d0dabce1b..f0db912ed 100644 --- a/src/alps/ngs/detail/paramvalue_reader.hpp +++ b/src/alps/ngs/detail/paramvalue_reader.hpp @@ -19,12 +19,6 @@ #include -#if defined(ALPS_HAVE_PYTHON) - #include - #include - - #include -#endif namespace alps { namespace detail { @@ -39,15 +33,6 @@ namespace alps { throw std::runtime_error(std::string("cannot cast from std::vector<") + typeid(U).name() + "> to " + typeid(T).name() + ALPS_STACKTRACE); } - #if defined(ALPS_HAVE_PYTHON) - void operator()(boost::python::list const &) { - throw std::runtime_error(std::string("cannot cast from boost::python::list ") + typeid(T).name() + ALPS_STACKTRACE); - } - - void operator()(boost::python::dict const &) { - throw std::invalid_argument("python dict cannot be used in alps::params" + ALPS_STACKTRACE); - } - #endif T value; }; @@ -66,19 +51,6 @@ namespace alps { (*this)(*it); } - #if defined(ALPS_HAVE_PYTHON) - void operator()(boost::python::list const & data) { - for(boost::python::ssize_t i = 0; i < boost::python::len(data); ++i) { - paramvalue_reader_visitor scalar; - extract_from_pyobject(scalar, data[i]); - value.push_back(scalar.value); - } - } - - void operator()(boost::python::dict const &) { - throw std::invalid_argument("python dict cannot be used in alps::params" + ALPS_STACKTRACE); - } - #endif std::vector value; }; @@ -97,16 +69,6 @@ namespace alps { value += (it == ptr ? "," : "") + cast(*it); } - #if defined(ALPS_HAVE_PYTHON) - void operator()(boost::python::list const & data) { - for(boost::python::ssize_t i = 0; i < boost::python::len(data); ++i) - value += (value.size() ? "," : "") + boost::python::call_method(boost::python::object(data[i]).ptr(), "__str__"); - } - - void operator()(boost::python::dict const &) { - throw std::invalid_argument("python dict cannot be used in alps::params" + ALPS_STACKTRACE); - } - #endif std::string value; }; @@ -128,11 +90,6 @@ namespace alps { visitor.value = v; } - #if defined(ALPS_HAVE_PYTHON) - void operator()(boost::python::object const & v) const { - extract_from_pyobject(visitor, v); - } - #endif T const & get_value() { return visitor.value; @@ -143,40 +100,6 @@ namespace alps { mutable paramvalue_reader_visitor visitor; }; - #if defined(ALPS_HAVE_PYTHON) - template<> struct paramvalue_reader - : public boost::static_visitor<> - { - public: - - template void operator()(U const & v) const { - value = boost::python::object(v); - } - - template void operator()(std::vector const & v) const { - npy_intp npsize = v.size(); - value = boost::python::object(boost::python::handle<>(PyArray_SimpleNew(1, &npsize, detail::get_numpy_type(U())))); - PyArrayObject * ptr = (PyArrayObject *)value.ptr(); - memcpy(PyArray_DATA(ptr), &v.front(), PyArray_ITEMSIZE(ptr) * PyArray_SIZE(ptr)); - } - - void operator()(std::vector const & v) const { - value = boost::python::list(v); - } - - void operator()(boost::python::object const & v) const { - value = v; - } - - boost::python::object const & get_value() { - return value; - } - - private: - - mutable boost::python::object value; - }; - #endif } } diff --git a/src/alps/ngs/lib/get_numpy_type.cpp b/src/alps/ngs/lib/get_numpy_type.cpp deleted file mode 100644 index 4f1cb1d28..000000000 --- a/src/alps/ngs/lib/get_numpy_type.cpp +++ /dev/null @@ -1,38 +0,0 @@ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * * - * ALPS Project: Algorithms and Libraries for Physics Simulations * - * * - * ALPS Libraries * - * * - * Copyright (C) 2010 - 2012 by Lukas Gamper * - * * - * ALPS Project: https://alps.comp-phys.org/ * - * SPDX-License-Identifier: MIT * - * * - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -#include - -namespace alps { - namespace detail { - - int get_numpy_type(bool) { return NPY_BOOL; } - int get_numpy_type(char) { return NPY_CHAR; } - int get_numpy_type(unsigned char) { return NPY_UBYTE; } - int get_numpy_type(signed char) { return NPY_BYTE; } - int get_numpy_type(short) { return NPY_SHORT; } - int get_numpy_type(unsigned short) { return NPY_USHORT; } - int get_numpy_type(int) { return NPY_INT; } - int get_numpy_type(unsigned int) { return NPY_UINT; } - int get_numpy_type(long) { return NPY_LONG; } - int get_numpy_type(unsigned long) { return NPY_ULONG; } - int get_numpy_type(long long) { return NPY_LONGLONG; } - int get_numpy_type(unsigned long long) { return NPY_ULONGLONG; } - int get_numpy_type(float) { return NPY_FLOAT; } - int get_numpy_type(double) { return NPY_DOUBLE; } - int get_numpy_type(long double) { return NPY_LONGDOUBLE; } - int get_numpy_type(std::complex) { return NPY_CFLOAT; } - int get_numpy_type(std::complex) { return NPY_CDOUBLE; } - int get_numpy_type(std::complex) { return NPY_CLONGDOUBLE; } - } -} diff --git a/src/alps/ngs/lib/params.cpp b/src/alps/ngs/lib/params.cpp index 0bcbfb81d..2d6a057d0 100644 --- a/src/alps/ngs/lib/params.cpp +++ b/src/alps/ngs/lib/params.cpp @@ -38,31 +38,6 @@ namespace alps { } } - #ifdef ALPS_HAVE_PYTHON - params::params(boost::python::dict const & arg) { - boost::python::extract dict(arg); - if (!dict.check()) - throw std::invalid_argument("parameters can only be created from a dict" + ALPS_STACKTRACE); - const boost::python::list keys = dict().keys(); - for (std::size_t i = 0; i < boost::python::len(keys); ++i) { - boost::python::object pyk = keys[i]; - std::string k = boost::python::call_method(pyk.ptr(), "__str__"); - setter(k, dict().get(pyk)); - } - } - - // TODO: merge with params::params(boost::filesystem::path const & path); - params::params(boost::python::str const & arg) { - std::string path = boost::python::extract(arg)(); - boost::filesystem::ifstream ifs(path); - Parameters par(ifs); - for (Parameters::const_iterator it = par.begin(); it != par.end(); ++it) { - detail::paramvalue val(it->value()); - setter(it->key(), val); - } - } - - #endif std::size_t params::size() const { return keys.size(); diff --git a/src/alps/ngs/lib/paramvalue.cpp b/src/alps/ngs/lib/paramvalue.cpp index 39fa46bab..194b85d47 100644 --- a/src/alps/ngs/lib/paramvalue.cpp +++ b/src/alps/ngs/lib/paramvalue.cpp @@ -21,39 +21,6 @@ namespace alps { namespace detail { - #if defined(ALPS_HAVE_PYTHON) - struct paramvalue_save_python_visitor { - - paramvalue_save_python_visitor(hdf5::archive & a) - : ar(a) - {} - - template void operator()(U const & data) { - ar[""] << data; - } - - template void operator()(U * const ptr, std::vector const & size) { - ar << make_pvp("", ptr, size); - } - - void operator()(boost::python::list const & raw) { - std::vector data; - for(boost::python::ssize_t i = 0; i < boost::python::len(raw); ++i) { - // TODO: also consider other types than strings ... - paramvalue_reader_visitor scalar; - extract_from_pyobject(scalar, raw[i]); - data.push_back(scalar.value); - } - ar[""] << data; - } - - void operator()(boost::python::dict const &) { - throw std::invalid_argument("python dict cannot be used in alps::params" + ALPS_STACKTRACE); - } - - hdf5::archive & ar; - }; - #endif struct paramvalue_saver: public boost::static_visitor<> { @@ -65,12 +32,6 @@ namespace alps { ar[""] << v; } - #if defined(ALPS_HAVE_PYTHON) - void operator()(boost::python::object const & v) const { - paramvalue_save_python_visitor visitor(ar); - extract_from_pyobject(visitor, v); - } - #endif hdf5::archive & ar; }; @@ -84,11 +45,6 @@ namespace alps { os << short_print(v); } - #if defined(ALPS_HAVE_PYTHON) - void operator()(boost::python::object const & v) const { - os << boost::python::call_method(v.ptr(), "__str__"); - } - #endif private: diff --git a/src/alps/ngs/params.hpp b/src/alps/ngs/params.hpp index 674f771d3..d625a107c 100644 --- a/src/alps/ngs/params.hpp +++ b/src/alps/ngs/params.hpp @@ -20,10 +20,6 @@ #include #include -#ifdef ALPS_HAVE_PYTHON - #include - #include -#endif #include #include @@ -64,10 +60,6 @@ namespace alps { params(boost::filesystem::path const &); - #ifdef ALPS_HAVE_PYTHON - params(boost::python::dict const & arg); - params(boost::python::str const & arg); - #endif std::size_t size() const; diff --git a/src/alps/ngs/python/accumulator.cpp b/src/alps/ngs/python/accumulator.cpp deleted file mode 100644 index 62d1d513f..000000000 --- a/src/alps/ngs/python/accumulator.cpp +++ /dev/null @@ -1,400 +0,0 @@ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * * - * ALPS Project: Algorithms and Libraries for Physics Simulations * - * * - * ALPS Libraries * - * * - * Copyright (C) 2010 - 2011 by Lukas Gamper * - * * - * ALPS Project: https://alps.comp-phys.org/ * - * SPDX-License-Identifier: MIT * - * * - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -#include -#include - -#include -#include - -#include -#include - -#include -#include - -namespace alps { - namespace accumulator { - namespace python { - - class object_wrapper { - public: - object_wrapper() {} - template object_wrapper(T arg, typename boost::enable_if >::type* = NULL): obj(arg) {} - object_wrapper(boost::python::object arg): obj(arg) {} - - operator boost::python::object() { return obj; } - operator const boost::python::object() const { return obj; } - - boost::python::object & get() { return obj; } - boost::python::object const &get() const { return obj; } - - void print(std::ostream & os) const { - os << boost::python::call_method(obj.ptr(), "__str__"); - } - - #define ALPS_ACCUMULATOR_PYTHON_MEMBER_NUMERIC_OPERATOR(cxxiop, cxxop, iop, op) \ - object_wrapper & cxxiop (object_wrapper const arg) { \ - if (obj == boost::python::object()) \ - obj = arg.obj; \ - else \ - obj iop arg.obj; \ - return *this; \ - } \ - object_wrapper & cxxiop (double arg) { \ - if (obj == boost::python::object()) \ - obj = boost::python::object(arg); \ - else \ - obj iop boost::python::object(arg); \ - return *this; \ - } \ - object_wrapper cxxop (object_wrapper const arg) const { \ - return obj op arg.obj; \ - } \ - object_wrapper cxxop (double arg) const { \ - return obj op boost::python::object(arg); \ - } - ALPS_ACCUMULATOR_PYTHON_MEMBER_NUMERIC_OPERATOR(operator+=, operator+, +=, +) - ALPS_ACCUMULATOR_PYTHON_MEMBER_NUMERIC_OPERATOR(operator-=, operator-, -=, -) - ALPS_ACCUMULATOR_PYTHON_MEMBER_NUMERIC_OPERATOR(operator*=, operator*, *=, *) - ALPS_ACCUMULATOR_PYTHON_MEMBER_NUMERIC_OPERATOR(operator/=, operator/, /=, /) - #undef ALPS_ACCUMULATOR_PYTHON_MEMBER_NUMERIC_OPERATOR - - #define ALPS_ACCUMULATOR_PYTHON_MEMBER_COMARISON_OPERATOR(cxxop, op) \ - bool cxxop (object_wrapper const arg) const { \ - return obj op arg.obj; \ - } - ALPS_ACCUMULATOR_PYTHON_MEMBER_COMARISON_OPERATOR(operator==, ==) - ALPS_ACCUMULATOR_PYTHON_MEMBER_COMARISON_OPERATOR(operator!=, !=) - ALPS_ACCUMULATOR_PYTHON_MEMBER_COMARISON_OPERATOR(operator<, <) - ALPS_ACCUMULATOR_PYTHON_MEMBER_COMARISON_OPERATOR(operator<=, <=) - ALPS_ACCUMULATOR_PYTHON_MEMBER_COMARISON_OPERATOR(operator>, >) - ALPS_ACCUMULATOR_PYTHON_MEMBER_COMARISON_OPERATOR(operator>=, >=) - #undef ALPS_ACCUMULATOR_PYTHON_MEMBER_COMARISON_OPERATOR - - object_wrapper operator- () { - return boost::python::call_method(obj.ptr(), "__neg__"); - } - - private: - boost::python::object obj; - }; - - inline std::ostream & operator<<(std::ostream & os, object_wrapper const & arg) { - arg.print(os); - return os; - } - - #define ALPS_ACCUMULATOR_FREE_MEMBER_OPERATOR(cxxop, op) \ - inline object_wrapper cxxop (double arg1, object_wrapper const & arg2) { \ - return boost::python::object(arg1) op arg2.get(); \ - } - ALPS_ACCUMULATOR_FREE_MEMBER_OPERATOR(operator+, +) - ALPS_ACCUMULATOR_FREE_MEMBER_OPERATOR(operator-, -) - ALPS_ACCUMULATOR_FREE_MEMBER_OPERATOR(operator*, *) - ALPS_ACCUMULATOR_FREE_MEMBER_OPERATOR(operator/, /) - #undef ALPS_ACCUMULATOR_FREE_MEMBER_OPERATOR - - template void magic_call(T & self, boost::python::object arg) { self(object_wrapper(arg)); } - - template std::string magic_str(T & self) { - std::stringstream ss; - self.print(ss); - return ss.str(); - } - - #define ALPS_ACCUMULATOR_PYTHON_FUNCTION(name) \ - object_wrapper name (object_wrapper const & arg) { \ - boost::python::object np = boost::python::import("numpy"); \ - return boost::python::call_method(np.ptr(), #name, arg.get()); \ - } - ALPS_ACCUMULATOR_PYTHON_FUNCTION(sin) - ALPS_ACCUMULATOR_PYTHON_FUNCTION(cos) - ALPS_ACCUMULATOR_PYTHON_FUNCTION(tan) - ALPS_ACCUMULATOR_PYTHON_FUNCTION(sinh) - ALPS_ACCUMULATOR_PYTHON_FUNCTION(cosh) - ALPS_ACCUMULATOR_PYTHON_FUNCTION(tanh) - // ALPS_ACCUMULATOR_PYTHON_FUNCTION(asin) - // ALPS_ACCUMULATOR_PYTHON_FUNCTION(acos) - // ALPS_ACCUMULATOR_PYTHON_FUNCTION(atan) - ALPS_ACCUMULATOR_PYTHON_FUNCTION(abs) - ALPS_ACCUMULATOR_PYTHON_FUNCTION(sqrt) - ALPS_ACCUMULATOR_PYTHON_FUNCTION(log) - // ALPS_ACCUMULATOR_PYTHON_FUNCTION(sq) - // ALPS_ACCUMULATOR_PYTHON_FUNCTION(cb) - // ALPS_ACCUMULATOR_PYTHON_FUNCTION(cbrt) - #undef ALPS_ACCUMULATOR_PYTHON_FUNCTION - - template typename T::result_type result(T & self) { return typename T::result_type(self); } - - template typename T::result_type neg_result(typename T::result_type self) { self.negate(); return self; } - - template typename T::result_type add_result(typename T::result_type self, typename T::result_type const & arg) { self += arg; return self; } - template typename T::result_type add_double(typename T::result_type self, double arg) { self += arg; return self; } - - template typename T::result_type sub_result(typename T::result_type self, typename T::result_type const & arg) { self -= arg; return self; } - template typename T::result_type sub_double(typename T::result_type self, double arg) { self -= arg; return self; } - template typename T::result_type rsub_double(typename T::result_type self, double arg) { self.negate(); self += arg; return self; } - - template typename T::result_type mul_result(typename T::result_type self, typename T::result_type const & arg) { self *= arg; return self; } - template typename T::result_type mul_double(typename T::result_type self, double arg) { self *= arg; return self; } - - template typename T::result_type div_result(typename T::result_type self, typename T::result_type const & arg) { self /= arg; return self; } - template typename T::result_type div_double(typename T::result_type self, double arg) { self /= arg; return self; } - template typename T::result_type rdiv_double(typename T::result_type self, double arg) { self.inverse(); self *= arg; return self; } - - template typename T::result_type sin(typename T::result_type self) { self.sin(); return self; } - template typename T::result_type cos(typename T::result_type self) { self.cos(); return self; } - template typename T::result_type tan(typename T::result_type self) { self.tan(); return self; } - template typename T::result_type sinh(typename T::result_type self) { self.sinh(); return self; } - template typename T::result_type cosh(typename T::result_type self) { self.cosh(); return self; } - template typename T::result_type tanh(typename T::result_type self) { self.tanh(); return self; } - template typename T::result_type asin(typename T::result_type self) { self.asin(); return self; } - template typename T::result_type acos(typename T::result_type self) { self.acos(); return self; } - template typename T::result_type atan(typename T::result_type self) { self.atan(); return self; } - template typename T::result_type abs(typename T::result_type self) { self.abs(); return self; } - template typename T::result_type sqrt(typename T::result_type self) { self.sqrt(); return self; } - template typename T::result_type log(typename T::result_type self) { self.log(); return self; } - // template typename T::result_type sq(typename T::result_type self) { self.sq(); return self; } - // template typename T::result_type cb(typename T::result_type self) { self.cb(); return self; } - // template typename T::result_type cbrt(typename T::result_type self) { self.cbrt(); return self; } - - } - } - - namespace hdf5 { - - template<> struct scalar_type { - typedef alps::accumulator::python::object_wrapper type; - }; - - namespace detail { - - template<> struct is_vectorizable { - static bool apply(alps::accumulator::python::object_wrapper const & value) { - return is_vectorizable::apply(value.get()); - } - }; - - template<> struct get_extent { - static std::vector apply(alps::accumulator::python::object_wrapper const & value) { - return get_extent::apply(value.get()); - } - }; - - template<> struct set_extent { - static void apply(alps::accumulator::python::object_wrapper & value, std::vector const & extent) { - set_extent::apply(value.get(), extent); - } - }; - } - - ALPS_DECL void save( - archive & ar - , std::string const & path - , alps::accumulator::python::object_wrapper const & value - , std::vector size = std::vector() - , std::vector chunk = std::vector() - , std::vector offset = std::vector() - ) { - save(ar, path, value.get(), size, chunk, offset); - } - - ALPS_DECL void load( - archive & ar - , std::string const & path - , alps::accumulator::python::object_wrapper & value - , std::vector chunk = std::vector() - , std::vector offset = std::vector() - ) { - load(ar, path, value.get(), chunk, offset); - } - } - - namespace ngs { - namespace numeric { - template<> struct inf { - operator alps::accumulator::python::object_wrapper const() { - return alps::accumulator::python::object_wrapper(std::numeric_limits::infinity()); - } - }; - } - } -} - -BOOST_PYTHON_MODULE(pyngsaccumulator_c) { - - using namespace boost::python; - using namespace alps::accumulator::impl; - - #define ALPS_ACCUMULATOR_COMMON(accumulator_type) \ - .def("__str__", &alps::accumulator::python::magic_str< accumulator_type >) \ - .def("save", & accumulator_type ::save) \ - .def("load", & accumulator_type ::load) \ - .def("reset", & accumulator_type ::reset) - - #define ALPS_RESULT_COMMON_OPERATORS(accumulator_type) \ - .def(self += accumulator_type ::result_type()) \ - .def(self += int()) \ - .def(self += long()) \ - .def(self += double()) \ - .def("__neg__", &alps::accumulator::python::neg_result< accumulator_type >) \ - .def("__add__", &alps::accumulator::python::add_result< accumulator_type >) \ - .def("__add__", &alps::accumulator::python::add_double< accumulator_type >) \ - .def("__radd__", &alps::accumulator::python::add_double< accumulator_type >) \ - .def(self -= accumulator_type ::result_type()) \ - .def(self -= int()) \ - .def(self -= long()) \ - .def(self -= double()) \ - .def("__sub__", &alps::accumulator::python::sub_result< accumulator_type >) \ - .def("__sub__", &alps::accumulator::python::sub_double< accumulator_type >) \ - .def("__rsub__", &alps::accumulator::python::rsub_double< accumulator_type >) \ - .def(self *= accumulator_type ::result_type()) \ - .def(self *= int()) \ - .def(self *= long()) \ - .def(self *= double()) \ - .def("__mul__", &alps::accumulator::python::mul_result< accumulator_type >) \ - .def("__mul__", &alps::accumulator::python::mul_double< accumulator_type >) \ - .def("__rmul__", &alps::accumulator::python::mul_double< accumulator_type >) \ - .def(self /= accumulator_type ::result_type()) \ - .def(self /= int()) \ - .def(self /= long()) \ - .def(self /= double()) \ - .def("__div__", &alps::accumulator::python::div_result< accumulator_type >) \ - .def("__div__", &alps::accumulator::python::div_double< accumulator_type >) \ - .def("__rdiv__", &alps::accumulator::python::rdiv_double< accumulator_type >) - - #define ALPS_RESULT_COMMON(accumulator_type) \ - ALPS_RESULT_COMMON_OPERATORS(accumulator_type) \ - .def("sin", &alps::accumulator::python::sin< accumulator_type >) \ - .def("cos", &alps::accumulator::python::cos< accumulator_type >) \ - .def("tan", &alps::accumulator::python::tan< accumulator_type >) \ - .def("sinh", &alps::accumulator::python::sinh< accumulator_type >) \ - .def("cosh", &alps::accumulator::python::cosh< accumulator_type >) \ - .def("tanh", &alps::accumulator::python::tanh< accumulator_type >) \ - /*.def("asin", &alps::accumulator::python::asin< accumulator_type >) \ - .def("acos", &alps::accumulator::python::acos< accumulator_type >) \ - .def("atan", &alps::accumulator::python::atan< accumulator_type >)*/ \ - .def("abs", &alps::accumulator::python::abs< accumulator_type >) \ - .def("sqrt", &alps::accumulator::python::sqrt< accumulator_type >) \ - .def("log", &alps::accumulator::python::log< accumulator_type >) \ - /*.def("sq", &alps::accumulator::python::sq< accumulator_type >) \ - .def("cb", &alps::accumulator::python::cb< accumulator_type >) \ - .def("cbrt", &alps::accumulator::python::cbrt< accumulator_type >)*/ - - typedef alps::accumulator::python::object_wrapper python_object; - - typedef Accumulator > count_accumulator_type; - class_("count_accumulator", init<>()) - .def("__call__", &alps::accumulator::python::magic_call) - ALPS_ACCUMULATOR_COMMON(count_accumulator_type) - .def("result", &alps::accumulator::python::result) - - .def("count", &count_accumulator_type::count) - ; - - typedef count_accumulator_type::result_type count_result_type; - class_("count_result", init<>()) - ALPS_ACCUMULATOR_COMMON(count_result_type) - - .def("count", &count_accumulator_type::count) - - ALPS_RESULT_COMMON(count_accumulator_type) - ; - - typedef Accumulator mean_accumulator_type; - class_("mean_accumulator", init<>()) - .def("__call__", &alps::accumulator::python::magic_call) - ALPS_ACCUMULATOR_COMMON(mean_accumulator_type) - .def("result", &alps::accumulator::python::result) - - .def("count", &mean_accumulator_type::count) - .def("mean", &mean_accumulator_type::mean) - ; - - typedef mean_accumulator_type::result_type mean_result_type; - class_("mean_result", init<>()) - ALPS_ACCUMULATOR_COMMON(mean_result_type) - - .def("count", &mean_accumulator_type::count) - .def("mean", &mean_accumulator_type::mean) - - ALPS_RESULT_COMMON(mean_accumulator_type) - ; - - typedef Accumulator error_accumulator_type; - class_("error_accumulator", init<>()) - .def("__call__", &alps::accumulator::python::magic_call) - ALPS_ACCUMULATOR_COMMON(error_accumulator_type) - .def("result", &alps::accumulator::python::result) - - .def("count", &error_accumulator_type::count) - .def("mean", &error_accumulator_type::mean) - .def("error", &error_accumulator_type::error) - ; - - typedef error_accumulator_type::result_type error_result_type; - class_("error_result", init<>()) - ALPS_ACCUMULATOR_COMMON(error_result_type) - - .def("count", &error_accumulator_type::count) - .def("mean", &error_accumulator_type::mean) - .def("error", &error_accumulator_type::error) - - ALPS_RESULT_COMMON(error_accumulator_type) - ; - - typedef Accumulator binning_analysis_accumulator_type; - class_("binning_analysis_accumulator", init<>()) - .def("__call__", &alps::accumulator::python::magic_call) - ALPS_ACCUMULATOR_COMMON(binning_analysis_accumulator_type) - .def("result", &alps::accumulator::python::result) - - .def("count", &binning_analysis_accumulator_type::count) - .def("mean", &binning_analysis_accumulator_type::mean) - .def("error", &binning_analysis_accumulator_type::error) - ; - - typedef binning_analysis_accumulator_type::result_type binning_analysis_result_type; - class_("binning_analysis_result", init<>()) - ALPS_ACCUMULATOR_COMMON(binning_analysis_result_type) - - .def("count", &binning_analysis_accumulator_type::count) - .def("mean", &binning_analysis_accumulator_type::mean) - .def("error", &binning_analysis_accumulator_type::error) - - ALPS_RESULT_COMMON(binning_analysis_accumulator_type) - ; - - typedef Accumulator max_num_binning_accumulator_type; - class_("max_num_binning_accumulator", init<>()) - .def("__call__", &alps::accumulator::python::magic_call) - ALPS_ACCUMULATOR_COMMON(max_num_binning_accumulator_type) - .def("result", &alps::accumulator::python::result) - - .def("count", &max_num_binning_accumulator_type::count) - .def("mean", &max_num_binning_accumulator_type::mean) - .def("error", &max_num_binning_accumulator_type::error) - ; - - typedef max_num_binning_accumulator_type::result_type max_num_binning_result_type; - class_("max_num_binning_result", init<>()) - ALPS_ACCUMULATOR_COMMON(max_num_binning_result_type) - - .def("count", &max_num_binning_accumulator_type::count) - .def("mean", &max_num_binning_accumulator_type::mean) - .def("error", &max_num_binning_accumulator_type::error) - - ALPS_RESULT_COMMON_OPERATORS(max_num_binning_accumulator_type) - ; -} diff --git a/src/alps/ngs/python/api.cpp b/src/alps/ngs/python/api.cpp deleted file mode 100644 index fbfb6488f..000000000 --- a/src/alps/ngs/python/api.cpp +++ /dev/null @@ -1,35 +0,0 @@ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * * - * ALPS Project: Algorithms and Libraries for Physics Simulations * - * * - * ALPS Libraries * - * * - * Copyright (C) 2010 - 2011 by Lukas Gamper * - * Matthias Troyer * - * * - * ALPS Project: https://alps.comp-phys.org/ * - * SPDX-License-Identifier: MIT * - * * - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -#include -#include - -namespace alps { - namespace detail { - - void save_results_export(mcresults const & res, params const & par, alps::hdf5::archive & ar, std::string const & path) { - ar["/parameters"] << par; - if (res.size()) - ar[path] << res; - } - } -} - -BOOST_PYTHON_MODULE(pyngsapi_c) { - - boost::python::def("collectResults", static_cast::type (*)(alps::mcbase const &)>(&alps::collect_results)); - - boost::python::def("saveResults", &alps::detail::save_results_export); - -} diff --git a/src/alps/ngs/python/hdf5.cpp b/src/alps/ngs/python/hdf5.cpp deleted file mode 100644 index fd0a206c2..000000000 --- a/src/alps/ngs/python/hdf5.cpp +++ /dev/null @@ -1,156 +0,0 @@ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * * - * ALPS Project: Algorithms and Libraries for Physics Simulations * - * * - * ALPS Libraries * - * * - * Copyright (C) 2010 - 2012 by Lukas Gamper * - * Matthias Troyer * - * * - * ALPS Project: https://alps.comp-phys.org/ * - * SPDX-License-Identifier: MIT * - * * - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -#include -#include -#include -#include -#include - -#include -#include - -#include -#include - -#include -#include -#include -#include -#include - -#include -#include -#include - -namespace alps { - namespace detail { - - struct std_string_to_python { - static PyObject* convert(std::string const & value) { - return boost::python::incref(boost::python::str(value).ptr()); - } - }; - - struct std_vector_string_to_python { - static PyObject* convert(std::vector const & value) { - boost::python::list result; - for (std::vector::const_iterator it = value.begin(); it != value.end(); ++it) - result.append(boost::python::str(*it)); - return boost::python::incref(result.ptr()); - } - }; - - boost::python::str python_hdf5_get_filename(alps::hdf5::archive & ar) { - return boost::python::str(ar.get_filename()); - } - - void python_hdf5_save(alps::hdf5::archive & ar, std::string const & path, boost::python::object const & data) { - import_numpy(); - ar[path] << data; - } - - boost::python::object python_hdf5_load(alps::hdf5::archive & ar, std::string const & path) { - import_numpy(); - boost::python::object value; - ar[path] >> value; - return value; - } - - boost::python::list python_hdf5_extent(alps::hdf5::archive & ar, std::string const & path) { - boost::python::list result; - std::vector ext = ar.extent(path); - if (ar.is_complex(path)) { - if (ext.size() > 1) - ext.pop_back(); - else - ext.back() = 1; - } - for (std::vector::const_iterator it = ext.begin(); it != ext.end(); ++it) - result.append(*it); - return result; - } - - boost::array exception_type; - - #define TRANSLATE_CPP_ERROR_TO_PYTHON(T, ID) \ - void translate_ ## T (hdf5:: T const & e) { \ - std::string message = std::string(e.what()).substr(0, std::string(e.what()).find_first_of('\n')); \ - PyErr_SetString(exception_type[ID], const_cast(message.c_str())); \ - } - TRANSLATE_CPP_ERROR_TO_PYTHON(archive_error, 0) - TRANSLATE_CPP_ERROR_TO_PYTHON(archive_not_found, 1) - TRANSLATE_CPP_ERROR_TO_PYTHON(archive_closed, 2) - TRANSLATE_CPP_ERROR_TO_PYTHON(invalid_path, 3) - TRANSLATE_CPP_ERROR_TO_PYTHON(path_not_found, 4) - TRANSLATE_CPP_ERROR_TO_PYTHON(wrong_type, 5) - - void register_exception_type(int id, boost::python::object type) { - Py_INCREF(type.ptr()); - exception_type[id] = type.ptr(); - } - } -} - -BOOST_PYTHON_MODULE(pyngshdf5_c) { - - // TODO: move to ownl cpp file and include everywhere - boost::python::to_python_converter< - std::string, - alps::detail::std_string_to_python - >(); - - boost::python::to_python_converter< - std::vector, - alps::detail::std_vector_string_to_python - >(); - - boost::python::register_exception_translator(&alps::detail::translate_archive_error); - boost::python::register_exception_translator(&alps::detail::translate_archive_not_found); - boost::python::register_exception_translator(&alps::detail::translate_archive_closed); - boost::python::register_exception_translator(&alps::detail::translate_invalid_path); - boost::python::register_exception_translator(&alps::detail::translate_path_not_found); - boost::python::register_exception_translator(&alps::detail::translate_wrong_type); - - boost::python::def("register_archive_exception_type", &alps::detail::register_exception_type); - - boost::python::class_( - "hdf5_archive_impl", - boost::python::init() - ) - .def("__deepcopy__", &alps::python::make_copy) - .add_property("filename", &alps::detail::python_hdf5_get_filename) - .add_property("context", &alps::hdf5::archive::get_context) - .add_property("is_open", &alps::hdf5::archive::is_open) - .def("set_context", &alps::hdf5::archive::set_context) - .def("is_group", &alps::hdf5::archive::is_group) - .def("is_data", &alps::hdf5::archive::is_data) - .def("is_attribute", &alps::hdf5::archive::is_attribute) - .def("is_open", &alps::hdf5::archive::is_open) - .def("close", &alps::hdf5::archive::close) - .def("extent", &alps::detail::python_hdf5_extent) - .def("dimensions", &alps::hdf5::archive::dimensions) - .def("is_scalar", &alps::hdf5::archive::is_scalar) - .def("is_complex", &alps::hdf5::archive::is_complex) - .def("is_null", &alps::hdf5::archive::is_null) - .def("list_children", &alps::hdf5::archive::list_children) - .def("list_attributes", &alps::hdf5::archive::list_attributes) - .def("__setitem__", &alps::detail::python_hdf5_save) - .def("__getitem__", &alps::detail::python_hdf5_load) - .def("create_group", &alps::hdf5::archive::create_group) - .def("delete_data", &alps::hdf5::archive::delete_data) - .def("delete_group", &alps::hdf5::archive::delete_group) - .def("delete_attribute", &alps::hdf5::archive::delete_attribute) - ; -} diff --git a/src/alps/ngs/python/mcbase.cpp b/src/alps/ngs/python/mcbase.cpp deleted file mode 100644 index 717535e35..000000000 --- a/src/alps/ngs/python/mcbase.cpp +++ /dev/null @@ -1,109 +0,0 @@ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * * - * ALPS Project: Algorithms and Libraries for Physics Simulations * - * * - * ALPS Libraries * - * * - * Copyright (C) 2010 - 2011 by Lukas Gamper * - * Matthias Troyer * - * * - * ALPS Project: https://alps.comp-phys.org/ * - * SPDX-License-Identifier: MIT * - * * - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -#define PY_ARRAY_UNIQUE_SYMBOL pyngsbase_PyArrayHandle - -#include - -#include -#include - -#include - -#ifdef ALPS_HAVE_MPI - #include -#endif - -#include -#include -#include -#include - -namespace alps { - - class pymcbase : public mcbase, public boost::python::wrapper { - - public: - - #ifdef ALPS_HAVE_MPI - pymcbase(boost::python::dict arg, std::size_t seed_offset = 42, boost::mpi::communicator = boost::mpi::communicator()) - : mcbase(mcbase::parameters_type(arg), seed_offset) - {} - #else - pymcbase(boost::python::dict arg, std::size_t seed_offset = 42) - : mcbase(mcbase::parameters_type(arg), seed_offset) - {} - #endif - - void update() { - this->get_override("update")(); - } - double fraction_completed() const { - return this->get_override("fraction_completed")(); - } - void measure() { - this->get_override("measure")(); - } - - bool run(boost::python::object stop_callback) { - return mcbase::run(boost::bind(&pymcbase::run_helper, this, stop_callback)); - } - - results_type collect_results(result_names_type const & names = result_names_type()) { - return names.size() ? mcbase::collect_results(names) : mcbase::collect_results(); - } - - alps::random01 & get_random() { - return mcbase::random; - } - - parameters_type & get_parameters() { - return mcbase::parameters; - } - - observable_collection_type & get_measurements() { - return alps::mcbase::measurements; - } - - private: - - bool run_helper(boost::python::object stop_callback) { - return boost::python::call(stop_callback.ptr()); - } - - }; -} - -BOOST_PYTHON_MODULE(pyngsbase_c) { - - boost::python::class_( - "mcbase", - #ifdef ALPS_HAVE_MPI - boost::python::init >() - #else - boost::python::init >() - #endif - ) - .add_property("random", boost::python::make_function(&alps::pymcbase::get_random, boost::python::return_internal_reference<>())) - .add_property("parameters", boost::python::make_function(&alps::pymcbase::get_parameters, boost::python::return_internal_reference<>())) - .add_property("measurements", boost::python::make_function(&alps::pymcbase::get_measurements, boost::python::return_internal_reference<>())) - .def("run", &alps::pymcbase::run) - .def("update", boost::python::pure_virtual(&alps::pymcbase::update)) - .def("measure", boost::python::pure_virtual(&alps::pymcbase::measure)) - .def("fraction_completed", boost::python::pure_virtual(&alps::pymcbase::fraction_completed)) - .def("save", static_cast(&alps::pymcbase::save)) - .def("load", static_cast(&alps::pymcbase::load)) - ; - -} diff --git a/src/alps/ngs/python/observable.cpp b/src/alps/ngs/python/observable.cpp deleted file mode 100644 index 8cc2e5f8b..000000000 --- a/src/alps/ngs/python/observable.cpp +++ /dev/null @@ -1,88 +0,0 @@ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * * - * ALPS Project: Algorithms and Libraries for Physics Simulations * - * * - * ALPS Libraries * - * * - * Copyright (C) 2010 - 2011 by Lukas Gamper * - * Matthias Troyer * - * * - * ALPS Project: https://alps.comp-phys.org/ * - * SPDX-License-Identifier: MIT * - * * - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -#include -#include -#include - -#include -#include - -#include - -#include - -#include - -namespace alps { - namespace detail { - - void observable_append(alps::mcobservable & self, boost::python::object const & data) { - import_numpy(); - if (false); - #define NGS_PYTHON_HDF5_CHECK_SCALAR(N) \ - else if (std::string(data.ptr()->ob_type->tp_name) == N) \ - self << boost::python::extract< double >(data)(); - NGS_PYTHON_HDF5_CHECK_SCALAR("int") - NGS_PYTHON_HDF5_CHECK_SCALAR("long") - NGS_PYTHON_HDF5_CHECK_SCALAR("float") - NGS_PYTHON_HDF5_CHECK_SCALAR("numpy.float64") - else if (std::string(data.ptr()->ob_type->tp_name) == "numpy.ndarray" && PyArray_Check(data.ptr())) { - PyArrayObject * ptr = (PyArrayObject *)data.ptr(); - if (!PyArray_ISNOTSWAPPED(ptr)) - throw std::runtime_error("numpy array is not native" + ALPS_STACKTRACE); - else if (!(ptr = PyArray_GETCONTIGUOUS(ptr))) - throw std::runtime_error("numpy array cannot be converted to continous array" + ALPS_STACKTRACE); - self << std::valarray< double >(static_cast< double const *>(PyArray_DATA(ptr)), *PyArray_DIMS(ptr)); - Py_DECREF((PyObject *)ptr); - } else - throw std::runtime_error("unsupported type"); - } - - void observable_load(alps::mcobservable & self, alps::hdf5::archive & ar, std::string const & path) { - std::string current = ar.get_context(); - ar.set_context(path); - self.load(ar); - ar.set_context(current); - } - - alps::mcobservable create_RealObservable_export(std::string name) { - return alps::mcobservable(boost::make_shared(name).get()); - } - - alps::mcobservable create_RealVectorObservable_export(std::string name) { - return alps::mcobservable(boost::make_shared(name).get()); - } - } -} - - -BOOST_PYTHON_MODULE(pyngsobservable_c) { - - boost::python::def("createRealObservable", &alps::detail::create_RealObservable_export); - boost::python::def("createRealVectorObservable", &alps::detail::create_RealVectorObservable_export); - - boost::python::class_( - "observable", - boost::python::no_init - ) - .def("append", &alps::detail::observable_append) - .def("merge", &alps::mcobservable::merge) - .def("save", &alps::mcobservable::save) - .def("load", &alps::detail::observable_load) - .def("addToObservable", &alps::detail::observable_load) - ; - -} - diff --git a/src/alps/ngs/python/observables.cpp b/src/alps/ngs/python/observables.cpp deleted file mode 100644 index fd542ba09..000000000 --- a/src/alps/ngs/python/observables.cpp +++ /dev/null @@ -1,72 +0,0 @@ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * * - * ALPS Project: Algorithms and Libraries for Physics Simulations * - * * - * ALPS Libraries * - * * - * Copyright (C) 2010 - 2011 by Lukas Gamper * - * Matthias Troyer * - * * - * ALPS Project: https://alps.comp-phys.org/ * - * SPDX-License-Identifier: MIT * - * * - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -#define PY_ARRAY_UNIQUE_SYMBOL pyngsobservables_PyArrayHandle - -#include -#include -#include -#include - -#include -#include - -void mcobservables_load(alps::mcobservables & self, alps::hdf5::archive & ar, std::string const & path) { - std::string current = ar.get_context(); - ar.set_context(path); - self.load(ar); - ar.set_context(current); -} - -void createRealObservable(alps::mcobservables & self, std::string const & name, boost::uint32_t binnum = 0) { - self << alps::ngs::RealObservable(name, binnum); -} -BOOST_PYTHON_FUNCTION_OVERLOADS(createRealObservable_overloads, createRealObservable, 2, 3) - -void createRealVectorObservable(alps::mcobservables & self, std::string const & name, boost::uint32_t binnum = 0) { - self << alps::ngs::RealVectorObservable(name, binnum); -} -BOOST_PYTHON_FUNCTION_OVERLOADS(createRealVectorObservable_overloads, createRealVectorObservable, 2, 3) - -void addObservable(alps::mcobservables & self, boost::python::object obj) { - boost::python::call_method(obj.ptr(), "addToObservables", boost::ref(self)); -} - -BOOST_PYTHON_MODULE(pyngsobservables_c) { - - boost::python::class_( - "observables", -// boost::python::no_init // Tamama removes this line: Reason: this adds an __init__ method which always raises a Python Runtime exception. - boost::python::init<>() // Tamama add this line. - ) - .def(boost::python::map_indexing_suite()) - .def("reset", &alps::mcobservables::reset) - .def("save", &alps::mcobservables::save) - .def("load", &mcobservables_load) - .def("__lshift__", &addObservable) - .def("createRealObservable", &createRealObservable, createRealObservable_overloads()) - .def("createRealVectorObservable", &createRealVectorObservable, createRealVectorObservable_overloads()) - // TODO: implement! -/* - .def("createRealVectorObservable", &alps::mcobservables::create_RealVectorObservable) - .def("createSimpleRealObservable", &alps::mcobservables::create_SimpleRealObservable) - .def("createSimpleRealVectorObservable", &alps::mcobservables::create_SimpleRealVectorObservable) - .def("createSignedRealObservable", &alps::mcobservables::create_SignedRealObservable) - .def("createSignedRealVectorObservable", &alps::mcobservables::create_SignedRealVectorObservable) - .def("createSignedSimpleRealObservable", &alps::mcobservables::create_SignedSimpleRealObservable) - .def("createSignedSimpleRealVectorObservable", &alps::mcobservables::create_SignedSimpleRealVectorObservable) -*/ - ; - -} diff --git a/src/alps/ngs/python/params.cpp b/src/alps/ngs/python/params.cpp deleted file mode 100644 index e4f2e733e..000000000 --- a/src/alps/ngs/python/params.cpp +++ /dev/null @@ -1,108 +0,0 @@ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * * - * ALPS Project: Algorithms and Libraries for Physics Simulations * - * * - * ALPS Libraries * - * * - * Copyright (C) 2010 - 2011 by Lukas Gamper * - * Matthias Troyer * - * * - * ALPS Project: https://alps.comp-phys.org/ * - * SPDX-License-Identifier: MIT * - * * - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -#define PY_ARRAY_UNIQUE_SYMBOL pyngsparams_PyArrayHandle - -#include -#include - -#include - -#include -#include -#include - -#include -#include - -namespace alps { - namespace detail { - - std::size_t params_len(alps::params const & self) { - return self.size(); - } - - boost::python::object params_getitem(alps::params & self, boost::python::object const & key) { - if (self.defined(boost::python::call_method(key.ptr(), "__str__"))) - return self[boost::python::call_method(key.ptr(), "__str__")].cast(); - else - return boost::python::object(); - } - - void params_setitem(alps::params & self, boost::python::object const & key, boost::python::object & value) { - self[boost::python::call_method(key.ptr(), "__str__")] = value; - } - - void params_delitem(alps::params & self, boost::python::object const & key) { - return self.erase(boost::python::call_method(key.ptr(), "__str__")); - } - - bool params_contains(alps::params & self, boost::python::object const & key) { - return self.defined(boost::python::call_method(key.ptr(), "__str__")); - } - - boost::python::object value_or_default(alps::params & self, boost::python::object const & key, boost::python::object const & value) { - return params_contains(self, key) ? params_getitem(self, key) : value; - } - - void params_load(alps::params & self, alps::hdf5::archive & ar, std::string const & path = "/parameters") { - std::string current = ar.get_context(); - ar.set_context(path); - self.load(ar); - ar.set_context(current); - } - BOOST_PYTHON_FUNCTION_OVERLOADS(params_load_overloads, params_load, 2, 3) - - struct param_iterator_to_python { - static PyObject* convert(std::pair const & value) { - return boost::python::incref(boost::python::str(value.first).ptr()); - } - }; - - boost::python::str params_print(alps::params & self) { - std::stringstream ss; - ss << self; - return boost::python::str(ss.str()); - } - - } -} - -BOOST_PYTHON_MODULE(pyngsparams_c) { - - boost::python::to_python_converter< - std::pair, - alps::detail::param_iterator_to_python - >(); - - boost::python::class_( - "params", - boost::python::init >() - ) - .def(boost::python::init >()) - .def(boost::python::init()) - - .def("__len__", &alps::detail::params_len) - .def("__deepcopy__", &alps::python::make_copy) - .def("__getitem__", &alps::detail::params_getitem) - .def("__setitem__", &alps::detail::params_setitem) - .def("__delitem__", &alps::detail::params_delitem) - .def("__contains__", &alps::detail::params_contains) - .def("__iter__", boost::python::iterator()) - .def("__str__", &alps::detail::params_print) - .def("valueOrDefault", &alps::detail::value_or_default) - .def("save", &alps::params::save) - .def("load", &alps::detail::params_load, alps::detail::params_load_overloads()) - ; -} diff --git a/src/alps/ngs/python/random01.cpp b/src/alps/ngs/python/random01.cpp deleted file mode 100644 index 1c3fc2b64..000000000 --- a/src/alps/ngs/python/random01.cpp +++ /dev/null @@ -1,33 +0,0 @@ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * * - * ALPS Project: Algorithms and Libraries for Physics Simulations * - * * - * ALPS Libraries * - * * - * Copyright (C) 2010 - 2013 by Lukas Gamper * - * Matthias Troyer * - * * - * ALPS Project: https://alps.comp-phys.org/ * - * SPDX-License-Identifier: MIT * - * * - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -#define PY_ARRAY_UNIQUE_SYMBOL pyngsrandom_PyArrayHandle - -#include -#include - -#include - -BOOST_PYTHON_MODULE(pyngsrandom01_c) { - - boost::python::class_( - "random01", - boost::python::init >() - ) - .def("__deepcopy__", &alps::python::make_copy) - .def("__call__", static_cast(&alps::random01::operator())) - .def("save", &alps::random01::save) - .def("load", &alps::random01::load) - ; -} diff --git a/src/alps/ngs/python/result.cpp b/src/alps/ngs/python/result.cpp deleted file mode 100644 index 996d7aa10..000000000 --- a/src/alps/ngs/python/result.cpp +++ /dev/null @@ -1,193 +0,0 @@ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * * - * ALPS Project: Algorithms and Libraries for Physics Simulations * - * * - * ALPS Libraries * - * * - * Copyright (C) 2010 - 2011 by Lukas Gamper * - * Matthias Troyer * - * * - * ALPS Project: https://alps.comp-phys.org/ * - * SPDX-License-Identifier: MIT * - * * - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -#include -#include -#include - -#include -#include -#include - - -namespace alps { - namespace detail { - - template std::string short_print_python(T const & value) { - return cast(value); - } - - template std::string short_print_python(std::vector const & value) { - switch (value.size()) { - case 0: - return "[]"; - case 1: - return "[" + short_print_python(value.front()) + "]"; - case 2: - return "[" + short_print_python(value.front()) + "," + short_print_python(value.back()) + "]"; - default: - return "[" + short_print_python(value.front()) + ",.." + short_print_python(value.size()) + "..," + short_print_python(value.back()) + "]"; - } - } - - boost::python::str mcresult_print(alps::mcresult const & self) { - if (self.count() == 0) - return boost::python::str("No Measurements"); - else if (self.is_type()) - return boost::python::str( - short_print_python(self.mean()) + "(" + short_print_python(self.count()) + ") " - + "+/-" + short_print_python(self.error()) + " " - + short_print_python(self.bins()) + "#" + short_print_python(self.bin_size()) - ); - else if (self.is_type >()) - return boost::python::str( - short_print_python(self.mean >()) + "(" + short_print_python(self.count()) + ") " - + "+/-" + short_print_python(self.error >()) + " " - + short_print_python(self.bins >()) + "#" + short_print_python(self.bin_size()) - ); - else - throw std::runtime_error("Unsupported type." + ALPS_STACKTRACE); - } - - boost::python::object mcresult_mean(alps::mcresult const & self) { - if (self.is_type()) - return boost::python::object(self.mean()); - else if (self.is_type >()) - return alps::python::numpy::convert(self.mean >()); - else - throw std::runtime_error("Unsupported type." + ALPS_STACKTRACE); - return boost::python::object(); - } - - boost::python::object mcresult_error(alps::mcresult const & self) { - if (self.is_type()) - return boost::python::object(self.error()); - else if (self.is_type >()) - return alps::python::numpy::convert(self.error >()); - else - throw std::runtime_error("Unsupported type." + ALPS_STACKTRACE); - return boost::python::object(); - } - - boost::python::object mcresult_tau(alps::mcresult const & self) { - if (self.is_type()) - return boost::python::object(self.tau()); - else if (self.is_type >()) - return alps::python::numpy::convert(self.tau >()); - else - throw std::runtime_error("Unsupported type." + ALPS_STACKTRACE); - return boost::python::object(); - } - - boost::python::object mcresult_variance(alps::mcresult const & self) { - if (self.is_type()) - return boost::python::object(self.variance()); - else if (self.is_type >()) - return alps::python::numpy::convert(self.variance >()); - else - throw std::runtime_error("Unsupported type." + ALPS_STACKTRACE); - return boost::python::object(); - } - - boost::python::object mcresult_bins(alps::mcresult const & self) { - if (self.is_type()) - return alps::python::numpy::convert(self.bins()); -// else if (self.is_type >()) -// return alps::python::numpy::convert(self.bins >()); - else - throw std::runtime_error("Unsupported type." + ALPS_STACKTRACE); - return boost::python::object(); - } - - alps::mcresult observable2result_export(alps::mcobservable const & obs) { - return alps::mcresult(obs); - } - - } -} - -BOOST_PYTHON_MODULE(pyngsresult_c) { - using boost::python::self; - using namespace alps; - - boost::python::def("observable2result", &alps::detail::observable2result_export); - - boost::python::class_( - "result", - boost::python::init >() - ) - .def("__repr__", &alps::detail::mcresult_print) - .def("__deepcopy__", &alps::python::make_copy) - .def("__abs__", static_cast(&abs)) - .def("__pow__", static_cast(&pow)) - - .add_property("mean", &alps::detail::mcresult_mean) - .add_property("error", &alps::detail::mcresult_error) - .add_property("tau", &alps::detail::mcresult_tau) - .add_property("variance", &alps::detail::mcresult_variance) - .add_property("bins", &alps::detail::mcresult_bins) - .add_property("count", &alps::mcresult::count) - - .def(+self) - .def(-self) - .def(self += alps::mcresult()) - .def(self += double()) - .def(self -= alps::mcresult()) - .def(self -= double()) - .def(self *= alps::mcresult()) - .def(self *= double()) - .def(self /= alps::mcresult()) - .def(self /= double()) - .def(self + alps::mcresult()) - .def(alps::mcresult() + self) - .def(self + double()) - .def(double() + self) - .def(self - alps::mcresult()) - .def(alps::mcresult() - self) - .def(self - double()) - .def(double() - self) - .def(self * alps::mcresult()) - .def(alps::mcresult() * self) - .def(self * double()) - .def(double() * self) - .def(self / alps::mcresult()) - .def(alps::mcresult() / self) - .def(self / double()) - .def(double() / self) - - .def("sq", static_cast(&sq)) - .def("cb", static_cast(&cb)) - .def("sqrt", static_cast(&sqrt)) - .def("cbrt", static_cast(&cbrt)) - .def("exp", static_cast(&exp)) - .def("log", static_cast(&log)) - .def("sin", static_cast(&sin)) - .def("cos", static_cast(&cos)) - .def("tan", static_cast(&tan)) - // .def("asin", static_cast(&asin)) - // .def("acos", static_cast(&acos)) - // .def("atan", static_cast(&atan)) - .def("sinh", static_cast(&sinh)) - .def("cosh", static_cast(&cosh)) - .def("tanh", static_cast(&tanh)) -// asinh, aconsh and atanh are not part of C++03 standard -// .def("asinh", static_cast(&asinh)) -// .def("acosh", static_cast(&acosh)) -// .def("atanh", static_cast(&atanh)) - - .def("save", &alps::mcresult::save) - .def("load", &alps::mcresult::load) - ; - -} diff --git a/src/alps/ngs/python/results.cpp b/src/alps/ngs/python/results.cpp deleted file mode 100644 index 429c30e83..000000000 --- a/src/alps/ngs/python/results.cpp +++ /dev/null @@ -1,52 +0,0 @@ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * * - * ALPS Project: Algorithms and Libraries for Physics Simulations * - * * - * ALPS Libraries * - * * - * Copyright (C) 2010 - 2011 by Lukas Gamper * - * Matthias Troyer * - * * - * ALPS Project: https://alps.comp-phys.org/ * - * SPDX-License-Identifier: MIT * - * * - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -#define PY_ARRAY_UNIQUE_SYMBOL pyngsresults_PyArrayHandle - -#include -#include - -#include -#include - -namespace alps { - namespace detail { - - std::string mcresults_print(alps::mcresults & self) { - std::stringstream sstr; - sstr << self; - return sstr.str(); - } - - void mcresults_load(alps::mcresults & self, alps::hdf5::archive & ar, std::string const & path) { - std::string current = ar.get_context(); - ar.set_context(path); - self.load(ar); - ar.set_context(current); - } - } -} - -BOOST_PYTHON_MODULE(pyngsresults_c) { - boost::python::class_( - "results", - boost::python::no_init - ) - .def(boost::python::map_indexing_suite()) - .def("__str__", &alps::detail::mcresults_print) - .def("save", &alps::mcresults::save) - .def("load", &alps::detail::mcresults_load) - ; - -} diff --git a/src/alps/ngs/scheduler/proto/mcbase.hpp b/src/alps/ngs/scheduler/proto/mcbase.hpp index 1114b9009..4cc27e64e 100644 --- a/src/alps/ngs/scheduler/proto/mcbase.hpp +++ b/src/alps/ngs/scheduler/proto/mcbase.hpp @@ -23,9 +23,6 @@ #include // TODO: replace by new alea #include -#ifdef ALPS_HAVE_PYTHON - #include -#endif #include @@ -145,13 +142,6 @@ namespace alps { return !stop_callback(); } - #ifdef ALPS_HAVE_PYTHON - bool run( - boost::python::object stop_callback - ) { - return run(boost::bind(callback_wrapper, stop_callback)); - } - #endif result_names_type result_names() const { result_names_type names; @@ -262,11 +252,6 @@ namespace alps { private: - #ifdef ALPS_HAVE_PYTHON - static bool callback_wrapper(boost::python::object stop_callback) { - return boost::python::call(stop_callback.ptr()); - } - #endif status_type m_status; }; diff --git a/src/alps/python/make_copy.hpp b/src/alps/python/make_copy.hpp deleted file mode 100644 index 79770bf85..000000000 --- a/src/alps/python/make_copy.hpp +++ /dev/null @@ -1,27 +0,0 @@ -/***************************************************************************** -* -* ALPS Project: Algorithms and Libraries for Physics Simulations -* -* ALPS Libraries -* -* Copyright (C) 2010 by Matthias Troyer , -* -* ALPS Project: https://alps.comp-phys.org/ -* SPDX-License-Identifier: MIT -* -*****************************************************************************/ - -/* $Id$ */ - -#ifndef ALPS_PYTHON_MAKE_COPY_HPP -#define ALPS_PYTHON_MAKE_COPY_HPP - -#include -namespace alps { namespace python { - -template -T make_copy(T const& x, boost::python::dict const& ) { return x; } - -} } // end namespace alps::python - -#endif // ALPS_PYTHON_MAKE_COPY_HPP diff --git a/src/alps/python/numpy_array.cpp b/src/alps/python/numpy_array.cpp deleted file mode 100644 index 0bdf11698..000000000 --- a/src/alps/python/numpy_array.cpp +++ /dev/null @@ -1,84 +0,0 @@ -/***************************************************************************** -* -* ALPS Project: Algorithms and Libraries for Physics Simulations -* -* ALPS Libraries -* -* Copyright (C) 1994-2010 by Ping Nang Ma , -* Lukas Gamper , -* Matthias Troyer -* -* ALPS Project: https://alps.comp-phys.org/ -* SPDX-License-Identifier: MIT -* -*****************************************************************************/ - -#include -#include - -namespace alps { - namespace python { - namespace numpy { - - alps::python::numpy::array from_pyobject(boost::python::object const & source) - { - #if defined(ALPS_HAVE_BOOST_NUMPY) - return boost::python::numpy::array(source); - #else - return boost::python::numeric::array(source); - #endif - } - - void convert(boost::python::object const & source, std::vector & target) { - import_numpy(); - target.resize(PyArray_Size(source.ptr())); - PyArrayObject * ptr = (PyArrayObject *)source.ptr(); - memcpy(&target.front(), static_cast(PyArray_DATA(ptr)), PyArray_ITEMSIZE(ptr) * target.size()); - } - - alps::python::numpy::array convert(double source) { - return convert(std::vector(1, source)); - } - - std::vector convert(boost::python::object const & source) { - std::vector target; - convert(source, target); - return target; - } - - alps::python::numpy::array convert(std::vector const & source) { - import_numpy(); - npy_intp size = source.size(); - boost::python::object obj(boost::python::handle<>(PyArray_SimpleNew(1, &size, NPY_DOUBLE))); - void * ptr = PyArray_DATA((PyArrayObject*) obj.ptr()); - memcpy(ptr, &source.front(), PyArray_ITEMSIZE((PyArrayObject*) obj.ptr()) * size); - return boost::python::extract(obj); - } - - alps::python::numpy::array convert(std::vector > const & source) { - import_numpy(); - npy_intp size[2] = {static_cast(source.size()), static_cast(source[0].size()) }; - boost::python::object obj(boost::python::handle<>(PyArray_SimpleNew(2, size, NPY_DOUBLE))); - void * ptr = PyArray_DATA((PyArrayObject*) obj.ptr()); - for (std::size_t i = 0; i < source.size(); ++i) - memcpy(static_cast(ptr) + i * size[1], &source[i].front(), PyArray_ITEMSIZE((PyArrayObject*) obj.ptr()) * size[1]); - return boost::python::extract(obj); - } - - alps::python::numpy::array convert(std::vector > > const & source) { - import_numpy(); - npy_intp size[3] = { - static_cast(source.size()) - , static_cast(source[0].size()) - , static_cast(source[0][0].size()) - }; - boost::python::object obj(boost::python::handle<>(PyArray_SimpleNew(3, size, NPY_DOUBLE))); - void * ptr = PyArray_DATA((PyArrayObject*) obj.ptr()); - for (std::size_t i = 0; i < source.size(); ++i) - for (std::size_t j = 0; j < source[i].size(); ++j) - memcpy(static_cast(ptr) + i * size[1] * size[2] + j * size[2], &source[i][j].front(), PyArray_ITEMSIZE((PyArrayObject*) obj.ptr()) * size[2]); - return boost::python::extract(obj); - } - } - } -} diff --git a/src/alps/python/numpy_array.hpp b/src/alps/python/numpy_array.hpp deleted file mode 100644 index c98f7f11c..000000000 --- a/src/alps/python/numpy_array.hpp +++ /dev/null @@ -1,132 +0,0 @@ -/***************************************************************************** -* -* ALPS Project: Algorithms and Libraries for Physics Simulations -* -* ALPS Libraries -* -* Copyright (C) 1994-2010 by Ping Nang Ma , -* Lukas Gamper , -* Matthias Troyer -* Michele Dolfi -* -* ALPS Project: https://alps.comp-phys.org/ -* SPDX-License-Identifier: MIT -* -*****************************************************************************/ - -#ifndef ALPS_PYTHON_NUMPY_ARRAY -#define ALPS_PYTHON_NUMPY_ARRAY - -#include -#include -#include -#include -#include - - -namespace alps { - namespace python { - namespace numpy { - #if defined(ALPS_HAVE_BOOST_NUMPY) - typedef boost::python::numpy::ndarray array; - #else - typedef boost::python::numeric::array array; - #endif - - - ALPS_DECL alps::python::numpy::array from_pyobject(boost::python::object const & source); - - ALPS_DECL void convert(boost::python::object const & source, std::vector & target); - - ALPS_DECL alps::python::numpy::array convert(double source); - - ALPS_DECL alps::python::numpy::array convert(std::vector const & source); - - ALPS_DECL alps::python::numpy::array convert(std::vector > const & source); - - ALPS_DECL alps::python::numpy::array convert(std::vector > > const & source); - - - // for interchanging purpose between numpy array and std::vector - template inline NPY_TYPES getEnum(); - - template <> NPY_TYPES inline getEnum() { return NPY_DOUBLE; } - template <> NPY_TYPES inline getEnum() { return NPY_LONGDOUBLE; } - template <> NPY_TYPES inline getEnum() { return NPY_INT; } - template <> NPY_TYPES inline getEnum() { return NPY_INT; } - template <> NPY_TYPES inline getEnum() { return NPY_INT; } - template <> NPY_TYPES inline getEnum() { return NPY_LONG; } - template <> NPY_TYPES inline getEnum() { return NPY_LONG; } - template <> NPY_TYPES inline getEnum() { return NPY_LONG; } - - template - alps::python::numpy::array convert2numpy(T value) - { - import_numpy(); // ### WARNING: forgetting this will end up in segmentation fault! - - npy_intp arr_size= 1; // ### NOTE: npy_intp is nothing but just signed size_t - boost::python::object obj(boost::python::handle<>(PyArray_SimpleNew(1, &arr_size, getEnum()))); // ### NOTE: PyArray_SimpleNew is the new version of PyArray_FromDims - void *arr_data= PyArray_DATA((PyArrayObject*) obj.ptr()); - memcpy(arr_data, &value, PyArray_ITEMSIZE((PyArrayObject*) obj.ptr()) * arr_size); - - return boost::python::extract(obj); - } - - template - alps::python::numpy::array convert2numpy(std::vector const& vec) - { - import_numpy(); // ### WARNING: forgetting this will end up in segmentation fault! - - npy_intp arr_size= vec.size(); // ### NOTE: npy_intp is nothing but just signed size_t - boost::python::object obj(boost::python::handle<>(PyArray_SimpleNew(1, &arr_size, getEnum()))); // ### NOTE: PyArray_SimpleNew is the new version of PyArray_FromDims - void *arr_data= PyArray_DATA((PyArrayObject*) obj.ptr()); - memcpy(arr_data, &vec.front(), PyArray_ITEMSIZE((PyArrayObject*) obj.ptr()) * arr_size); - - return boost::python::extract(obj); - } - - template - alps::python::numpy::array convert2numpy(std::valarray vec) - { - import_numpy(); // ### WARNING: forgetting this will end up in segmentation fault! - - npy_intp arr_size= vec.size(); // ### NOTE: npy_intp is nothing but just signed size_t - boost::python::object obj(boost::python::handle<>(PyArray_SimpleNew(1, &arr_size, getEnum()))); // ### NOTE: PyArray_SimpleNew is the new version of PyArray_FromDims - void *arr_data= PyArray_DATA((PyArrayObject*) obj.ptr()); - memcpy(arr_data, &vec[0], PyArray_ITEMSIZE((PyArrayObject*) obj.ptr()) * arr_size); - - return boost::python::extract(obj); - } - - template - std::vector convert2vector(boost::python::object arr) - { - import_numpy(); // ### WARNING: forgetting this will end up in segmentation fault! - - std::size_t vec_size = PyArray_Size(arr.ptr()); - PyArrayObject * ptr = (PyArrayObject *)arr.ptr(); - T * data = (T *) PyArray_DATA(ptr); - - std::vector vec(vec_size); - std::copy(data, data + vec_size, vec.begin()); - return vec; - } - - template - std::valarray convert2valarray(boost::python::object arr) - { - import_numpy(); // ### WARNING: forgetting this will end up in segmentation fault! - - std::size_t vec_size = PyArray_Size(arr.ptr()); - PyArrayObject * ptr = (PyArrayObject *)arr.ptr(); - T * data = (T *) PyArray_DATA(ptr); - std::valarray vec(vec_size); - memcpy(&vec[0],data, PyArray_ITEMSIZE(ptr) * vec_size); - return vec; - } - - } - } -} - -#endif diff --git a/src/alps/python/numpy_import.hpp b/src/alps/python/numpy_import.hpp deleted file mode 100644 index 44df32a30..000000000 --- a/src/alps/python/numpy_import.hpp +++ /dev/null @@ -1,63 +0,0 @@ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * * - * ALPS Project: Algorithms and Libraries for Physics Simulations * - * * - * ALPS Libraries * - * * - * Copyright (C) 2010 - 2016 by Lukas Gamper * - * Jan Gukelberger * - * * - * ALPS Project: https://alps.comp-phys.org/ * - * SPDX-License-Identifier: MIT * - * * - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -#ifndef ALPS_PYTHON_NUMPY_IMPORT_HPP -#define ALPS_PYTHON_NUMPY_IMPORT_HPP - -#include - -#if defined(ALPS_HAVE_BOOST_NUMPY) - #include -#else - #include -#endif - -// Allow callers to pin an earlier API version; default to the latest we have tested. -#ifndef NPY_NO_DEPRECATED_API -#define NPY_NO_DEPRECATED_API NPY_1_11_API_VERSION -#endif -#include - -namespace alps { - namespace { - - // Initialize numpy. - // This function has to be called from each translation unit before any function from the - // numpy C API is used. This function must reside in an anonymous namespace in order to - // ensure that it has internal linkage and that each translation unit ends up with its own - // import_numpy function. - // - // Some resources explaining the numpy madness can be found at the following URLs. - // Synopsis: The numpy API consists of macros that call functions trough a static dispatch - // table. This table needs to be set up by a call to import_array() in each translation - // unit lest the numpy calls segfault. - // https://docs.scipy.org/doc/numpy/reference/c-api.array.html#miscellaneous - // http://stackoverflow.com/a/31973355 - // https://sourceforge.net/p/numpy/mailman/message/5700519/ - void import_numpy() { - static bool inited = false; - if (!inited) { - import_array1((void)0); - #if defined(ALPS_HAVE_BOOST_NUMPY) - boost::python::numpy::initialize(); - #else - boost::python::numeric::array::set_module_and_type("numpy", "ndarray"); - #endif - inited = true; - } - } - } -} - -#endif diff --git a/src/alps/python/pyalea.cpp b/src/alps/python/pyalea.cpp deleted file mode 100644 index 7b8bc6c12..000000000 --- a/src/alps/python/pyalea.cpp +++ /dev/null @@ -1,439 +0,0 @@ -/***************************************************************************** -* -* ALPS Project: Algorithms and Libraries for Physics Simulations -* -* ALPS Libraries -* -* Copyright (C) 1994-2010 by Ping Nang Ma , -* Lukas Gamper , -* Matthias Troyer , -* Maximilian Poprawe -* -* ALPS Project: https://alps.comp-phys.org/ -* SPDX-License-Identifier: MIT -* -*****************************************************************************/ - -/* $Id: pyalea.cpp 3520 2010-04-09 16:49:53Z tamama $ */ - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include - -#include -#include - -using namespace boost::python; - -namespace alps { - namespace alea { - - - template - class WrappedValarrayObservable - { - typedef typename T::value_type::value_type element_type; - public: - WrappedValarrayObservable(const std::string& name, int s=0) - : obs(name,s) - {} - - void operator<<(const boost::python::object& arr) - { - obs << alps::python::numpy::convert2valarray(arr); - } - - std::string representation() const - { - return obs.representation(); - } - - alps::python::numpy::array mean() const - { - return alps::python::numpy::convert2numpy(obs.mean()); - } - - alps::python::numpy::array error() const - { - return alps::python::numpy::convert2numpy(obs.error()); - } - - alps::python::numpy::array tau() const - { - return alps::python::numpy::convert2numpy(obs.tau()); - } - - alps::python::numpy::array variance() const - { - return alps::python::numpy::convert2numpy(obs.variance()); - } - - void save(std::string const & filename) const { - hdf5::archive ar(filename, "a"); - ar["/simulation/results/"+obs.representation()] << obs; - } - - typename T::count_type count() const - { - return obs.count(); - } - - typename T::convergence_type converged_errors() const - { - return obs.converged_errors(); - } - - private: - T obs; - - }; - - - template - value_with_error::value_with_error(boost::python::object const & mean_nparray, boost::python::object const & error_nparray): - _mean(alps::python::numpy::convert2vector(mean_nparray) ), - _error(alps::python::numpy::convert2vector(error_nparray) ) {} - - //boost::python::object value_with_error::mean_nparray() const; - //boost::python::object value_with_error::error_nparray() const; - - template - boost::python::str print_value_with_error(alps::alea::value_with_error const & self) { - return boost::python::str(boost::python::str(self.mean()) + " +/- " + boost::python::str(self.error())); - } - - - #define ALPS_ALEA_FUNCTION_NUMPY_WRAPPER(function_name) \ - template \ - alps::python::numpy::array function_name## _wrapper ( const T& arg1 ) { \ - return alps::python::numpy::convert(function_name( arg1 )) ; \ - } - - ALPS_ALEA_FUNCTION_NUMPY_WRAPPER(mean) - ALPS_ALEA_FUNCTION_NUMPY_WRAPPER(variance) - ALPS_ALEA_FUNCTION_NUMPY_WRAPPER(uncorrelated_error) - ALPS_ALEA_FUNCTION_NUMPY_WRAPPER(binning_error) - - #undef ALPS_ALEA_FUNCTION_NUMPY_WRAPPER - - template - boost::python::str print_to_python (const T& IN) { - std::ostringstream strs; - strs << IN; - return boost::python::str(strs.str()); - } - - template - mctimeseries::mctimeseries (boost::python::object IN):_timeseries(new std::vector( alps::python::numpy::convert2vector(IN) )) {} - - template - boost::python::object mctimeseries::timeseries_python() const {return alps::python::numpy::convert(timeseries());} - - template - boost::python::object mctimeseries_view::timeseries_python() const {return alps::python::numpy::convert(timeseries());} - - - } // ending namespace alea -} // ending namespace alps - -using namespace alps::alea; -using namespace alps::numeric; - -// mcdata docstrings -const char constructor_docstring[] = -"The constructor takes two arguments: a string with the name of the observable " -"and optionally a second integer argument specifying the number of bins to be " -"stored."; - -const char timeseries_constructor_docstring[] = -"The constructor takes two arguments: a string with the name of the observable " -"and optionally a second integer argument specifying the number of entries per " -"bin in the time series."; - -const char observable_docstring[] = -"This class is an ALPS observable class to record results of Monte Carlo " -"measurements and evaluate mean values, error, and autocorrelations."; - -const char timeseries_observable_docstring[] = -"This class is an ALPS observable class to record results of Monte Carlo " -"measurements and evaluate mean values, error, and autocorrelations. " -"It records a full binned time series of measurements, where the number of " -"elements per bin can be specified."; - -const char shift_docstring[] = -"New measurements are added using the left shift operator <<."; - -const char save_docstring[] = -"Save the obseravble into the HDF5 file specified as the argument."; - -const char mean_docstring[] = -"the mean value of all measurements recorded."; - -const char error_docstring[] = -"the error of all measurements recorded."; - -const char tau_docstring[] = -"the autocorrelation time estimate of the recorded measurements."; - -const char variance_docstring[] = -"the variance of all measurements recorded."; - -const char count_docstring[] = -"the number of measurements recorded."; - -const char converged_errors_docstring[] = -" (0 -- data converged ; 1 -- data maybe converged ; 2 -- data not converged) "; - -// mcanalyze docstrings -const char mctimeseries_docstring[] = -"This class is a simple class to store timeseries. It can be used with the free statistical functions in the pyalps.alea module."; - -const char mctimeseries_view_docstring[] = -"This class is a view of a mctimeseries object. It does NOT copy the data so the object used to create this should not be deleted before the created object is deleted."; - -const char mctimeseries_constructor_docstring[] = -"This constructor takes a MCTimeseries Object as argument and creates a reference to its data."; - -const char mctimeseries_view_constructor_docstring[] = -"This constructor takes a MCTimeseriesView Object as argument and copies its reference to the data it is refering to."; - -const char mcdata_constructor_docstring[] = -"This constructor takes a MCData Object as argument. It extracts the timeseries from the object."; - -const char numpy_constructor_docstring[] = -"This constructor takes a numpy array as argument and constructs a timeseries from it."; - -const char mctimeseries_timeseries_docstring[] = -"This returns the timeseries stored in the object as numpy array."; - -const char size_docstring[] = -"This returns the size of the timeseries."; - - -const char std_pair_docstring[] = -"Export of a C++ std::pair"; - -const char mcanalyze_mean_docstring[] = -"Takes any MCTimeseries or MCData object as argument. \n\ -Returns the mean of the timeseries in a MCTimeseries object."; - -const char mcanalyze_variance_docstring[] = -"Takes any MCTimeseries or MCData object as argument. \n\ -Returns the variance of the timeseries in a MCTimeseries object."; - -const char integrated_autocorrelation_time_docstring[] = -"Takes two arguments: A MCTimeseries object of the autocorrelation\nand a StdPairDouble object with a fit of the autocorrelation. \n\ -Returns an estimate of the integrated autocorrelation time\nby summing up the autocorrelation as given and then integrating the tail using the fit."; - -const char running_mean_docstring[] = -"Takes any MCTimeseries or MCData object as argument. \n\ -Returns the running mean of the timeseries in a MCTimeseries object."; - -const char reverse_running_mean_docstring[] = -"Takes any MCTimeseries or MCData object as argument. \n\ -Returns the reverse running mean of the timeseries in a MCTimeseries object."; - -BOOST_PYTHON_MODULE(pyalea_c) { -#define ALPS_PY_EXPORT_VECTOROBSERVABLE(class_name, class_docstring, init_docstring) \ - class_ >( \ - #class_name, class_docstring, init >(init_docstring)) \ - .def("__repr__", &WrappedValarrayObservable< alps:: class_name >::representation) \ - .def("__deepcopy__", &alps::python::make_copy >) \ - .def("__lshift__", &WrappedValarrayObservable< alps::class_name >::operator<<,shift_docstring) \ - .def("save", &WrappedValarrayObservable< alps::class_name >::save,save_docstring) \ - .add_property("mean", &WrappedValarrayObservable< alps::class_name >::mean,mean_docstring) \ - .add_property("error", &WrappedValarrayObservable< alps::class_name >::error,error_docstring) \ - .add_property("tau", &WrappedValarrayObservable< alps::class_name >::tau,tau_docstring) \ - .add_property("variance", &WrappedValarrayObservable< alps::class_name >::variance,variance_docstring) \ - .add_property("count", &WrappedValarrayObservable< alps::class_name >::count,count_docstring) \ - .add_property("converged_errors", &WrappedValarrayObservable< alps::class_name >::converged_errors,converged_errors_docstring) \ - ; - -ALPS_PY_EXPORT_VECTOROBSERVABLE(RealVectorObservable,observable_docstring,constructor_docstring) -ALPS_PY_EXPORT_VECTOROBSERVABLE(RealVectorTimeSeriesObservable,timeseries_observable_docstring,timeseries_constructor_docstring) -#undef ALPS_PY_EXPORT_VECTOROBSERVABLE - -#define ALPS_PY_EXPORT_SIMPLEOBSERVABLE(class_name, class_docstring, init_docstring) \ - class_< alps:: class_name >(#class_name, class_docstring, init >(init_docstring)) \ - .def("__deepcopy__", &alps::python::make_copy) \ - .def("__repr__", &alps:: class_name ::representation) \ - .def("__lshift__", &alps:: class_name ::operator<<,shift_docstring) \ - .def("save", &alps::python::save_observable_to_hdf5,save_docstring) \ - .add_property("mean", &alps:: class_name ::mean,mean_docstring) \ - .add_property("error", static_cast(&alps:: class_name ::error),error_docstring) \ - .add_property("tau",&alps:: class_name ::tau,tau_docstring) \ - .add_property("variance",&alps:: class_name ::variance,variance_docstring) \ - .add_property("count",&alps:: class_name ::count,count_docstring) \ - .add_property("converged_errors", &alps:: class_name ::converged_errors,converged_errors_docstring) \ - ; \ - -ALPS_PY_EXPORT_SIMPLEOBSERVABLE(RealObservable,observable_docstring,timeseries_constructor_docstring) -ALPS_PY_EXPORT_SIMPLEOBSERVABLE(RealTimeSeriesObservable,timeseries_observable_docstring,timeseries_constructor_docstring) - -#undef ALPS_PY_EXPORT_SIMPLEOBSERVABLE - -// mcanalyze export - -#define QUOTEME(x) #x - -#define ALPS_MCANALYZE_EXPORT_MCTIMESERIES_CLASSES(type, name) \ - class_ >( QUOTEME(name) , mctimeseries_docstring) \ - .def(init(numpy_constructor_docstring)) \ - .def(init >(mcdata_constructor_docstring)) \ - .def("timeseries", &alps::alea::mctimeseries< type >::timeseries_python, mctimeseries_timeseries_docstring) \ - .add_property("size", &alps::alea::mctimeseries< type >::size, size_docstring) \ - .def("__repr__", &alps::alea::print_to_python >) \ - ; \ - \ - class_ >( QUOTEME(name##View), mctimeseries_view_docstring, init< alps::alea::mctimeseries< type > >(mctimeseries_constructor_docstring)) \ - .def(init< alps::alea::mctimeseries_view< type > >(mctimeseries_view_constructor_docstring)) \ - .def("timeseries", &alps::alea::mctimeseries_view< type >::timeseries_python, numpy_constructor_docstring) \ - .add_property("size", &alps::alea::mctimeseries_view< type >::size, size_docstring) \ - .def("__repr__", &alps::alea::print_to_python >) \ - ; - - -#define ALPS_MCANALYZE_EXPORT_HELPER(templateparms, function_name_py, function_name_c, docstring) \ - def( QUOTEME ( function_name_py ), function_name_c templateparms , docstring); - -#define ALPS_MCANALYZE_EXPORT_SCALAR_AND_VECTOR(container_type, function_name_py, function_name_c, docstring) \ - ALPS_MCANALYZE_EXPORT_HELPER( < container_type < double > > , function_name_py, function_name_c , docstring) \ - ALPS_MCANALYZE_EXPORT_HELPER( < container_type < std::vector < double > > > , function_name_py, function_name_c , docstring) -/* ALPS_MCANALYZE_EXPORT_HELPER( < container_type < int > > , function_name_py, function_name_c , docstring) \ - ALPS_MCANALYZE_EXPORT_HELPER( < container_type < std::vector < int > > > , function_name_py, function_name_c , docstring)*/ - -#define ALPS_MCANALYZE_EXPORT_SCALAR_ONLY(container_type, function_name_py, function_name_c, docstring) \ - ALPS_MCANALYZE_EXPORT_HELPER( < container_type < double > > , function_name_py, function_name_c , docstring) - -#define ALPS_MCANALYZE_EXPORT_VECTOR_ONLY(container_type, function_name_py, function_name_c, docstring) \ - ALPS_MCANALYZE_EXPORT_HELPER( < container_type < std::vector < double > > > , function_name_py, function_name_c , docstring) - -#define ALPS_MCANALYZE_EXPORT_VALUETYPE_FUNCTION(function_name_py, function_name_c, docstring) \ - ALPS_MCANALYZE_EXPORT_HELPER( < double > , function_name_py, function_name_c , docstring) \ - ALPS_MCANALYZE_EXPORT_HELPER( < std::vector < double > > , function_name_py, function_name_c , docstring) -/* ALPS_MCANALYZE_EXPORT_HELPER( < int > , function_name_py, function_name_c , docstring) \ - ALPS_MCANALYZE_EXPORT_HELPER( < std::vector < int > > , function_name_py, function_name_c , docstring)*/ - - -#define ALPS_MCANALYZE_EXPORT_TIMESERIES_FUNCTION_SCALAR_AND_VECTOR(function_name_py, function_name_c, docstring) \ - ALPS_MCANALYZE_EXPORT_SCALAR_AND_VECTOR( alps::alea::mcdata , function_name_py, function_name_c , docstring) \ - ALPS_MCANALYZE_EXPORT_SCALAR_AND_VECTOR( alps::alea::mctimeseries , function_name_py, function_name_c , docstring) \ - ALPS_MCANALYZE_EXPORT_SCALAR_AND_VECTOR( alps::alea::mctimeseries_view , function_name_py, function_name_c , docstring) - -#define ALPS_MCANALYZE_EXPORT_TIMESERIES_FUNCTION_SCALAR_ONLY(function_name_py, function_name_c, docstring) \ - ALPS_MCANALYZE_EXPORT_SCALAR_ONLY( alps::alea::mcdata , function_name_py, function_name_c , docstring) \ - ALPS_MCANALYZE_EXPORT_SCALAR_ONLY( alps::alea::mctimeseries , function_name_py, function_name_c , docstring) \ - ALPS_MCANALYZE_EXPORT_SCALAR_ONLY( alps::alea::mctimeseries_view , function_name_py, function_name_c , docstring) - -#define ALPS_MCANALYZE_EXPORT_TIMESERIES_FUNCTION_VECTOR_ONLY(function_name_py, function_name_c, docstring) \ - ALPS_MCANALYZE_EXPORT_VECTOR_ONLY( alps::alea::mcdata , function_name_py, function_name_c , docstring) \ - ALPS_MCANALYZE_EXPORT_VECTOR_ONLY( alps::alea::mctimeseries , function_name_py, function_name_c , docstring) \ - ALPS_MCANALYZE_EXPORT_VECTOR_ONLY( alps::alea::mctimeseries_view , function_name_py, function_name_c , docstring) - -#define ALPS_MCANALYZE_EXPORT_MCTIMESERIES_FUNCTION_SCALAR_AND_VECTOR(function_name_py, function_name_c, docstring) \ - ALPS_MCANALYZE_EXPORT_SCALAR_AND_VECTOR( alps::alea::mctimeseries , function_name_py, function_name_c , docstring) \ - ALPS_MCANALYZE_EXPORT_SCALAR_AND_VECTOR( alps::alea::mctimeseries_view , function_name_py, function_name_c , docstring) - -#define ALPS_MCANALYZE_EXPORT_MCTIMESERIES_FUNCTION_SCALAR_ONLY(function_name_py, function_name_c, docstring) \ - ALPS_MCANALYZE_EXPORT_SCALAR_ONLY( alps::alea::mctimeseries , function_name_py, function_name_c , docstring) \ - ALPS_MCANALYZE_EXPORT_SCALAR_ONLY( alps::alea::mctimeseries_view , function_name_py, function_name_c , docstring) - - - -docstring_options doc_options; // complete docstring - -class_ >( "ValueWithError", init< optional >() ) - .add_property("mean", &alps::alea::value_with_error::mean) - .add_property("error", &alps::alea::value_with_error::error) - .def("__repr__", &alps::alea::print_value_with_error) -; - -class_ > ( "StdPairDouble", std_pair_docstring, init() ) - .def_readwrite("first", &std::pair::first) - .def_readwrite("second", &std::pair::second) -; - - -doc_options.disable_cpp_signatures(); // no cpp signatures - -ALPS_MCANALYZE_EXPORT_TIMESERIES_FUNCTION_SCALAR_AND_VECTOR(size, alps::size, size_docstring) - - // need scalar and vector seperate so that scalar -> float, vector -> numpy -ALPS_MCANALYZE_EXPORT_TIMESERIES_FUNCTION_SCALAR_ONLY(mean, alps::alea::mean, mcanalyze_mean_docstring) -ALPS_MCANALYZE_EXPORT_TIMESERIES_FUNCTION_VECTOR_ONLY(mean, alps::alea::mean_wrapper, mcanalyze_mean_docstring) - -ALPS_MCANALYZE_EXPORT_TIMESERIES_FUNCTION_SCALAR_ONLY(variance, alps::alea::variance, mcanalyze_variance_docstring) -ALPS_MCANALYZE_EXPORT_TIMESERIES_FUNCTION_VECTOR_ONLY(variance, alps::alea::variance_wrapper, mcanalyze_variance_docstring) - -ALPS_MCANALYZE_EXPORT_MCTIMESERIES_FUNCTION_SCALAR_ONLY(integrated_autocorrelation_time, alps::alea::integrated_autocorrelation_time, integrated_autocorrelation_time_docstring) - -ALPS_MCANALYZE_EXPORT_TIMESERIES_FUNCTION_SCALAR_ONLY(running_mean, alps::alea::running_mean, running_mean_docstring) -ALPS_MCANALYZE_EXPORT_TIMESERIES_FUNCTION_SCALAR_ONLY(reverse_running_mean, alps::alea::reverse_running_mean, reverse_running_mean_docstring) - -ALPS_MCANALYZE_EXPORT_MCTIMESERIES_CLASSES(double, MCScalarTimeseries) -class_ > >( "MCVectorTimeseries" , mctimeseries_docstring) - .def(init > >(mcdata_constructor_docstring)) - .def("timeseries", &alps::alea::mctimeseries< std::vector >::timeseries_python, mctimeseries_timeseries_docstring) - .add_property("size", &alps::alea::mctimeseries< std::vector >::size, size_docstring) - .def("__repr__", &alps::alea::print_to_python > >) - ; - - class_ > >( "MCVectorTimeseriesView", mctimeseries_view_docstring, init< alps::alea::mctimeseries< std::vector > >(mctimeseries_constructor_docstring)) - .def(init< alps::alea::mctimeseries_view< std::vector > >(mctimeseries_view_constructor_docstring)) - .def("timeseries", &alps::alea::mctimeseries_view< std::vector >::timeseries_python, numpy_constructor_docstring) - .add_property("size", &alps::alea::mctimeseries_view< std::vector >::size, size_docstring) - .def("__repr__", &alps::alea::print_to_python > >) - ; -//ALPS_MCANALYZE_EXPORT_MCTIMESERIES_CLASSES(alps::alea::value_with_error, MCScalarTimeseriesWithError) - - -doc_options.disable_all(); // no doc - - -ALPS_MCANALYZE_EXPORT_TIMESERIES_FUNCTION_SCALAR_AND_VECTOR(autocorrelation_distance, alps::alea::autocorrelation_distance, "") -ALPS_MCANALYZE_EXPORT_TIMESERIES_FUNCTION_SCALAR_AND_VECTOR(autocorrelation_limit, alps::alea::autocorrelation_limit, "") - -ALPS_MCANALYZE_EXPORT_MCTIMESERIES_FUNCTION_SCALAR_ONLY(exponential_autocorrelation_time_distance, alps::alea::exponential_autocorrelation_time_distance, "") -ALPS_MCANALYZE_EXPORT_MCTIMESERIES_FUNCTION_SCALAR_ONLY(exponential_autocorrelation_time_limit, alps::alea::exponential_autocorrelation_time_limit, "") - -ALPS_MCANALYZE_EXPORT_TIMESERIES_FUNCTION_SCALAR_AND_VECTOR(cut_head_distance, alps::alea::cut_head_distance, "") -ALPS_MCANALYZE_EXPORT_TIMESERIES_FUNCTION_SCALAR_ONLY(cut_head_limit, alps::alea::cut_head_limit, "") - -ALPS_MCANALYZE_EXPORT_TIMESERIES_FUNCTION_SCALAR_AND_VECTOR(cut_tail_distance, alps::alea::cut_tail_distance, "") -ALPS_MCANALYZE_EXPORT_TIMESERIES_FUNCTION_SCALAR_ONLY(cut_tail_limit, alps::alea::cut_tail_limit, "") - -ALPS_MCANALYZE_EXPORT_TIMESERIES_FUNCTION_SCALAR_ONLY(uncorrelated_error, alps::alea::uncorrelated_error, "") -ALPS_MCANALYZE_EXPORT_TIMESERIES_FUNCTION_VECTOR_ONLY(uncorrelated_error, alps::alea::uncorrelated_error_wrapper, "") - -ALPS_MCANALYZE_EXPORT_TIMESERIES_FUNCTION_SCALAR_ONLY(binning_error, alps::alea::binning_error, "") -ALPS_MCANALYZE_EXPORT_TIMESERIES_FUNCTION_VECTOR_ONLY(binning_error, alps::alea::binning_error_wrapper, "") - - -#undef QUOTEME - -#undef ALPS_MCANALYZE_EXPORT_HELPER -#undef ALPS_MCANALYZE_EXPORT_SCALAR_AND_VECTOR -#undef ALPS_MCANALYZE_EXPORT_SCALAR_ONLY -#undef ALPS_MCANALYZE_EXPORT_VECTOR_ONLY -#undef ALPS_MCANALYZE_EXPORT_VALUETYPE_FUNCTION -#undef ALPS_MCANALYZE_EXPORT_TIMESERIES_FUNCTION_SCALAR_AND_VECTOR -#undef ALPS_MCANALYZE_EXPORT_TIMESERIES_FUNCTION_SCALAR_ONLY -#undef ALPS_MCANALYZE_EXPORT_TIMESERIES_FUNCTION_VECTOR_ONLY -#undef ALPS_MCANALYZE_EXPORT_MCTIMESERIES_FUNCTION_SCALAR_AND_VECTOR -#undef ALPS_MCANALYZE_EXPORT_MCTIMESERIES_FUNCTION_SCALAR_ONLY - -#undef ALPS_MCANALYZE_EXPORT_MCTIMESERIES_CLASSES - -} - diff --git a/src/alps/python/pymcdata.cpp b/src/alps/python/pymcdata.cpp deleted file mode 100644 index 43814b57a..000000000 --- a/src/alps/python/pymcdata.cpp +++ /dev/null @@ -1,355 +0,0 @@ -/***************************************************************************** -* -* ALPS Project: Algorithms and Libraries for Physics Simulations -* -* ALPS Libraries -* -* Copyright (C) 1994-2010 by Ping Nang Ma , -* Lukas Gamper , -* Matthias Troyer -* -* ALPS Project: https://alps.comp-phys.org/ -* SPDX-License-Identifier: MIT -* -*****************************************************************************/ - -/* $Id: pyalea.cpp 3520 2010-04-09 16:49:53Z tamama $ */ - -#define PY_ARRAY_UNIQUE_SYMBOL pyalea_PyArrayHandle - -#include -#include -#include - -#include - -namespace alps { - namespace alea { - - template - mcdata::mcdata(boost::python::object const & mean) - : count_(1) - , binsize_(0) - , max_bin_number_(0) - , data_is_analyzed_(true) - , jacknife_bins_valid_(true) - , cannot_rebin_(false) - { - alps::python::numpy::convert(mean, mean_); - } - - template - mcdata::mcdata(boost::python::object const & mean, boost::python::object const & error) - : count_(1) - , binsize_(0) - , max_bin_number_(0) - , data_is_analyzed_(true) - , jacknife_bins_valid_(true) - , cannot_rebin_(false) - { - alps::python::numpy::convert(mean, mean_); - alps::python::numpy::convert(error, error_); - } - } - - namespace python { - - template std::size_t size(alps::alea::mcdata & data) { - return data.mean().size(); - } - - template boost::python::object get_item(boost::python::back_reference &> data, PyObject* i) { - if (PySlice_Check(i)) { - PySliceObject * slice = static_cast(static_cast(i)); - if (Py_None != slice->step) { - PyErr_SetString(PyExc_IndexError, "slice step size not supported."); - boost::python::throw_error_already_set(); - } - long from = (Py_None == slice->start ? 0 : boost::python::extract(slice->start)()); - if (from < 0) - from += size(data.get()); - from = std::max(std::min(from, size(data.get())), 0); - long to = (Py_None == slice->stop ? 0 : boost::python::extract(slice->stop)()); - if (to < 0) - to += size(data.get()); - to = std::max(std::min(to, size(data.get())), 0); - if (from > to) - return boost::python::object(alps::alea::mcdata()); - else - return boost::python::object(alps::alea::mcdata(data.get(), from, to)); - } else { - long index = 0; - if (boost::python::extract(i).check()) { - index = boost::python::extract(i)(); - if (index < 0) - index += size(data.get()); - if (index >= (long)size(data.get()) || index < 0) { - PyErr_SetString(PyExc_IndexError, "Index out of range"); - boost::python::throw_error_already_set(); - } - } else { - PyErr_SetString(PyExc_TypeError, "Invalid index type"); - boost::python::throw_error_already_set(); - } - return boost::python::object(alps::alea::mcdata(data.get(), index)); - } - } - - template bool contains(alps::alea::mcdata & data, PyObject* key) { - boost::python::extract const &> x(key); - if (x.check()) - return std::find(data.begin(), data.end(), x()) != data.end(); - else { - boost::python::extract > x(key); - if (x.check()) - return std::find(data.begin(), data.end(), x()) != data.end(); - else - return false; - } - } - - #define ALPS_PY_MCDATA_WRAPPER(member_name) \ - template typename alps::alea::mcdata::result_type wrap_ ## member_name(alps::alea::mcdata const & value) { \ - return value. member_name (); \ - } \ - template alps::python::numpy::array wrap_ ## member_name(alps::alea::mcdata const & value) { \ - return alps::python::numpy::convert(value. member_name ()); \ - } - - ALPS_PY_MCDATA_WRAPPER(mean) - ALPS_PY_MCDATA_WRAPPER(error) - ALPS_PY_MCDATA_WRAPPER(tau) - ALPS_PY_MCDATA_WRAPPER(variance) - ALPS_PY_MCDATA_WRAPPER(bins) - ALPS_PY_MCDATA_WRAPPER(jackknife) - #undef ALPS_PY_MCDATA_WRAPPER - - template boost::python::str print_mcdata(alps::alea::mcdata const & self) { - return boost::python::str(boost::python::str(self.mean()) + " +/- " + boost::python::str(self.error())); - } - template boost::python::str format_mcdata(alps::alea::mcdata const & self, boost::python::str const & format_spec) { - #if PY_VERSION_HEX >= 0x03000000 - boost::python::object builtin = boost::python::import("builtins"); - #else - boost::python::object builtin = boost::python::import("__builtin__"); - #endif - boost::python::object globals(builtin.attr("__dict__")); - boost::python::object format_func = globals["format"]; - // return boost::python::str(boost::python::call(format_func.ptr(), self.mean(), format_spec)); - return boost::python::str(boost::python::str(boost::python::call(format_func.ptr(), self.mean(), format_spec)) + " +/- " + boost::python::str(boost::python::call(format_func.ptr(), self.error(), format_spec))); - // return boost::python::str(boost::python::format(self.mean(), format_spec) + " +/- " + boost::python::format(self.error(), format_spec)); - } - - template boost::python::str print_mcdata(alps::alea::mcdata > const & self) { - boost::python::str str; - for (typename alps::alea::mcdata >::const_iterator it = self.begin(); it != self.end(); ++it) - str += print_mcdata(*it) + (it + 1 != self.end() ? "\n" : ""); - return str; - } - - template boost::python::str format_mcdata(alps::alea::mcdata > const & self, boost::python::str const & format_spec) { - boost::python::str str; - for (typename alps::alea::mcdata >::const_iterator it = self.begin(); it != self.end(); ++it) - str += format_mcdata(*it, format_spec) + (it + 1 != self.end() ? "\n" : ""); - return str; - } - - } -} - -using namespace alps::alea; -using namespace boost::python; - -const char mcdata_docstring[] = -"This class is used to evaluate Monte Carlo data and functions on them. " -"Besides the documented functions and properties, the class supports the " -"arithmetic operations +, -, *, /, +=, -=, *=, /=, and the functions " -"abs, acos, acosh, asin, asinh, atan, atanh, cb, cbrt, cos, cosh, exp, log, " -"pow, sin, sinh, sq, sqrt, tan and tanh."; - - -const char init_docstring[] = -"Optionally the constructor takes one argument for the mean values, " -"and a second optional argumnt for the error."; - -const char save_docstring[] = -"Saves the object into the HDF5 file specified as the first string argument, " -"using as observable name the second string argument."; - -const char load_docstring[] = -"Loads the object into from HDF5 file specified as the first string argument, " -"using as observable name the second string argument."; - -const char mean_docstring[] = -"the mean value of all measurements recorded."; - -const char error_docstring[] = -"the error of all measurements recorded."; - -const char tau_docstring[] = -"the autocorrelation time estimate of the recorded measurements."; - -const char variance_docstring[] = -"the variance of all measurements recorded."; - -const char count_docstring[] = -"the number of measurements recorded."; - -const char bins_docstring[] = -"the bins recorded for a jackknife analysis."; - -const char jackknife_docstring[] = -"the jackknife data structure."; - - -BOOST_PYTHON_MODULE(pymcdata_c) { - - class_ >("MCScalarData", mcdata_docstring,init >(init_docstring)) - .add_property("mean", static_cast const &)>(&alps::python::wrap_mean),mean_docstring) - .add_property("error", static_cast const &)>(&alps::python::wrap_error),error_docstring) - .add_property("tau", static_cast const &)>(&alps::python::wrap_tau),tau_docstring) - .add_property("variance", static_cast const &)>(&alps::python::wrap_variance),variance_docstring) - .add_property("bins", static_cast const &)>(&alps::python::wrap_bins),bins_docstring) - .add_property("jackknife", static_cast const &)>(&alps::python::wrap_jackknife),jackknife_docstring) - .add_property("count", &mcdata::count,count_docstring) - .def("__repr__", static_cast const &)>(&alps::python::print_mcdata)) - .def("__format__", static_cast const &, str const &)>(&alps::python::format_mcdata)) - .def("__deepcopy__", &alps::python::make_copy >) - .def("__abs__", static_cast(*)(mcdata)>(&abs)) - .def("__pow__", static_cast(*)(mcdata, mcdata::element_type)>(&pow)) - .def(+self) - .def(-self) - .def(self += mcdata()) - .def(self += double()) - .def(self -= mcdata()) - .def(self -= double()) - .def(self *= mcdata()) - .def(self *= double()) - .def(self /= mcdata()) - .def(self /= double()) - .def(self + mcdata()) - .def(mcdata() + self) - .def(self + double()) - .def(double() + self) - .def(self - mcdata()) - .def(mcdata() - self) - .def(self - double()) - .def(double() - self) - .def(self * mcdata()) - .def(mcdata() * self) - .def(self * mcdata >()) - .def(mcdata >() * self) - .def(self * double()) - .def(double() * self) - .def(self / mcdata()) - .def(mcdata() / self) - .def(self / double()) - .def(double() / self) - .def("sq", static_cast(*)(mcdata)>(&sq)) - .def("cb", static_cast(*)(mcdata)>(&cb)) - .def("sqrt", static_cast(*)(mcdata)>(&sqrt)) - .def("cbrt", static_cast(*)(mcdata)>(&cbrt)) - .def("exp", static_cast(*)(mcdata)>(&exp)) - .def("log", static_cast(*)(mcdata)>(&log)) - .def("sin", static_cast(*)(mcdata)>(&sin)) - .def("cos", static_cast(*)(mcdata)>(&cos)) - .def("tan", static_cast(*)(mcdata)>(&tan)) - // .def("asin", static_cast(*)(mcdata)>(&asin)) - // .def("acos", static_cast(*)(mcdata)>(&acos)) - // .def("atan", static_cast(*)(mcdata)>(&atan)) - .def("sinh", static_cast(*)(mcdata)>(&sinh)) - .def("cosh", static_cast(*)(mcdata)>(&cosh)) - .def("tanh", static_cast(*)(mcdata)>(&tanh)) -// asinh, aconsh and atanh are not part of C++03 standard -// .def("asinh", static_cast(*)(mcdata)>(&asinh)) -// .def("acosh", static_cast(*)(mcdata)>(&acosh)) -// .def("atanh", static_cast(*)(mcdata)>(&atanh)) - .def("set_bin_size",&mcdata::set_bin_size) - .def("set_bin_number",&mcdata::set_bin_number) - .def("discard_bins",&mcdata::discard_bins) - .def("merge", static_cast::*)(mcdata const &)>(&mcdata::merge)) - .def("save", static_cast::*)(std::string const &, std::string const &) const>(&mcdata::save),save_docstring) - .def("load", static_cast::*)(std::string const &, std::string const &)>(&mcdata::load),load_docstring) - ; - - class_ > >("MCVectorData", mcdata_docstring, init >(init_docstring)) - .def("__len__", static_cast > &)>(&alps::python::size)) - .def("__getitem__", static_cast > & >, PyObject *)>(&alps::python::get_item)) - .def("__contains__", static_cast > &, PyObject *)>(&alps::python::contains)) - .add_property("mean", static_cast > const &)>(&alps::python::wrap_mean),mean_docstring) - .add_property("error", static_cast > const &)>(&alps::python::wrap_error),error_docstring) - .add_property("tau", static_cast > const &)>(&alps::python::wrap_tau),tau_docstring) - .add_property("variance", static_cast > const &)>(&alps::python::wrap_variance),variance_docstring) - .add_property("bins", static_cast > const &)>(&alps::python::wrap_bins),bins_docstring) - .add_property("jackknife", static_cast > const &)>(&alps::python::wrap_jackknife),jackknife_docstring) - .add_property("count", &mcdata >::count,count_docstring) - .def("__repr__", static_cast > const &)>(&alps::python::print_mcdata)) - .def("__format__", static_cast > const &, str const &)>(&alps::python::format_mcdata)) - .def("__deepcopy__", &alps::python::make_copy > >) - .def("__abs__", static_cast >(*)(mcdata >)>(&abs)) - .def("__pow__", static_cast >(*)(mcdata >, mcdata::element_type)>(&pow)) - .def(+self) - .def(-self) - .def(self == mcdata >()) - .def(self += mcdata >()) - .def(self += std::vector()) - .def(self -= mcdata >()) - .def(self -= std::vector()) - .def(self *= mcdata >()) - .def(self *= std::vector()) - .def(self /= mcdata >()) - .def(self /= std::vector()) - .def(self + mcdata >()) - .def(mcdata >() + self) - .def(self + std::vector()) - .def(std::vector() + self) - .def(self - mcdata >()) - .def(mcdata >() - self) - .def(self - std::vector()) - .def(std::vector() - self) - .def(self * mcdata >()) - .def(self * mcdata()) - .def(mcdata() * self) - .def(mcdata >() * self) - .def(self * std::vector()) - .def(std::vector() * self) - .def(self / mcdata >()) - .def(self / mcdata()) - .def(mcdata >() / self) - .def(self / std::vector()) - .def(std::vector() / self) - .def(self + double()) - .def(double() + self) - .def(self - double()) - .def(double() - self) - .def(self * double()) - .def(double() * self) - .def(self / double()) - .def(double() / self) - .def("sq", static_cast >(*)(mcdata >)>(&sq)) - .def("cb", static_cast >(*)(mcdata >)>(&cb)) - .def("sqrt", static_cast >(*)(mcdata >)>(&sqrt)) - .def("cbrt", static_cast >(*)(mcdata >)>(&cbrt)) - .def("exp", static_cast >(*)(mcdata >)>(&exp)) - .def("log", static_cast >(*)(mcdata >)>(&log)) - .def("sin", static_cast >(*)(mcdata >)>(&sin)) - .def("cos", static_cast >(*)(mcdata >)>(&cos)) - .def("tan", static_cast >(*)(mcdata >)>(&tan)) - // .def("asin", static_cast >(*)(mcdata >)>(&asin)) - // .def("acos", static_cast >(*)(mcdata >)>(&acos)) - // .def("atan", static_cast >(*)(mcdata >)>(&atan)) - .def("sinh", static_cast >(*)(mcdata >)>(&sinh)) - .def("cosh", static_cast >(*)(mcdata >)>(&cosh)) - .def("tanh", static_cast >(*)(mcdata >)>(&tanh)) -// asinh, aconsh and atanh are not part of C++03 standard -// .def("asinh", static_cast >(*)(mcdata >)>(&asinh)) -// .def("acosh", static_cast >(*)(mcdata >)>(&acosh)) -// .def("atanh", static_cast >(*)(mcdata >)>(&atanh)) - .def("set_bin_size",&mcdata >::set_bin_size) - .def("set_bin_number",&mcdata >::set_bin_number) - .def("discard_bins",&mcdata >::discard_bins) - .def("merge", static_cast >::*)(mcdata > const &)>(&mcdata >::merge)) - .def("save", static_cast >::*)(std::string const &, std::string const &) const>(&mcdata >::save),save_docstring) - .def("load", static_cast >::*)(std::string const &, std::string const &)>(&mcdata >::load),load_docstring) - ; -} diff --git a/src/alps/python/pytools.cpp b/src/alps/python/pytools.cpp deleted file mode 100644 index b6be4b3a0..000000000 --- a/src/alps/python/pytools.cpp +++ /dev/null @@ -1,115 +0,0 @@ -/***************************************************************************** -* -* ALPS Project: Algorithms and Libraries for Physics Simulations -* -* ALPS Libraries -* -* Copyright (C) 1994-2009 by Ping Nang Ma , -* Matthias Troyer , -* Bela Bauer -* -* ALPS Project: https://alps.comp-phys.org/ -* SPDX-License-Identifier: MIT -* -*****************************************************************************/ - -/* $Id: nobinning.h 3520 2009-12-11 16:49:53Z gamperl $ */ - - -#include -#include -#include -#include -#include -#include -#include -#include - -#include - -typedef boost::variate_generator > random_01; - -class WrappedRNG : public random_01 -{ -public: - WrappedRNG(int seed=0) - : random_01(boost::mt19937(seed), boost::uniform_01()) - { - } -}; - -const char convert2xml_docstring[] = - "converts a file to XML\n" - "\n" - "This function takes the path to an ALPS file as input and converts it to XML.\n" - "It returns a string with the path to the resulting XML file"; - -const char hdf5_name_encode_docstring[] = -"encodes a string for use in HDF5 paths\n" -"\n" -"This function takes a string and escapes all needed characters for it to be " -"used in HDF5 path names."; - -const char hdf5_name_decode_docstring[] = -"decodes a string fromHDF5 paths\n" -"\n" -"This function takes a string used in an HDF5 path name and replaces all " -"escaped characters."; - -const char search_xml_library_path_docstring[] = -"returns the full path for an ALPS XML file\n" -"\n" -"This function takes the name for an ALPS library XML or XSL file and returns " -"the full path."; - -const char rng_docstring[] = -"a uniform random number generator class\n\n" -"This class uses the Mersenne Twister rgenerator mt19937 to generate uniform " -"random numbers in the range [0,1).\n" -"The constructor takes an optional integer random seed argument.\n" -"Random numbers are created using the function call operator.\n"; - - -namespace { - void wrap_with_signature() - { - using namespace boost::python; - def("convert2xml", alps::convert2xml,convert2xml_docstring); - def("hdf5_name_encode", alps::hdf5_name_encode,hdf5_name_encode_docstring); - def("hdf5_name_decode", alps::hdf5_name_decode,hdf5_name_decode_docstring); - def("search_xml_library_path", alps::search_xml_library_path,search_xml_library_path_docstring); - /* - def("convert2numpy", - static_cast const& )> - (&convert2numpy)); - def("convert2numpy", - static_cast const& )> - (&convert2numpy)); - - def("convert2vector",&convert2vector); - def("convert2vector",&convert2vector); - */ - - } - - void wrap_without_signature() - { - using namespace boost::python; - docstring_options doc_options(true); - doc_options.disable_cpp_signatures(); - class_("rng", rng_docstring,init >("the constructor takes an optional integer argument as random number seed")) - .def("__deepcopy__", &alps::python::make_copy, "the deepcopy function creates a new copy of the generator") - .def("__call__", static_cast(&WrappedRNG::operator()), "returns a uniform random number in [0,1)") - ; - } - -} - -BOOST_PYTHON_MODULE(pytools_c) -{ - using namespace boost::python; - wrap_with_signature(); - wrap_without_signature(); -} - - diff --git a/src/alps/python/save_observable_to_hdf5.hpp b/src/alps/python/save_observable_to_hdf5.hpp deleted file mode 100644 index 89402e690..000000000 --- a/src/alps/python/save_observable_to_hdf5.hpp +++ /dev/null @@ -1,30 +0,0 @@ -/***************************************************************************** - * - * ALPS Project: Algorithms and Libraries for Physics Simulations - * - * ALPS Libraries - * - * Copyright (C) 2010 by Matthias Troyer , - * -* ALPS Project: https://alps.comp-phys.org/ -* SPDX-License-Identifier: MIT - * - *****************************************************************************/ - -/* $Id: make_copy.hpp 4059 2010-03-29 08:36:25Z troyer $ */ - -#ifndef ALPS_PYTHON_VERY_LONG_FILENAME_FOR_SAVE_OBSERVABLE_TO_HDF5_HPP -#define ALPS_PYTHON_VERY_LONG_FILENAME_FOR_SAVE_OBSERVABLE_TO_HDF5_HPP - -#include - -namespace alps { namespace python { - - template void save_observable_to_hdf5(Obs const & obs, std::string const & filename) { - hdf5::archive ar(filename, "a"); - ar["/simulation/results/"+obs.representation()] << obs; - } - -} } // end namespace alps::python - -#endif // ALPS_PYTHON_VERY_LONG_FILENAME_FOR_SAVE_OBSERVABLE_TO_HDF5_HPP diff --git a/src/boost/mpi/module.cpp b/src/boost/mpi/module.cpp deleted file mode 100644 index 57c2b5bbc..000000000 --- a/src/boost/mpi/module.cpp +++ /dev/null @@ -1,55 +0,0 @@ -// (C) Copyright 2006 Douglas Gregor - -// Use, modification and distribution is subject to 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) - -// Authors: Douglas Gregor - -/** @file module.cpp - * - * This file provides the top-level module for the Boost.MPI Python - * bindings. - */ -#include -#include - -using namespace boost::python; -using namespace boost::mpi; - -namespace boost { namespace mpi { namespace python { - -extern void export_environment(); -extern void export_exception(); -extern void export_collectives(); -extern void export_communicator(); -extern void export_datatypes(); -extern void export_request(); -extern void export_status(); -extern void export_timer(); -extern void export_nonblocking(); - -extern const char* module_docstring; - -BOOST_PYTHON_MODULE(mpi_c) -{ - // Setup module documentation - scope().attr("__doc__") = module_docstring; - scope().attr("__author__") = "Douglas Gregor "; - scope().attr("__date__") = "$LastChangedDate: 2008-06-26 12:25:44 -0700 (Thu, 26 Jun 2008) $"; - scope().attr("__version__") = "$Revision: 46743 $"; - scope().attr("__copyright__") = "Copyright (C) 2006 Douglas Gregor"; - scope().attr("__license__") = "http://www.boost.org/LICENSE_1_0.txt"; - - export_environment(); - export_exception(); - export_communicator(); - export_collectives(); - export_datatypes(); - export_request(); - export_status(); - export_timer(); - export_nonblocking(); -} - -} } } // end namespace boost::mpi::python diff --git a/tutorials/code-07-mcmain-mcbase/export.cpp b/tutorials/code-07-mcmain-mcbase/export.cpp deleted file mode 100644 index f2341db81..000000000 --- a/tutorials/code-07-mcmain-mcbase/export.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * * - * ALPS Project: Algorithms and Libraries for Physics Simulations * - * * - * ALPS Libraries * - * * - * Copyright (C) 2010 - 2012 by Lukas Gamper * - * * - * ALPS Project: https://alps.comp-phys.org/ * - * SPDX-License-Identifier: MIT * - * * - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -#define PY_ARRAY_UNIQUE_SYMBOL isingsim_PyArrayHandle - -#include "ising.hpp" - -#include - -BOOST_PYTHON_MODULE(ising_c) { - ALPS_EXPORT_SIM_TO_PYTHON(sim, ising_sim); -} diff --git a/tutorials/code-07-mcmain-mcbase/export.py b/tutorials/code-07-mcmain-mcbase/export.py deleted file mode 100644 index 69fef1458..000000000 --- a/tutorials/code-07-mcmain-mcbase/export.py +++ /dev/null @@ -1,61 +0,0 @@ -from __future__ import print_function - # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # - # ALPS Project: Algorithms and Libraries for Physics Simulations # - # # - # ALPS Libraries # - # # - # Copyright (C) 2010 - 2013 by Lukas Gamper # - # # - # ALPS Project: https://alps.comp-phys.org/ # - # SPDX-License-Identifier: MIT # - # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # - -import pyalps.hdf5 as hdf5 -import pyalps.ngs as ngs -import sys, time, getopt - -import ising_c as ising - -if __name__ == '__main__': - - try: - optlist, positional = getopt.getopt(sys.argv[1:], 'T:c') - args = dict(optlist) - try: - limit = float(args['-T']) - except KeyError: - limit = 0 - resume = True if 'c' in args else False - outfile = positional[0] - except (IndexError, getopt.GetoptError): - print('usage: [-T timelimit] [-c] outputfile') - exit() - - sim = ising.sim(ngs.params({ - 'L': 100, - 'THERMALIZATION': 1000, - 'SWEEPS': 10000, - 'T': 2 - })) - - if resume: - try: - with hdf5.archive(outfile[0:outfile.rfind('.h5')] + '.clone0.h5', 'r') as ar: - sim.load(ar['/']) - except ArchiveNotFound: pass - - if limit == 0: - sim.run(lambda: False) - else: - start = time.time() - sim.run(lambda: time.time() > start + float(limit)) - - with hdf5.archive(outfile[0:outfile.rfind('.h5')] + '.clone0.h5', 'w') as ar: - ar['/'] = sim - - results = sim.collectResults() # TODO: how should we do that? - print(results) - - with hdf5.archive(outfile, 'w') as ar: # TODO: how sould we name archive? ngs.hdf5.archive? - ar['/parameters'] = sim.parameters - ar['/simulation/results'] = results diff --git a/tutorials/code-07-mcmain-mcbase/heisenberg/o_n_model/export.cpp b/tutorials/code-07-mcmain-mcbase/heisenberg/o_n_model/export.cpp deleted file mode 100644 index 700cd1340..000000000 --- a/tutorials/code-07-mcmain-mcbase/heisenberg/o_n_model/export.cpp +++ /dev/null @@ -1,12 +0,0 @@ -#define PY_ARRAY_UNIQUE_SYMBOL ndsim_PyArrayHandle - -#include "ndim_spin.hpp" - -#include - -BOOST_PYTHON_MODULE(ndsim_c) { - ALPS_EXPORT_SIM_TO_PYTHON(xy_sim, ndim_spin_sim<2>); - ALPS_EXPORT_SIM_TO_PYTHON(heisenberg_sim, ndim_spin_sim<3>); - ALPS_EXPORT_SIM_TO_PYTHON(4d_sim, ndim_spin_sim<4>); - ALPS_EXPORT_SIM_TO_PYTHON(5d_sim, ndim_spin_sim<5>); -} diff --git a/tutorials/ngs/5_export_python/export2py.cpp b/tutorials/ngs/5_export_python/export2py.cpp deleted file mode 100644 index f2341db81..000000000 --- a/tutorials/ngs/5_export_python/export2py.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * * - * ALPS Project: Algorithms and Libraries for Physics Simulations * - * * - * ALPS Libraries * - * * - * Copyright (C) 2010 - 2012 by Lukas Gamper * - * * - * ALPS Project: https://alps.comp-phys.org/ * - * SPDX-License-Identifier: MIT * - * * - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -#define PY_ARRAY_UNIQUE_SYMBOL isingsim_PyArrayHandle - -#include "ising.hpp" - -#include - -BOOST_PYTHON_MODULE(ising_c) { - ALPS_EXPORT_SIM_TO_PYTHON(sim, ising_sim); -} diff --git a/tutorials/ngs/5_export_python/ising.cpp b/tutorials/ngs/5_export_python/ising.cpp deleted file mode 100644 index 68e32a10a..000000000 --- a/tutorials/ngs/5_export_python/ising.cpp +++ /dev/null @@ -1,102 +0,0 @@ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * * - * ALPS Project: Algorithms and Libraries for Physics Simulations * - * * - * ALPS Libraries * - * * - * Copyright (C) 2010 - 2013 by Lukas Gamper * - * * - * ALPS Project: https://alps.comp-phys.org/ * - * SPDX-License-Identifier: MIT * - * * - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -#include "ising.hpp" - -#include - -ising_sim::ising_sim(parameters_type const & parms, std::size_t seed_offset) - : alps::mcbase(parms, seed_offset) - , length(parameters["L"]) - , sweeps(0) - , thermalization_sweeps(int(parameters["THERMALIZATION"])) - , total_sweeps(int(parameters["SWEEPS"])) - , beta(1. / double(parameters["T"])) - , spins(length) -{ - for(int i = 0; i < length; ++i) - spins[i] = (random() < 0.5 ? 1 : -1); - measurements - << alps::ngs::RealObservable("Energy") - << alps::ngs::RealObservable("Magnetization") - << alps::ngs::RealObservable("Magnetization^2") - << alps::ngs::RealObservable("Magnetization^4") - << alps::ngs::RealVectorObservable("Correlations") - ; -} - -void ising_sim::update() { - for (int j = 0; j < length; ++j) { - using std::exp; - int i = int(double(length) * random()); - int right = ( i + 1 < length ? i + 1 : 0 ); - int left = ( i - 1 < 0 ? length - 1 : i - 1 ); - double p = exp( 2. * beta * spins[i] * ( spins[right] + spins[left] )); - if ( p >= 1. || random() < p ) - spins[i] = -spins[i]; - } -} - -void ising_sim::measure() { - sweeps++; - if (sweeps > thermalization_sweeps) { - double tmag = 0; - double ten = 0; - double sign = 1; - std::vector corr(length); - for (int i = 0; i < length; ++i) { - tmag += spins[i]; - sign *= spins[i]; - ten += -spins[i] * spins[ i + 1 < length ? i + 1 : 0 ]; - for (int d = 0; d < length; ++d) - corr[d] += spins[i] * spins[( i + d ) % length ]; - } - std::transform(corr.begin(), corr.end(), corr.begin(), boost::lambda::_1 / double(length)); - ten /= length; - tmag /= length; - measurements["Energy"] << ten; - measurements["Magnetization"] << tmag; - measurements["Magnetization^2"] << tmag * tmag; - measurements["Magnetization^4"] << tmag * tmag * tmag * tmag; - measurements["Correlations"] << corr; - } -} - -double ising_sim::fraction_completed() const { - return (sweeps < thermalization_sweeps ? 0. : ( sweeps - thermalization_sweeps ) / double(total_sweeps)); -} - -void ising_sim::save(alps::hdf5::archive & ar) const { - mcbase::save(ar); - - std::string context = ar.get_context(); - ar.set_context("/simulation/realizations/0/clones/0/checkpoint"); - ar["sweeps"] << sweeps; - ar["spins"] << spins; - ar.set_context(context); -} - -void ising_sim::load(alps::hdf5::archive & ar) { - mcbase::load(ar); - - length = int(parameters["L"]); - thermalization_sweeps = int(parameters["THERMALIZATION"]); - total_sweeps = int(parameters["SWEEPS"]); - beta = 1. / double(parameters["T"]); - - std::string context = ar.get_context(); - ar.set_context("/simulation/realizations/0/clones/0/checkpoint"); - ar["sweeps"] >> sweeps; - ar["spins"] >> spins; - ar.set_context(context); -} diff --git a/tutorials/ngs/5_export_python/ising.hpp b/tutorials/ngs/5_export_python/ising.hpp deleted file mode 100644 index 6d90178cd..000000000 --- a/tutorials/ngs/5_export_python/ising.hpp +++ /dev/null @@ -1,51 +0,0 @@ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * * - * ALPS Project: Algorithms and Libraries for Physics Simulations * - * * - * ALPS Libraries * - * * - * Copyright (C) 2010 - 2013 by Lukas Gamper * - * * - * ALPS Project: https://alps.comp-phys.org/ * - * SPDX-License-Identifier: MIT * - * * - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -#ifndef ALPS_TUTORIAL_ISING_HPP -#define ALPS_TUTORIAL_ISING_HPP - -#include - -#include -#include - -#include -#include - -class ALPS_DECL ising_sim : public alps::mcbase { - - public: - - ising_sim(parameters_type const & parms, std::size_t seed_offset = 0); - - virtual void update(); - virtual void measure(); - virtual double fraction_completed() const; - - using alps::mcbase::save; - virtual void save(alps::hdf5::archive & ar) const; - - using alps::mcbase::load; - virtual void load(alps::hdf5::archive & ar); - - private: - - int length; - int sweeps; - int thermalization_sweeps; - int total_sweeps; - double beta; - std::vector spins; -}; - -#endif diff --git a/tutorials/ngs/5_export_python/main.py b/tutorials/ngs/5_export_python/main.py deleted file mode 100644 index 71ae9ea1d..000000000 --- a/tutorials/ngs/5_export_python/main.py +++ /dev/null @@ -1,62 +0,0 @@ - # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # - # ALPS Project: Algorithms and Libraries for Physics Simulations # - # # - # ALPS Libraries # - # # - # Copyright (C) 2010 - 2013 by Lukas Gamper # - # # - # ALPS Project: https://alps.comp-phys.org/ # - # SPDX-License-Identifier: MIT # - # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # - -import pyalps.hdf5 as hdf5 -import pyalps.ngs as ngs -import numpy as np -import sys, time, getopt - -import ising_c as ising - -if __name__ == '__main__': - - try: - optlist, positional = getopt.getopt(sys.argv[1:], 'T:c') - args = dict(optlist) - try: - limit = float(args['-T']) - except KeyError: - limit = 0 - resume = True if 'c' in args else False - outfile = positional[0] - except (IndexError, getopt.GetoptError): - print 'usage: [-T timelimit] [-c] outputfile' - exit() - - sim = ising.sim(ngs.params({ - 'L': 100, - 'THERMALIZATION': 1000, - 'SWEEPS': 10000, - 'T': 2 - })) - - if resume: - try: - with hdf5.archive(outfile[0:outfile.rfind('.h5')] + '.clone0.h5', 'r') as ar: - sim.load(ar['/']) - except ArchiveNotFound: pass - - if limit == 0: - sim.run(lambda: False) - else: - start = time.time() - sim.run(lambda: time.time() > start + float(limit)) - -# TODO: make this easier to understand - with hdf5.archive(outfile[0:outfile.rfind('.h5')] + '.clone0.h5', 'w') as ar: - ar['/'] = sim - - results = sim.collectResults() # TODO: how should we do that? - print results - - with hdf5.archive(outfile, 'w') as ar: - ar['/parameters'] = sim.parameters - ar['/simulation/results'] = results From 390dc579e2188b00c377e604f5057bc4a92bfcb7 Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Tue, 18 Aug 2026 16:10:27 -0500 Subject: [PATCH 36/51] docs(pyalps): record the free-threading and stable-ABI policy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make the two ABI non-decisions deliberate and visible (audit issues 21-23, 30-31, 42): the extension modules intentionally do not declare free-threading support — importing pyalps on 3.13t/3.14t re-enables the GIL, which is required while libalps uses the GIL as its lock around shared state (mcobservable's refcount table, the ngs::signal singleton, mcdata's lazy statistics) — and per-version wheels are kept instead of abi3, though the bindings are kept free of limited-API violations so stable-ABI builds remain an option. Co-Authored-By: Claude Fable 5 --- bindings/python/pyalps/CMakeLists.txt | 4 ++++ bindings/python/pyalps/README.md | 21 +++++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/bindings/python/pyalps/CMakeLists.txt b/bindings/python/pyalps/CMakeLists.txt index 9a4410ff0..e8453043d 100644 --- a/bindings/python/pyalps/CMakeLists.txt +++ b/bindings/python/pyalps/CMakeLists.txt @@ -56,6 +56,10 @@ set(_pyalps_targets pyngsrandom01_c pyngsaccumulator_c) +# Policy (see README "Free-threading and stable-ABI policy"): do NOT +# add FREE_THREADED (libalps relies on the GIL as its lock around +# shared state) and do not add STABLE_ABI without revisiting the wheel +# matrix — per-version wheels are deliberate. nanobind_add_module(pyalea_c NB_STATIC "${_bindings}/pyalea.cpp") nanobind_add_module(pymcdata_c NB_STATIC "${_bindings}/pymcdata.cpp") nanobind_add_module(pytools_c NB_STATIC "${_bindings}/pytools.cpp") diff --git a/bindings/python/pyalps/README.md b/bindings/python/pyalps/README.md index 0879b4eda..3d23f87ff 100644 --- a/bindings/python/pyalps/README.md +++ b/bindings/python/pyalps/README.md @@ -34,3 +34,24 @@ speed up rebuilds. `PYALPS_BUILD_APPLICATIONS=ON` is the default and preserves the MaxEnt, DWA, CT-HYB, and CT-INT extension modules. Set it to `OFF` through CMake configuration for a smaller core-only developer build. + +## Free-threading and stable-ABI policy + +pyalps ships per-version wheels (CPython 3.10–3.14) and deliberately opts +into neither of nanobind's special ABI modes: + +- **Free-threading (3.13t/3.14t):** the extension modules do not declare + free-threading support, so importing pyalps on a free-threaded + interpreter re-enables the GIL for the process. That is intentional: + the ALPS C++ library relies on the GIL as its lock around shared state + (`mcobservable`'s reference-count table, the `alps::ngs::signal` + singleton, `mcdata`'s lazily-computed statistics). Do not add + `FREE_THREADED` to `nanobind_add_module` without first making that + state thread-safe. +- **Stable ABI (abi3):** the bindings contain no limited-API violations + (the last one, a `PyTuple_SET_ITEM`, was removed deliberately to keep + this option open), but per-version wheels are kept because the wheel + matrix is fully automated, linked abi3 would raise the floor to + CPython 3.12, and split mode adds a runtime dependency plus per-call + overhead on hot accessor paths. Revisit when a new CPython release + makes day-one support pressing. From a9ff79ed6e8c36300107036e0d096399e5698626 Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Tue, 18 Aug 2026 17:00:47 -0500 Subject: [PATCH 37/51] fix(pyalps): apply pre-push audit findings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A ten-angle review plus empirical edge testing of the audit-response commits surfaced real gaps, all fixed and regression-tested: - Group-saved lists with 11+ elements loaded back as dicts (or out of order): H5Literate yields child names lexicographically, but the loader compared them positionally against '0','1',... Recover list shape from the name SET {0..n-1} and load in numeric order, as the legacy loader effectively did by indexing value[cast(name)]. - Lists of numpy scalars (np.int64, np.float32, np.bool_, ...) lost their legacy vectorization into one typed dataset, and rectangular ndarray/sequence mixes no longer stacked. numpy_stackable() now delegates both shapes through numpy.asarray — vetoing trees that contain plain bool leaves, which numpy would silently promote to 0/1 (the legacy rules always grouped those). - Re-saving a group-shaped list or dict over an existing group kept stale children (create_group is a no-op on an existing group); legacy wiped the group first. Both branches now delete it. - The params ladder silently widened out-of-int32 integers inside lists to double (corrupting values beyond 2^53) while raising for scalars, missed numpy bool scalars in its bool guard (stored as 1.0/0.0), and rejected numpy integer scalars while accepting numpy floats. One pre-scan now range-checks every integral element (PyNumber_Index covers numpy ints), numpy bools count as bools, and numpy integer scalars are accepted consistently as scalars and in lists. - observables lacked __delitem__, so the copied MutableMapping pop/popitem/clear raised TypeError; the legacy map_indexing_suite provided deletion. Bound it (mcobservables derives from std::map). - numpy_module()'s magic static could deadlock two GIL-juggling first callers; replaced with an atomic double-check. NULL results of PyTuple_New/PyLong_FromUnsignedLongLong are now checked. - The bindings' Boost config defines are now lifted from the SDK-exported ALPS_CMAKE_CXX_FLAGS instead of hand-mirrored. - Smaller items: params_getitem regained its defined() fast path for misses, list_vectorizer dropped derivable state and uses exact numeric type checks (numpy scalar handling moved to the stacking path), orphaned includes removed from mcbase.cpp, guard-collapse blank-line scars squeezed, mcdata assertions tightened to assert_allclose. Validated: wheel rebuild against the SDK, 23/23 Python tests. Co-Authored-By: Claude Fable 5 --- bindings/python/pyalps/CMakeLists.txt | 25 ++- bindings/python/pyalps/cpp/dict_to_params.hpp | 97 +++++++--- bindings/python/pyalps/cpp/ngs/hdf5.cpp | 180 +++++++++++++----- bindings/python/pyalps/cpp/ngs/mcbase.cpp | 4 - .../python/pyalps/cpp/ngs/observables.cpp | 8 + bindings/python/pyalps/cpp/ngs/params.cpp | 11 +- bindings/python/pyalps/cpp/numpy_compat.hpp | 37 +++- parms1.h5 | Bin 0 -> 6176 bytes parms2.h5 | Bin 0 -> 6176 bytes py.h5 | Bin 0 -> 7352 bytes src/alps/alea/mcanalyze.hpp | 2 - src/alps/alea/mcdata.hpp | 2 - src/alps/alea/value_with_error.hpp | 1 - src/alps/ngs/detail/paramvalue.hpp | 1 - src/alps/ngs/detail/paramvalue_reader.hpp | 5 - src/alps/ngs/lib/params.cpp | 1 - src/alps/ngs/lib/paramvalue.cpp | 3 - src/alps/ngs/params.hpp | 2 - src/alps/ngs/scheduler/proto/mcbase.hpp | 3 - test/pyalps/mcdata_test.py | 4 +- test/pyalps/pyhdf5io_test.py | 52 ++++- test/pyalps/test_binding_surface.py | 43 ++++- 22 files changed, 362 insertions(+), 119 deletions(-) create mode 100644 parms1.h5 create mode 100644 parms2.h5 create mode 100644 py.h5 diff --git a/bindings/python/pyalps/CMakeLists.txt b/bindings/python/pyalps/CMakeLists.txt index e8453043d..c1afe4da3 100644 --- a/bindings/python/pyalps/CMakeLists.txt +++ b/bindings/python/pyalps/CMakeLists.txt @@ -127,15 +127,24 @@ if(PYALPS_BUILD_APPLICATIONS) target_include_directories(dwa_c PRIVATE "${_alps_source_root}/applications/qmc/dwa") endif() +# Compile the bindings with the same preprocessor configuration the +# ALPS SDK was built with (BOOST_NO_AUTO_PTR and friends), so the Boost +# headers on both sides of the library boundary are configured +# identically. The -D entries are lifted from the exported +# ALPS_CMAKE_CXX_FLAGS rather than hand-copied from the root +# CMakeLists, so a define added there cannot silently desync. +separate_arguments(_alps_sdk_cxx_flags NATIVE_COMMAND "${ALPS_CMAKE_CXX_FLAGS}") +set(_alps_sdk_definitions "") +foreach(_flag IN LISTS _alps_sdk_cxx_flags) + if(_flag MATCHES "^-D(.+)$") + list(APPEND _alps_sdk_definitions "${CMAKE_MATCH_1}") + endif() +endforeach() + foreach(_target IN LISTS _pyalps_targets) - # Mirror the Boost configuration macros libalps is compiled with - # (root CMakeLists.txt, CMAKE_CXX_FLAGS) so the Boost headers both - # sides of the ALPS library boundary include are configured - # identically. - target_compile_definitions(${_target} PRIVATE - BOOST_NO_AUTO_PTR - BOOST_FILESYSTEM_NO_CXX20_ATOMIC_REF - BOOST_TIMER_ENABLE_DEPRECATED) + if(_alps_sdk_definitions) + target_compile_definitions(${_target} PRIVATE ${_alps_sdk_definitions}) + endif() target_include_directories(${_target} PRIVATE ${ALPS_INCLUDE_DIRS} ${ALPS_EXTRA_INCLUDE_DIRS}) diff --git a/bindings/python/pyalps/cpp/dict_to_params.hpp b/bindings/python/pyalps/cpp/dict_to_params.hpp index b3b7bc20e..c4e197129 100644 --- a/bindings/python/pyalps/cpp/dict_to_params.hpp +++ b/bindings/python/pyalps/cpp/dict_to_params.hpp @@ -14,23 +14,42 @@ #include #include #include +#include +#include #include #include namespace pyalps { namespace nb = nanobind; +namespace detail { +inline bool is_bool_like(PyObject * raw) { + // plain bool, or a numpy bool scalar (numpy.bool_ / numpy.bool), + // which does NOT subclass bool and would otherwise slip through + // the numeric ladder as 0.0/1.0 + return PyBool_Check(raw) + || std::strncmp(Py_TYPE(raw)->tp_name, "numpy.bool", 10) == 0; +} +} // namespace detail // Store one Python value under `key`. paramvalue's only integral // alternative is a 32-bit int and libalps static_casts wider integer -// types down to it, so out-of-range Python ints are rejected loudly -// here rather than truncated silently. List probes use exact element -// types first (convert=false) so integer lists round-trip as ints; -// mixed numeric lists without bools widen to double. +// types down to it, so out-of-range integers are rejected loudly here +// — for scalars and inside lists alike — rather than truncated or +// silently widened to double. List probes use exact element types +// first (convert=false) so integer lists round-trip as ints; mixed +// numeric lists without bools widen to double. inline void set_param_value(alps::params & p, std::string const & key, nb::handle value) { if (value.is_none()) throw nb::type_error(("cannot store None for parameter '" + key + "': params has no null type; delete the key instead").c_str()); - if (nb::isinstance(value)) { - p[key] = nb::cast(value); - } else if (nb::isinstance(value)) { + if (detail::is_bool_like(value.ptr())) { + // PyObject_IsTrue rather than nb::cast: the caster does + // not convert numpy bool scalars + int const truth = PyObject_IsTrue(value.ptr()); + if (truth < 0) + throw nb::python_error(); + p[key] = (truth == 1); + } else if (nb::isinstance(value) || PyIndex_Check(value.ptr())) { + // PyIndex_Check admits numpy integer scalars (np.int64 etc.), + // which don't subclass int the way np.float64 subclasses float try { p[key] = nb::cast(value); } catch (nb::cast_error const &) { @@ -44,31 +63,63 @@ inline void set_param_value(alps::params & p, std::string const & key, nb::handl } else if (nb::isinstance(value)) { p[key] = nb::cast(value); } else if (nb::isinstance(value) || nb::isinstance(value)) { - try { p[key] = nb::cast>(value, false); return; } - catch (nb::cast_error const &) {} - try { p[key] = nb::cast>(value, false); return; } - catch (nb::cast_error const &) {} - try { p[key] = nb::cast>>(value, false); return; } - catch (nb::cast_error const &) {} - try { p[key] = nb::cast>(value, false); return; } - catch (nb::cast_error const &) {} - // mixed numeric content (e.g. [1, 2.5]) widens to double — - // but never bools, which would silently become 0.0/1.0 - nb::object seq = nb::borrow(value); - std::size_t const n = nb::len(seq); + // One pre-scan enforcing the loud-failure policies explicitly, + // independent of caster conversion behaviour: bools never + // coerce to numbers, and oversized integers raise exactly like + // the scalar arm instead of widening to double (which would + // corrupt values beyond 2^53). + std::size_t const length = nb::len(value); bool has_bool = false; - for (std::size_t i = 0; i < n && !has_bool; ++i) { - nb::object item = seq[i]; - has_bool = nb::isinstance(item); + for (std::size_t i = 0; i < length; ++i) { + nb::object item = value[i]; + PyObject * raw = item.ptr(); + if (detail::is_bool_like(raw)) { + has_bool = true; + } else if (PyLong_Check(raw) || PyIndex_Check(raw)) { + // PyNumber_Index covers numpy integer scalars too — + // they are not PyLong subclasses but must obey the + // same 32-bit range policy + PyObject * as_long = PyNumber_Index(raw); + if (!as_long) { + PyErr_Clear(); + continue; + } + int overflow = 0; + long long v = PyLong_AsLongLongAndOverflow(as_long, &overflow); + Py_DECREF(as_long); + if (overflow + || v < std::numeric_limits::min() + || v > std::numeric_limits::max()) + throw nb::type_error(("parameter '" + key + + "' contains an integer that does not fit params'" + " 32-bit integer type").c_str()); + } } if (!has_bool) { + try { p[key] = nb::cast>(value, false); return; } + catch (nb::cast_error const &) {} + try { p[key] = nb::cast>(value, false); return; } + catch (nb::cast_error const &) {} + try { p[key] = nb::cast>>(value, false); return; } + catch (nb::cast_error const &) {} + try { p[key] = nb::cast>(value, false); return; } + catch (nb::cast_error const &) {} + // numpy integer scalars satisfy the convert=true int + // caster via __index__ (floats don't), keeping + // [np.int64(8)] consistent with the scalar np.int64 rung; + // the pre-scan above already range-checked every element + try { p[key] = nb::cast>(value); return; } + catch (nb::cast_error const &) {} + // mixed numeric content (e.g. [1, 2.5] or numpy floats) + // widens to double / complex try { p[key] = nb::cast>(value); return; } catch (nb::cast_error const &) {} try { p[key] = nb::cast>>(value); return; } catch (nb::cast_error const &) {} } throw nb::type_error(("unsupported list for parameter '" + key - + "' (expected homogeneous numbers or strings)").c_str()); + + "' (expected homogeneous numbers or strings; bools are not" + " a parameter list type)").c_str()); } else { throw nb::type_error(("unsupported type for parameter '" + key + "' (expected bool/int/float/complex/str or a list of those)").c_str()); diff --git a/bindings/python/pyalps/cpp/ngs/hdf5.cpp b/bindings/python/pyalps/cpp/ngs/hdf5.cpp index 128e7de23..7d6729b2a 100644 --- a/bindings/python/pyalps/cpp/ngs/hdf5.cpp +++ b/bindings/python/pyalps/cpp/ngs/hdf5.cpp @@ -27,6 +27,8 @@ #include #include #include +#include +#include #include #include #include @@ -45,44 +47,47 @@ namespace alps { struct list_vectorizer { enum class leaf_kind { none, integral, floating, cplx, text }; std::vector extent; // rectangular extents per depth - std::ptrdiff_t leaf_depth = -1; - leaf_kind kind = leaf_kind::none; + leaf_kind kind = leaf_kind::none; // != none also means "a leaf was seen" std::vector ints; std::vector reals; std::vector> cplxs; std::vector texts; bool fits_int = true; bool analyze(nb::handle node, std::size_t depth) { - nb::object seq = nb::borrow(node); - std::size_t const n = nb::len(seq); + std::size_t const n = nb::len(node); if (depth == extent.size()) extent.push_back(n); else if (extent[depth] != n) return false; // ragged for (std::size_t i = 0; i < n; ++i) { - nb::object item = seq[i]; - PyObject * p = item.ptr(); - if (PyBool_Check(p)) + nb::object item = node[i]; + PyObject * raw = item.ptr(); + if (PyBool_Check(raw)) return false; // legacy: bool never vectorizes - if (PyList_Check(p) || PyTuple_Check(p)) { - // a sequence may not appear at the leaf level - if (leaf_depth != -1 - && static_cast(depth + 1) >= leaf_depth) + if (PyList_Check(raw) || PyTuple_Check(raw)) { + // once a leaf has fixed the depth (extent can no + // longer grow), sequences may not appear at or + // below the leaf level + if (kind != leaf_kind::none && depth + 1 >= extent.size()) return false; if (!analyze(item, depth + 1)) return false; continue; } - // scalar leaf: all leaves must sit at one depth - if (leaf_depth == -1) { - if (extent.size() != depth + 1) - return false; - leaf_depth = static_cast(depth + 1); - } else if (leaf_depth != static_cast(depth + 1)) + // scalar leaf: all leaves sit at one depth — the + // deepest extent recorded so far + if (depth + 1 != extent.size()) return false; - if (PyLong_Check(p)) { + // Exact numeric types only, mirroring the legacy + // tp_name dispatch: numpy scalars (np.float64 and + // np.complex128 included, although they subclass the + // builtins) take the numpy-stacking path below, + // which preserves their dtype like the legacy + // scalar_types table did. str accepts subclasses — + // np.str_ was a legacy string dtype too. + if (PyLong_Check(raw)) { // np ints don't subclass int int overflow = 0; - long long v = PyLong_AsLongLongAndOverflow(p, &overflow); + long long v = PyLong_AsLongLongAndOverflow(raw, &overflow); if (overflow) return false; // → descent; the per-element save raises, like legacy if (!accept(leaf_kind::integral)) @@ -90,18 +95,16 @@ namespace alps { if (v < std::numeric_limits::min() || v > std::numeric_limits::max()) fits_int = false; ints.push_back(v); - } else if (PyFloat_Check(p)) { - // includes numpy.float64, which subclasses float + } else if (PyFloat_CheckExact(raw)) { if (!accept(leaf_kind::floating)) return false; - reals.push_back(PyFloat_AsDouble(p)); - } else if (PyComplex_Check(p)) { - // includes numpy.complex128, which subclasses complex + reals.push_back(PyFloat_AsDouble(raw)); + } else if (PyComplex_CheckExact(raw)) { if (!accept(leaf_kind::cplx)) return false; - Py_complex c = PyComplex_AsCComplex(p); + Py_complex c = PyComplex_AsCComplex(raw); cplxs.emplace_back(c.real, c.imag); - } else if (PyUnicode_Check(p)) { + } else if (PyUnicode_Check(raw)) { if (!accept(leaf_kind::text)) return false; texts.push_back(nb::cast(item)); @@ -171,13 +174,16 @@ namespace alps { case list_vectorizer::leaf_kind::none: break; // e.g. [[], []] → group descent } - } else if (all_ndarrays(l)) { - // Legacy stacked equal-shape numpy arrays into one - // dataset; delegate to numpy so shape checking and - // dtype promotion match numpy's rules, then feed + } else if (numpy_stackable(l)) { + // Legacy vectorized numpy content too: homogeneous + // numpy-scalar lists (numpy.int64 etc. were + // scalar_types entries) and rectangular trees + // mixing ndarrays with nested sequences all became + // one dataset. Delegate to numpy so shape checking + // and dtype handling match numpy's rules, then feed // the stacked array through the ndarray save path. - // Ragged shapes (numpy raises) and object dtype - // fall through to the group descent below. + // Ragged shapes (numpy raises) and non-numeric + // dtypes fall through to the group descent below. nb::object arr; try { arr = nb::borrow(alps::python::numpy_module()) @@ -186,10 +192,10 @@ namespace alps { arr = nb::object(); } if (arr.is_valid()) { - std::string dtype_kind = + std::string const dtype_kind = nb::cast(arr.attr("dtype").attr("kind")); - if (dtype_kind.find_first_of("biufc") != std::string::npos - && dtype_kind.size() == 1) { + if (dtype_kind.size() == 1 + && std::strchr("biufc", dtype_kind[0])) { hdf5_save_py11_visitor child_visitor{ar, path}; extract_from_pyobject_py11(child_visitor, arr); return; @@ -199,6 +205,10 @@ namespace alps { // Heterogeneous / ragged / bool-containing — recurse // per-element into /, letting each entry // be stored as its own native type (legacy behaviour). + // Legacy wiped any existing group before a list save; + // create_group alone would keep stale children around. + if (ar.is_group(path)) + ar.delete_group(path); ar.create_group(path); Py_ssize_t i = 0; for (auto item : l) { @@ -207,16 +217,73 @@ namespace alps { extract_from_pyobject_py11(child_visitor, item); } } - static bool all_ndarrays(nb::list const & l) { - for (auto item : l) - if (std::string(item.ptr()->ob_type->tp_name) != "numpy.ndarray") + static bool is_ndarray(PyObject * raw) { + return std::strcmp(Py_TYPE(raw)->tp_name, "numpy.ndarray") == 0; + } + struct tree_scan { + bool has_ndarray = false; + bool has_bool_leaf = false; + }; + static void scan_tree(nb::handle node, tree_scan & scan) { + std::size_t const n = nb::len(node); + for (std::size_t i = 0; i < n; ++i) { + nb::object item = node[i]; + PyObject * raw = item.ptr(); + if (is_ndarray(raw)) + scan.has_ndarray = true; + else if (PyList_Check(raw) || PyTuple_Check(raw)) + scan_tree(item, scan); + else if (PyBool_Check(raw) + || std::strncmp(Py_TYPE(raw)->tp_name, "numpy.bool", 10) == 0) + scan.has_bool_leaf = true; + if (scan.has_bool_leaf) + return; // verdict fixed: bool leaves veto stacking + } + } + // The list shapes the legacy build stacked into one + // dataset beyond plain scalars: (a) numpy scalars of ONE + // type (exact tp_name match, like legacy scalar_types), or + // (b) sequences/ndarrays only, with an ndarray somewhere in + // the tree (legacy vectorized extent-matched mixes of + // list/tuple/ndarray nodes) — but never when a plain bool + // sits among the leaves, which numpy would silently promote + // to 0/1. Pure-list trees never reach (b) — their + // exact-type handling stays with list_vectorizer. + static bool numpy_stackable(nb::list const & l) { + char const * first_scalar = nullptr; + bool scalars_only = true; + bool sequences_only = true; + for (auto item : l) { + PyObject * raw = item.ptr(); + char const * tp = Py_TYPE(raw)->tp_name; + if (is_ndarray(raw) || PyList_Check(raw) || PyTuple_Check(raw)) { + scalars_only = false; + continue; + } + sequences_only = false; + if (std::strncmp(tp, "numpy.", 6) != 0) return false; - return true; + if (!first_scalar) + first_scalar = tp; + else if (std::strcmp(tp, first_scalar) != 0) + return false; + } + if (scalars_only && first_scalar) + return true; + if (!sequences_only) + return false; + tree_scan scan; + scan_tree(l, scan); + return scan.has_ndarray && !scan.has_bool_leaf; } void operator()(nb::dict const & d) const { // Store a dict as a group with one child per key. Keys // are stringified (HDF5 paths are strings), values go - // through the same save dispatch recursively. + // through the same save dispatch recursively. Like the + // list descent above (and the legacy build), wipe an + // existing group first so stale keys don't survive. + if (ar.is_group(path)) + ar.delete_group(path); ar.create_group(path); for (auto item : d) { std::string key = nb::cast(nb::str(item.first)); @@ -266,21 +333,40 @@ namespace alps { nb::object python_hdf5_load_impl(alps::hdf5::archive & ar, std::string const & path) { // Groups (not datasets) get loaded recursively. Children - // whose names are consecutive decimal integers starting at 0 - // are recovered as a Python list (preserving round-trip for - // list-saved-as-group); otherwise a dict. + // whose names are exactly the decimal integers 0..n-1 are + // recovered as a Python list (preserving round-trip for + // list-saved-as-group); otherwise a dict. The backend + // yields child names in lexicographic order ("0", "1", + // "10", "2", ...), so the check is on the name SET and the + // list is loaded in numeric order — the legacy loader was + // order-insensitive the same way, indexing + // value[cast(name)]. if (ar.is_group(path)) { auto children = ar.list_children(path); bool list_shaped = true; - for (std::size_t i = 0; list_shaped && i < children.size(); ++i) { - if (children[i] != std::to_string(i)) + std::vector seen(children.size(), false); + for (auto const & child : children) { + bool numeric = !child.empty() && child.size() < 20; + for (char c : child) + if (c < '0' || c > '9') { + numeric = false; + break; + } + std::size_t index = numeric + ? static_cast(std::strtoull(child.c_str(), nullptr, 10)) + : 0; + if (!numeric || std::to_string(index) != child + || index >= children.size() || seen[index]) { list_shaped = false; + break; + } + seen[index] = true; } if (list_shaped) { nb::list result; - for (auto const & child : children) + for (std::size_t i = 0; i < children.size(); ++i) result.append( - python_hdf5_load_impl(ar, path + "/" + child)); + python_hdf5_load_impl(ar, path + "/" + std::to_string(i))); return nb::object(std::move(result)); } else { nb::dict result; diff --git a/bindings/python/pyalps/cpp/ngs/mcbase.cpp b/bindings/python/pyalps/cpp/ngs/mcbase.cpp index a842a5c1b..e87a90266 100644 --- a/bindings/python/pyalps/cpp/ngs/mcbase.cpp +++ b/bindings/python/pyalps/cpp/ngs/mcbase.cpp @@ -44,8 +44,6 @@ #include #include #include -#include -#include #include namespace nb = nanobind; #ifdef ALPS_HAVE_MPI @@ -54,8 +52,6 @@ namespace nb = nanobind; #include #include #include -#include -#include #include "../dict_to_params.hpp" namespace alps { // Trampoline: holds Python overrides for pure-virtuals. The diff --git a/bindings/python/pyalps/cpp/ngs/observables.cpp b/bindings/python/pyalps/cpp/ngs/observables.cpp index 1813112b6..e6d30d9c7 100644 --- a/bindings/python/pyalps/cpp/ngs/observables.cpp +++ b/bindings/python/pyalps/cpp/ngs/observables.cpp @@ -85,6 +85,14 @@ NB_MODULE(pyngsobservables_c, m) { .def("__setitem__", [](alps::mcobservables & self, std::string const & k, alps::mcobservable const & v) { self.insert(k, v); }) + // mcobservables derives publicly from std::map; item deletion + // restores what the legacy map_indexing_suite provided (and + // what the MutableMapping mixins pop/popitem/clear need). + .def("__delitem__", [](alps::mcobservables & self, std::string const & k) { + if (!self.has(k)) + throw nb::key_error(k.c_str()); + self.erase(k); + }) .def("__iter__", [](alps::mcobservables & self) { return nb::make_key_iterator(nb::type(), "key_iterator", self.begin(), self.end()); }, diff --git a/bindings/python/pyalps/cpp/ngs/params.cpp b/bindings/python/pyalps/cpp/ngs/params.cpp index 93238e513..02df54e0f 100644 --- a/bindings/python/pyalps/cpp/ngs/params.cpp +++ b/bindings/python/pyalps/cpp/ngs/params.cpp @@ -44,13 +44,18 @@ void params_setitem(alps::params & self, nb::object const & key_obj, nb::object } nb::object params_getitem(alps::params & self, nb::object const & key_obj) { std::string key = nb::cast(nb::str(key_obj)); + // defined() answers the (common) miss with one map lookup; + // paramiterator steps re-do a map find each, so walking the whole + // container to conclude "absent" would be much slower. + if (!self.defined(key)) + return nb::none(); // params doesn't expose the underlying map directly, but - // paramiterator yields (key, paramvalue) pairs; a single walk both - // answers "defined?" and hands the variant to paramvalue_to_py. + // paramiterator yields (key, paramvalue) pairs; walk it to find the + // entry and hand the variant to paramvalue_to_py. for (auto it = self.begin(); it != self.end(); ++it) if (it->first == key) return paramvalue_to_py(it->second); - return nb::none(); + return nb::none(); // defensive — defined()==true should guarantee a hit } void params_delitem(alps::params & self, nb::object const & key_obj) { self.erase(nb::cast(nb::str(key_obj))); diff --git a/bindings/python/pyalps/cpp/numpy_compat.hpp b/bindings/python/pyalps/cpp/numpy_compat.hpp index 187b86781..abcff3c61 100644 --- a/bindings/python/pyalps/cpp/numpy_compat.hpp +++ b/bindings/python/pyalps/cpp/numpy_compat.hpp @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include @@ -40,11 +41,26 @@ namespace alps { template <> struct numpy_dtype> { static constexpr char const* name = "complex128"; }; // Cached numpy module. Importing per call was a sys.modules // lookup + import-lock acquisition on every array conversion. - // The reference is deliberately leaked: a static nb_::object - // would decref during static destruction, potentially after - // interpreter finalization. + // Not a function-local static: the winning thread's import can + // release the GIL, so blocking a GIL-holding second thread on + // the C++ static-init guard would deadlock. With the atomic + // double-check, racing first callers both import (idempotent + // under the import lock) and the loser drops its reference. + // The winning reference is deliberately leaked so it stays + // valid until interpreter shutdown regardless of static + // destruction order. inline nb_::handle numpy_module() { - static PyObject * mod = nb_::module_::import_("numpy").release().ptr(); + static std::atomic cached{nullptr}; + PyObject * mod = cached.load(std::memory_order_acquire); + if (!mod) { + mod = nb_::module_::import_("numpy").release().ptr(); + PyObject * expected = nullptr; + if (!cached.compare_exchange_strong(expected, mod, + std::memory_order_acq_rel)) { + Py_DECREF(mod); + mod = expected; + } + } return mod; } // Allocates numpy.empty(shape, dtype=numpy_dtype::name) and @@ -55,13 +71,18 @@ namespace alps { std::vector const& shape) { nb_::handle np = numpy_module(); nb_::tuple shape_tuple = nb_::steal(PyTuple_New(static_cast(shape.size()))); + if (!shape_tuple.is_valid()) + throw nb_::python_error(); // PyTuple_SetItem (not the SET_ITEM macro): the macro pokes // tuple internals directly and is unavailable under the // limited API, which is otherwise within reach for these - // bindings. - for (std::size_t i = 0; i < shape.size(); ++i) - PyTuple_SetItem(shape_tuple.ptr(), static_cast(i), - PyLong_FromUnsignedLongLong(shape[i])); + // bindings. SetItem steals the reference to dim. + for (std::size_t i = 0; i < shape.size(); ++i) { + PyObject * dim = PyLong_FromUnsignedLongLong(shape[i]); + if (!dim) + throw nb_::python_error(); + PyTuple_SetItem(shape_tuple.ptr(), static_cast(i), dim); + } nb_::object arr = np.attr("empty")( shape_tuple, nb_::arg("dtype") = numpy_dtype::name); // Bridge the freshly-allocated numpy buffer through nb::ndarray diff --git a/parms1.h5 b/parms1.h5 new file mode 100644 index 0000000000000000000000000000000000000000..a3af53cf4ba9ea14abcde8afa8dacb4be44887a3 GIT binary patch literal 6176 zcmeD5aB<`1lHy|G;9!7(|4^VH0TD5PN=(a2)$#Xm31ZUucd;c48E;`y0;^$Wg(`&^ zflhNVF))IZu!)06MivkW0xV^TIfnlsY`7#?B~;Q#nh7GyCIX@vS)g17#zb>wR2e9j zfw3YOYQBH~NJTdrL>1%ROgF-(Dh73>FQ zE)F4(dCZIq(2#?BW*@|!p-iexQWGU2Y(zj|BMAy0pl3lC5@j5)Fk*s*5eqboz!3oo zm~9|pXo8igSJx5|HU!g+2sC>Qr*t#rl1>se!bV~khRxqJ&X?2(8<}AkHrF4nboY1m z@P?J{usp$-ln<>^q9vlehh}*(s9miEbRDRg6M+`cpaR_8+203TkV8vrNTCi<2l9-G z5r{;98~h0NC~GtXMnhmU1V%$(Gz3ONU^E0qLtr!nMnhmU1V%$(Gz3ONU}%H@sJ{;$ H`UcVfD$$NH literal 0 HcmV?d00001 diff --git a/parms2.h5 b/parms2.h5 new file mode 100644 index 0000000000000000000000000000000000000000..d879fd8a56e42e800509220c796aa68bcf9ac4df GIT binary patch literal 6176 zcmeD5aB<`1lHy|G;9!7(|4^VH0TD5PN=(a2)$#Xm31ZUucd;c48E;`y0;^$Wgerv@ zflhNVF@Tk@$$}IzvOtwHa1|sLCFZ7U7|JFN(F5f&u#_d{7_vb_1SZK0Q45wdQi3{1Kma5f z#SW2!gggU-op;_Tuy=HkV+O=#V1&2~WD_$FC;|k4kqxm)fq@kqCCpqLLLl>iF$hfv z@VMCrv1cfgYLnDNsS!3T!!T^}8xMS^M%cg#kl~bW^q4Q$5fL^bpgbiB%2&Wl0>Y5o z&H>9?Ot8Gg15H2R3=GOp+d#z71kD16{t*#21j`#4Xe~3G(#`dUE8YE_J-lJ1Kg@58 z6?SZp*#2>7TmE2(cTh?NRWe#Y45}YwpeYn2?(XdG15U}%Q5bVSny#f?BB2o|&r6kV6xz1NJt2Rh@hvidW#~od+t4FTE;PrL|C}9?0ommxj(--=L~%JcBZGd zD%p^9To?FSqw87PJUL2+mHGZ(*-X!A=kV&%&9Uxz7;Hk5V{XeAyc?wPqAZ$X@naUdyxnB!?+fhMS6XuI21vjuLd zk(+(ZokW2T?R%hoO_3kwC`KFwPWH5N$?2LIsx{nvSvFz7=m}Ac`*MU3?4FErGp^#U z?khouh8pD?hlO90*3PF~EgVl=PqpE^5>o1?{4kdrnVcw&=cjWy?YbtET)@Q$xPWbU z<{F)SaDA(ORF83{mW6*_F!_5p{5OuZE}qMFXZoYovPPquwEvR6671jFm}ohd zvZxC3It}UFsSOzQumI2FvWxz6E8L$jg0t1_fQ!EFBMJcZTO`Q77I>hkK5b^aV ze2-R_GD5WC8XP6su2Yw2al!N8EMT45G=NPdWHwZr_;i5P7*gkePfSR60Tg8PHP3}g z!80pW_o6xWg=oiJIC8x%&Z^u-xCPz32gjD+BdCjYbH>2nYcseZ^r-G_x6a;c=G%_@ zQs(TS2}eF_U<{7lcp47BFmgD;Rc;xH(T8s{P1Lw6veUmleDUVvg4T*_u&0P|a5#nH XH42afnK(|IiOX}1W}bt`PYwMBBN~h} literal 0 HcmV?d00001 diff --git a/src/alps/alea/mcanalyze.hpp b/src/alps/alea/mcanalyze.hpp index af8a90d0f..b18b8f751 100644 --- a/src/alps/alea/mcanalyze.hpp +++ b/src/alps/alea/mcanalyze.hpp @@ -31,8 +31,6 @@ #include #include - - #include #include #include diff --git a/src/alps/alea/mcdata.hpp b/src/alps/alea/mcdata.hpp index 7579a02b5..b18d52635 100644 --- a/src/alps/alea/mcdata.hpp +++ b/src/alps/alea/mcdata.hpp @@ -60,7 +60,6 @@ #include #include - namespace alps { namespace alea { @@ -153,7 +152,6 @@ namespace alps { , error_(error) {} - std::size_t size() const { return bins().size();} template mcdata(mcdata const & rhs, S s) diff --git a/src/alps/alea/value_with_error.hpp b/src/alps/alea/value_with_error.hpp index 65eff12e6..a379cf1b0 100644 --- a/src/alps/alea/value_with_error.hpp +++ b/src/alps/alea/value_with_error.hpp @@ -19,7 +19,6 @@ #include #include - #include #include #include diff --git a/src/alps/ngs/detail/paramvalue.hpp b/src/alps/ngs/detail/paramvalue.hpp index 624349b5f..8fef1a643 100644 --- a/src/alps/ngs/detail/paramvalue.hpp +++ b/src/alps/ngs/detail/paramvalue.hpp @@ -19,7 +19,6 @@ #include #include - #include #include #include diff --git a/src/alps/ngs/detail/paramvalue_reader.hpp b/src/alps/ngs/detail/paramvalue_reader.hpp index f0db912ed..eb93bf5a1 100644 --- a/src/alps/ngs/detail/paramvalue_reader.hpp +++ b/src/alps/ngs/detail/paramvalue_reader.hpp @@ -19,7 +19,6 @@ #include - namespace alps { namespace detail { @@ -33,7 +32,6 @@ namespace alps { throw std::runtime_error(std::string("cannot cast from std::vector<") + typeid(U).name() + "> to " + typeid(T).name() + ALPS_STACKTRACE); } - T value; }; @@ -51,7 +49,6 @@ namespace alps { (*this)(*it); } - std::vector value; }; @@ -69,7 +66,6 @@ namespace alps { value += (it == ptr ? "," : "") + cast(*it); } - std::string value; }; @@ -90,7 +86,6 @@ namespace alps { visitor.value = v; } - T const & get_value() { return visitor.value; } diff --git a/src/alps/ngs/lib/params.cpp b/src/alps/ngs/lib/params.cpp index 2d6a057d0..37459c7e5 100644 --- a/src/alps/ngs/lib/params.cpp +++ b/src/alps/ngs/lib/params.cpp @@ -38,7 +38,6 @@ namespace alps { } } - std::size_t params::size() const { return keys.size(); } diff --git a/src/alps/ngs/lib/paramvalue.cpp b/src/alps/ngs/lib/paramvalue.cpp index 194b85d47..dc9c7faa1 100644 --- a/src/alps/ngs/lib/paramvalue.cpp +++ b/src/alps/ngs/lib/paramvalue.cpp @@ -21,7 +21,6 @@ namespace alps { namespace detail { - struct paramvalue_saver: public boost::static_visitor<> { paramvalue_saver(hdf5::archive & a) @@ -31,7 +30,6 @@ namespace alps { template void operator()(T const & v) const { ar[""] << v; } - hdf5::archive & ar; }; @@ -44,7 +42,6 @@ namespace alps { template void operator()(U const & v) const { os << short_print(v); } - private: diff --git a/src/alps/ngs/params.hpp b/src/alps/ngs/params.hpp index d625a107c..b185790db 100644 --- a/src/alps/ngs/params.hpp +++ b/src/alps/ngs/params.hpp @@ -20,7 +20,6 @@ #include #include - #include #include #include @@ -60,7 +59,6 @@ namespace alps { params(boost::filesystem::path const &); - std::size_t size() const; void erase(std::string const &); diff --git a/src/alps/ngs/scheduler/proto/mcbase.hpp b/src/alps/ngs/scheduler/proto/mcbase.hpp index 4cc27e64e..0b66f98c5 100644 --- a/src/alps/ngs/scheduler/proto/mcbase.hpp +++ b/src/alps/ngs/scheduler/proto/mcbase.hpp @@ -23,7 +23,6 @@ #include // TODO: replace by new alea #include - #include #include @@ -142,7 +141,6 @@ namespace alps { return !stop_callback(); } - result_names_type result_names() const { result_names_type names; @@ -251,7 +249,6 @@ namespace alps { mutex mutable result_mutex; private: - status_type m_status; }; diff --git a/test/pyalps/mcdata_test.py b/test/pyalps/mcdata_test.py index 6e7b7b038..7f97a56e6 100644 --- a/test/pyalps/mcdata_test.py +++ b/test/pyalps/mcdata_test.py @@ -22,8 +22,8 @@ def assert_scalar(value, mean, error): - assert np.isclose(value.mean, mean, rtol=1e-9), (value.mean, mean) - assert np.isclose(value.error, error, rtol=1e-9), (value.error, error) + np.testing.assert_allclose(value.mean, mean, rtol=1e-9) + np.testing.assert_allclose(value.error, error, rtol=1e-9) def assert_vector(value, means, errors): diff --git a/test/pyalps/pyhdf5io_test.py b/test/pyalps/pyhdf5io_test.py index 2ee96a37f..b955af4fe 100644 --- a/test/pyalps/pyhdf5io_test.py +++ b/test/pyalps/pyhdf5io_test.py @@ -28,6 +28,7 @@ def _write_all(ar): a = np.array([1, 2, 3]) + b = np.array([1.1, 2.0, 3.5]) c = np.array([1.1 + 1j, 2.0j, 3.5]) d = {"a": a, 2 + 3j: "foo"} @@ -36,10 +37,10 @@ def _write_all(ar): ar["/tuple"] = (1, 2, 3) ar["/dict"] = {"scalar": 1, "numpy": a, "numpycpx": c, "list": [1, 2, 3], "string": "str", 1: 1, 4: d} ar["/numpy"] = a - ar["/numpy2"] = np.array([1.1, 2.0, 3.5]) + ar["/numpy2"] = b ar["/numpy3"] = c ar["/numpyel"] = a[0] - ar["/numpyel2"] = np.array([1.1, 2.0, 3.5])[0] + ar["/numpyel2"] = b[0] ar["/numpyel3"] = c[0] ar["/int"] = int(1) ar["/long"] = 1 @@ -60,6 +61,14 @@ def _write_all(ar): ar["/boollist"] = [True, False] ar["/mixedlist"] = [1, 2.5] ar["/biglist"] = [2 ** 40, 2 ** 41] + ar["/npscalars"] = list(np.arange(3)) # numpy.int64 scalars + ar["/npboollist"] = list(np.array([True, False])) + ar["/numpylist3"] = [np.arange(3), [3, 4, 5]] # ndarray/list mix, legacy stacked + ar["/boolmix"] = [np.arange(2), [True, False]] # bool leaves veto stacking + ar["/longmixed"] = [1, 2.5, "x"] + list(range(10)) # 13-child group + ar["/emptylist"] = [] + ar["/shrink"] = [1, "a", "b"] + ar["/shrink"] = [1, "a"] # group re-save must drop stale children def _assert_int_array(value, expected, dtype=np.int32): @@ -77,7 +86,7 @@ def test_hdf5io(): ar = hdf5.archive(path, "r") - assert len(ar.list_children("/")) == 28 + assert len(ar.list_children("/")) == 35 # homogeneous int lists/tuples keep the int element type on disk _assert_int_array(ar["/list"], [1, 2, 3]) @@ -175,6 +184,43 @@ def test_hdf5io(): assert np.issubdtype(bl.dtype, np.integer) np.testing.assert_array_equal(bl, [2 ** 40, 2 ** 41]) + # regression: numpy-scalar lists keep their dtype in one dataset + # (numpy.int64 etc. were vectorizable in the legacy build) + nps = ar["/npscalars"] + assert isinstance(nps, np.ndarray) and np.issubdtype(nps.dtype, np.integer) + np.testing.assert_array_equal(nps, [0, 1, 2]) + # HDF5 has no native bool: bool arrays are stored (and read + # back) as their int8 storage type; only the values survive + npb = ar["/npboollist"] + assert isinstance(npb, np.ndarray) + assert npb.dtype == np.bool_ or npb.dtype == np.int8 + np.testing.assert_array_equal(npb, [1, 0]) + + # regression: rectangular ndarray/list mixes stack, like legacy + nl3 = ar["/numpylist3"] + assert isinstance(nl3, np.ndarray) and nl3.shape == (2, 3) + np.testing.assert_array_equal(nl3, [[0, 1, 2], [3, 4, 5]]) + + # regression: plain bools among the leaves veto stacking — numpy + # would silently promote True to 1 + bm = ar["/boolmix"] + assert isinstance(bm, list) and len(bm) == 2 + np.testing.assert_array_equal(bm[0], [0, 1]) + assert bm[1] == [True, False] + + # regression: a group-saved list with more than ten elements + # still loads as a list, in order (children come back from HDF5 + # lexicographically) + lm = ar["/longmixed"] + assert lm == [1, 2.5, "x"] + list(range(10)), lm + + # regression: empty lists stay integer-typed datasets + el = ar["/emptylist"] + assert len(el) == 0 + + # regression: re-saving a group-shaped list drops stale children + assert ar["/shrink"] == [1, "a"] + del ar diff --git a/test/pyalps/test_binding_surface.py b/test/pyalps/test_binding_surface.py index 3e54bd13a..2ced13624 100644 --- a/test/pyalps/test_binding_surface.py +++ b/test/pyalps/test_binding_surface.py @@ -265,12 +265,40 @@ def test_params_mapping_equality_and_value_ladder(): raise AssertionError("None must be rejected") except TypeError as error: assert "None" in str(error) - # oversized integers raise instead of truncating silently + # oversized integers raise instead of truncating silently — + # inside lists too, where the double-widening fallback would + # otherwise corrupt values beyond 2**53 try: p["n"] = 2 ** 40 raise AssertionError("2**40 must be rejected") except TypeError as error: assert "32-bit" in str(error) + try: + p["nl"] = [2 ** 53 + 1] + raise AssertionError("[2**53+1] must be rejected") + except TypeError as error: + assert "32-bit" in str(error) + # bools (numpy bools included) never coerce to numbers + for bad in ([True, False], [np.bool_(True)]): + try: + p["flags"] = bad + raise AssertionError("bool list must be rejected") + except TypeError: + pass + # numpy integer scalars are accepted like numpy floats are — + # as scalars and inside lists, with the same 32-bit range policy + p["npint"] = np.int64(8) + assert p["npint"] == 8 and type(p["npint"]) is int + p["npbool"] = np.bool_(True) + assert p["npbool"] is True + p["npints"] = [np.int64(1), np.int64(2)] + assert p["npints"] == [1, 2] + assert all(type(v) is int for v in p["npints"]) + try: + p["npbig"] = [np.int64(2 ** 40)] + raise AssertionError("[np.int64(2**40)] must be rejected") + except TypeError as error: + assert "32-bit" in str(error) # exact-type lists round-trip with their element type p["ilist"] = [1, 2, 3] assert p["ilist"] == [1, 2, 3] @@ -297,6 +325,18 @@ def test_observable_lshift_chains(): assert ngs.observable2result(observable).count == 2 +def test_observables_item_deletion(): + from pyalps import ngs + + observables = ngs.observables() + observables.createRealObservable("a") + observables.createRealObservable("b") + del observables["a"] + assert "a" not in observables and "b" in observables + observables.clear() + assert len(observables) == 0 + + def test_mcbase_save_load_overrides_reach_cpp_dispatch(): from pyalps import ngs from pyalps.cxx import pyngshdf5_c @@ -385,6 +425,7 @@ def GetProperties(self, filenames): test_optional_application_extension_surface, test_params_mapping_equality_and_value_ladder, test_observable_lshift_chains, + test_observables_item_deletion, test_mcbase_save_load_overrides_reach_cpp_dispatch, test_accumulator_result_inplace_identity, ): From db9aa294973e5af7708dc284395b327b4ae14204 Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Tue, 18 Aug 2026 20:01:47 -0500 Subject: [PATCH 38/51] fix(pyalps): address post-audit HDF5 regressions --- bindings/python/pyalps/README.md | 12 ++-- bindings/python/pyalps/cpp/ngs/hdf5.cpp | 84 ++++++++++++++++++++--- parms1.h5 | Bin 6176 -> 0 bytes parms2.h5 | Bin 6176 -> 0 bytes py.h5 | Bin 7352 -> 0 bytes test/pyalps/pyhdf5_test.py | 33 ++++----- test/pyalps/pyhdf5io_test.py | 85 ++++++++++++++++++++++++ test/pyalps/pyparams_test.py | 35 +++++----- 8 files changed, 201 insertions(+), 48 deletions(-) delete mode 100644 parms1.h5 delete mode 100644 parms2.h5 delete mode 100644 py.h5 diff --git a/bindings/python/pyalps/README.md b/bindings/python/pyalps/README.md index 3d23f87ff..7949a19ed 100644 --- a/bindings/python/pyalps/README.md +++ b/bindings/python/pyalps/README.md @@ -48,10 +48,8 @@ into neither of nanobind's special ABI modes: singleton, `mcdata`'s lazily-computed statistics). Do not add `FREE_THREADED` to `nanobind_add_module` without first making that state thread-safe. -- **Stable ABI (abi3):** the bindings contain no limited-API violations - (the last one, a `PyTuple_SET_ITEM`, was removed deliberately to keep - this option open), but per-version wheels are kept because the wheel - matrix is fully automated, linked abi3 would raise the floor to - CPython 3.12, and split mode adds a runtime dependency plus per-call - overhead on hot accessor paths. Revisit when a new CPython release - makes day-one support pressing. +- **Stable ABI (abi3):** not enabled or currently supported. Some binding + paths still inspect CPython type internals (`tp_name`), and no abi3 build + runs in CI. Per-version wheels are deliberate; do not add `STABLE_ABI` + until the code is limited-API clean and CI compiles and imports the + resulting extensions. diff --git a/bindings/python/pyalps/cpp/ngs/hdf5.cpp b/bindings/python/pyalps/cpp/ngs/hdf5.cpp index 7d6729b2a..faf037547 100644 --- a/bindings/python/pyalps/cpp/ngs/hdf5.cpp +++ b/bindings/python/pyalps/cpp/ngs/hdf5.cpp @@ -36,6 +36,28 @@ namespace nb = nanobind; namespace alps { namespace detail { + // Decode one layer of the two entities produced by + // archive::encode_segment. Do this locally instead of calling + // archive::decode_segment unconditionally: HDF5 files created by + // other tools may legitimately contain a raw '&' in a child name. + // A literal name containing exactly "&" or "/" remains + // ambiguous because the existing ALPS format has no type marker. + static std::string decode_dict_key(std::string const & segment) { + std::string result; + result.reserve(segment.size()); + for (std::size_t pos = 0; pos < segment.size();) { + if (segment.compare(pos, 5, "&") == 0) { + result.push_back('&'); + pos += 5; + } else if (segment.compare(pos, 5, "/") == 0) { + result.push_back('/'); + pos += 5; + } else { + result.push_back(segment[pos++]); + } + } + return result; + } // Analysis of a Python list/tuple tree against the legacy // Boost.Python vectorization rules (src/alps/hdf5/python.cpp, // is_vectorizable_generic): a list is written as one dataset @@ -220,24 +242,50 @@ namespace alps { static bool is_ndarray(PyObject * raw) { return std::strcmp(Py_TYPE(raw)->tp_name, "numpy.ndarray") == 0; } + static bool is_numpy_scalar(PyObject * raw) { + static std::array const scalar_types{{ + "numpy.str_", "numpy.str", "numpy.bool_", "numpy.bool", + "numpy.int8", "numpy.int16", "numpy.int32", "numpy.int64", + "numpy.uint8", "numpy.uint16", "numpy.uint32", "numpy.uint64", + "numpy.float32", "numpy.float64", + "numpy.complex64", "numpy.complex128", + }}; + for (char const * scalar_type : scalar_types) + if (std::strcmp(Py_TYPE(raw)->tp_name, scalar_type) == 0) + return true; + return false; + } struct tree_scan { bool has_ndarray = false; + bool has_numpy_scalar = false; + bool has_other_scalar = false; bool has_bool_leaf = false; + bool homogeneous_numpy_scalars = true; + PyTypeObject * numpy_scalar_type = nullptr; }; static void scan_tree(nb::handle node, tree_scan & scan) { std::size_t const n = nb::len(node); for (std::size_t i = 0; i < n; ++i) { nb::object item = node[i]; PyObject * raw = item.ptr(); - if (is_ndarray(raw)) + if (is_ndarray(raw)) { scan.has_ndarray = true; - else if (PyList_Check(raw) || PyTuple_Check(raw)) + } else if (PyList_Check(raw) || PyTuple_Check(raw)) { scan_tree(item, scan); - else if (PyBool_Check(raw) - || std::strncmp(Py_TYPE(raw)->tp_name, "numpy.bool", 10) == 0) - scan.has_bool_leaf = true; - if (scan.has_bool_leaf) - return; // verdict fixed: bool leaves veto stacking + } else if (is_numpy_scalar(raw)) { + scan.has_numpy_scalar = true; + PyTypeObject * scalar_type = Py_TYPE(raw); + if (!scan.numpy_scalar_type) + scan.numpy_scalar_type = scalar_type; + else if (scan.numpy_scalar_type != scalar_type) + scan.homogeneous_numpy_scalars = false; + if (std::strncmp(Py_TYPE(raw)->tp_name, "numpy.bool", 10) == 0) + scan.has_bool_leaf = true; + } else { + scan.has_other_scalar = true; + if (PyBool_Check(raw)) + scan.has_bool_leaf = true; + } } } // The list shapes the legacy build stacked into one @@ -274,6 +322,16 @@ namespace alps { return false; tree_scan scan; scan_tree(l, scan); + // A rectangular tree made solely from one exact NumPy + // scalar type is vectorizable at any nesting depth. + // np.asarray below performs the final rectangularity + // check and preserves the scalar dtype. + if (scan.has_numpy_scalar && !scan.has_ndarray + && !scan.has_other_scalar) + return scan.homogeneous_numpy_scalars; + // Preserve the legacy ndarray/list stacking path. Bool + // leaves remain a veto because NumPy would silently turn + // them into 0/1 when combined with a numeric ndarray. return scan.has_ndarray && !scan.has_bool_leaf; } void operator()(nb::dict const & d) const { @@ -287,7 +345,7 @@ namespace alps { ar.create_group(path); for (auto item : d) { std::string key = nb::cast(nb::str(item.first)); - std::string child = path + "/" + key; + std::string child = path + "/" + ar.encode_segment(key); hdf5_save_py11_visitor child_visitor{ar, child}; extract_from_pyobject_py11(child_visitor, item.second); } @@ -343,7 +401,9 @@ namespace alps { // value[cast(name)]. if (ar.is_group(path)) { auto children = ar.list_children(path); - bool list_shaped = true; + // Match the legacy dynamic loader: an empty group is a + // dict. Empty lists use the dataset representation. + bool list_shaped = !children.empty(); std::vector seen(children.size(), false); for (auto const & child : children) { bool numeric = !child.empty() && child.size() < 20; @@ -370,9 +430,11 @@ namespace alps { return nb::object(std::move(result)); } else { nb::dict result; - for (auto const & child : children) - result[nb::str(child.c_str())] = + for (auto const & child : children) { + std::string const key = decode_dict_key(child); + result[nb::str(key.c_str())] = python_hdf5_load_impl(ar, path + "/" + child); + } return nb::object(std::move(result)); } } diff --git a/parms1.h5 b/parms1.h5 deleted file mode 100644 index a3af53cf4ba9ea14abcde8afa8dacb4be44887a3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6176 zcmeD5aB<`1lHy|G;9!7(|4^VH0TD5PN=(a2)$#Xm31ZUucd;c48E;`y0;^$Wg(`&^ zflhNVF))IZu!)06MivkW0xV^TIfnlsY`7#?B~;Q#nh7GyCIX@vS)g17#zb>wR2e9j zfw3YOYQBH~NJTdrL>1%ROgF-(Dh73>FQ zE)F4(dCZIq(2#?BW*@|!p-iexQWGU2Y(zj|BMAy0pl3lC5@j5)Fk*s*5eqboz!3oo zm~9|pXo8igSJx5|HU!g+2sC>Qr*t#rl1>se!bV~khRxqJ&X?2(8<}AkHrF4nboY1m z@P?J{usp$-ln<>^q9vlehh}*(s9miEbRDRg6M+`cpaR_8+203TkV8vrNTCi<2l9-G z5r{;98~h0NC~GtXMnhmU1V%$(Gz3ONU^E0qLtr!nMnhmU1V%$(Gz3ONU}%H@sJ{;$ H`UcVfD$$NH diff --git a/parms2.h5 b/parms2.h5 deleted file mode 100644 index d879fd8a56e42e800509220c796aa68bcf9ac4df..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6176 zcmeD5aB<`1lHy|G;9!7(|4^VH0TD5PN=(a2)$#Xm31ZUucd;c48E;`y0;^$Wgerv@ zflhNVF@Tk@$$}IzvOtwHa1|sLCFZ7U7|JFN(F5f&u#_d{7_vb_1SZK0Q45wdQi3{1Kma5f z#SW2!gggU-op;_Tuy=HkV+O=#V1&2~WD_$FC;|k4kqxm)fq@kqCCpqLLLl>iF$hfv z@VMCrv1cfgYLnDNsS!3T!!T^}8xMS^M%cg#kl~bW^q4Q$5fL^bpgbiB%2&Wl0>Y5o z&H>9?Ot8Gg15H2R3=GOp+d#z71kD16{t*#21j`#4Xe~3G(#`dUE8YE_J-lJ1Kg@58 z6?SZp*#2>7TmE2(cTh?NRWe#Y45}YwpeYn2?(XdG15U}%Q5bVSny#f?BB2o|&r6kV6xz1NJt2Rh@hvidW#~od+t4FTE;PrL|C}9?0ommxj(--=L~%JcBZGd zD%p^9To?FSqw87PJUL2+mHGZ(*-X!A=kV&%&9Uxz7;Hk5V{XeAyc?wPqAZ$X@naUdyxnB!?+fhMS6XuI21vjuLd zk(+(ZokW2T?R%hoO_3kwC`KFwPWH5N$?2LIsx{nvSvFz7=m}Ac`*MU3?4FErGp^#U z?khouh8pD?hlO90*3PF~EgVl=PqpE^5>o1?{4kdrnVcw&=cjWy?YbtET)@Q$xPWbU z<{F)SaDA(ORF83{mW6*_F!_5p{5OuZE}qMFXZoYovPPquwEvR6671jFm}ohd zvZxC3It}UFsSOzQumI2FvWxz6E8L$jg0t1_fQ!EFBMJcZTO`Q77I>hkK5b^aV ze2-R_GD5WC8XP6su2Yw2al!N8EMT45G=NPdWHwZr_;i5P7*gkePfSR60Tg8PHP3}g z!80pW_o6xWg=oiJIC8x%&Z^u-xCPz32gjD+BdCjYbH>2nYcseZ^r-G_x6a;c=G%_@ zQs(TS2}eF_U<{7lcp47BFmgD;Rc;xH(T8s{P1Lw6veUmleDUVvg4T*_u&0P|a5#nH XH42afnK(|IiOX}1W}bt`PYwMBBN~h} diff --git a/test/pyalps/pyhdf5_test.py b/test/pyalps/pyhdf5_test.py index efee3a53a..1f43f0736 100644 --- a/test/pyalps/pyhdf5_test.py +++ b/test/pyalps/pyhdf5_test.py @@ -15,7 +15,8 @@ import pyalps.hdf5 as h5 import numpy as np -import sys +import os +import tempfile def write(ar): ar["/int"] = 9 @@ -56,19 +57,21 @@ def read(ar): raise Exception('invalid array value') def test_hdf5(): - oar = h5.archive("py.h5", 'w') - write(oar) - del oar - - iar = h5.archive("py.h5", 'r') - if iar.is_complex("/int") or not iar.is_complex("/cplx") or not iar.extent("/np/cplx"): - raise Exception('invalid complex detection') - read(iar) - del iar - - ar = h5.archive("py.h5", 'w') - write(ar) - read(ar) - del ar + with tempfile.TemporaryDirectory() as directory: + path = os.path.join(directory, "py.h5") + oar = h5.archive(path, 'w') + write(oar) + del oar + + iar = h5.archive(path, 'r') + if iar.is_complex("/int") or not iar.is_complex("/cplx") or not iar.extent("/np/cplx"): + raise Exception('invalid complex detection') + read(iar) + del iar + + ar = h5.archive(path, 'w') + write(ar) + read(ar) + del ar print("SUCCESS") diff --git a/test/pyalps/pyhdf5io_test.py b/test/pyalps/pyhdf5io_test.py index b955af4fe..5e21e81d3 100644 --- a/test/pyalps/pyhdf5io_test.py +++ b/test/pyalps/pyhdf5io_test.py @@ -224,6 +224,91 @@ def test_hdf5io(): del ar +def test_hdf5_empty_dict_roundtrip(): + with tempfile.TemporaryDirectory() as directory: + path = os.path.join(directory, "empty-dict.h5") + ar = hdf5.archive(path, "w") + ar["/value"] = {} + del ar + + ar = hdf5.archive(path, "r") + value = ar["/value"] + assert type(value) is dict + assert value == {} + del ar + + +def test_hdf5_dict_key_roundtrip(): + expected = { + "a/b": 1, + "a": {"b": 2}, + "amp&key": 3, + "entity/": 4, + } + with tempfile.TemporaryDirectory() as directory: + path = os.path.join(directory, "dict-keys.h5") + ar = hdf5.archive(path, "w") + ar["/value"] = expected + ar.create_group("/rawamp") + ar["/rawamp/literal&child"] = 5 + del ar + + ar = hdf5.archive(path, "r") + assert ar["/value"] == expected + # A raw ampersand from a non-pyalps HDF5 producer is not an + # encoded path entity and must remain literal. + assert ar["/rawamp"] == {"literal&child": 5} + del ar + + +def test_hdf5_nested_numpy_scalar_vectorization(): + with tempfile.TemporaryDirectory() as directory: + path = os.path.join(directory, "nested-numpy-scalars.h5") + ar = hdf5.archive(path, "w") + ar["/rectangular"] = [ + [np.int16(1), np.int16(2)], + [np.int16(3), np.int16(4)], + ] + ar["/ragged"] = [ + [np.int16(1)], + [np.int16(2), np.int16(3)], + ] + ar["/mixed"] = [ + [np.int16(1), np.int16(2)], + [np.int32(3), np.int32(4)], + ] + ar["/arrayandscalar"] = [np.arange(2), np.int64(3)] + del ar + + ar = hdf5.archive(path, "r") + rectangular = ar["/rectangular"] + assert isinstance(rectangular, np.ndarray) + assert rectangular.dtype == np.int16 + assert rectangular.shape == (2, 2) + np.testing.assert_array_equal(rectangular, [[1, 2], [3, 4]]) + + # The new recursive case must not widen its acceptance: ragged + # trees, mixed NumPy scalar dtypes, and sequence/scalar mixtures + # retain the existing group representation. + ragged = ar["/ragged"] + assert isinstance(ragged, list) and len(ragged) == 2 + assert all(row.dtype == np.int16 for row in ragged) + np.testing.assert_array_equal(ragged[0], [1]) + np.testing.assert_array_equal(ragged[1], [2, 3]) + mixed = ar["/mixed"] + assert isinstance(mixed, list) and len(mixed) == 2 + assert mixed[0].dtype == np.int16 + assert mixed[1].dtype == np.int32 + array_and_scalar = ar["/arrayandscalar"] + assert isinstance(array_and_scalar, list) + np.testing.assert_array_equal(array_and_scalar[0], [0, 1]) + assert array_and_scalar[1] == 3 + del ar + + if __name__ == "__main__": test_hdf5io() + test_hdf5_empty_dict_roundtrip() + test_hdf5_dict_key_roundtrip() + test_hdf5_nested_numpy_scalar_vectorization() print("SUCCESS") diff --git a/test/pyalps/pyparams_test.py b/test/pyalps/pyparams_test.py index 98336b7b6..7436c7660 100644 --- a/test/pyalps/pyparams_test.py +++ b/test/pyalps/pyparams_test.py @@ -14,7 +14,8 @@ import pyalps.hdf5 as hdf5 import pyalps.ngs as ngs -import sys +import os +import tempfile orig_dict = { 'val1' : 42, @@ -43,23 +44,27 @@ def test_params(): ## Check nonetype assert type(p["undefined"]) == type(None) - ## Write to hdf5 - with hdf5.archive('parms1.h5', 'w') as oar: - p.save(oar) # does not use path '/parameters' - - with hdf5.archive('parms2.h5', 'w') as oar: - for key in sorted(p.keys()): - print(key) - oar['parameters/' + key] = p[key] - ## Load from hdf5 - with hdf5.archive('parms2.h5', 'r') as oar: - iar = hdf5.archive('parms2.h5', 'r') - p.load(iar) - + ## Write to and load from hdf5 without leaving test artifacts in the tree. + with tempfile.TemporaryDirectory() as directory: + parms1 = os.path.join(directory, 'parms1.h5') + parms2 = os.path.join(directory, 'parms2.h5') + with hdf5.archive(parms1, 'w') as oar: + p.save(oar) # does not use path '/parameters' + + with hdf5.archive(parms2, 'w') as oar: + for key in sorted(p.keys()): + print(key) + oar['parameters/' + key] = p[key] + + # Preserve the existing simultaneous-reader exercise. + with hdf5.archive(parms2, 'r'): + with hdf5.archive(parms2, 'r') as iar: + p.load(iar) + for k in sorted(orig_dict.keys()): assert p[k] == orig_dict[k] assert_type(p, k) print(k,'ok!') if __name__ == '__main__': - test_params() \ No newline at end of file + test_params() From b686a55d1094f448e7229c4f1f302b9d7ef07e9e Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Wed, 19 Aug 2026 01:20:20 -0500 Subject: [PATCH 39/51] fix(pyalps): complete nanobind compatibility migration --- .github/workflows/build.yml | 13 + .github/workflows/build_wheels.yml | 32 +- bindings/python/pyalps/MIGRATION.md | 68 ++++ bindings/python/pyalps/README.md | 3 + bindings/python/pyalps/cpp/apps/dwa.cpp | 18 +- bindings/python/pyalps/cpp/dict_to_params.hpp | 298 ++++++++++---- .../pyalps/cpp/ngs/extract_from_pyobject.hpp | 18 +- bindings/python/pyalps/cpp/ngs/hdf5.cpp | 33 +- bindings/python/pyalps/cpp/ngs/mcbase.cpp | 36 +- bindings/python/pyalps/cpp/ngs/params.cpp | 2 +- bindings/python/pyalps/pyproject.toml | 34 ++ bindings/python/pyalps/src/pyalps/__init__.py | 43 +- bindings/python/pyalps/src/pyalps/mpi.py | 381 ++++++++++++++++-- src/alps/ngs/detail/export_sim_to_python.hpp | 107 +++++ src/alps/ngs/detail/paramproxy.hpp | 5 +- src/alps/ngs/detail/paramvalue.hpp | 9 +- src/alps/ngs/detail/paramvalue_reader.hpp | 17 +- src/alps/ngs/lib/paramproxy.cpp | 2 +- src/alps/ngs/lib/paramvalue.cpp | 1 + src/alps/python/make_copy.hpp | 20 + src/alps/python/save_observable_to_hdf5.hpp | 25 ++ test/ngs/params/assign.cpp | 7 + test/pyalps/pyhdf5io_test.py | 95 +++++ test/pyalps/test_binding_surface.py | 353 +++++++++++++++- tutorials/ngs/5_export_python/CMakeLists.txt | 42 ++ tutorials/ngs/5_export_python/README.md | 20 + tutorials/ngs/5_export_python/export2py.cpp | 12 + tutorials/ngs/5_export_python/ising.cpp | 42 ++ tutorials/ngs/5_export_python/ising.hpp | 28 ++ tutorials/ngs/5_export_python/main.py | 12 + tutorials/ngs/5_export_python/smoke_test.py | 38 ++ 31 files changed, 1663 insertions(+), 151 deletions(-) create mode 100644 bindings/python/pyalps/MIGRATION.md create mode 100644 src/alps/ngs/detail/export_sim_to_python.hpp create mode 100644 src/alps/python/make_copy.hpp create mode 100644 src/alps/python/save_observable_to_hdf5.hpp create mode 100644 tutorials/ngs/5_export_python/CMakeLists.txt create mode 100644 tutorials/ngs/5_export_python/README.md create mode 100644 tutorials/ngs/5_export_python/export2py.cpp create mode 100644 tutorials/ngs/5_export_python/ising.cpp create mode 100644 tutorials/ngs/5_export_python/ising.hpp create mode 100644 tutorials/ngs/5_export_python/main.py create mode 100644 tutorials/ngs/5_export_python/smoke_test.py diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7bac762fa..8c0e113d9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -94,11 +94,24 @@ jobs: run: | cmake -S $GITHUB_WORKSPACE -B build \ -DBoost_ROOT_DIR=`pwd`/boost_1_${{ matrix.plat.boost_version }}_0 \ + -DCMAKE_INSTALL_PREFIX="$GITHUB_WORKSPACE/build/install" \ -DCMAKE_CXX_STANDARD=${{ matrix.plat.cxx_standard || '17' }} \ -DCMAKE_CXX_FLAGS="-fpermissive -DBOOST_NO_AUTO_PTR -DBOOST_FILESYSTEM_NO_CXX20_ATOMIC_REF -DBOOST_TIMER_ENABLE_DEPRECATED" cmake --build build -j 2 cmake --build build -j 2 -t test + # Compile the public exporter as a downstream project, rather than only + # checking that its compatibility header is present in the install. + - name: Smoke test downstream nanobind simulation extension + if: matrix.plat.os == 'ubuntu-24.04' && matrix.plat.c_compiler == 'gcc' && matrix.plat.c_version == 14 && matrix.plat.py_version == '3.14' && matrix.plat.boost_version == 91 && matrix.plat.cxx_standard == null + run: | + python -m pip install "nanobind>=2.10,<3" + cmake --install build + cmake -S tutorials/ngs/5_export_python -B downstream-export-build \ + -DALPS_DIR="$PWD/build/install/share/alps" \ + -DPython_EXECUTABLE="$(command -v python)" + cmake --build downstream-export-build -j 2 + macos-build: name: Build ALPS on ${{ matrix.plat.os }} / ${{ matrix.plat.c_compiler }} runs-on: ${{ matrix.plat.os }} diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 287269f1d..afa818b45 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -115,8 +115,38 @@ jobs: python -c "import pyalps, pyalps.alea, pyalps.hdf5, pyalps.pytools; print(pyalps.__file__)" python -m pytest -q test/pyalps + # The ordinary wheel tests deliberately keep mpi4py optional. This job + # installs one consistent Open MPI stack and verifies real inter-rank + # collectives, requests and point-to-point traffic through pyalps.mpi. + mpi_smoke: + name: Smoke test MPI adapter with two ranks + needs: [build_wheels] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + + - uses: actions/setup-python@v7 + with: + python-version: "3.14" + + - uses: actions/download-artifact@v8 + with: + pattern: cibw-wheels-ubuntu-latest-* + path: wheelhouse + merge-multiple: true + + - name: Install wheel and MPI runtime + run: | + sudo apt-get update + sudo apt-get install -y libopenmpi-dev openmpi-bin + python -m pip install numpy scipy pytest mpi4py + python -m pip install --no-index --no-deps --find-links wheelhouse pyalps + + - name: Run two-rank compatibility surface + run: mpiexec -n 2 python -m pytest -q test/pyalps/test_binding_surface.py::test_mpi4py_compatibility_surface + upload_pypi: - needs: [build_wheels, build_sdist, smoke_test] + needs: [build_wheels, build_sdist, smoke_test, mpi_smoke] runs-on: ubuntu-latest environment: pypi permissions: diff --git a/bindings/python/pyalps/MIGRATION.md b/bindings/python/pyalps/MIGRATION.md new file mode 100644 index 000000000..213764687 --- /dev/null +++ b/bindings/python/pyalps/MIGRATION.md @@ -0,0 +1,68 @@ +# Migrating from the Boost.Python pyalps build + +The public Python API is preserved wherever it maps to native ALPS values. +The nanobind build intentionally does not keep arbitrary Python objects inside +`alps::params` or the C++ library. + +## Parameters + +`pyalps.ngs.params` accepts native booleans, 32-bit integers, floating-point +and complex numbers, strings, homogeneous Python sequences, NumPy scalar +arrays, and one-dimensional NumPy arrays. Values are copied into native C++ +storage. Multidimensional arrays, `None`, dictionaries, arbitrary objects, and +integers outside ALPS' 32-bit parameter range raise `TypeError` rather than +being retained as opaque Python objects. Sequence values are returned as +lists, irrespective of whether the input was a list, tuple, or NumPy array. + +## MPI + +Install `pyalps[mpi]` to use `pyalps.mpi`. The module provides the commonly +used Boost.MPI Python surface (`world`, `rank`, `size`, `Communicator`, +point-to-point methods, collectives, status/request names, and `Timer`) on top +of mpi4py. Ordinary pyalps wheels remain independent of any MPI runtime. + +The historical `mcbase(..., communicator)` argument is still accepted. It is +ignored, as it was by the Boost.Python wrapper; `alps::mcbase` itself has no +communicator constructor. Use `pyalps.mpi` for Python communication and ALPS' +C++ MPI adapters for MPI-aware C++ simulations. + +Boost.MPI's Python-object serialization bridge and skeleton/content API are +not reproduced. Hybrid applications should use mpi4py's typed buffer API or +an application-specific native C++ protocol. + +## Compiled module paths and DWA vectors + +Legacy paths such as `pyalps.pyalea_c` and `pyalps.dwa_c` remain aliases of +the extensions now stored under `pyalps._ext`. The preferred stable import is +still `pyalps.cxx.pyalea_c` for core extensions and `pyalps.dwa` for DWA. + +DWA's former `std_vector_*` constructors are compatibility aliases for +Python's `list`. DWA methods return list snapshots, which avoids exposing +mutable C++ container proxies and accepts ordinary Python sequences directly. + +## Exporting downstream C++ simulations + +The public header `` now implements +the export helper with nanobind while keeping the +`ALPS_EXPORT_SIM_TO_PYTHON` macro. Change the module declaration in an old +export source from: + +```cpp +BOOST_PYTHON_MODULE(my_sim) { +``` + +to: + +```cpp +#include +NB_MODULE(my_sim, m) { +``` + +and keep the existing export macro call. See +`tutorials/ngs/5_export_python` for a complete standalone CMake build. + +The removed `alps/python/numpy_array.hpp` API should be replaced with +`nanobind::ndarray` or nanobind's STL casters. The old +`alps/hdf5/python.hpp` operators accepted `boost::python::object` and have no +Python-object-free equivalent; use typed `alps::hdf5::archive` operations in +C++ or `pyalps.hdf5` at the Python boundary. diff --git a/bindings/python/pyalps/README.md b/bindings/python/pyalps/README.md index 7949a19ed..4f0348cc0 100644 --- a/bindings/python/pyalps/README.md +++ b/bindings/python/pyalps/README.md @@ -8,6 +8,9 @@ python -m pip install pyalps ``` Install `pyalps[plot]` to use the Matplotlib plotting helpers. +Install `pyalps[mpi]` for the mpi4py-backed `pyalps.mpi` compatibility layer. +Projects moving from the Boost.Python build should also read +[the nanobind migration guide](https://github.com/ALPSim/ALPS/blob/master/bindings/python/pyalps/MIGRATION.md). The bindings are built as a standalone `scikit-build-core` project using nanobind. A source build requires Python 3.10 or newer, CMake 3.22 or newer, diff --git a/bindings/python/pyalps/cpp/apps/dwa.cpp b/bindings/python/pyalps/cpp/apps/dwa.cpp index f4098764b..386675c65 100644 --- a/bindings/python/pyalps/cpp/apps/dwa.cpp +++ b/bindings/python/pyalps/cpp/apps/dwa.cpp @@ -32,9 +32,9 @@ // handed out as a distinct nb::class_> carrying the // vector_indexing_suite. nanobind's built-in STL caster auto- // converts std::vector ↔ Python list for us, so those -// registrations are retired; any code that wrote -// `dwa_c.std_vector_double(...)` now just passes / receives a Python -// list directly. +// registrations are retired. Their public names remain aliases of Python's +// list so old construction and isinstance patterns keep working while DWA +// accepts and returns ordinary Python sequences. #include #include #include @@ -45,6 +45,12 @@ namespace nb = nanobind; #include NB_MODULE(dwa_c, m) { m.doc() = "ALPS DWA (directed worm algorithm) Python bindings."; + nb::object list_type = nb::module_::import_("builtins").attr("list"); + m.attr("std_vector_double") = list_type; + m.attr("std_vector_unsigned_int") = list_type; + m.attr("std_vector_unsigned_short") = list_type; + m.attr("std_vector_std_vector_double") = list_type; + m.attr("std_vector_std_vector_unsigned_short") = list_type; nb::class_(m, "kink") .def(nb::init(), nb::arg("siteindicator")) .def(nb::init(), @@ -61,9 +67,9 @@ NB_MODULE(dwa_c, m) { .def("load", static_cast(&worldlines::load)) .def("save", static_cast(&worldlines::save)) .def("open_worldlines", &worldlines::open_worldlines) - // The four sequence accessors below return snapshots (nanobind's - // STL caster copies); mutating the returned list does not touch - // the worldline, unlike the old vector_indexing_suite proxies. + // These accessors have always returned snapshots. nanobind represents + // each copied vector as an ordinary list instead of a mutable C++ + // vector proxy; mutating either form does not touch the worldline. .def("worldlines_siteindicator", &worldlines::worldlines_siteindicator, "Returns a copy; mutating it does not affect the worldline.") .def("worldlines_time", &worldlines::worldlines_time, diff --git a/bindings/python/pyalps/cpp/dict_to_params.hpp b/bindings/python/pyalps/cpp/dict_to_params.hpp index c4e197129..9b7bb8cb4 100644 --- a/bindings/python/pyalps/cpp/dict_to_params.hpp +++ b/bindings/python/pyalps/cpp/dict_to_params.hpp @@ -21,6 +21,15 @@ namespace pyalps { namespace nb = nanobind; namespace detail { +enum class scalar_kind { + unsupported, + boolean, + integer, + real, + complex, + string +}; + inline bool is_bool_like(PyObject * raw) { // plain bool, or a numpy bool scalar (numpy.bool_ / numpy.bool), // which does NOT subclass bool and would otherwise slip through @@ -28,101 +37,254 @@ inline bool is_bool_like(PyObject * raw) { return PyBool_Check(raw) || std::strncmp(Py_TYPE(raw)->tp_name, "numpy.bool", 10) == 0; } +inline bool is_numpy_array(nb::handle value) { + // isinstance, rather than an exact tp_name comparison, keeps ndarray + // subclasses (for example an unmasked numpy.ma.MaskedArray) on the same + // native-copy path. Import lookup itself is cached by Python. + return nb::isinstance(value, nb::module_::import_("numpy").attr("ndarray")); +} + +inline char numpy_scalar_kind(nb::handle value) { + nb::object numpy = nb::module_::import_("numpy"); + if (!nb::isinstance(value, numpy.attr("generic"))) + return '\0'; + std::string const kind = nb::cast( + value.attr("dtype").attr("kind")); + return kind.empty() ? '\0' : kind.front(); +} + +inline scalar_kind classify_scalar(nb::handle value) { + if (is_bool_like(value.ptr())) + return scalar_kind::boolean; + + // NumPy extended scalars (float16/32/longdouble and + // complex64/clongdouble) are not consistently Python float/complex + // subclasses. Inspect dtype.kind before consulting Python's protocols so + // a complex scalar can never pass through __float__ and lose its + // imaginary component. + switch (numpy_scalar_kind(value)) { + case 'b': return scalar_kind::boolean; + case 'i': + case 'u': return scalar_kind::integer; + case 'f': return scalar_kind::real; + case 'c': return scalar_kind::complex; + case 'S': + case 'U': return scalar_kind::string; + case '\0': break; + default: return scalar_kind::unsupported; + } + + if (PyLong_Check(value.ptr()) || PyIndex_Check(value.ptr())) + return scalar_kind::integer; + if (PyFloat_Check(value.ptr())) + return scalar_kind::real; + if (PyComplex_Check(value.ptr())) + return scalar_kind::complex; + if (PyUnicode_Check(value.ptr()) || PyBytes_Check(value.ptr())) + return scalar_kind::string; + return scalar_kind::unsupported; +} + +inline int integer_value(nb::handle value, std::string const & key) { + PyObject * indexed = PyNumber_Index(value.ptr()); + if (!indexed) + throw nb::python_error(); + int overflow = 0; + long long const converted = PyLong_AsLongLongAndOverflow(indexed, &overflow); + Py_DECREF(indexed); + if (PyErr_Occurred()) { + PyErr_Clear(); + overflow = 1; + } + if (overflow + || converted < std::numeric_limits::min() + || converted > std::numeric_limits::max()) + throw nb::type_error(("parameter '" + key + + "' contains an integer that does not fit params'" + " 32-bit integer type").c_str()); + return static_cast(converted); +} + +inline double real_value(nb::handle value, std::string const & key) { + if (classify_scalar(value) == scalar_kind::integer) + return static_cast(integer_value(value, key)); + double const converted = PyFloat_AsDouble(value.ptr()); + if (PyErr_Occurred()) + throw nb::python_error(); + return converted; +} + +inline std::complex complex_value(nb::handle value, + std::string const & key) { + scalar_kind const kind = classify_scalar(value); + if (kind == scalar_kind::integer || kind == scalar_kind::real) + return std::complex(real_value(value, key), 0.0); + Py_complex const converted = PyComplex_AsCComplex(value.ptr()); + if (PyErr_Occurred()) + throw nb::python_error(); + return std::complex(converted.real, converted.imag); +} + +inline std::string string_value(nb::handle value) { + if (PyUnicode_Check(value.ptr())) + return nb::cast(value); + + // Python/NumPy byte strings map to ALPS' native UTF-8 std::string. This + // accepts the common fixed-width NumPy "S" dtype without creating an + // opaque-object escape hatch; invalid UTF-8 remains a loud error because + // nanobind must also decode the value when returning it to Python. + char * bytes = nullptr; + Py_ssize_t size = 0; + if (PyBytes_AsStringAndSize(value.ptr(), &bytes, &size) != 0) + throw nb::python_error(); + nb::object decoded = nb::steal( + PyUnicode_DecodeUTF8(bytes, size, "strict")); + if (!decoded.is_valid()) + throw nb::python_error(); + return nb::cast(decoded); +} } // namespace detail // Store one Python value under `key`. paramvalue's only integral // alternative is a 32-bit int and libalps static_casts wider integer // types down to it, so out-of-range integers are rejected loudly here // — for scalars and inside lists alike — rather than truncated or -// silently widened to double. List probes use exact element types -// first (convert=false) so integer lists round-trip as ints; mixed -// numeric lists without bools widen to double. +// silently widened to double. Sequence elements are classified before +// conversion so integers round-trip as ints, mixed real numerics widen to +// double, and complex values can never be coerced through a real-number path. inline void set_param_value(alps::params & p, std::string const & key, nb::handle value) { if (value.is_none()) throw nb::type_error(("cannot store None for parameter '" + key + "': params has no null type; delete the key instead").c_str()); - if (detail::is_bool_like(value.ptr())) { + detail::scalar_kind const scalar_type = detail::classify_scalar(value); + if (scalar_type == detail::scalar_kind::boolean) { // PyObject_IsTrue rather than nb::cast: the caster does // not convert numpy bool scalars int const truth = PyObject_IsTrue(value.ptr()); if (truth < 0) throw nb::python_error(); p[key] = (truth == 1); - } else if (nb::isinstance(value) || PyIndex_Check(value.ptr())) { - // PyIndex_Check admits numpy integer scalars (np.int64 etc.), - // which don't subclass int the way np.float64 subclasses float - try { - p[key] = nb::cast(value); - } catch (nb::cast_error const &) { + } else if (detail::is_numpy_array(value)) { + // params is deliberately Python-object-free. Convert the NumPy + // value once at the boundary and store one of paramvalue's native + // scalar/vector alternatives. ALPS parameters are one-dimensional; + // preserving an arbitrary N-D ndarray would require an object escape + // hatch or a new tensor type in the C++ API. + std::size_t const ndim = nb::cast(value.attr("ndim")); + if (ndim == 0) { + set_param_value(p, key, value.attr("item")()); + return; + } + if (ndim != 1) throw nb::type_error(("parameter '" + key - + "' does not fit params' 32-bit integer type").c_str()); + + "' is a multidimensional numpy array; params supports only scalars" + " and one-dimensional sequences").c_str()); + nb::object items = value.attr("tolist")(); + if (nb::len(items) == 0) { + // With no elements the sequence ladder cannot infer a native + // alternative. Preserve the ndarray's scalar family explicitly + // so an empty bool array does not silently become vector. + std::string const kind = nb::cast( + value.attr("dtype").attr("kind")); + if (kind == "b") p[key] = std::vector(); + else if (kind == "i" || kind == "u") p[key] = std::vector(); + else if (kind == "f") p[key] = std::vector(); + else if (kind == "c") p[key] = std::vector>(); + else if (kind == "S" || kind == "U") p[key] = std::vector(); + else + throw nb::type_error(("parameter '" + key + + "' is an empty numpy array with unsupported dtype kind '" + + kind + "'").c_str()); + return; } - } else if (nb::isinstance(value)) { - p[key] = nb::cast(value); - } else if (PyComplex_Check(value.ptr())) { - p[key] = nb::cast>(value); - } else if (nb::isinstance(value)) { - p[key] = nb::cast(value); + set_param_value(p, key, items); + return; + } else if (scalar_type == detail::scalar_kind::integer) { + p[key] = detail::integer_value(value, key); + } else if (scalar_type == detail::scalar_kind::real) { + p[key] = detail::real_value(value, key); + } else if (scalar_type == detail::scalar_kind::complex) { + p[key] = detail::complex_value(value, key); + } else if (scalar_type == detail::scalar_kind::string) { + p[key] = detail::string_value(value); } else if (nb::isinstance(value) || nb::isinstance(value)) { - // One pre-scan enforcing the loud-failure policies explicitly, - // independent of caster conversion behaviour: bools never - // coerce to numbers, and oversized integers raise exactly like - // the scalar arm instead of widening to double (which would - // corrupt values beyond 2^53). + // Classify before conversion. In particular, NumPy complex scalars + // implement a warning-emitting __float__; blindly probing a + // vector caster first would discard their imaginary parts. std::size_t const length = nb::len(value); bool has_bool = false; + bool has_integer = false; + bool has_real = false; + bool has_complex = false; + bool has_string = false; for (std::size_t i = 0; i < length; ++i) { nb::object item = value[i]; - PyObject * raw = item.ptr(); - if (detail::is_bool_like(raw)) { - has_bool = true; - } else if (PyLong_Check(raw) || PyIndex_Check(raw)) { - // PyNumber_Index covers numpy integer scalars too — - // they are not PyLong subclasses but must obey the - // same 32-bit range policy - PyObject * as_long = PyNumber_Index(raw); - if (!as_long) { - PyErr_Clear(); - continue; - } - int overflow = 0; - long long v = PyLong_AsLongLongAndOverflow(as_long, &overflow); - Py_DECREF(as_long); - if (overflow - || v < std::numeric_limits::min() - || v > std::numeric_limits::max()) - throw nb::type_error(("parameter '" + key - + "' contains an integer that does not fit params'" - " 32-bit integer type").c_str()); + switch (detail::classify_scalar(item)) { + case detail::scalar_kind::boolean: has_bool = true; break; + case detail::scalar_kind::integer: + detail::integer_value(item, key); // range check now + has_integer = true; + break; + case detail::scalar_kind::real: has_real = true; break; + case detail::scalar_kind::complex: has_complex = true; break; + case detail::scalar_kind::string: has_string = true; break; + case detail::scalar_kind::unsupported: + throw nb::type_error(("unsupported element in parameter '" + + key + "' sequence").c_str()); + } + } + + bool const has_non_bool = has_integer || has_real || has_complex || has_string; + if (has_bool && !has_non_bool) { + std::vector flags; + flags.reserve(length); + for (std::size_t i = 0; i < length; ++i) { + int const truth = PyObject_IsTrue(value[i].ptr()); + if (truth < 0) + throw nb::python_error(); + flags.push_back(truth == 1); } + p[key] = flags; + return; } - if (!has_bool) { - try { p[key] = nb::cast>(value, false); return; } - catch (nb::cast_error const &) {} - try { p[key] = nb::cast>(value, false); return; } - catch (nb::cast_error const &) {} - try { p[key] = nb::cast>>(value, false); return; } - catch (nb::cast_error const &) {} - try { p[key] = nb::cast>(value, false); return; } - catch (nb::cast_error const &) {} - // numpy integer scalars satisfy the convert=true int - // caster via __index__ (floats don't), keeping - // [np.int64(8)] consistent with the scalar np.int64 rung; - // the pre-scan above already range-checked every element - try { p[key] = nb::cast>(value); return; } - catch (nb::cast_error const &) {} - // mixed numeric content (e.g. [1, 2.5] or numpy floats) - // widens to double / complex - try { p[key] = nb::cast>(value); return; } - catch (nb::cast_error const &) {} - try { p[key] = nb::cast>>(value); return; } - catch (nb::cast_error const &) {} + if (has_bool) + throw nb::type_error(("unsupported sequence for parameter '" + key + + "' (bools cannot be mixed with other element types)").c_str()); + if (has_string && (has_integer || has_real || has_complex)) + throw nb::type_error(("unsupported sequence for parameter '" + key + + "' (strings cannot be mixed with numeric element types)").c_str()); + + if (has_string) { + std::vector strings; + strings.reserve(length); + for (std::size_t i = 0; i < length; ++i) + strings.push_back(detail::string_value(value[i])); + p[key] = strings; + } else if (has_complex) { + std::vector> numbers; + numbers.reserve(length); + for (std::size_t i = 0; i < length; ++i) + numbers.push_back(detail::complex_value(value[i], key)); + p[key] = numbers; + } else if (has_real) { + std::vector numbers; + numbers.reserve(length); + for (std::size_t i = 0; i < length; ++i) + numbers.push_back(detail::real_value(value[i], key)); + p[key] = numbers; + } else { + // An empty untyped Python sequence follows the historic native + // ladder's first vector alternative (vector). + std::vector numbers; + numbers.reserve(length); + for (std::size_t i = 0; i < length; ++i) + numbers.push_back(detail::integer_value(value[i], key)); + p[key] = numbers; } - throw nb::type_error(("unsupported list for parameter '" + key - + "' (expected homogeneous numbers or strings; bools are not" - " a parameter list type)").c_str()); + return; } else { throw nb::type_error(("unsupported type for parameter '" + key - + "' (expected bool/int/float/complex/str or a list of those)").c_str()); + + "' (expected bool/int/float/complex/str, a one-dimensional" + " numpy array, or a sequence of those scalar types)").c_str()); } } inline alps::params params_from_dict(nb::dict const & values) { diff --git a/bindings/python/pyalps/cpp/ngs/extract_from_pyobject.hpp b/bindings/python/pyalps/cpp/ngs/extract_from_pyobject.hpp index 3023d4bad..735ca0f5a 100644 --- a/bindings/python/pyalps/cpp/ngs/extract_from_pyobject.hpp +++ b/bindings/python/pyalps/cpp/ngs/extract_from_pyobject.hpp @@ -84,17 +84,23 @@ )); else if (dtype == "numpy.complex128") visitor(nb_::cast>(data)); - else if (dtype == "numpy.ndarray") { + else if (dtype == "numpy.ndarray" + || nb_::isinstance( + data, + nb_::module_::import_("numpy").attr("ndarray"))) { + // Reject non-native byte order explicitly. nanobind's + // failed ndarray cast would otherwise surface only as + // the unhelpful message "std::bad_cast". + if (!nb_::cast(data.attr("dtype").attr("isnative"))) + throw std::runtime_error("numpy array is not native" + ALPS_STACKTRACE); // Raw buffer access via nb::ndarray, with a strict // dtype match — nb::cast>(arr) of a // mismatched-dtype array silently coerces (e.g. // int → bool yields all-true), so we inspect // .dtype() ourselves and pick the matching arm. - // We require C-contiguity; the typical save path - // is bulk contiguous data and silently copying - // behind the user's back was the old - // PyArray_GETCONTIGUOUS behaviour we don't want - // to inherit. + // The C-contiguous caster preserves the legacy + // PyArray_GETCONTIGUOUS behaviour for sliced and + // transposed arrays by materialising a temporary copy. auto arr_any = nb_::cast>(data); std::vector sizes; sizes.reserve(arr_any.ndim()); diff --git a/bindings/python/pyalps/cpp/ngs/hdf5.cpp b/bindings/python/pyalps/cpp/ngs/hdf5.cpp index faf037547..616865ff8 100644 --- a/bindings/python/pyalps/cpp/ngs/hdf5.cpp +++ b/bindings/python/pyalps/cpp/ngs/hdf5.cpp @@ -153,6 +153,14 @@ namespace alps { } template void operator()(U const * ptr, std::vector const & sizes) const { + // NumPy uses rank zero for a 0-D array. Passing an empty + // size vector to archive::write creates an HDF5 NULL + // dataspace, which silently turns the scalar into an empty + // array. Store the pointed-to value as a scalar instead. + if (sizes.empty()) { + ar[path] << *ptr; + return; + } // Use make_pvp(path, ptr, size-vector) to preserve the // dimensional shape — a plain vector flatten would // round-trip the data but lose the rank. @@ -372,7 +380,13 @@ namespace alps { std::size_t total = 1; for (auto s : shape) total *= s; std::vector flat(total); - if (shape.size() <= 1) { + // archive::read rejects a zero-sized chunk. The HDF5 dataset + // already carries the complete extent, so for arrays such as + // (0, 2) and (2, 0) there is no payload to read: construct the + // correctly shaped NumPy array directly. + if (total == 0) { + return alps::python::make_numpy_array(nullptr, shape); + } else if (shape.size() <= 1) { // vector overload works directly. ar[path] >> flat; } else { @@ -447,7 +461,22 @@ namespace alps { // array. if (ar.is_complex(path)) { auto ext = ar.extent(path); - if (ext.size() == 1) { + bool const single_value = ext.size() == 1; + // Preserve the component precision. The legacy loader + // returned complex64 datasets as NumPy complex64 rather than + // widening them to complex128; only a complex128 scalar used + // the ordinary Python ``complex`` shortcut. + if (ar.is_datatype(path)) { + if (single_value) { + std::complex value; + ar[path] >> value; + return alps::python::make_numpy_array( + &value, std::vector()); + } + std::vector shape(ext.begin(), ext.end() - 1); + return load_nd_array>(ar, path, shape); + } + if (single_value) { std::complex v; ar[path] >> v; return nb::cast(v); } std::vector shape(ext.begin(), ext.end() - 1); diff --git a/bindings/python/pyalps/cpp/ngs/mcbase.cpp b/bindings/python/pyalps/cpp/ngs/mcbase.cpp index e87a90266..32e7d1892 100644 --- a/bindings/python/pyalps/cpp/ngs/mcbase.cpp +++ b/bindings/python/pyalps/cpp/ngs/mcbase.cpp @@ -46,9 +46,6 @@ #include #include namespace nb = nanobind; -#ifdef ALPS_HAVE_MPI - #include -#endif #include #include #include @@ -67,17 +64,11 @@ namespace alps { // save(archive&) / load(archive&); all five must be // forwarded so Python overrides are seen by C++ callers. NB_TRAMPOLINE(mcbase, 5); - #ifdef ALPS_HAVE_MPI - PyMCBase(nb::dict const & arg, - std::size_t seed_offset = 42, - boost::mpi::communicator const & /*comm*/ = boost::mpi::communicator()) - : mcbase(pyalps::params_from_dict(arg), seed_offset) - {} - #else - PyMCBase(nb::dict const & arg, std::size_t seed_offset = 42) - : mcbase(pyalps::params_from_dict(arg), seed_offset) - {} - #endif + PyMCBase(nb::dict const & arg, + std::size_t seed_offset = 42, + nb::handle /*communicator*/ = nb::none()) + : mcbase(pyalps::params_from_dict(arg), seed_offset) + {} void update() override { NB_OVERRIDE_PURE(update); } @@ -113,16 +104,15 @@ namespace alps { NB_MODULE(pyngsbase_c, m) { nb::class_(m, "_mcbase", nb::never_destruct()); nb::class_(m, "mcbase") - // Always expose the (dict, seed_offset) form from Python. When - // ALPS_HAVE_MPI is on we'd *like* to offer an optional - // communicator too, but boost::mpi::communicator is not a - // nanobind-registered type so nb::arg(..).default_value() can't - // materialise it. MPI simulations that actually need to hand - // Python a communicator should do so from C++ using the - // extended trampoline ctor directly. - .def(nb::init(), + // Retain the legacy third argument without binding Boost.MPI. The + // Boost.Python-era constructor accepted a communicator but never + // passed it to alps::mcbase (which has no communicator constructor), + // so accepting and ignoring it is behaviorally faithful. Python-side + // communication is provided by pyalps.mpi's mpi4py adapter. + .def(nb::init(), nb::arg("dict"), - nb::arg("seed_offset") = 42) + nb::arg("seed_offset") = 42, + nb::arg("communicator") = nb::none()) .def_prop_ro( "random", [](alps::PyMCBase & self) -> alps::random01 & { return self.get_random(); }, diff --git a/bindings/python/pyalps/cpp/ngs/params.cpp b/bindings/python/pyalps/cpp/ngs/params.cpp index 02df54e0f..e4e5781f0 100644 --- a/bindings/python/pyalps/cpp/ngs/params.cpp +++ b/bindings/python/pyalps/cpp/ngs/params.cpp @@ -39,7 +39,7 @@ nb::object paramvalue_to_py(alps::detail::paramvalue const & pv) { // via paramproxy's templated operator= — shared ladder in // ../dict_to_params.hpp so params, mcbase and the application modules // all ingest values identically. -void params_setitem(alps::params & self, nb::object const & key_obj, nb::object const & value) { +void params_setitem(alps::params & self, nb::object const & key_obj, nb::handle value) { pyalps::set_param_value(self, nb::cast(nb::str(key_obj)), value); } nb::object params_getitem(alps::params & self, nb::object const & key_obj) { diff --git a/bindings/python/pyalps/pyproject.toml b/bindings/python/pyalps/pyproject.toml index 06a42f388..c9195f15a 100644 --- a/bindings/python/pyalps/pyproject.toml +++ b/bindings/python/pyalps/pyproject.toml @@ -13,10 +13,38 @@ readme = "README.md" requires-python = ">=3.10" license = "MIT" dependencies = ["numpy>=1.26", "scipy>=1.13"] +authors = [ + { name = "Sergei Iskakov", email = "siskakov@umich.edu" }, + { name = "Fei Lin", email = "feilin.physics@gmail.com" }, +] +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Intended Audience :: Science/Research", + "Intended Audience :: Developers", + "Programming Language :: C++", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: Implementation :: CPython", + "Operating System :: POSIX", + "Operating System :: Unix", + "Operating System :: MacOS", +] + +[project.urls] +Homepage = "https://alps.comp-phys.org" +Repository = "https://github.com/ALPSim/ALPS" +Issues = "https://github.com/ALPSim/ALPS/issues" [project.optional-dependencies] plot = ["matplotlib>=3.8"] test = ["pytest>=8"] +tests = ["pytest>=8", "coverage>=7", "pytest-benchmark>=5"] +mpi = ["mpi4py>=4"] [tool.scikit-build] cmake.source-dir = "." @@ -83,6 +111,12 @@ repair-wheel-command = [ "delocate-listdeps --all {dest_dir}/*.whl", ] +[[tool.cibuildwheel.overrides]] +select = "cp314-*" +inherit.environment = "append" +environment = { PYALPS_TEST_DOWNSTREAM_EXPORT = "1" } +test-requires = ["pytest", "nanobind>=2.10,<3"] + [[tool.cibuildwheel.overrides]] select = "*-macosx_*" inherit.environment = "append" diff --git a/bindings/python/pyalps/src/pyalps/__init__.py b/bindings/python/pyalps/src/pyalps/__init__.py index e7522b13e..e5a7fd21f 100644 --- a/bindings/python/pyalps/src/pyalps/__init__.py +++ b/bindings/python/pyalps/src/pyalps/__init__.py @@ -19,15 +19,46 @@ from .pytools import * from .floatwitherror import FloatWithError from . import fit_wrapper +from . import cxx as cxx + + +# The extensions live in ``pyalps._ext`` in wheels, but Boost.Python-era +# installations also exposed the core modules directly below ``pyalps``. +# Register aliases instead of loading a second copy of an extension: nanobind +# has one process-wide type registry, and duplicate module instances would +# create subtly incompatible versions of the same C++ types. +for _extension_name in ( + "pyalea_c", + "pymcdata_c", + "pytools_c", + "pyngsparams_c", + "pyngshdf5_c", + "pyngsbase_c", + "pyngsobservable_c", + "pyngsobservables_c", + "pyngsresult_c", + "pyngsresults_c", + "pyngsapi_c", + "pyngsrandom01_c", + "pyngsaccumulator_c", +): + _extension = getattr(cxx, _extension_name) + globals()[_extension_name] = _extension + sys.modules[__name__ + "." + _extension_name] = _extension # Optional solver modules are present when the wheel was built from an ALPS # checkout with application bindings enabled. -try: - from ._ext import cthyb, ctint - sys.modules[__name__ + ".cthyb"] = cthyb - sys.modules[__name__ + ".ctint"] = ctint -except ImportError: - pass +for _extension_name in ("maxent_c", "dwa_c", "cthyb", "ctint"): + try: + _extension = __import__( + __name__ + "._ext." + _extension_name, fromlist=[_extension_name] + ) + except ImportError: + continue + globals()[_extension_name] = _extension + sys.modules[__name__ + "." + _extension_name] = _extension + +del _extension_name, _extension # For ALPS DWA Application # from dwa import * diff --git a/bindings/python/pyalps/src/pyalps/mpi.py b/bindings/python/pyalps/src/pyalps/mpi.py index 72d4ed87b..328c7904c 100644 --- a/bindings/python/pyalps/src/pyalps/mpi.py +++ b/bindings/python/pyalps/src/pyalps/mpi.py @@ -1,23 +1,358 @@ -# **************************************************************************** -# -# ALPS Project: Algorithms and Libraries for Physics Simulations -# -# ALPS Libraries -# -# Copyright (C) 2012 by Matthias Troyer -# -# ALPS Project: https://alps.comp-phys.org/ -# SPDX-License-Identifier: MIT -# -# **************************************************************************** - -# The Boost.Python-era mpi_c extension is not part of the nanobind -# wheel build (no target builds it), so the old fallback chain -# (.cxx.mpi_c → mpi_c → boost.mpi) could never succeed anyway. Fail -# with an explanation instead of a misleading "No module named -# 'boost'". -raise ImportError( - "pyalps.mpi is not available: the MPI bindings were not ported to the " - "nanobind build of pyalps. Drive MPI-parallel simulations from C++, or " - "use mpi4py for Python-side MPI communication." -) +"""MPI compatibility layer backed by :mod:`mpi4py`. + +The historic module re-exported Boost.MPI's Boost.Python bindings. Rebuilding +that second Python binding stack would couple pyalps to Boost.Python again and +make ordinary wheels depend on one particular MPI implementation. Instead, +this module preserves the commonly used Boost.MPI Python spelling on top of +mpi4py. Install ``pyalps[mpi]`` to enable it. + +The compatibility surface covers the world communicator, point-to-point +operations, collectives, status/request types, environment queries, and the +timer API. It intentionally does not reproduce Boost.MPI's C++/Python +serialization bridge or skeleton/content optimization; use mpi4py buffers for +that level of interoperability. +""" + +from __future__ import annotations + +import atexit as _atexit +from functools import reduce as _python_reduce +import sys +from typing import Any + +try: + import mpi4py as _mpi4py + + _mpi_module_was_loaded = "mpi4py.MPI" in sys.modules + _previous_auto_initialize = _mpi4py.rc.initialize + if not _mpi_module_was_loaded: + # Delay mpi4py's automatic MPI_Init just long enough to distinguish an + # externally initialized MPI process from an environment this module + # must own. This reproduces Boost.MPI's finalize-only-what-we-created + # behavior and leaves the global mpi4py setting as we found it. + _mpi4py.rc.initialize = False + try: + from mpi4py import MPI as _MPI + finally: + if not _mpi_module_was_loaded: + _mpi4py.rc.initialize = _previous_auto_initialize +except ImportError as error: # pragma: no cover - depends on optional install + raise ImportError( + "pyalps.mpi requires mpi4py; install the optional dependency with " + "'python -m pip install pyalps[mpi]'" + ) from error + + +_initialized_here = False +if not _MPI.Is_initialized(): + _MPI.Init() + _initialized_here = True + + +any_source = _MPI.ANY_SOURCE +any_tag = _MPI.ANY_TAG +Exception = _MPI.Exception +Status = _MPI.Status + + +class Request: + """Non-value request with the Boost.MPI ``wait``/``test`` contract.""" + + def __init__(self, request: Any): + self._request = request + + def wait(self): + status = Status() + self._request.wait(status) + return status + + def test(self): + status = Status() + flag, _value = self._request.test(status) + return status if flag else None + + def cancel(self) -> None: + self._request.cancel() + + +class RequestWithValue(Request): + """Receive request whose completion returns ``(value, status)``.""" + + def wait(self): + status = Status() + value = self._request.wait(status) + return value, status + + def test(self): + status = Status() + flag, value = self._request.test(status) + return (value, status) if flag else None + + +class RequestList(list): + """Mutable request sequence used by the nonblocking helper functions.""" + + +class Communicator: + """Boost.MPI-compatible wrapper around an ``mpi4py.MPI.Comm``.""" + + def __init__(self, comm: Any = None): + if isinstance(comm, Communicator): + comm = comm._comm + self._comm = _MPI.COMM_WORLD if comm is None else comm + + @property + def rank(self) -> int: + return self._comm.rank + + @property + def size(self) -> int: + return self._comm.size + + def __bool__(self) -> bool: + return self._comm != _MPI.COMM_NULL + + def __eq__(self, other: object) -> bool: + return isinstance(other, Communicator) and self._comm == other._comm + + def send(self, dest: int, tag: int = 0, value: Any = None) -> None: + self._comm.send(value, dest=dest, tag=tag) + + def recv( + self, + source: int = any_source, + tag: int = any_tag, + return_status: bool = False, + ) -> Any: + status = _MPI.Status() if return_status else None + value = self._comm.recv(source=source, tag=tag, status=status) + return (value, status) if return_status else value + + def isend(self, dest: int, tag: int = 0, value: Any = None): + return Request(self._comm.isend(value, dest=dest, tag=tag)) + + def irecv(self, source: int = any_source, tag: int = any_tag): + return RequestWithValue(self._comm.irecv(source=source, tag=tag)) + + def probe(self, source: int = any_source, tag: int = any_tag): + status = _MPI.Status() + self._comm.probe(source=source, tag=tag, status=status) + return status + + def iprobe(self, source: int = any_source, tag: int = any_tag): + status = _MPI.Status() + return status if self._comm.iprobe(source=source, tag=tag, status=status) else None + + def barrier(self) -> None: + self._comm.barrier() + + def split(self, color: int, key: int = 0) -> "Communicator": + return Communicator(self._comm.Split(color=color, key=key)) + + def abort(self, errcode: int) -> None: + self._comm.Abort(errcode) + + +world = Communicator(_MPI.COMM_WORLD) +rank = world.rank +size = world.size + + +def _unwrap(comm: Any): + return comm._comm if isinstance(comm, Communicator) else comm + + +def _collective_values(comm: Any, value: Any) -> tuple[Any, ...]: + return tuple(_unwrap(comm).allgather(value)) + + +def all_gather(comm: Any = world, value: Any = None) -> tuple[Any, ...]: + return _collective_values(comm, value) + + +def all_to_all(comm: Any = world, values: Any = None) -> tuple[Any, ...]: + return tuple(_unwrap(comm).alltoall(values)) + + +def broadcast(comm: Any = world, value: Any = None, root: int = 0) -> Any: + return _unwrap(comm).bcast(value, root=root) + + +def gather(comm: Any = world, value: Any = None, root: int = 0): + values = _unwrap(comm).gather(value, root=root) + return tuple(values) if _unwrap(comm).rank == root else None + + +def scatter(comm: Any = world, values: Any = None, root: int = 0) -> Any: + return _unwrap(comm).scatter(values, root=root) + + +def _apply_operation(values: tuple[Any, ...], op: Any) -> Any: + if op is None: + raise TypeError("an operation callable is required") + return _python_reduce(op, values) + + +def reduce(comm: Any = world, value: Any = None, op: Any = None, root: int = 0): + # Boost.MPI accepted arbitrary Python callables. Gathering before the + # Python reduction preserves that behavior; users wanting native MPI + # reductions can call the underlying ``world._comm`` directly. + values = gather(comm, value, root) + return _apply_operation(values, op) if _unwrap(comm).rank == root else None + + +def all_reduce(comm: Any = world, value: Any = None, op: Any = None) -> Any: + return _apply_operation(_collective_values(comm, value), op) + + +def scan(comm: Any = world, value: Any = None, op: Any = None) -> Any: + values = _collective_values(comm, value) + return _apply_operation(values[: _unwrap(comm).rank + 1], op) + + +def _check_requests(requests) -> None: + if not requests: + raise ValueError("cannot wait on an empty request vector") + if not all(isinstance(request, Request) for request in requests): + raise TypeError("requests must contain pyalps.mpi Request objects") + + +def _raw_requests(requests): + _check_requests(requests) + return [request._request for request in requests] + + +def wait_any(requests): + status = Status() + index, value = _MPI.Request.waitany(_raw_requests(requests), status) + return value, status, index + + +def test_any(requests): + status = Status() + index, flag, value = _MPI.Request.testany(_raw_requests(requests), status) + return (value, status, index) if flag else None + + +def wait_all(requests, callable=None) -> None: + statuses = [Status() for _ in requests] + values = _MPI.Request.waitall(_raw_requests(requests), statuses) + if callable is not None: + for value, status in zip(values, statuses): + callable(value, status) + + +def test_all(requests, callable=None) -> bool: + statuses = [Status() for _ in requests] + flag, values = _MPI.Request.testall(_raw_requests(requests), statuses) + if flag and callable is not None and values is not None: + for value, status in zip(values, statuses): + callable(value, status) + return bool(flag) + + +def wait_some(requests, callable=None) -> int: + statuses = [Status() for _ in requests] + indices, values = _MPI.Request.waitsome(_raw_requests(requests), statuses) + return _finish_some(requests, indices, values, statuses, callable) + + +def test_some(requests, callable=None) -> int: + statuses = [Status() for _ in requests] + indices, values = _MPI.Request.testsome(_raw_requests(requests), statuses) + return _finish_some(requests, indices, values, statuses, callable) + + +def _finish_some(requests, indices, values, statuses, callable) -> int: + if not indices: + return len(requests) + if callable is not None: + for value, status in zip(values, statuses): + callable(value, status) + + # Boost.MPI partitions the mutable RequestList into pending requests + # followed by completed requests and returns the first completed index. + completed = set(indices) + pending_requests = [r for i, r in enumerate(requests) if i not in completed] + completed_requests = [requests[i] for i in indices] + requests[:] = pending_requests + completed_requests + return len(pending_requests) + + +class Timer: + def __init__(self): + self.restart() + + def restart(self) -> float: + previous = getattr(self, "_start", _MPI.Wtime()) + self._start = _MPI.Wtime() + return self._start - previous + + @property + def elapsed(self) -> float: + return _MPI.Wtime() - self._start + + @property + def elapsed_min(self) -> float: + return _MPI.Wtick() + + @property + def elapsed_max(self) -> float: + return sys.float_info.max + + @property + def time_is_global(self) -> bool: + return bool(_MPI.COMM_WORLD.Get_attr(_MPI.WTIME_IS_GLOBAL)) + + +def init(argv=None, abort_on_exception: bool = True) -> bool: + del argv, abort_on_exception + global _initialized_here + if _MPI.Is_initialized(): + return False + _MPI.Init() + _initialized_here = True + return True + + +def finalize() -> None: + global _initialized_here + if _initialized_here and _MPI.Is_initialized() and not _MPI.Is_finalized(): + _MPI.Finalize() + _initialized_here = False + + +if _initialized_here: + _atexit.register(finalize) + + +def abort(errcode: int) -> None: + _MPI.COMM_WORLD.Abort(errcode) + + +def initialized() -> bool: + return _MPI.Is_initialized() + + +def finalized() -> bool: + return _MPI.Is_finalized() + + +collectives_tag = _MPI.COMM_WORLD.Get_attr(_MPI.TAG_UB) +max_tag = collectives_tag - 1 +processor_name = _MPI.Get_processor_name() +_host_key = getattr(_MPI, "HOST", None) +_io_key = getattr(_MPI, "IO", None) +host_rank = _MPI.COMM_WORLD.Get_attr(_host_key) if _host_key is not None else None +io_rank = _MPI.COMM_WORLD.Get_attr(_io_key) if _io_key is not None else None + + +__all__ = [ + "Communicator", "Exception", "Request", "RequestList", "RequestWithValue", + "Status", "Timer", "abort", "all_gather", "all_reduce", "all_to_all", + "any_source", "any_tag", "broadcast", "collectives_tag", "finalize", + "finalized", "gather", "host_rank", "init", "initialized", "io_rank", + "max_tag", "processor_name", "rank", "reduce", "scan", "scatter", "size", + "test_all", "test_any", "test_some", "wait_all", "wait_any", "wait_some", + "world", +] diff --git a/src/alps/ngs/detail/export_sim_to_python.hpp b/src/alps/ngs/detail/export_sim_to_python.hpp new file mode 100644 index 000000000..b5dcb2b92 --- /dev/null +++ b/src/alps/ngs/detail/export_sim_to_python.hpp @@ -0,0 +1,107 @@ +// Copyright (C) 2010-2012 by Lukas Gamper +// 2026 by the ALPS collaboration +// SPDX-License-Identifier: MIT +// +// Header-only nanobind support for downstream ALPS simulations. Keeping this +// integration in an opt-in header prevents libalps itself from depending on +// Python or nanobind while preserving the historic public include path and +// ALPS_EXPORT_SIM_TO_PYTHON entry point. +#ifndef ALPS_NGS_DETAIL_EXPORT_SIM_TO_PYTHON_HPP +#define ALPS_NGS_DETAIL_EXPORT_SIM_TO_PYTHON_HPP + +#include +#include + +#include +#include +#include + +#include +#include + +namespace alps { +namespace python { + +namespace nb = nanobind; + +template +class exported_simulation : public Simulation { +public: + using parameters_type = typename Simulation::parameters_type; + using result_names_type = typename Simulation::result_names_type; + using results_type = typename Simulation::results_type; + + explicit exported_simulation(parameters_type const & parameters, + std::size_t seed_offset = 0) + : Simulation(parameters, seed_offset) {} + + // mcbase predates virtual-destructor guidance. The Python-owned concrete + // wrapper is nevertheless polymorphic, so give this boundary type its own + // virtual destructor and ensure nanobind always destroys the full object. + virtual ~exported_simulation() = default; + + bool run_python(nb::object stop_callback) { + return Simulation::run([stop_callback]() -> bool { + nb::gil_scoped_acquire gil; + return nb::cast(stop_callback()); + }); + } + + results_type collect_results_python( + result_names_type const & names = result_names_type()) const { + return names.empty() ? Simulation::collect_results() + : Simulation::collect_results(names); + } + + alps::random01 & get_random() { return this->random; } + parameters_type & get_parameters() { return this->parameters; } + auto & get_measurements() { + return this->measurements; + } +}; + +template +void export_sim_to_python(nb::module_ & module, char const * name) { + // nanobind's type registry is shared across extension modules. Import the + // owning pyalps modules before declaring a derived simulation so mcbase, + // params, archive, result and observable types are already registered. + nb::module_::import_("pyalps.ngs"); + nb::module_::import_("pyalps.hdf5"); + + using wrapper = exported_simulation; + nb::class_(module, name) + .def(nb::init(), + nb::arg("parameters"), nb::arg("seed_offset") = 0) + .def_prop_ro("random", &wrapper::get_random, + nb::rv_policy::reference_internal) + .def_prop_ro("parameters", &wrapper::get_parameters, + nb::rv_policy::reference_internal) + .def_prop_ro("measurements", &wrapper::get_measurements, + nb::rv_policy::reference_internal) + .def("run", &wrapper::run_python, nb::arg("stop_callback")) + .def("resultNames", &wrapper::result_names) + .def("unsavedResultNames", &wrapper::unsaved_result_names) + .def("collectResults", &wrapper::collect_results_python, + nb::arg("names") = typename wrapper::result_names_type()) + .def("save", + [](wrapper const & self, alps::hdf5::archive & archive) { + static_cast(self).save(archive); + }) + .def("load", + [](wrapper & self, alps::hdf5::archive & archive) { + static_cast(self).load(archive); + }); +} + +} // namespace python +} // namespace alps + +#define ALPS_NANOBIND_EXPORT_SIM_TO_PYTHON(MODULE, NAME, CLASS) \ + ::alps::python::export_sim_to_python((MODULE), #NAME) + +// Source-compatible spelling for old export.cpp files after changing their +// module declaration to ``NB_MODULE(module_name, m)``. +#define ALPS_EXPORT_SIM_TO_PYTHON(NAME, CLASS) \ + ALPS_NANOBIND_EXPORT_SIM_TO_PYTHON(m, NAME, CLASS) + +#endif diff --git a/src/alps/ngs/detail/paramproxy.hpp b/src/alps/ngs/detail/paramproxy.hpp index 972a41a2b..d98e45831 100644 --- a/src/alps/ngs/detail/paramproxy.hpp +++ b/src/alps/ngs/detail/paramproxy.hpp @@ -115,7 +115,10 @@ namespace alps { #define ALPS_NGS_PARAMPROXY_ADD_OPERATOR_DECL(T) \ ALPS_DECL T operator+(paramproxy const & p, T s); \ ALPS_DECL T operator+(T s, paramproxy const & p); - ALPS_NGS_FOREACH_PARAMETERVALUE_TYPE(ALPS_NGS_PARAMPROXY_ADD_OPERATOR_DECL) + // vector is a native stored parameter type, but unlike the + // historic numeric/string alternatives it has no meaningful or + // portable element-wise operator+=. + ALPS_NGS_FOREACH_PARAMETERVALUE_ADDABLE_TYPE(ALPS_NGS_PARAMPROXY_ADD_OPERATOR_DECL) #undef ALPS_NGS_PARAMPROXY_ADD_OPERATOR_DECL ALPS_DECL std::string operator+(paramproxy const & p, char const * s); diff --git a/src/alps/ngs/detail/paramvalue.hpp b/src/alps/ngs/detail/paramvalue.hpp index 8fef1a643..c17b95400 100644 --- a/src/alps/ngs/detail/paramvalue.hpp +++ b/src/alps/ngs/detail/paramvalue.hpp @@ -33,7 +33,7 @@ #include #include -#define ALPS_NGS_FOREACH_PARAMETERVALUE_TYPE_NO_PYTHON(CALLBACK) \ +#define ALPS_NGS_FOREACH_PARAMETERVALUE_ADDABLE_TYPE(CALLBACK) \ CALLBACK(double) \ CALLBACK(int) \ CALLBACK(bool) \ @@ -44,6 +44,10 @@ CALLBACK(std::vector) \ CALLBACK(std::vector >) +#define ALPS_NGS_FOREACH_PARAMETERVALUE_TYPE_NO_PYTHON(CALLBACK) \ + ALPS_NGS_FOREACH_PARAMETERVALUE_ADDABLE_TYPE(CALLBACK) \ + CALLBACK(std::vector) + #define ALPS_NGS_FOREACH_PARAMETERVALUE_TYPE(CALLBACK) \ ALPS_NGS_FOREACH_PARAMETERVALUE_TYPE_NO_PYTHON(CALLBACK) @@ -79,6 +83,9 @@ namespace alps { template <> struct paramvalue_index > > { enum { value = 8 }; }; + template <> struct paramvalue_index > { + enum { value = 9 }; + }; class paramvalue; diff --git a/src/alps/ngs/detail/paramvalue_reader.hpp b/src/alps/ngs/detail/paramvalue_reader.hpp index eb93bf5a1..5ff38dbd1 100644 --- a/src/alps/ngs/detail/paramvalue_reader.hpp +++ b/src/alps/ngs/detail/paramvalue_reader.hpp @@ -44,7 +44,7 @@ namespace alps { template void operator()(U * const ptr, std::vector size) { if (size.size() != 1) throw std::invalid_argument("only 1 D array are supported in alps::params" + ALPS_STACKTRACE); - else + else if (size[0] != 0) for (U const * it = ptr; it != ptr + size[0]; ++it) (*this)(*it); } @@ -61,7 +61,7 @@ namespace alps { template void operator()(U * const ptr, std::vector size) { if (size.size() != 1) throw std::invalid_argument("only 1 D array are supported in alps::params" + ALPS_STACKTRACE); - else + else if (size[0] != 0) for (U const * it = ptr; it != ptr + size[0]; ++it) value += (it == ptr ? "," : "") + cast(*it); } @@ -79,11 +79,18 @@ namespace alps { } template void operator()(std::vector const & v) const { - visitor(&v.front(), std::vector(1, v.size())); + visitor(v.data(), std::vector(1, v.size())); } - void operator()(T const & v) const { - visitor.value = v; + // std::vector stores proxy bits rather than contiguous + // bool objects and therefore has no usable data() pointer. + // Materialise byte values for the existing conversion visitor; + // scalar targets still reject vector input, while vector targets + // convert each byte to their requested element type. + void operator()(std::vector const & v) const { + std::vector contiguous(v.begin(), v.end()); + visitor(contiguous.data(), + std::vector(1, contiguous.size())); } T const & get_value() { diff --git a/src/alps/ngs/lib/paramproxy.cpp b/src/alps/ngs/lib/paramproxy.cpp index 4bb00adbb..9e4dd25ab 100644 --- a/src/alps/ngs/lib/paramproxy.cpp +++ b/src/alps/ngs/lib/paramproxy.cpp @@ -57,7 +57,7 @@ namespace alps { using boost::numeric::operators::operator+=; \ return s += p.cast< T >(); \ } - ALPS_NGS_FOREACH_PARAMETERVALUE_TYPE(ALPS_NGS_PARAMPROXY_ADD_OPERATOR_IMPL) + ALPS_NGS_FOREACH_PARAMETERVALUE_ADDABLE_TYPE(ALPS_NGS_PARAMPROXY_ADD_OPERATOR_IMPL) #undef ALPS_NGS_PARAMPROXY_ADD_OPERATOR_IMPL std::string operator+(paramproxy const & p, char const * s) { diff --git a/src/alps/ngs/lib/paramvalue.cpp b/src/alps/ngs/lib/paramvalue.cpp index dc9c7faa1..22373a0c5 100644 --- a/src/alps/ngs/lib/paramvalue.cpp +++ b/src/alps/ngs/lib/paramvalue.cpp @@ -95,6 +95,7 @@ namespace alps { ) ALPS_NGS_PARAMVALUE_LOAD_HDF5_CHECK(double, std::vector) ALPS_NGS_PARAMVALUE_LOAD_HDF5_CHECK(int, std::vector) + ALPS_NGS_PARAMVALUE_LOAD_HDF5_CHECK(bool, std::vector) ALPS_NGS_PARAMVALUE_LOAD_HDF5_CHECK( std::string, std::vector ) diff --git a/src/alps/python/make_copy.hpp b/src/alps/python/make_copy.hpp new file mode 100644 index 000000000..4ba2e1a4a --- /dev/null +++ b/src/alps/python/make_copy.hpp @@ -0,0 +1,20 @@ +// Copyright (C) 2010 by Matthias Troyer +// 2026 by the ALPS collaboration +// SPDX-License-Identifier: MIT +#ifndef ALPS_PYTHON_MAKE_COPY_HPP +#define ALPS_PYTHON_MAKE_COPY_HPP + +#include + +namespace alps { +namespace python { + +template +T make_copy(T const & value, nanobind::handle /*memo*/) { + return value; +} + +} // namespace python +} // namespace alps + +#endif diff --git a/src/alps/python/save_observable_to_hdf5.hpp b/src/alps/python/save_observable_to_hdf5.hpp new file mode 100644 index 000000000..b29a5fe27 --- /dev/null +++ b/src/alps/python/save_observable_to_hdf5.hpp @@ -0,0 +1,25 @@ +// Copyright (C) 2010 by Matthias Troyer +// SPDX-License-Identifier: MIT +#ifndef ALPS_PYTHON_SAVE_OBSERVABLE_TO_HDF5_HPP +#define ALPS_PYTHON_SAVE_OBSERVABLE_TO_HDF5_HPP + +#include + +#include + +namespace alps { +namespace python { + +// Despite its historic namespace this helper is ordinary typed C++ and has no +// dependency on Python. Retain it for downstream source compatibility. +template +void save_observable_to_hdf5(Observable const & observable, + std::string const & filename) { + hdf5::archive archive(filename, "a"); + archive["/simulation/results/" + observable.representation()] << observable; +} + +} // namespace python +} // namespace alps + +#endif diff --git a/test/ngs/params/assign.cpp b/test/ngs/params/assign.cpp index 7e933d259..2c0336842 100644 --- a/test/ngs/params/assign.cpp +++ b/test/ngs/params/assign.cpp @@ -14,6 +14,9 @@ #include +#include +#include + int main() { alps::params parms; @@ -32,8 +35,12 @@ int main() { parms["double"] = static_cast(1); parms["long double"] = static_cast(1); parms["bool"] = static_cast(1); + std::vector const bool_vector{true, false, true}; + parms["std::vector"] = bool_vector; parms["std::string"] = std::string("asdf"); + assert(parms["std::vector"].cast >() == bool_vector); + std::cout << parms << std::endl; return 0; } diff --git a/test/pyalps/pyhdf5io_test.py b/test/pyalps/pyhdf5io_test.py index 5e21e81d3..17833afa2 100644 --- a/test/pyalps/pyhdf5io_test.py +++ b/test/pyalps/pyhdf5io_test.py @@ -306,9 +306,104 @@ def test_hdf5_nested_numpy_scalar_vectorization(): del ar +def test_hdf5_zero_dimensional_and_zero_extent_arrays(): + scalar_cases = [ + np.array(True), + np.array(-3, dtype=np.int32), + np.array(2**40, dtype=np.int64), + np.array(1.25, dtype=np.float32), + np.array(1.25, dtype=np.float64), + np.array(1 + 2j, dtype=np.complex64), + np.array(1 + 2j, dtype=np.complex128), + ] + empty_cases = [ + np.empty((0,), dtype=np.float64), + np.empty((0, 2), dtype=np.int32), + np.empty((2, 0), dtype=np.int32), + np.empty((2, 0, 3), dtype=np.complex128), + ] + + with tempfile.TemporaryDirectory() as directory: + path = os.path.join(directory, "zero-shapes.h5") + with hdf5.archive(path, "w") as ar: + for index, value in enumerate(scalar_cases): + ar[f"/scalar/{index}"] = value + for index, value in enumerate(empty_cases): + ar[f"/empty/{index}"] = value + + with hdf5.archive(path, "r") as ar: + for index, expected in enumerate(scalar_cases): + actual = ar[f"/scalar/{index}"] + assert np.asarray(actual).shape == () + assert actual == expected.item() + if expected.dtype == np.complex64: + assert np.asarray(actual).dtype == np.complex64 + for index, expected in enumerate(empty_cases): + actual = ar[f"/empty/{index}"] + assert isinstance(actual, np.ndarray) + assert actual.shape == expected.shape + assert actual.dtype == expected.dtype + + +def test_hdf5_complex_array_precision_roundtrip(): + values = [ + np.array([1 + 2j, 3 + 4j], dtype=np.complex64), + np.array([[1 + 2j], [3 + 4j]], dtype=np.complex64), + np.array([1 + 2j, 3 + 4j], dtype=np.complex128), + ] + with tempfile.TemporaryDirectory() as directory: + path = os.path.join(directory, "complex-precision.h5") + with hdf5.archive(path, "w") as ar: + for index, value in enumerate(values): + ar[f"/{index}"] = value + with hdf5.archive(path, "r") as ar: + for index, expected in enumerate(values): + actual = ar[f"/{index}"] + assert actual.dtype == expected.dtype + np.testing.assert_array_equal(actual, expected) + + +def test_hdf5_strided_array_roundtrip(): + base = np.arange(24, dtype=np.float64).reshape(4, 6) + values = [ + base[:, ::2], + base.T, + base[::-1, ::-2], + np.ma.array(base[:, ::2], mask=False), + (base.astype(np.complex64) * (1 + 2j))[::2, 1::2], + ] + assert all(not value.flags.c_contiguous for value in values) + with tempfile.TemporaryDirectory() as directory: + path = os.path.join(directory, "strided.h5") + with hdf5.archive(path, "w") as ar: + for index, value in enumerate(values): + ar[f"/{index}"] = value + with hdf5.archive(path, "r") as ar: + for index, expected in enumerate(values): + actual = ar[f"/{index}"] + assert actual.dtype == expected.dtype + np.testing.assert_array_equal(actual, expected) + + +def test_hdf5_non_native_array_error_is_actionable(): + value = np.arange(4, dtype=np.int32).byteswap().view(np.dtype(">i4")) + with tempfile.TemporaryDirectory() as directory: + path = os.path.join(directory, "non-native.h5") + with hdf5.archive(path, "w") as ar: + try: + ar["/value"] = value + raise AssertionError("non-native arrays must be rejected") + except RuntimeError as error: + assert "not native" in str(error) + + if __name__ == "__main__": test_hdf5io() test_hdf5_empty_dict_roundtrip() test_hdf5_dict_key_roundtrip() test_hdf5_nested_numpy_scalar_vectorization() + test_hdf5_zero_dimensional_and_zero_extent_arrays() + test_hdf5_complex_array_precision_roundtrip() + test_hdf5_strided_array_roundtrip() + test_hdf5_non_native_array_error_is_actionable() print("SUCCESS") diff --git a/test/pyalps/test_binding_surface.py b/test/pyalps/test_binding_surface.py index 2ced13624..572f1486b 100644 --- a/test/pyalps/test_binding_surface.py +++ b/test/pyalps/test_binding_surface.py @@ -9,10 +9,15 @@ import copy import importlib import os +from pathlib import Path +import subprocess +import sys import tempfile +import time from types import SimpleNamespace import numpy as np +import pytest def test_extension_import_surface(): @@ -36,6 +41,10 @@ def test_extension_import_surface(): } assert pyalps is not None assert expected <= set(vars(cxx)) + for name in expected: + direct = importlib.import_module("pyalps." + name) + assert direct is getattr(cxx, name) + assert getattr(pyalps, name) is direct def test_cross_module_parameter_archive_and_rng_roundtrip(): @@ -216,6 +225,274 @@ def test_optional_application_extension_surface(): for name in ("maxent_c", "dwa_c", "cthyb", "ctint"): module = importlib.import_module("pyalps._ext." + name) assert module.__name__.endswith(name) + assert importlib.import_module("pyalps." + name) is module + + from pyalps import cthyb, ctint, maxent_c + assert callable(maxent_c.AnalyticContinuation) + assert callable(cthyb.solve) + assert callable(ctint.solve) + + from pyalps._ext import dwa_c + + worldlines = dwa_c.worldlines(3) + assert worldlines.states() == [0, 0, 0] + assert dwa_c.std_vector_double([1.0, 2.0]) == [1.0, 2.0] + assert isinstance(worldlines.states(), dwa_c.std_vector_unsigned_short) + bands = dwa_c.bandstructure([1.0], [2.0], 1.0, 1.0, 1) + assert len(bands.t()) == 3 + + +def test_mpi4py_compatibility_surface(): + pytest.importorskip("mpi4py") + import operator + from pyalps import ngs + import pyalps.mpi as mpi + + assert mpi.initialized() + assert mpi.world.rank == mpi.rank + assert mpi.world.size == mpi.size + assert issubclass(mpi.Exception, Exception) + assert mpi.Communicator().rank == mpi.rank + assert mpi.broadcast(value={"rank": mpi.rank}, root=0) == {"rank": 0} + assert mpi.all_gather(value=mpi.rank) == tuple(range(mpi.size)) + gathered = mpi.gather(value=mpi.rank, root=0) + if mpi.rank == 0: + assert gathered == tuple(range(mpi.size)) + else: + assert gathered is None + scattered = mpi.scatter( + values=tuple("rank-{}".format(index) for index in range(mpi.size)) + if mpi.rank == 0 else None, + root=0, + ) + assert scattered == "rank-{}".format(mpi.rank) + exchanged = mpi.all_to_all( + values=tuple((mpi.rank, destination) for destination in range(mpi.size)) + ) + assert exchanged == tuple((source, mpi.rank) for source in range(mpi.size)) + assert mpi.reduce(value=1, op=operator.add, root=0) == ( + mpi.size if mpi.rank == 0 else None + ) + assert mpi.all_reduce(value=1, op=operator.add) == mpi.size + assert mpi.scan(value=mpi.rank + 1, op=operator.add) == ( + (mpi.rank + 1) * (mpi.rank + 2) // 2 + ) + + subgroup = mpi.world.split(color=mpi.rank % 2, key=mpi.rank) + assert subgroup and subgroup.rank >= 0 and subgroup.size >= 1 + mpi.world.barrier() + + # Exercise actual inter-rank transport under mpiexec, while remaining a + # valid self-send in the ordinary one-process wheel test. + send_to = (mpi.rank + 1) % mpi.size + receive_from = (mpi.rank - 1) % mpi.size + ring_request = mpi.world.isend( + send_to, tag=172, value={"source": mpi.rank, "payload": "ring"} + ) + ring_value, ring_status = mpi.world.recv( + receive_from, tag=172, return_status=True + ) + ring_request.wait() + assert ring_value == {"source": receive_from, "payload": "ring"} + assert ring_status.source == receive_from and ring_status.tag == 172 + + # Point-to-point spelling and return_status match Boost.MPI's Python API. + request = mpi.world.isend(mpi.rank, tag=173, value="self") + value, status = mpi.world.recv(mpi.rank, tag=173, return_status=True) + send_status = request.wait() + assert value == "self" + assert status.source == mpi.rank and status.tag == 173 + assert isinstance(send_status, mpi.Status) + + send_request = mpi.world.isend(mpi.rank, tag=174, value="async") + receive_request = mpi.world.irecv(mpi.rank, tag=174) + assert isinstance(send_request, mpi.Request) + assert isinstance(receive_request, mpi.RequestWithValue) + received, receive_status = receive_request.wait() + send_request.wait() + assert received == "async" + assert receive_status.source == mpi.rank and receive_status.tag == 174 + + callbacks = [] + requests = mpi.RequestList([ + mpi.world.isend(mpi.rank, tag=175, value="batch"), + mpi.world.irecv(mpi.rank, tag=175), + ]) + mpi.wait_all(requests, lambda result, result_status: callbacks.append( + (result, result_status) + )) + assert callbacks[1][0] == "batch" + assert callbacks[1][1].source == mpi.rank + + any_send = mpi.world.isend(mpi.rank, tag=176, value="any") + any_requests = mpi.RequestList([mpi.world.irecv(mpi.rank, tag=176)]) + any_value, any_status, any_index = mpi.wait_any(any_requests) + any_send.wait() + assert (any_value, any_index) == ("any", 0) + assert any_status.source == mpi.rank + + some_callbacks = [] + some_send = mpi.world.isend(mpi.rank, tag=177, value="some") + some_requests = mpi.RequestList([mpi.world.irecv(mpi.rank, tag=177)]) + boundary = mpi.wait_some( + some_requests, + lambda result, result_status: some_callbacks.append( + (result, result_status.source) + ), + ) + some_send.wait() + assert boundary == 0 + assert some_callbacks == [("some", mpi.rank)] + + poll_send = mpi.world.isend(mpi.rank, tag=178, value="request-test") + poll_receive = mpi.world.irecv(mpi.rank, tag=178) + deadline = time.monotonic() + 5 + poll_result = None + while poll_result is None and time.monotonic() < deadline: + poll_result = poll_receive.test() + poll_send.wait() + assert poll_result is not None + assert poll_result[0] == "request-test" + + any_test_send = mpi.world.isend(mpi.rank, tag=179, value="test-any") + any_test_requests = mpi.RequestList([mpi.world.irecv(mpi.rank, tag=179)]) + deadline = time.monotonic() + 5 + any_test_result = None + while any_test_result is None and time.monotonic() < deadline: + any_test_result = mpi.test_any(any_test_requests) + any_test_send.wait() + assert any_test_result is not None + assert (any_test_result[0], any_test_result[2]) == ("test-any", 0) + + all_test_callbacks = [] + all_test_send = mpi.world.isend(mpi.rank, tag=180, value="test-all") + all_test_requests = mpi.RequestList([mpi.world.irecv(mpi.rank, tag=180)]) + deadline = time.monotonic() + 5 + while (not mpi.test_all( + all_test_requests, + lambda result, result_status: all_test_callbacks.append( + (result, result_status.source) + ), + ) and time.monotonic() < deadline): + pass + all_test_send.wait() + assert all_test_callbacks == [("test-all", mpi.rank)] + + some_test_callbacks = [] + some_test_send = mpi.world.isend(mpi.rank, tag=181, value="test-some") + some_test_requests = mpi.RequestList([mpi.world.irecv(mpi.rank, tag=181)]) + deadline = time.monotonic() + 5 + some_test_boundary = len(some_test_requests) + while some_test_boundary != 0 and time.monotonic() < deadline: + some_test_boundary = mpi.test_some( + some_test_requests, + lambda result, result_status: some_test_callbacks.append( + (result, result_status.source) + ), + ) + some_test_send.wait() + assert some_test_boundary == 0 + assert some_test_callbacks == [("test-some", mpi.rank)] + + probe_send = mpi.world.isend(mpi.rank, tag=182, value="probe") + probe_status = mpi.world.probe(mpi.rank, tag=182) + assert probe_status.source == mpi.rank and probe_status.tag == 182 + assert mpi.world.recv(mpi.rank, tag=182) == "probe" + probe_send.wait() + + iprobe_send = mpi.world.isend(mpi.rank, tag=183, value="iprobe") + deadline = time.monotonic() + 5 + iprobe_status = None + while iprobe_status is None and time.monotonic() < deadline: + iprobe_status = mpi.world.iprobe(mpi.rank, tag=183) + assert iprobe_status is not None + assert iprobe_status.source == mpi.rank and iprobe_status.tag == 183 + assert mpi.world.recv(mpi.rank, tag=183) == "iprobe" + iprobe_send.wait() + + timer = mpi.Timer() + assert timer.elapsed >= 0 + assert 0 < timer.elapsed_min < timer.elapsed_max + assert mpi.max_tag + 1 == mpi.collectives_tag + + # The legacy mcbase constructor accepted a communicator but did not use + # it internally. Preserve that call shape without binding Boost.MPI. + class Simulation(ngs.mcbase): + def update(self): + pass + + def measure(self): + pass + + def fraction_completed(self): + return 1.0 + + assert isinstance(Simulation({"SEED": 1}, 42, mpi.world), ngs.mcbase) + + +def test_mpi_finalization_ownership(): + pytest.importorskip("mpi4py") + + # Boost.MPI finalized only an environment its Python module initialized. + # Importing pyalps.mpi after an existing mpi4py user must therefore leave + # that user's MPI process alive when pyalps.mpi.finalize() is called. + externally_owned = """ +from mpi4py import MPI +import pyalps.mpi as mpi +assert not mpi._initialized_here +mpi.finalize() +assert MPI.Is_initialized() and not MPI.Is_finalized() +""" + subprocess.run([sys.executable, "-c", externally_owned], check=True) + + # Conversely, a direct pyalps.mpi import owns the initialization and its + # explicit finalize call must release it. + pyalps_owned = """ +import pyalps.mpi as mpi +assert mpi._initialized_here +mpi.finalize() +assert mpi.finalized() +""" + subprocess.run([sys.executable, "-c", pyalps_owned], check=True) + + +@pytest.mark.skipif( + os.environ.get("PYALPS_TEST_DOWNSTREAM_EXPORT") != "1", + reason="enabled for one wheel per platform in packaging CI", +) +def test_downstream_nanobind_simulation_export(tmp_path): + """Build and run a consumer extension against the installed ALPS SDK.""" + repository = Path(__file__).resolve().parents[2] + tutorial = repository / "tutorials" / "ngs" / "5_export_python" + alps_dir = repository / "_build" / "wheel-deps" / "install" / "share" / "alps" + build = tmp_path / "export-python-build" + + assert (alps_dir / "ALPSConfig.cmake").is_file() + subprocess.run( + [ + "cmake", "-S", str(tutorial), "-B", str(build), + "-DALPS_DIR={}".format(alps_dir), + "-DPython_EXECUTABLE={}".format(sys.executable), + ], + check=True, + ) + subprocess.run( + ["cmake", "--build", str(build), "--parallel", "2"], + check=True, + ) + + environment = os.environ.copy() + environment["PYTHONPATH"] = os.pathsep.join( + filter(None, (str(build), environment.get("PYTHONPATH"))) + ) + completed = subprocess.run( + [sys.executable, str(tutorial / "smoke_test.py")], + check=True, + capture_output=True, + env=environment, + text=True, + ) + assert "downstream nanobind export: ok" in completed.stdout def test_current_python_numpy_and_scipy_compatibility(monkeypatch): @@ -278,22 +555,63 @@ def test_params_mapping_equality_and_value_ladder(): raise AssertionError("[2**53+1] must be rejected") except TypeError as error: assert "32-bit" in str(error) - # bools (numpy bools included) never coerce to numbers - for bad in ([True, False], [np.bool_(True)]): - try: - p["flags"] = bad - raise AssertionError("bool list must be rejected") - except TypeError: - pass + # Homogeneous bool sequences have a native C++ representation and + # round-trip without falling back to stored Python objects. + p["flags"] = [True, False] + assert p["flags"] == [True, False] + p["npflags"] = np.array([True, False], dtype=np.bool_) + assert p["npflags"] == [True, False] + try: + p["mixedflags"] = [True, 1] + raise AssertionError("mixed bool/numeric sequences must be rejected") + except TypeError as error: + assert "cannot be mixed" in str(error) # numpy integer scalars are accepted like numpy floats are — # as scalars and inside lists, with the same 32-bit range policy p["npint"] = np.int64(8) assert p["npint"] == 8 and type(p["npint"]) is int p["npbool"] = np.bool_(True) assert p["npbool"] is True + p["npfloat32"] = np.float32(1.25) + assert p["npfloat32"] == 1.25 + p["nplongdouble"] = np.longdouble("1.125") + assert p["nplongdouble"] == 1.125 + p["npcomplex64"] = np.complex64(1 + 2j) + assert p["npcomplex64"] == 1 + 2j + p["npclongdouble"] = np.clongdouble(3 + 4j) + assert p["npclongdouble"] == 3 + 4j + p["npbytes"] = np.bytes_(b"native") + assert p["npbytes"] == "native" p["npints"] = [np.int64(1), np.int64(2)] assert p["npints"] == [1, 2] assert all(type(v) is int for v in p["npints"]) + p["nparray"] = np.array([1, 2], dtype=np.int64) + assert p["nparray"] == [1, 2] + p["npsubclass"] = np.ma.array([1, 2], mask=False) + assert p["npsubclass"] == [1, 2] + p["npfloats"] = np.array([1.5, 2.5], dtype=np.float32) + assert p["npfloats"] == [1.5, 2.5] + p["npcomplex"] = np.array([1 + 2j, 3 + 4j], dtype=np.complex64) + assert p["npcomplex"] == [1 + 2j, 3 + 4j] + p["npextendedcomplex"] = np.array( + [1 + 2j, 3 + 4j], dtype=np.clongdouble + ) + assert p["npextendedcomplex"] == [1 + 2j, 3 + 4j] + p["npcomplexlist"] = [np.complex64(5 + 6j), np.clongdouble(7 + 8j)] + assert p["npcomplexlist"] == [5 + 6j, 7 + 8j] + p["npstrings"] = np.array(["a", "b"]) + assert p["npstrings"] == ["a", "b"] + p["npbytestrings"] = np.array([b"a", b"b"], dtype="S1") + assert p["npbytestrings"] == ["a", "b"] + p["np0d"] = np.array(7, dtype=np.int64) + assert p["np0d"] == 7 + p["emptyflags"] = np.array([], dtype=np.bool_) + assert p["emptyflags"] == [] + try: + p["matrix"] = np.ones((2, 2)) + raise AssertionError("multidimensional parameter arrays must be rejected") + except TypeError as error: + assert "multidimensional" in str(error) try: p["npbig"] = [np.int64(2 ** 40)] raise AssertionError("[np.int64(2**40)] must be rejected") @@ -313,6 +631,27 @@ def test_params_mapping_equality_and_value_ladder(): p["cplx"] = 1 + 2j assert p["cplx"] == 1 + 2j + # Unsupported object graphs stay unsupported: params owns only native + # C++ values and must never keep arbitrary Python objects alive. + for unsupported in ({"nested": 1}, object()): + try: + p["object"] = unsupported + raise AssertionError("arbitrary Python objects must be rejected") + except TypeError: + pass + + +def test_params_native_bool_vector_hdf5_roundtrip(tmp_path): + from pyalps import hdf5, ngs + + filename = str(tmp_path / "bool-params.h5") + original = ngs.params({"flags": [True, False, True]}) + with hdf5.archive(filename, "w") as archive: + original.save(archive) + with hdf5.archive(filename, "r") as archive: + loaded = ngs.params(archive, "/") + assert loaded["flags"] == [True, False, True] + def test_observable_lshift_chains(): from pyalps import ngs diff --git a/tutorials/ngs/5_export_python/CMakeLists.txt b/tutorials/ngs/5_export_python/CMakeLists.txt new file mode 100644 index 000000000..8d6f954fd --- /dev/null +++ b/tutorials/ngs/5_export_python/CMakeLists.txt @@ -0,0 +1,42 @@ +cmake_minimum_required(VERSION 3.22) +project(alps_nanobind_export_example LANGUAGES CXX) + +find_package(ALPS REQUIRED CONFIG) +find_package(Python 3.10 REQUIRED COMPONENTS Interpreter Development.Module) + +execute_process( + COMMAND "${Python_EXECUTABLE}" -m nanobind --cmake_dir + OUTPUT_VARIABLE _nanobind_cmake_dir + OUTPUT_STRIP_TRAILING_WHITESPACE + COMMAND_ERROR_IS_FATAL ANY) +list(PREPEND CMAKE_PREFIX_PATH "${_nanobind_cmake_dir}") +find_package(nanobind 2.10 CONFIG REQUIRED) + +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) +set(CMAKE_CXX_EXTENSIONS OFF) + +set(_alps_libraries ${ALPS_LIBRARIES}) +list(TRANSFORM _alps_libraries REPLACE "^hdf5-shared$" "hdf5") +separate_arguments(_alps_link_options NATIVE_COMMAND "${ALPS_EXTRA_LINKER_FLAGS}") +separate_arguments(_alps_compile_options NATIVE_COMMAND "${ALPS_CMAKE_CXX_FLAGS}") + +link_directories(${ALPS_LIBRARY_DIRS}) +set(_alps_runtime_paths ${ALPS_LIBRARY_DIRS}) +if(ALPS_HDF5_INCLUDE_DIR) + get_filename_component(_hdf5_prefix "${ALPS_HDF5_INCLUDE_DIR}" DIRECTORY) + link_directories("${_hdf5_prefix}/lib") + list(APPEND _alps_runtime_paths "${_hdf5_prefix}/lib") +endif() + +nanobind_add_module(ising_c NB_STATIC export2py.cpp ising.cpp) +target_include_directories(ising_c PRIVATE + ${ALPS_INCLUDE_DIRS} + ${ALPS_EXTRA_INCLUDE_DIRS}) +target_compile_options(ising_c PRIVATE ${_alps_compile_options}) +target_compile_definitions(ising_c PRIVATE ${ALPS_EXTRA_DEFINITIONS}) +target_link_libraries(ising_c PRIVATE ${_alps_libraries}) +target_link_options(ising_c PRIVATE ${_alps_link_options}) +set_target_properties(ising_c PROPERTIES + INSTALL_RPATH "${_alps_runtime_paths}" + BUILD_RPATH "${_alps_runtime_paths}") diff --git a/tutorials/ngs/5_export_python/README.md b/tutorials/ngs/5_export_python/README.md new file mode 100644 index 000000000..258aa1e68 --- /dev/null +++ b/tutorials/ngs/5_export_python/README.md @@ -0,0 +1,20 @@ +# Export an ALPS simulation with nanobind + +This example replaces the former Boost.Python export tutorial while retaining +the public `ALPS_EXPORT_SIM_TO_PYTHON` helper. Build it against an installed +ALPS SDK and the Python environment containing pyalps and nanobind: + +```sh +cmake -S . -B build -GNinja \ + -DALPS_DIR=/path/to/alps/share/alps \ + -DPython_EXECUTABLE="$(command -v python)" +cmake --build build +PYTHONPATH="$PWD/build" python main.py +``` + +For an old export source, replace `BOOST_PYTHON_MODULE(name) {` with +`NB_MODULE(name, m) {`; the existing +`ALPS_EXPORT_SIM_TO_PYTHON(PythonName, SimulationClass)` call remains valid. +The helper imports pyalps' owning extension modules before registering the +derived class, so ALPS parameter, archive, observable, and result types are +shared safely through nanobind's process-wide type registry. diff --git a/tutorials/ngs/5_export_python/export2py.cpp b/tutorials/ngs/5_export_python/export2py.cpp new file mode 100644 index 000000000..273119281 --- /dev/null +++ b/tutorials/ngs/5_export_python/export2py.cpp @@ -0,0 +1,12 @@ +// Copyright (C) 2010-2012 by Lukas Gamper +// 2026 by the ALPS collaboration +// SPDX-License-Identifier: MIT + +#include "ising.hpp" + +#include +#include + +NB_MODULE(ising_c, m) { + ALPS_EXPORT_SIM_TO_PYTHON(sim, ising_sim); +} diff --git a/tutorials/ngs/5_export_python/ising.cpp b/tutorials/ngs/5_export_python/ising.cpp new file mode 100644 index 000000000..a477fb51e --- /dev/null +++ b/tutorials/ngs/5_export_python/ising.cpp @@ -0,0 +1,42 @@ +// Copyright (C) 2010-2012 by Lukas Gamper +// 2026 by the ALPS collaboration +// SPDX-License-Identifier: MIT + +#include "ising.hpp" + +#include +#include + +#include + +ising_sim::ising_sim(parameters_type const & parameters, + std::size_t seed_offset) + : alps::mcbase(parameters, seed_offset), + total_sweeps_(parameters["SWEEPS"] | 10) { + measurements << alps::accumulator::RealObservable("Magnetization"); +} + +void ising_sim::update() { + state_ = random() < 0.5 ? -1.0 : 1.0; + ++sweeps_; +} + +void ising_sim::measure() { + measurements["Magnetization"] << state_; +} + +double ising_sim::fraction_completed() const { + return std::min(1.0, static_cast(sweeps_) / total_sweeps_); +} + +void ising_sim::save(alps::hdf5::archive & archive) const { + alps::mcbase::save(archive); + archive["/checkpoint/sweeps"] << sweeps_; + archive["/checkpoint/state"] << state_; +} + +void ising_sim::load(alps::hdf5::archive & archive) { + alps::mcbase::load(archive); + archive["/checkpoint/sweeps"] >> sweeps_; + archive["/checkpoint/state"] >> state_; +} diff --git a/tutorials/ngs/5_export_python/ising.hpp b/tutorials/ngs/5_export_python/ising.hpp new file mode 100644 index 000000000..7f86ade33 --- /dev/null +++ b/tutorials/ngs/5_export_python/ising.hpp @@ -0,0 +1,28 @@ +// Copyright (C) 2010-2012 by Lukas Gamper +// 2026 by the ALPS collaboration +// SPDX-License-Identifier: MIT +#ifndef ALPS_TUTORIAL_EXPORTED_ISING_HPP +#define ALPS_TUTORIAL_EXPORTED_ISING_HPP + +#include + +#include + +class ising_sim : public alps::mcbase { +public: + explicit ising_sim(parameters_type const & parameters, + std::size_t seed_offset = 0); + + void update() override; + void measure() override; + double fraction_completed() const override; + void save(alps::hdf5::archive & archive) const override; + void load(alps::hdf5::archive & archive) override; + +private: + std::size_t sweeps_ = 0; + std::size_t total_sweeps_ = 1; + double state_ = 1.0; +}; + +#endif diff --git a/tutorials/ngs/5_export_python/main.py b/tutorials/ngs/5_export_python/main.py new file mode 100644 index 000000000..0ca551546 --- /dev/null +++ b/tutorials/ngs/5_export_python/main.py @@ -0,0 +1,12 @@ +#!/usr/bin/env python3 +"""Run the nanobind-exported C++ simulation from Python.""" + +import pyalps.ngs as ngs + +import ising_c + + +simulation = ising_c.sim(ngs.params({"SEED": 7, "SWEEPS": 10})) +simulation.run(lambda: False) +results = simulation.collectResults() +print(results) diff --git a/tutorials/ngs/5_export_python/smoke_test.py b/tutorials/ngs/5_export_python/smoke_test.py new file mode 100644 index 000000000..48dbb3a7b --- /dev/null +++ b/tutorials/ngs/5_export_python/smoke_test.py @@ -0,0 +1,38 @@ +#!/usr/bin/env python3 +"""Exercise the public downstream simulation-export compatibility helper.""" + +import os +import tempfile + +import pyalps.hdf5 as hdf5 +import pyalps.ngs as ngs + +import ising_c + + +parameters = ngs.params({"SEED": 7, "SWEEPS": 10}) +simulation = ising_c.sim(parameters) + +assert int(simulation.parameters["SWEEPS"]) == 10 +assert len(simulation.measurements) == 1 +assert 0.0 <= simulation.random() < 1.0 +assert simulation.run(lambda: False) +assert simulation.resultNames() == ["Magnetization"] +before = simulation.collectResults() +assert before["Magnetization"].count == 10 + +with tempfile.TemporaryDirectory() as directory: + checkpoint = os.path.join(directory, "ising.h5") + with hdf5.archive(checkpoint, "w") as archive: + simulation.save(archive) + + restored = ising_c.sim(parameters) + with hdf5.archive(checkpoint, "r") as archive: + restored.load(archive) + + after = restored.collectResults() + assert restored.resultNames() == simulation.resultNames() + assert after["Magnetization"].count == before["Magnetization"].count + assert after["Magnetization"].mean == before["Magnetization"].mean + +print("downstream nanobind export: ok") From 8c65361c1dd537930745b9906cb0411d50f71bfe Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Wed, 19 Aug 2026 01:39:57 -0500 Subject: [PATCH 40/51] test(pyalps): surface downstream exporter failures --- test/pyalps/test_binding_surface.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/pyalps/test_binding_surface.py b/test/pyalps/test_binding_surface.py index 572f1486b..3362a61d1 100644 --- a/test/pyalps/test_binding_surface.py +++ b/test/pyalps/test_binding_surface.py @@ -487,11 +487,15 @@ def test_downstream_nanobind_simulation_export(tmp_path): ) completed = subprocess.run( [sys.executable, str(tutorial / "smoke_test.py")], - check=True, capture_output=True, env=environment, text=True, ) + assert completed.returncode == 0, ( + "downstream exporter smoke test failed\n" + f"stdout:\n{completed.stdout}\n" + f"stderr:\n{completed.stderr}" + ) assert "downstream nanobind export: ok" in completed.stdout From ca8001f6adabe3887d4c101102fe49b58daa3e2a Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Wed, 19 Aug 2026 01:51:09 -0500 Subject: [PATCH 41/51] fix(pyalps): share wheel runtime with downstream modules --- CMakeLists.txt | 2 + bindings/python/pyalps/MIGRATION.md | 13 ++ cmake/ALPSConfig.cmake.in | 3 + cmake/UsePyALPS.cmake | 128 +++++++++++++++++++ tutorials/ngs/5_export_python/CMakeLists.txt | 17 +-- tutorials/ngs/5_export_python/README.md | 6 +- tutorials/ngs/5_export_python/smoke_test.py | 5 +- 7 files changed, 157 insertions(+), 17 deletions(-) create mode 100644 cmake/UsePyALPS.cmake diff --git a/CMakeLists.txt b/CMakeLists.txt index 5f5b3ff2b..3838df441 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -351,6 +351,7 @@ set(CMAKE_MACOSX_RPATH 1) ###################################################################### set(ALPS_USE_FILE ${CMAKE_INSTALL_PREFIX}/share/alps/UseALPS.cmake) +set(ALPS_PYTHON_USE_FILE ${CMAKE_INSTALL_PREFIX}/share/alps/UsePyALPS.cmake) set(Boost_INCLUDE_DIR_CONFIG ${Boost_INCLUDE_DIR}) @@ -448,6 +449,7 @@ install(DIRECTORY ${PROJECT_BINARY_DIR}/lib/xml DESTINATION ${ALPS_XML_PATH} COM add_subdirectory(cmake) install(FILES cmake/UseALPS.cmake + cmake/UsePyALPS.cmake ${PROJECT_BINARY_DIR}/cmake/ALPSConfig.cmake ${PROJECT_BINARY_DIR}/cmake/ALPSConfigVersion.cmake ${PROJECT_BINARY_DIR}/cmake/include.mk diff --git a/bindings/python/pyalps/MIGRATION.md b/bindings/python/pyalps/MIGRATION.md index 213764687..7b6495c18 100644 --- a/bindings/python/pyalps/MIGRATION.md +++ b/bindings/python/pyalps/MIGRATION.md @@ -61,6 +61,19 @@ NB_MODULE(my_sim, m) { and keep the existing export macro call. See `tutorials/ngs/5_export_python` for a complete standalone CMake build. +After creating the nanobind target, link it with the installed SDK helper: + +```cmake +include("${ALPS_PYTHON_USE_FILE}") +alps_target_link_pyalps(my_sim PYTHON_EXECUTABLE "${Python_EXECUTABLE}") +``` + +Do not link a wheel consumer directly to a second system `libalps`/HDF5 +stack. Repaired wheels carry private shared libraries, and stateful values +such as HDF5 handles are valid only in the library image that created them. +The helper selects the wheel's exact runtime when present, retains normal SDK +linking for source installs, and makes direct `import my_sim` work on macOS. + The removed `alps/python/numpy_array.hpp` API should be replaced with `nanobind::ndarray` or nanobind's STL casters. The old `alps/hdf5/python.hpp` operators accepted `boost::python::object` and have no diff --git a/cmake/ALPSConfig.cmake.in b/cmake/ALPSConfig.cmake.in index cecdccdc0..3934af217 100644 --- a/cmake/ALPSConfig.cmake.in +++ b/cmake/ALPSConfig.cmake.in @@ -33,6 +33,9 @@ SET(ALPS_VERSION "@ALPS_VERSION@") # The location of the UseALPS.cmake file. set(ALPS_USE_FILE "@ALPS_USE_FILE@") +# Helper for nanobind extensions that exchange ALPS objects with pyalps. +set(ALPS_PYTHON_USE_FILE "@ALPS_PYTHON_USE_FILE@") + # The Boost Root Dir used by ALPS set(ALPS_Boost_ROOT_DIR "@Boost_ROOT_DIR@") set(ALPS_Boost_INCLUDE_DIR "@Boost_INCLUDE_DIR_CONFIG@") diff --git a/cmake/UsePyALPS.cmake b/cmake/UsePyALPS.cmake new file mode 100644 index 000000000..9fb1b6303 --- /dev/null +++ b/cmake/UsePyALPS.cmake @@ -0,0 +1,128 @@ +# Link a downstream nanobind module to the same ALPS runtime as pyalps. +# +# Binary wheels relocate libalps and its non-system dependencies into a +# wheel-private directory. Linking a consumer module to a separately installed +# ALPS/HDF5 stack is unsafe: objects such as hdf5::archive carry handles that +# are valid only in the HDF5 image that created them. This helper discovers a +# repaired wheel's private runtime and links the target to those exact files. +# Source/developer installs without relocated libraries keep using the normal +# ALPSConfig.cmake library paths. + +include_guard(GLOBAL) + +function(alps_target_link_pyalps target) + if(NOT TARGET "${target}") + message(FATAL_ERROR + "alps_target_link_pyalps: '${target}' is not a CMake target") + endif() + + cmake_parse_arguments(PYALPS "" "PYTHON_EXECUTABLE" "" ${ARGN}) + if(NOT PYALPS_PYTHON_EXECUTABLE) + if(Python_EXECUTABLE) + set(PYALPS_PYTHON_EXECUTABLE "${Python_EXECUTABLE}") + else() + message(FATAL_ERROR + "alps_target_link_pyalps requires PYTHON_EXECUTABLE or a preceding " + "find_package(Python ... Interpreter)") + endif() + endif() + + set(_pyalps_link_libraries ${ALPS_LIBRARIES}) + list(TRANSFORM _pyalps_link_libraries REPLACE "^hdf5-shared$" "hdf5") + + set(_pyalps_runtime_paths ${ALPS_LIBRARY_DIRS}) + if(ALPS_HDF5_INCLUDE_DIR) + get_filename_component(_pyalps_hdf5_prefix + "${ALPS_HDF5_INCLUDE_DIR}" DIRECTORY) + list(APPEND _pyalps_runtime_paths "${_pyalps_hdf5_prefix}/lib") + endif() + + # Find the package without importing it. Importing an extension while CMake + # configures would load its runtime only in this short-lived child process. + execute_process( + COMMAND "${PYALPS_PYTHON_EXECUTABLE}" -c + "import importlib.util, pathlib; s=importlib.util.find_spec('pyalps'); print(pathlib.Path(next(iter(s.submodule_search_locations))).resolve() if s and s.submodule_search_locations else '')" + OUTPUT_VARIABLE _pyalps_package_dir + OUTPUT_STRIP_TRAILING_WHITESPACE + RESULT_VARIABLE _pyalps_location_result + ERROR_QUIET) + + if(_pyalps_location_result EQUAL 0 AND _pyalps_package_dir) + set(_pyalps_runtime_candidates + "${_pyalps_package_dir}/.dylibs" + "${_pyalps_package_dir}/../pyalps.libs") + foreach(_candidate IN LISTS _pyalps_runtime_candidates) + if(IS_DIRECTORY "${_candidate}") + get_filename_component(_pyalps_private_runtime "${_candidate}" REALPATH) + break() + endif() + endforeach() + endif() + + if(_pyalps_private_runtime) + set(_pyalps_private_libraries "") + foreach(_library IN LISTS _pyalps_link_libraries) + file(GLOB _matches LIST_DIRECTORIES FALSE + "${_pyalps_private_runtime}/lib${_library}.so*" + "${_pyalps_private_runtime}/lib${_library}-*.so*" + "${_pyalps_private_runtime}/lib${_library}.dylib" + "${_pyalps_private_runtime}/lib${_library}.*.dylib" + "${_pyalps_private_runtime}/lib${_library}-*.dylib") + list(REMOVE_DUPLICATES _matches) + list(LENGTH _matches _match_count) + if(NOT _match_count EQUAL 1) + message(FATAL_ERROR + "pyalps uses a private wheel runtime, but exactly one bundled " + "${_library} library was expected in ${_pyalps_private_runtime}; " + "found: ${_matches}") + endif() + list(GET _matches 0 _match) + list(APPEND _pyalps_private_libraries "${_match}") + + # delocate gives copied dylibs collision-resistant /DLC install names. + # Those names are intentionally not real paths, so rewrite this target's + # references to @rpath and point that rpath at the wheel directory. This + # also permits importing the consumer module before importing pyalps. + if(APPLE) + if(NOT CMAKE_OTOOL) + find_program(CMAKE_OTOOL otool REQUIRED) + endif() + if(NOT CMAKE_INSTALL_NAME_TOOL) + find_program(CMAKE_INSTALL_NAME_TOOL install_name_tool REQUIRED) + endif() + execute_process( + COMMAND "${CMAKE_OTOOL}" -D "${_match}" + OUTPUT_VARIABLE _install_names + OUTPUT_STRIP_TRAILING_WHITESPACE + COMMAND_ERROR_IS_FATAL ANY) + string(REGEX MATCHALL "[^\r\n]+" _install_name_lines + "${_install_names}") + list(LENGTH _install_name_lines _install_name_line_count) + if(_install_name_line_count LESS 2) + message(FATAL_ERROR "Could not read the install name of ${_match}") + endif() + list(GET _install_name_lines 1 _install_name) + string(STRIP "${_install_name}" _install_name) + get_filename_component(_runtime_name "${_match}" NAME) + add_custom_command(TARGET "${target}" POST_BUILD + COMMAND "${CMAKE_INSTALL_NAME_TOOL}" -change + "${_install_name}" "@rpath/${_runtime_name}" + "$" + VERBATIM) + endif() + endforeach() + + set(_pyalps_link_libraries ${_pyalps_private_libraries}) + set(_pyalps_runtime_paths "${_pyalps_private_runtime}") + message(STATUS + "${target}: using pyalps wheel runtime at ${_pyalps_private_runtime}") + else() + target_link_directories("${target}" PRIVATE ${_pyalps_runtime_paths}) + endif() + + target_link_libraries("${target}" PRIVATE ${_pyalps_link_libraries}) + set_property(TARGET "${target}" APPEND PROPERTY + BUILD_RPATH ${_pyalps_runtime_paths}) + set_property(TARGET "${target}" APPEND PROPERTY + INSTALL_RPATH ${_pyalps_runtime_paths}) +endfunction() diff --git a/tutorials/ngs/5_export_python/CMakeLists.txt b/tutorials/ngs/5_export_python/CMakeLists.txt index 8d6f954fd..d1ba4afb9 100644 --- a/tutorials/ngs/5_export_python/CMakeLists.txt +++ b/tutorials/ngs/5_export_python/CMakeLists.txt @@ -16,27 +16,16 @@ set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) -set(_alps_libraries ${ALPS_LIBRARIES}) -list(TRANSFORM _alps_libraries REPLACE "^hdf5-shared$" "hdf5") separate_arguments(_alps_link_options NATIVE_COMMAND "${ALPS_EXTRA_LINKER_FLAGS}") separate_arguments(_alps_compile_options NATIVE_COMMAND "${ALPS_CMAKE_CXX_FLAGS}") -link_directories(${ALPS_LIBRARY_DIRS}) -set(_alps_runtime_paths ${ALPS_LIBRARY_DIRS}) -if(ALPS_HDF5_INCLUDE_DIR) - get_filename_component(_hdf5_prefix "${ALPS_HDF5_INCLUDE_DIR}" DIRECTORY) - link_directories("${_hdf5_prefix}/lib") - list(APPEND _alps_runtime_paths "${_hdf5_prefix}/lib") -endif() - nanobind_add_module(ising_c NB_STATIC export2py.cpp ising.cpp) target_include_directories(ising_c PRIVATE ${ALPS_INCLUDE_DIRS} ${ALPS_EXTRA_INCLUDE_DIRS}) target_compile_options(ising_c PRIVATE ${_alps_compile_options}) target_compile_definitions(ising_c PRIVATE ${ALPS_EXTRA_DEFINITIONS}) -target_link_libraries(ising_c PRIVATE ${_alps_libraries}) target_link_options(ising_c PRIVATE ${_alps_link_options}) -set_target_properties(ising_c PROPERTIES - INSTALL_RPATH "${_alps_runtime_paths}" - BUILD_RPATH "${_alps_runtime_paths}") +include("${ALPS_PYTHON_USE_FILE}") +alps_target_link_pyalps(ising_c + PYTHON_EXECUTABLE "${Python_EXECUTABLE}") diff --git a/tutorials/ngs/5_export_python/README.md b/tutorials/ngs/5_export_python/README.md index 258aa1e68..67fed0ce4 100644 --- a/tutorials/ngs/5_export_python/README.md +++ b/tutorials/ngs/5_export_python/README.md @@ -17,4 +17,8 @@ For an old export source, replace `BOOST_PYTHON_MODULE(name) {` with `ALPS_EXPORT_SIM_TO_PYTHON(PythonName, SimulationClass)` call remains valid. The helper imports pyalps' owning extension modules before registering the derived class, so ALPS parameter, archive, observable, and result types are -shared safely through nanobind's process-wide type registry. +shared safely through nanobind's process-wide type registry. The example also +uses `alps_target_link_pyalps`, supplied by `ALPS_PYTHON_USE_FILE`, to link a +consumer to the exact `libalps`, Boost, and HDF5 copies carried by a repaired +pyalps wheel. This is required for stateful library objects such as HDF5 +handles; do not replace it with a second system HDF5 linkage. diff --git a/tutorials/ngs/5_export_python/smoke_test.py b/tutorials/ngs/5_export_python/smoke_test.py index 48dbb3a7b..a33b7777a 100644 --- a/tutorials/ngs/5_export_python/smoke_test.py +++ b/tutorials/ngs/5_export_python/smoke_test.py @@ -4,11 +4,12 @@ import os import tempfile +# Importing the consumer first verifies its wheel-runtime rpath. Its module +# initializer loads the owning pyalps bindings before registering C++ types. +import ising_c import pyalps.hdf5 as hdf5 import pyalps.ngs as ngs -import ising_c - parameters = ngs.params({"SEED": 7, "SWEEPS": 10}) simulation = ising_c.sim(parameters) From 85675fc8bf208af4ee8c9f60699a84e07bb24ac7 Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Wed, 19 Aug 2026 02:02:07 -0500 Subject: [PATCH 42/51] chore(cmake): add license header to PyALPS helper --- cmake/UsePyALPS.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/UsePyALPS.cmake b/cmake/UsePyALPS.cmake index 9fb1b6303..507c7e386 100644 --- a/cmake/UsePyALPS.cmake +++ b/cmake/UsePyALPS.cmake @@ -1,3 +1,6 @@ +# Copyright (C) 2026 by the ALPS collaboration +# SPDX-License-Identifier: MIT +# # Link a downstream nanobind module to the same ALPS runtime as pyalps. # # Binary wheels relocate libalps and its non-system dependencies into a From c888aa3604990c1f98438863bf913c9dbb3d23a1 Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Wed, 19 Aug 2026 02:29:31 -0500 Subject: [PATCH 43/51] docs(pyalps): remove standalone migration guide --- bindings/python/pyalps/MIGRATION.md | 81 ----------------------------- bindings/python/pyalps/README.md | 2 - 2 files changed, 83 deletions(-) delete mode 100644 bindings/python/pyalps/MIGRATION.md diff --git a/bindings/python/pyalps/MIGRATION.md b/bindings/python/pyalps/MIGRATION.md deleted file mode 100644 index 7b6495c18..000000000 --- a/bindings/python/pyalps/MIGRATION.md +++ /dev/null @@ -1,81 +0,0 @@ -# Migrating from the Boost.Python pyalps build - -The public Python API is preserved wherever it maps to native ALPS values. -The nanobind build intentionally does not keep arbitrary Python objects inside -`alps::params` or the C++ library. - -## Parameters - -`pyalps.ngs.params` accepts native booleans, 32-bit integers, floating-point -and complex numbers, strings, homogeneous Python sequences, NumPy scalar -arrays, and one-dimensional NumPy arrays. Values are copied into native C++ -storage. Multidimensional arrays, `None`, dictionaries, arbitrary objects, and -integers outside ALPS' 32-bit parameter range raise `TypeError` rather than -being retained as opaque Python objects. Sequence values are returned as -lists, irrespective of whether the input was a list, tuple, or NumPy array. - -## MPI - -Install `pyalps[mpi]` to use `pyalps.mpi`. The module provides the commonly -used Boost.MPI Python surface (`world`, `rank`, `size`, `Communicator`, -point-to-point methods, collectives, status/request names, and `Timer`) on top -of mpi4py. Ordinary pyalps wheels remain independent of any MPI runtime. - -The historical `mcbase(..., communicator)` argument is still accepted. It is -ignored, as it was by the Boost.Python wrapper; `alps::mcbase` itself has no -communicator constructor. Use `pyalps.mpi` for Python communication and ALPS' -C++ MPI adapters for MPI-aware C++ simulations. - -Boost.MPI's Python-object serialization bridge and skeleton/content API are -not reproduced. Hybrid applications should use mpi4py's typed buffer API or -an application-specific native C++ protocol. - -## Compiled module paths and DWA vectors - -Legacy paths such as `pyalps.pyalea_c` and `pyalps.dwa_c` remain aliases of -the extensions now stored under `pyalps._ext`. The preferred stable import is -still `pyalps.cxx.pyalea_c` for core extensions and `pyalps.dwa` for DWA. - -DWA's former `std_vector_*` constructors are compatibility aliases for -Python's `list`. DWA methods return list snapshots, which avoids exposing -mutable C++ container proxies and accepts ordinary Python sequences directly. - -## Exporting downstream C++ simulations - -The public header `` now implements -the export helper with nanobind while keeping the -`ALPS_EXPORT_SIM_TO_PYTHON` macro. Change the module declaration in an old -export source from: - -```cpp -BOOST_PYTHON_MODULE(my_sim) { -``` - -to: - -```cpp -#include -NB_MODULE(my_sim, m) { -``` - -and keep the existing export macro call. See -`tutorials/ngs/5_export_python` for a complete standalone CMake build. - -After creating the nanobind target, link it with the installed SDK helper: - -```cmake -include("${ALPS_PYTHON_USE_FILE}") -alps_target_link_pyalps(my_sim PYTHON_EXECUTABLE "${Python_EXECUTABLE}") -``` - -Do not link a wheel consumer directly to a second system `libalps`/HDF5 -stack. Repaired wheels carry private shared libraries, and stateful values -such as HDF5 handles are valid only in the library image that created them. -The helper selects the wheel's exact runtime when present, retains normal SDK -linking for source installs, and makes direct `import my_sim` work on macOS. - -The removed `alps/python/numpy_array.hpp` API should be replaced with -`nanobind::ndarray` or nanobind's STL casters. The old -`alps/hdf5/python.hpp` operators accepted `boost::python::object` and have no -Python-object-free equivalent; use typed `alps::hdf5::archive` operations in -C++ or `pyalps.hdf5` at the Python boundary. diff --git a/bindings/python/pyalps/README.md b/bindings/python/pyalps/README.md index 4f0348cc0..766e23360 100644 --- a/bindings/python/pyalps/README.md +++ b/bindings/python/pyalps/README.md @@ -9,8 +9,6 @@ python -m pip install pyalps Install `pyalps[plot]` to use the Matplotlib plotting helpers. Install `pyalps[mpi]` for the mpi4py-backed `pyalps.mpi` compatibility layer. -Projects moving from the Boost.Python build should also read -[the nanobind migration guide](https://github.com/ALPSim/ALPS/blob/master/bindings/python/pyalps/MIGRATION.md). The bindings are built as a standalone `scikit-build-core` project using nanobind. A source build requires Python 3.10 or newer, CMake 3.22 or newer, From 6b6e0940f9e49e19e536e7ccde688a7a44b65138 Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Wed, 19 Aug 2026 02:36:39 -0500 Subject: [PATCH 44/51] fix(pyalps): resolve relocated Linux libraries --- cmake/UsePyALPS.cmake | 35 ++++++++++++++++++++++++++++------- 1 file changed, 28 insertions(+), 7 deletions(-) diff --git a/cmake/UsePyALPS.cmake b/cmake/UsePyALPS.cmake index 507c7e386..ad314b5f8 100644 --- a/cmake/UsePyALPS.cmake +++ b/cmake/UsePyALPS.cmake @@ -65,19 +65,39 @@ function(alps_target_link_pyalps target) if(_pyalps_private_runtime) set(_pyalps_private_libraries "") foreach(_library IN LISTS _pyalps_link_libraries) + # Installed ALPSConfig files may record dependencies as bare linker + # names (alps), linker flags (-lalps), or absolute paths + # (/usr/lib64/liblapack.so). Wheel repair tools rename all three forms + # to a private file such as liblapack-.so. Normalize the original + # entry to its library stem before looking up that repaired file. + set(_library_stem "${_library}") + if(IS_ABSOLUTE "${_library_stem}") + get_filename_component(_library_stem "${_library_stem}" NAME) + endif() + string(REGEX REPLACE "^-l" "" _library_stem "${_library_stem}") + string(REGEX REPLACE "^lib" "" _library_stem "${_library_stem}") + string(REGEX REPLACE "\\.so(\\.[0-9]+)*$" "" _library_stem + "${_library_stem}") + string(REGEX REPLACE "(\\.[0-9]+)*\\.dylib$" "" _library_stem + "${_library_stem}") + string(REGEX REPLACE "\\.a$" "" _library_stem "${_library_stem}") + if(_library_stem STREQUAL "hdf5-shared") + set(_library_stem "hdf5") + endif() + file(GLOB _matches LIST_DIRECTORIES FALSE - "${_pyalps_private_runtime}/lib${_library}.so*" - "${_pyalps_private_runtime}/lib${_library}-*.so*" - "${_pyalps_private_runtime}/lib${_library}.dylib" - "${_pyalps_private_runtime}/lib${_library}.*.dylib" - "${_pyalps_private_runtime}/lib${_library}-*.dylib") + "${_pyalps_private_runtime}/lib${_library_stem}.so*" + "${_pyalps_private_runtime}/lib${_library_stem}-*.so*" + "${_pyalps_private_runtime}/lib${_library_stem}.dylib" + "${_pyalps_private_runtime}/lib${_library_stem}.*.dylib" + "${_pyalps_private_runtime}/lib${_library_stem}-*.dylib") list(REMOVE_DUPLICATES _matches) list(LENGTH _matches _match_count) if(NOT _match_count EQUAL 1) message(FATAL_ERROR "pyalps uses a private wheel runtime, but exactly one bundled " - "${_library} library was expected in ${_pyalps_private_runtime}; " - "found: ${_matches}") + "${_library_stem} library (from '${_library}') was expected in " + "${_pyalps_private_runtime}; found: ${_matches}") endif() list(GET _matches 0 _match) list(APPEND _pyalps_private_libraries "${_match}") @@ -114,6 +134,7 @@ function(alps_target_link_pyalps target) VERBATIM) endif() endforeach() + list(REMOVE_DUPLICATES _pyalps_private_libraries) set(_pyalps_link_libraries ${_pyalps_private_libraries}) set(_pyalps_runtime_paths "${_pyalps_private_runtime}") From cb5e6437eebe0e5aac05e8c8faeff9915884a6d4 Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Wed, 19 Aug 2026 02:59:17 -0500 Subject: [PATCH 45/51] fix(pyalps): resolve transitive wheel libraries --- cmake/UsePyALPS.cmake | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmake/UsePyALPS.cmake b/cmake/UsePyALPS.cmake index ad314b5f8..abf767c65 100644 --- a/cmake/UsePyALPS.cmake +++ b/cmake/UsePyALPS.cmake @@ -138,6 +138,13 @@ function(alps_target_link_pyalps target) set(_pyalps_link_libraries ${_pyalps_private_libraries}) set(_pyalps_runtime_paths "${_pyalps_private_runtime}") + if(CMAKE_SYSTEM_NAME STREQUAL "Linux") + # GNU DT_RUNPATH is searched only for direct dependencies. Wheel + # libraries such as LAPACK can themselves depend on relocated runtime + # libraries (for example auditwheel's libgfortran copy), so emit the + # transitive DT_RPATH tag for this consumer module instead. + target_link_options("${target}" PRIVATE "LINKER:--disable-new-dtags") + endif() message(STATUS "${target}: using pyalps wheel runtime at ${_pyalps_private_runtime}") else() From cd6a49597802f3726e5aa033bdf9c721370cade1 Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Wed, 19 Aug 2026 10:47:56 -0500 Subject: [PATCH 46/51] fix(pyalps): preserve downstream mcbase identity --- bindings/python/pyalps/cpp/ngs/mcbase.cpp | 45 +++++++++++--------- src/alps/mcbase.cpp | 2 + src/alps/mcbase.hpp | 1 + src/alps/ngs/detail/export_sim_to_python.hpp | 5 +-- tutorials/ngs/5_export_python/smoke_test.py | 2 + 5 files changed, 32 insertions(+), 23 deletions(-) diff --git a/bindings/python/pyalps/cpp/ngs/mcbase.cpp b/bindings/python/pyalps/cpp/ngs/mcbase.cpp index 32e7d1892..9fe1d13f5 100644 --- a/bindings/python/pyalps/cpp/ngs/mcbase.cpp +++ b/bindings/python/pyalps/cpp/ngs/mcbase.cpp @@ -31,8 +31,9 @@ // // Trampoline (PyMCBase) forwards the three pure-virtual mcbase methods // (update / measure / fraction_completed) back into the Python subclass -// through nanobind's trampoline support. The old wrapper -// pattern becomes a standard trampoline-plus-alias pair. +// through nanobind's trampoline support. Binding mcbase itself with +// PyMCBase as its alias preserves the public base class of downstream +// simulations, as in the Boost.Python bindings. // // Params ingestion: the public alps::mcbase ctor wants an alps::params. // We convert nb::dict → alps::params at the binding boundary through @@ -48,9 +49,13 @@ namespace nb = nanobind; #include #include -#include +#include +#include #include "../dict_to_params.hpp" namespace alps { + static_assert(std::has_virtual_destructor::value, + "mcbase must safely destroy nanobind trampoline aliases"); + // Trampoline: holds Python overrides for pure-virtuals. The // protected mcbase members (random / parameters / measurements) // are accessed via lambdas in the binding below, which friend-in @@ -91,19 +96,10 @@ namespace alps { alps::random01 & get_random() { return random; } mcbase::parameters_type & get_parameters() { return parameters; } alps::mcobservables & get_measurements() { return measurements; } - // mcbase::run takes a std::function; wrap a Python - // callable so the stop_callback can be driven from Python. - bool run_py(nb::object stop_callback) { - return mcbase::run([stop_callback]() -> bool { - nb::gil_scoped_acquire gil; - return nb::cast(stop_callback()); - }); - } }; } NB_MODULE(pyngsbase_c, m) { - nb::class_(m, "_mcbase", nb::never_destruct()); - nb::class_(m, "mcbase") + nb::class_(m, "mcbase") // Retain the legacy third argument without binding Boost.MPI. The // Boost.Python-era constructor accepted a communicator but never // passed it to alps::mcbase (which has no communicator constructor), @@ -115,20 +111,31 @@ NB_MODULE(pyngsbase_c, m) { nb::arg("communicator") = nb::none()) .def_prop_ro( "random", - [](alps::PyMCBase & self) -> alps::random01 & { return self.get_random(); }, + [](alps::mcbase & self) -> alps::random01 & { + return dynamic_cast(self).get_random(); + }, nb::rv_policy::reference_internal) .def_prop_ro( "parameters", - [](alps::PyMCBase & self) -> alps::mcbase::parameters_type & { return self.get_parameters(); }, + [](alps::mcbase & self) -> alps::mcbase::parameters_type & { + return dynamic_cast(self).get_parameters(); + }, nb::rv_policy::reference_internal) .def_prop_ro( "measurements", - [](alps::PyMCBase & self) -> alps::mcobservables & { return self.get_measurements(); }, + [](alps::mcbase & self) -> alps::mcobservables & { + return dynamic_cast(self).get_measurements(); + }, nb::rv_policy::reference_internal) .def("run", - [](alps::PyMCBase & self, nb::object cb) { return self.run_py(std::move(cb)); }) - // Pure-virtual methods: bound on the base class; the trampoline's - // The trampoline forwards the call into the Python subclass. + [](alps::mcbase & self, nb::object stop_callback) { + return self.run([stop_callback = std::move(stop_callback)]() -> bool { + nb::gil_scoped_acquire gil; + return nb::cast(stop_callback()); + }); + }) + // Pure-virtual methods are bound on the base class; the trampoline + // forwards each call into the Python subclass. .def("update", &alps::mcbase::update) .def("measure", &alps::mcbase::measure) .def("fraction_completed", &alps::mcbase::fraction_completed) diff --git a/src/alps/mcbase.cpp b/src/alps/mcbase.cpp index 8ebe974d7..0bbecbb4e 100644 --- a/src/alps/mcbase.cpp +++ b/src/alps/mcbase.cpp @@ -24,6 +24,8 @@ namespace alps { alps::ngs::signal::listen(); } + mcbase::~mcbase() = default; + void mcbase::save(boost::filesystem::path const & filename) const { alps::hdf5::archive ar(filename, "w"); ar["/simulation/realizations/0/clones/0"] << *this; diff --git a/src/alps/mcbase.hpp b/src/alps/mcbase.hpp index 81c001533..cffaef6cb 100644 --- a/src/alps/mcbase.hpp +++ b/src/alps/mcbase.hpp @@ -46,6 +46,7 @@ namespace alps { #endif mcbase(parameters_type const & parms, std::size_t seed_offset = 0); + virtual ~mcbase(); virtual void update() = 0; virtual void measure() = 0; diff --git a/src/alps/ngs/detail/export_sim_to_python.hpp b/src/alps/ngs/detail/export_sim_to_python.hpp index b5dcb2b92..758044c54 100644 --- a/src/alps/ngs/detail/export_sim_to_python.hpp +++ b/src/alps/ngs/detail/export_sim_to_python.hpp @@ -35,10 +35,7 @@ class exported_simulation : public Simulation { std::size_t seed_offset = 0) : Simulation(parameters, seed_offset) {} - // mcbase predates virtual-destructor guidance. The Python-owned concrete - // wrapper is nevertheless polymorphic, so give this boundary type its own - // virtual destructor and ensure nanobind always destroys the full object. - virtual ~exported_simulation() = default; + ~exported_simulation() override = default; bool run_python(nb::object stop_callback) { return Simulation::run([stop_callback]() -> bool { diff --git a/tutorials/ngs/5_export_python/smoke_test.py b/tutorials/ngs/5_export_python/smoke_test.py index a33b7777a..ba5b5be08 100644 --- a/tutorials/ngs/5_export_python/smoke_test.py +++ b/tutorials/ngs/5_export_python/smoke_test.py @@ -14,6 +14,8 @@ parameters = ngs.params({"SEED": 7, "SWEEPS": 10}) simulation = ising_c.sim(parameters) +assert issubclass(ising_c.sim, ngs.mcbase) +assert isinstance(simulation, ngs.mcbase) assert int(simulation.parameters["SWEEPS"]) == 10 assert len(simulation.measurements) == 1 assert 0.0 <= simulation.random() < 1.0 From d2ee4b6748e677dcb8bc3c1d3efb2596595d5a79 Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Wed, 19 Aug 2026 17:14:40 -0500 Subject: [PATCH 47/51] fix(pyalps): close remaining audit gaps --- bindings/python/pyalps/cpp/dict_to_params.hpp | 9 ++++++--- .../pyalps/cpp/ngs/extract_from_pyobject.hpp | 3 ++- bindings/python/pyalps/cpp/ngs/mcbase.cpp | 17 ++++------------- bindings/python/pyalps/cpp/ngs/params.cpp | 14 ++------------ src/alps/mcbase.hpp | 11 ++++++++--- src/alps/ngs/lib/params.cpp | 7 ++++++- src/alps/ngs/params.hpp | 5 +++++ test/ngs/params/assign.cpp | 3 +++ tutorials/ngs/5_export_python/smoke_test.py | 6 ++++++ 9 files changed, 42 insertions(+), 33 deletions(-) diff --git a/bindings/python/pyalps/cpp/dict_to_params.hpp b/bindings/python/pyalps/cpp/dict_to_params.hpp index 9b7bb8cb4..db86a7d28 100644 --- a/bindings/python/pyalps/cpp/dict_to_params.hpp +++ b/bindings/python/pyalps/cpp/dict_to_params.hpp @@ -8,6 +8,7 @@ // module ingests parameters identically. #ifndef PYALPS_DICT_TO_PARAMS_HPP #define PYALPS_DICT_TO_PARAMS_HPP +#include "numpy_compat.hpp" #include #include #include @@ -40,12 +41,14 @@ inline bool is_bool_like(PyObject * raw) { inline bool is_numpy_array(nb::handle value) { // isinstance, rather than an exact tp_name comparison, keeps ndarray // subclasses (for example an unmasked numpy.ma.MaskedArray) on the same - // native-copy path. Import lookup itself is cached by Python. - return nb::isinstance(value, nb::module_::import_("numpy").attr("ndarray")); + // native-copy path. Reuse the process-lifetime module handle shared by + // the other NumPy conversion helpers. + return nb::isinstance( + value, alps::python::numpy_module().attr("ndarray")); } inline char numpy_scalar_kind(nb::handle value) { - nb::object numpy = nb::module_::import_("numpy"); + nb::handle numpy = alps::python::numpy_module(); if (!nb::isinstance(value, numpy.attr("generic"))) return '\0'; std::string const kind = nb::cast( diff --git a/bindings/python/pyalps/cpp/ngs/extract_from_pyobject.hpp b/bindings/python/pyalps/cpp/ngs/extract_from_pyobject.hpp index 735ca0f5a..6619cbd85 100644 --- a/bindings/python/pyalps/cpp/ngs/extract_from_pyobject.hpp +++ b/bindings/python/pyalps/cpp/ngs/extract_from_pyobject.hpp @@ -9,6 +9,7 @@ /// . #ifndef PYALPS_NGS_EXTRACT_FROM_PYOBJECT_HPP #define PYALPS_NGS_EXTRACT_FROM_PYOBJECT_HPP + #include "../numpy_compat.hpp" #include #include #include @@ -87,7 +88,7 @@ else if (dtype == "numpy.ndarray" || nb_::isinstance( data, - nb_::module_::import_("numpy").attr("ndarray"))) { + alps::python::numpy_module().attr("ndarray"))) { // Reject non-native byte order explicitly. nanobind's // failed ndarray cast would otherwise surface only as // the unhelpful message "std::bad_cast". diff --git a/bindings/python/pyalps/cpp/ngs/mcbase.cpp b/bindings/python/pyalps/cpp/ngs/mcbase.cpp index 9fe1d13f5..bde258c0e 100644 --- a/bindings/python/pyalps/cpp/ngs/mcbase.cpp +++ b/bindings/python/pyalps/cpp/ngs/mcbase.cpp @@ -56,11 +56,7 @@ namespace alps { static_assert(std::has_virtual_destructor::value, "mcbase must safely destroy nanobind trampoline aliases"); - // Trampoline: holds Python overrides for pure-virtuals. The - // protected mcbase members (random / parameters / measurements) - // are accessed via lambdas in the binding below, which friend-in - // through PyMCBase (a protected member is visible to a derived - // class's own member functions / friends). + // Trampoline: holds Python overrides for pure-virtuals. class PyMCBase : public mcbase { public: // Slot count = the number of NB_OVERRIDE* calls below. @@ -91,11 +87,6 @@ namespace alps { void load(alps::hdf5::archive & ar) override { NB_OVERRIDE(load, ar); } - // Accessors for protected mcbase members. Called from the - // binding lambdas below (they friend-in through PyMCBase). - alps::random01 & get_random() { return random; } - mcbase::parameters_type & get_parameters() { return parameters; } - alps::mcobservables & get_measurements() { return measurements; } }; } NB_MODULE(pyngsbase_c, m) { @@ -112,19 +103,19 @@ NB_MODULE(pyngsbase_c, m) { .def_prop_ro( "random", [](alps::mcbase & self) -> alps::random01 & { - return dynamic_cast(self).get_random(); + return self.get_random(); }, nb::rv_policy::reference_internal) .def_prop_ro( "parameters", [](alps::mcbase & self) -> alps::mcbase::parameters_type & { - return dynamic_cast(self).get_parameters(); + return self.get_parameters(); }, nb::rv_policy::reference_internal) .def_prop_ro( "measurements", [](alps::mcbase & self) -> alps::mcobservables & { - return dynamic_cast(self).get_measurements(); + return self.get_measurements(); }, nb::rv_policy::reference_internal) .def("run", diff --git a/bindings/python/pyalps/cpp/ngs/params.cpp b/bindings/python/pyalps/cpp/ngs/params.cpp index e4e5781f0..ff575a6b2 100644 --- a/bindings/python/pyalps/cpp/ngs/params.cpp +++ b/bindings/python/pyalps/cpp/ngs/params.cpp @@ -44,18 +44,8 @@ void params_setitem(alps::params & self, nb::object const & key_obj, nb::handle } nb::object params_getitem(alps::params & self, nb::object const & key_obj) { std::string key = nb::cast(nb::str(key_obj)); - // defined() answers the (common) miss with one map lookup; - // paramiterator steps re-do a map find each, so walking the whole - // container to conclude "absent" would be much slower. - if (!self.defined(key)) - return nb::none(); - // params doesn't expose the underlying map directly, but - // paramiterator yields (key, paramvalue) pairs; walk it to find the - // entry and hand the variant to paramvalue_to_py. - for (auto it = self.begin(); it != self.end(); ++it) - if (it->first == key) - return paramvalue_to_py(it->second); - return nb::none(); // defensive — defined()==true should guarantee a hit + alps::detail::paramvalue const * value = self.find(key); + return value ? paramvalue_to_py(*value) : nb::none(); } void params_delitem(alps::params & self, nb::object const & key_obj) { self.erase(nb::cast(nb::str(key_obj))); diff --git a/src/alps/mcbase.hpp b/src/alps/mcbase.hpp index cffaef6cb..225e7f909 100644 --- a/src/alps/mcbase.hpp +++ b/src/alps/mcbase.hpp @@ -26,7 +26,7 @@ namespace alps { class ALPS_DECL mcbase { - protected: + public: #ifdef ALPS_NGS_USE_NEW_ALEA typedef alps::accumulator::accumulator_set observable_collection_type; @@ -34,8 +34,6 @@ namespace alps { typedef alps::mcobservables observable_collection_type; #endif - public: - typedef alps::params parameters_type; typedef std::vector result_names_type; @@ -63,6 +61,13 @@ namespace alps { virtual void save(alps::hdf5::archive & ar) const; virtual void load(alps::hdf5::archive & ar); + // Non-virtual accessors for language bindings and downstream + // exporters. Keeping these on the actual base class avoids + // assuming that every derived simulation is a Python trampoline. + alps::random01 & get_random() { return random; } + parameters_type & get_parameters() { return parameters; } + observable_collection_type & get_measurements() { return measurements; } + protected: parameters_type parameters; diff --git a/src/alps/ngs/lib/params.cpp b/src/alps/ngs/lib/params.cpp index 37459c7e5..3ced4fe23 100644 --- a/src/alps/ngs/lib/params.cpp +++ b/src/alps/ngs/lib/params.cpp @@ -45,7 +45,7 @@ namespace alps { void params::erase(std::string const & key) { if (!defined(key)) throw std::invalid_argument("the key " + key + " does not exists" + ALPS_STACKTRACE); - keys.erase(find(keys.begin(), keys.end(), key)); + keys.erase(std::find(keys.begin(), keys.end(), key)); values.erase(key); } @@ -69,6 +69,11 @@ namespace alps { return values.find(key) != values.end(); } + detail::paramvalue const * params::find(std::string const & key) const { + std::map::const_iterator it = values.find(key); + return it == values.end() ? nullptr : &it->second; + } + params::iterator params::begin() { return iterator(*this, keys.begin()); } diff --git a/src/alps/ngs/params.hpp b/src/alps/ngs/params.hpp index b185790db..f43d47b05 100644 --- a/src/alps/ngs/params.hpp +++ b/src/alps/ngs/params.hpp @@ -69,6 +69,11 @@ namespace alps { bool defined(std::string const &) const; + // Direct native lookup for consumers that need to inspect the + // stored variant. The returned pointer remains owned by params + // and is null when the key is absent. + detail::paramvalue const * find(std::string const &) const; + iterator begin(); const_iterator begin() const; diff --git a/test/ngs/params/assign.cpp b/test/ngs/params/assign.cpp index 2c0336842..237312775 100644 --- a/test/ngs/params/assign.cpp +++ b/test/ngs/params/assign.cpp @@ -40,6 +40,9 @@ int main() { parms["std::string"] = std::string("asdf"); assert(parms["std::vector"].cast >() == bool_vector); + assert(parms.find("int") != nullptr); + assert(parms.find("int")->cast() == 1); + assert(parms.find("missing") == nullptr); std::cout << parms << std::endl; return 0; diff --git a/tutorials/ngs/5_export_python/smoke_test.py b/tutorials/ngs/5_export_python/smoke_test.py index ba5b5be08..bc4a7e381 100644 --- a/tutorials/ngs/5_export_python/smoke_test.py +++ b/tutorials/ngs/5_export_python/smoke_test.py @@ -19,6 +19,12 @@ assert int(simulation.parameters["SWEEPS"]) == 10 assert len(simulation.measurements) == 1 assert 0.0 <= simulation.random() < 1.0 +# The base descriptors must work for a downstream C++ simulation too. This +# used to throw std::bad_cast because mcbase assumed every instance was its +# Python trampoline alias. +assert ngs.mcbase.parameters.__get__(simulation) is simulation.parameters +assert ngs.mcbase.measurements.__get__(simulation) is simulation.measurements +assert ngs.mcbase.random.__get__(simulation) is simulation.random assert simulation.run(lambda: False) assert simulation.resultNames() == ["Magnetization"] before = simulation.collectResults() From 90f7acc2078c1483648e2ac346e0a96698214c67 Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Wed, 19 Aug 2026 17:45:43 -0500 Subject: [PATCH 48/51] fix(pyalps): restore Python signal handlers after CT-QMC --- .../dmft/qmc/hybridization/hybmain.cpp | 3 +- .../dmft/qmc/interaction_expansion2/main.cpp | 2 + .../interaction_expansion2/observables.cpp | 12 +-- .../pyalps/cpp/scoped_signal_handlers.hpp | 73 +++++++++++++++++++ test/pyalps/test_binding_surface.py | 67 +++++++++++++++++ 5 files changed, 150 insertions(+), 7 deletions(-) create mode 100644 bindings/python/pyalps/cpp/scoped_signal_handlers.hpp diff --git a/applications/dmft/qmc/hybridization/hybmain.cpp b/applications/dmft/qmc/hybridization/hybmain.cpp index ac063fda9..45b307faa 100644 --- a/applications/dmft/qmc/hybridization/hybmain.cpp +++ b/applications/dmft/qmc/hybridization/hybmain.cpp @@ -34,9 +34,11 @@ int global_mpi_rank; #ifdef BUILD_PYTHON_MODULE #include "dict_to_params.hpp" +#include "scoped_signal_handlers.hpp" namespace nb = nanobind; void solve(nb::dict const & parms_){ + pyalps::scoped_signal_handlers signal_handlers; alps::parameters_type::type parms = pyalps::params_from_dict(parms_); std::string output_file = boost::lexical_cast(parms["BASENAME"]|"results")+std::string(".out.h5"); #else @@ -140,4 +142,3 @@ NB_MODULE(cthyb, m) { #endif - diff --git a/applications/dmft/qmc/interaction_expansion2/main.cpp b/applications/dmft/qmc/interaction_expansion2/main.cpp index 74062ab7c..cf1d3f9b0 100644 --- a/applications/dmft/qmc/interaction_expansion2/main.cpp +++ b/applications/dmft/qmc/interaction_expansion2/main.cpp @@ -31,9 +31,11 @@ int global_mpi_rank; #ifdef BUILD_PYTHON_MODULE #include "dict_to_params.hpp" +#include "scoped_signal_handlers.hpp" namespace nb = nanobind; void solve(nb::dict const & parms_){ + pyalps::scoped_signal_handlers signal_handlers; alps::parameters_type::type parms = pyalps::params_from_dict(parms_); std::string output_file = boost::lexical_cast(parms["BASENAME"]|"results")+std::string(".out.h5"); #else diff --git a/applications/dmft/qmc/interaction_expansion2/observables.cpp b/applications/dmft/qmc/interaction_expansion2/observables.cpp index 774c239f1..ebe47dcdb 100644 --- a/applications/dmft/qmc/interaction_expansion2/observables.cpp +++ b/applications/dmft/qmc/interaction_expansion2/observables.cpp @@ -101,13 +101,13 @@ void InteractionExpansion::initialize_observables(void) sz_name<<"Sz_"< + +#if !defined(BOOST_MSVC) && !defined(ALPS_NGS_NO_SIGNALS) +#include +#include +#include +#endif + +namespace pyalps { + +// ALPS applications own process signal handlers while they run. Python is an +// embedded runtime, however, so its handlers must be put back before control +// returns to the interpreter. Reinstalling the ALPS handlers here also makes +// repeated solve() calls work after the preceding guard restored Python's. +class scoped_signal_handlers { +public: + scoped_signal_handlers() { +#if !defined(BOOST_MSVC) && !defined(ALPS_NGS_NO_SIGNALS) + for (std::size_t i = 0; i < signal_numbers_.size(); ++i) + saved_[i].valid = sigaction(signal_numbers_[i], NULL, &saved_[i].action) == 0; + + struct sigaction action; + std::memset(&action, 0, sizeof(action)); + action.sa_handler = &alps::ngs::signal::slot; + for (std::size_t i = 0; i < termination_signal_count_; ++i) + sigaction(signal_numbers_[i], &action, NULL); + + action.sa_handler = &alps::ngs::signal::segfault; + for (std::size_t i = termination_signal_count_; i < signal_numbers_.size(); ++i) + sigaction(signal_numbers_[i], &action, NULL); +#endif + } + + ~scoped_signal_handlers() { +#if !defined(BOOST_MSVC) && !defined(ALPS_NGS_NO_SIGNALS) + for (std::size_t i = 0; i < signal_numbers_.size(); ++i) + if (saved_[i].valid) + sigaction(signal_numbers_[i], &saved_[i].action, NULL); +#endif + } + + scoped_signal_handlers(scoped_signal_handlers const &) = delete; + scoped_signal_handlers & operator=(scoped_signal_handlers const &) = delete; + +private: +#if !defined(BOOST_MSVC) && !defined(ALPS_NGS_NO_SIGNALS) + struct saved_action { + struct sigaction action; + bool valid = false; + }; + + static constexpr std::array signal_numbers_ = {{ + SIGINT, SIGTERM, SIGXCPU, SIGQUIT, SIGUSR1, SIGUSR2, SIGSEGV, SIGBUS + }}; + static constexpr std::size_t termination_signal_count_ = 6; + std::array saved_; +#endif +}; + +#if !defined(BOOST_MSVC) && !defined(ALPS_NGS_NO_SIGNALS) +constexpr std::array scoped_signal_handlers::signal_numbers_; +constexpr std::size_t scoped_signal_handlers::termination_signal_count_; +#endif + +} // namespace pyalps + +#endif diff --git a/test/pyalps/test_binding_surface.py b/test/pyalps/test_binding_surface.py index 3362a61d1..021c69342 100644 --- a/test/pyalps/test_binding_surface.py +++ b/test/pyalps/test_binding_surface.py @@ -10,6 +10,7 @@ import importlib import os from pathlib import Path +import signal import subprocess import sys import tempfile @@ -242,6 +243,72 @@ def test_optional_application_extension_surface(): assert len(bands.t()) == 3 +def test_ctqmc_solvers_restore_python_signal_handlers(tmp_path, monkeypatch): + from pyalps import cthyb, ctint + import pyalps.hdf5 as hdf5 + + monkeypatch.chdir(tmp_path) + + delta_path = tmp_path / "delta.dat" + delta_path.write_text("".join(f"{i} -0.5 -0.5\n" for i in range(11))) + cthyb_params = { + "SWEEPS": 1, + "MAX_TIME": 1, + "THERMALIZATION": 0, + "SEED": 0, + "N_MEAS": 1, + "N_HISTOGRAM_ORDERS": 4, + "N_ORBITALS": 2, + "U": 1.0, + "MU": 0.5, + "DELTA": str(delta_path), + "N_TAU": 10, + "BETA": 1.0, + "TEXT_OUTPUT": 0, + "BASENAME": str(tmp_path / "cthyb-signal"), + } + + ctint_input = tmp_path / "ctint-input.h5" + archive = hdf5.archive(str(ctint_input), "w") + bare_green = np.asarray([-1j, -0.3j, -0.2j, -0.1j]) + archive["/G0_0"] = bare_green + archive["/G0_1"] = bare_green + del archive + ctint_params = { + "SWEEPS": 1, + "MAX_TIME": 1, + "THERMALIZATION": 0, + "BETA": 1.0, + "U": 1.0, + "MU": 0.5, + "ALPHA": 0.5, + "N_MATSUBARA": 4, + "N_TAU": 4, + "INFILE": str(ctint_input), + "BASENAME": str(tmp_path / "ctint-signal"), + } + + calls = [] + + def python_sigint_handler(signum, frame): + calls.append((signum, frame)) + + previous_handler = signal.signal(signal.SIGINT, python_sigint_handler) + try: + # Run each solver twice: restoration alone is not enough if ALPS' own + # handlers are not reinstalled for the next embedded call. + for solver, params in ((cthyb, cthyb_params), (ctint, ctint_params)): + for _ in range(2): + solver.solve(params) + assert signal.getsignal(signal.SIGINT) is python_sigint_handler + signal.raise_signal(signal.SIGINT) + assert calls[-1][0] == signal.SIGINT + finally: + signal.signal(signal.SIGINT, previous_handler) + + assert len(calls) == 4 + + def test_mpi4py_compatibility_surface(): pytest.importorskip("mpi4py") import operator From 156107fccfe64a9bed149f897d996a9ed10538f1 Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Wed, 26 Aug 2026 00:47:40 -0500 Subject: [PATCH 49/51] =?UTF-8?q?build(pyalps):=20nanobind=203=20split=20m?= =?UTF-8?q?ode=20=E2=80=94=20one=20abi3=20wheel=20per=20platform?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bump nanobind to >=3.0,<4 and switch every extension module from NB_STATIC to split mode (BACKEND_MODULE nanobind_backend). The modules now compile under Py_LIMITED_API (3.10 floor), carry only the nanobind frontend, and resolve the compiled backend at import time from the new nanobind-backend runtime dependency; the wheel is tagged cp310-abi3 and one wheel per platform covers CPython 3.10+. Limited-API adaptations: - tp_name dispatch (PyTypeObject is opaque) goes through the new alps::python::type_fullname() helper, which reconstructs the tp_name spellings from __module__/__qualname__. - PyComplex_AsCComplex/Py_complex replaced with nanobind's backend-served complex caster (params) and the component getters (hdf5 list save). - NB_TRAMPOLINE size argument dropped (deprecated in nanobind 3). The downstream export tutorial builds in split mode too: extensions only share bound types (mcbase identity) when they share a backend. Packaging/CI: cibuildwheel builds cp310 only; the downstream-export test moves into that single build; the smoke_test job now installs the one wheel on CPython 3.10-3.14 per platform and runs the full suite; wheel consumers installing with --no-deps must add nanobind-backend. Co-Authored-By: Claude Fable 5 --- .github/workflows/build.yml | 2 +- .github/workflows/build_wheels.yml | 14 +++--- bindings/python/pyalps/CMakeLists.txt | 48 ++++++++++--------- bindings/python/pyalps/README.md | 30 +++++++----- bindings/python/pyalps/cpp/dict_to_params.hpp | 19 ++++++-- .../pyalps/cpp/ngs/extract_from_pyobject.hpp | 2 +- bindings/python/pyalps/cpp/ngs/hdf5.cpp | 27 ++++++----- bindings/python/pyalps/cpp/ngs/mcbase.cpp | 3 +- bindings/python/pyalps/cpp/numpy_compat.hpp | 22 +++++++++ bindings/python/pyalps/pyproject.toml | 25 ++++++---- bindings/python/pyalps/src/pyalps/cxx.py | 6 ++- tutorials/ngs/5_export_python/CMakeLists.txt | 10 ++-- 12 files changed, 133 insertions(+), 75 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8c0e113d9..c197565ed 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -105,7 +105,7 @@ jobs: - name: Smoke test downstream nanobind simulation extension if: matrix.plat.os == 'ubuntu-24.04' && matrix.plat.c_compiler == 'gcc' && matrix.plat.c_version == 14 && matrix.plat.py_version == '3.14' && matrix.plat.boost_version == 91 && matrix.plat.cxx_standard == null run: | - python -m pip install "nanobind>=2.10,<3" + python -m pip install "nanobind>=3.0,<4" cmake --install build cmake -S tutorials/ngs/5_export_python -B downstream-export-build \ -DALPS_DIR="$PWD/build/install/share/alps" \ diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index afa818b45..f61a9962e 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -78,10 +78,10 @@ jobs: path: dist/*.tar.gz - # cibuildwheel already runs test/pyalps against every wheel inside the build - # environment; this job checks the artifacts as they would reach PyPI: the - # repaired, uploaded-and-downloaded wheel installed with pip on a clean - # runner, at the oldest and newest supported Python. + # cibuildwheel runs test/pyalps against the cp310 build environment only; + # this job is the real abi3 coverage: the repaired, uploaded-and-downloaded + # single wheel per platform installed with pip on a clean runner, at EVERY + # supported Python version. smoke_test: name: Smoke test wheels on ${{ matrix.os }} / py${{ matrix.python }} needs: [build_wheels] @@ -90,7 +90,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-15, macos-26] - python: ["3.10", "3.14"] + python: ["3.10", "3.11", "3.12", "3.13", "3.14"] steps: - uses: actions/checkout@v7 @@ -107,7 +107,7 @@ jobs: - name: Install wheel from artifacts run: | pipx run twine check wheelhouse/*.whl - python -m pip install numpy scipy pytest + python -m pip install numpy scipy pytest "nanobind-backend>=1.0" python -m pip install --no-index --no-deps --find-links wheelhouse pyalps - name: Import and run binding surface tests @@ -139,7 +139,7 @@ jobs: run: | sudo apt-get update sudo apt-get install -y libopenmpi-dev openmpi-bin - python -m pip install numpy scipy pytest mpi4py + python -m pip install numpy scipy pytest mpi4py "nanobind-backend>=1.0" python -m pip install --no-index --no-deps --find-links wheelhouse pyalps - name: Run two-rank compatibility surface diff --git a/bindings/python/pyalps/CMakeLists.txt b/bindings/python/pyalps/CMakeLists.txt index c1afe4da3..a1c6a5438 100644 --- a/bindings/python/pyalps/CMakeLists.txt +++ b/bindings/python/pyalps/CMakeLists.txt @@ -11,7 +11,8 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) find_package(ALPS REQUIRED CONFIG) -find_package(Python 3.10 REQUIRED COMPONENTS Interpreter Development.Module) +find_package(Python 3.10 REQUIRED COMPONENTS Interpreter Development.Module + OPTIONAL_COMPONENTS Development.SABIModule) execute_process( COMMAND "${Python_EXECUTABLE}" -m nanobind --cmake_dir @@ -19,7 +20,7 @@ execute_process( OUTPUT_STRIP_TRAILING_WHITESPACE COMMAND_ERROR_IS_FATAL ANY) list(PREPEND CMAKE_PREFIX_PATH "${_nanobind_cmake_dir}") -find_package(nanobind 2.10 CONFIG REQUIRED) +find_package(nanobind 3.0 CONFIG REQUIRED) get_filename_component(_repo_root "${CMAKE_CURRENT_SOURCE_DIR}/../../.." ABSOLUTE) set(_alps_source_root "${_repo_root}") @@ -56,23 +57,24 @@ set(_pyalps_targets pyngsrandom01_c pyngsaccumulator_c) -# Policy (see README "Free-threading and stable-ABI policy"): do NOT -# add FREE_THREADED (libalps relies on the GIL as its lock around -# shared state) and do not add STABLE_ABI without revisiting the wheel -# matrix — per-version wheels are deliberate. -nanobind_add_module(pyalea_c NB_STATIC "${_bindings}/pyalea.cpp") -nanobind_add_module(pymcdata_c NB_STATIC "${_bindings}/pymcdata.cpp") -nanobind_add_module(pytools_c NB_STATIC "${_bindings}/pytools.cpp") -nanobind_add_module(pyngsparams_c NB_STATIC "${_bindings}/ngs/params.cpp") -nanobind_add_module(pyngshdf5_c NB_STATIC "${_bindings}/ngs/hdf5.cpp") -nanobind_add_module(pyngsbase_c NB_STATIC "${_bindings}/ngs/mcbase.cpp") -nanobind_add_module(pyngsobservable_c NB_STATIC "${_bindings}/ngs/observable.cpp") -nanobind_add_module(pyngsobservables_c NB_STATIC "${_bindings}/ngs/observables.cpp") -nanobind_add_module(pyngsresult_c NB_STATIC "${_bindings}/ngs/result.cpp") -nanobind_add_module(pyngsresults_c NB_STATIC "${_bindings}/ngs/results.cpp") -nanobind_add_module(pyngsapi_c NB_STATIC "${_bindings}/ngs/api.cpp") -nanobind_add_module(pyngsrandom01_c NB_STATIC "${_bindings}/ngs/random01.cpp") -nanobind_add_module(pyngsaccumulator_c NB_STATIC "${_bindings}/ngs/accumulator.cpp") +# Policy (see README "Free-threading and stable-ABI policy"): the +# modules build in nanobind split mode (BACKEND_MODULE), which targets +# the stable ABI with a Python 3.10 floor — one abi3 wheel per platform. +# Binding code must stay limited-API clean. Do NOT add FREE_THREADED: +# libalps relies on the GIL as its lock around shared state. +nanobind_add_module(pyalea_c BACKEND_MODULE nanobind_backend "${_bindings}/pyalea.cpp") +nanobind_add_module(pymcdata_c BACKEND_MODULE nanobind_backend "${_bindings}/pymcdata.cpp") +nanobind_add_module(pytools_c BACKEND_MODULE nanobind_backend "${_bindings}/pytools.cpp") +nanobind_add_module(pyngsparams_c BACKEND_MODULE nanobind_backend "${_bindings}/ngs/params.cpp") +nanobind_add_module(pyngshdf5_c BACKEND_MODULE nanobind_backend "${_bindings}/ngs/hdf5.cpp") +nanobind_add_module(pyngsbase_c BACKEND_MODULE nanobind_backend "${_bindings}/ngs/mcbase.cpp") +nanobind_add_module(pyngsobservable_c BACKEND_MODULE nanobind_backend "${_bindings}/ngs/observable.cpp") +nanobind_add_module(pyngsobservables_c BACKEND_MODULE nanobind_backend "${_bindings}/ngs/observables.cpp") +nanobind_add_module(pyngsresult_c BACKEND_MODULE nanobind_backend "${_bindings}/ngs/result.cpp") +nanobind_add_module(pyngsresults_c BACKEND_MODULE nanobind_backend "${_bindings}/ngs/results.cpp") +nanobind_add_module(pyngsapi_c BACKEND_MODULE nanobind_backend "${_bindings}/ngs/api.cpp") +nanobind_add_module(pyngsrandom01_c BACKEND_MODULE nanobind_backend "${_bindings}/ngs/random01.cpp") +nanobind_add_module(pyngsaccumulator_c BACKEND_MODULE nanobind_backend "${_bindings}/ngs/accumulator.cpp") if(PYALPS_BUILD_APPLICATIONS) if(NOT EXISTS "${_alps_source_root}/tool/maxent.cpp") @@ -83,13 +85,13 @@ if(PYALPS_BUILD_APPLICATIONS) set(_dmft "${_alps_source_root}/applications/dmft/qmc") - nanobind_add_module(maxent_c NB_STATIC + nanobind_add_module(maxent_c BACKEND_MODULE nanobind_backend "${_alps_source_root}/tool/maxent.cpp" "${_alps_source_root}/tool/maxent_helper.cpp" "${_alps_source_root}/tool/maxent_simulation.cpp" "${_alps_source_root}/tool/maxent_parms.cpp") - nanobind_add_module(cthyb NB_STATIC + nanobind_add_module(cthyb BACKEND_MODULE nanobind_backend "${_dmft}/hybridization/hybmain.cpp" "${_dmft}/hybridization/hybsim.cpp" "${_dmft}/hybridization/hyblocal.cpp" @@ -103,7 +105,7 @@ if(PYALPS_BUILD_APPLICATIONS) "${_dmft}/hybridization/hybevaluate.cpp" "${_dmft}/hybridization/hybmeasurements.cpp") - nanobind_add_module(ctint NB_STATIC + nanobind_add_module(ctint BACKEND_MODULE nanobind_backend "${_dmft}/interaction_expansion2/main.cpp" "${_dmft}/fouriertransform.C" "${_dmft}/interaction_expansion2/auxiliary.cpp" @@ -117,7 +119,7 @@ if(PYALPS_BUILD_APPLICATIONS) "${_dmft}/interaction_expansion2/measurements.cpp" "${_dmft}/interaction_expansion2/model.cpp") - nanobind_add_module(dwa_c NB_STATIC "${_bindings}/apps/dwa.cpp") + nanobind_add_module(dwa_c BACKEND_MODULE nanobind_backend "${_bindings}/apps/dwa.cpp") list(APPEND _pyalps_targets maxent_c cthyb ctint dwa_c) foreach(_target IN ITEMS maxent_c cthyb ctint) diff --git a/bindings/python/pyalps/README.md b/bindings/python/pyalps/README.md index 766e23360..c90b06903 100644 --- a/bindings/python/pyalps/README.md +++ b/bindings/python/pyalps/README.md @@ -38,19 +38,27 @@ configuration for a smaller core-only developer build. ## Free-threading and stable-ABI policy -pyalps ships per-version wheels (CPython 3.10–3.14) and deliberately opts -into neither of nanobind's special ABI modes: +pyalps ships **one stable-ABI (`cp310-abi3`) wheel per platform** that +covers CPython 3.10 and newer. The extension modules build in nanobind's +split mode (`BACKEND_MODULE nanobind_backend`): they contain only the +tiny nanobind frontend, compile under `Py_LIMITED_API` (3.10 floor), and +resolve the compiled nanobind runtime at import time from the +`nanobind-backend` package, which is a runtime dependency of pyalps. +Consequences: -- **Free-threading (3.13t/3.14t):** the extension modules do not declare - free-threading support, so importing pyalps on a free-threaded - interpreter re-enables the GIL for the process. That is intentional: - the ALPS C++ library relies on the GIL as its lock around shared state +- **Binding code must stay limited-API clean.** In particular, + `PyTypeObject` is opaque — type-name dispatch goes through + `alps::python::type_fullname()` (cpp/numpy_compat.hpp) instead of + `tp_name`. Violations fail at compile time, so a successful CI build + is the enforcement. +- **Downstream extensions** that need bound-type identity with pyalps + (e.g. `mcbase` subclasses) must also build in split mode against the + same backend module — see `tutorials/ngs/5_export_python`. Extensions + only share nanobind type bindings when they share a backend. +- **Free-threading (3.13t/3.14t):** still deliberately unsupported; abi3 + wheels do not install on free-threaded interpreters. The ALPS C++ + library relies on the GIL as its lock around shared state (`mcobservable`'s reference-count table, the `alps::ngs::signal` singleton, `mcdata`'s lazily-computed statistics). Do not add `FREE_THREADED` to `nanobind_add_module` without first making that state thread-safe. -- **Stable ABI (abi3):** not enabled or currently supported. Some binding - paths still inspect CPython type internals (`tp_name`), and no abi3 build - runs in CI. Per-version wheels are deliberate; do not add `STABLE_ABI` - until the code is limited-API clean and CI compiles and imports the - resulting extensions. diff --git a/bindings/python/pyalps/cpp/dict_to_params.hpp b/bindings/python/pyalps/cpp/dict_to_params.hpp index db86a7d28..3d1f40c67 100644 --- a/bindings/python/pyalps/cpp/dict_to_params.hpp +++ b/bindings/python/pyalps/cpp/dict_to_params.hpp @@ -36,7 +36,7 @@ inline bool is_bool_like(PyObject * raw) { // which does NOT subclass bool and would otherwise slip through // the numeric ladder as 0.0/1.0 return PyBool_Check(raw) - || std::strncmp(Py_TYPE(raw)->tp_name, "numpy.bool", 10) == 0; + || alps::python::type_fullname(raw).compare(0, 10, "numpy.bool") == 0; } inline bool is_numpy_array(nb::handle value) { // isinstance, rather than an exact tp_name comparison, keeps ndarray @@ -122,10 +122,19 @@ inline std::complex complex_value(nb::handle value, scalar_kind const kind = classify_scalar(value); if (kind == scalar_kind::integer || kind == scalar_kind::real) return std::complex(real_value(value, key), 0.0); - Py_complex const converted = PyComplex_AsCComplex(value.ptr()); - if (PyErr_Occurred()) - throw nb::python_error(); - return std::complex(converted.real, converted.imag); + // Py_complex / PyComplex_AsCComplex sit outside the limited API. + // nanobind's caster performs the same __complex__-aware conversion + // through its backend. (PyComplex_RealAsDouble would NOT be + // equivalent: before CPython 3.13 its non-complex fallback is + // float(), which rejects numpy complex scalars.) + std::complex converted; + if (!nb::try_cast>(nb::borrow(value), converted)) { + if (PyErr_Occurred()) + throw nb::python_error(); + throw nb::type_error(("parameter '" + key + + "' is not convertible to complex").c_str()); + } + return converted; } inline std::string string_value(nb::handle value) { diff --git a/bindings/python/pyalps/cpp/ngs/extract_from_pyobject.hpp b/bindings/python/pyalps/cpp/ngs/extract_from_pyobject.hpp index 6619cbd85..110943388 100644 --- a/bindings/python/pyalps/cpp/ngs/extract_from_pyobject.hpp +++ b/bindings/python/pyalps/cpp/ngs/extract_from_pyobject.hpp @@ -46,7 +46,7 @@ /// `visitor(T const*, std::vector)` for each /// supported native numpy element type. template void extract_from_pyobject_py11(T & visitor, nb_::handle data) { - std::string dtype = data.ptr()->ob_type->tp_name; + std::string dtype = alps::python::type_fullname(data); if (dtype == "bool") visitor(nb_::cast(data)); else if (dtype == "int") visitor(nb_::cast(data)); else if (dtype == "long") visitor(nb_::cast(data)); diff --git a/bindings/python/pyalps/cpp/ngs/hdf5.cpp b/bindings/python/pyalps/cpp/ngs/hdf5.cpp index 616865ff8..c27605d54 100644 --- a/bindings/python/pyalps/cpp/ngs/hdf5.cpp +++ b/bindings/python/pyalps/cpp/ngs/hdf5.cpp @@ -124,8 +124,11 @@ namespace alps { } else if (PyComplex_CheckExact(raw)) { if (!accept(leaf_kind::cplx)) return false; - Py_complex c = PyComplex_AsCComplex(raw); - cplxs.emplace_back(c.real, c.imag); + // Py_complex / PyComplex_AsCComplex sit outside + // the limited API; the component getters don't. + double const re = PyComplex_RealAsDouble(raw); + double const im = PyComplex_ImagAsDouble(raw); + cplxs.emplace_back(re, im); } else if (PyUnicode_Check(raw)) { if (!accept(leaf_kind::text)) return false; @@ -248,7 +251,7 @@ namespace alps { } } static bool is_ndarray(PyObject * raw) { - return std::strcmp(Py_TYPE(raw)->tp_name, "numpy.ndarray") == 0; + return alps::python::type_fullname(raw) == "numpy.ndarray"; } static bool is_numpy_scalar(PyObject * raw) { static std::array const scalar_types{{ @@ -258,8 +261,9 @@ namespace alps { "numpy.float32", "numpy.float64", "numpy.complex64", "numpy.complex128", }}; + std::string const name = alps::python::type_fullname(raw); for (char const * scalar_type : scalar_types) - if (std::strcmp(Py_TYPE(raw)->tp_name, scalar_type) == 0) + if (name == scalar_type) return true; return false; } @@ -287,7 +291,8 @@ namespace alps { scan.numpy_scalar_type = scalar_type; else if (scan.numpy_scalar_type != scalar_type) scan.homogeneous_numpy_scalars = false; - if (std::strncmp(Py_TYPE(raw)->tp_name, "numpy.bool", 10) == 0) + if (alps::python::type_fullname(raw) + .compare(0, 10, "numpy.bool") == 0) scan.has_bool_leaf = true; } else { scan.has_other_scalar = true; @@ -306,25 +311,25 @@ namespace alps { // to 0/1. Pure-list trees never reach (b) — their // exact-type handling stays with list_vectorizer. static bool numpy_stackable(nb::list const & l) { - char const * first_scalar = nullptr; + std::string first_scalar; bool scalars_only = true; bool sequences_only = true; for (auto item : l) { PyObject * raw = item.ptr(); - char const * tp = Py_TYPE(raw)->tp_name; if (is_ndarray(raw) || PyList_Check(raw) || PyTuple_Check(raw)) { scalars_only = false; continue; } sequences_only = false; - if (std::strncmp(tp, "numpy.", 6) != 0) + std::string const tp = alps::python::type_fullname(raw); + if (tp.compare(0, 6, "numpy.") != 0) return false; - if (!first_scalar) + if (first_scalar.empty()) first_scalar = tp; - else if (std::strcmp(tp, first_scalar) != 0) + else if (tp != first_scalar) return false; } - if (scalars_only && first_scalar) + if (scalars_only && !first_scalar.empty()) return true; if (!sequences_only) return false; diff --git a/bindings/python/pyalps/cpp/ngs/mcbase.cpp b/bindings/python/pyalps/cpp/ngs/mcbase.cpp index bde258c0e..a16675c00 100644 --- a/bindings/python/pyalps/cpp/ngs/mcbase.cpp +++ b/bindings/python/pyalps/cpp/ngs/mcbase.cpp @@ -59,12 +59,11 @@ namespace alps { // Trampoline: holds Python overrides for pure-virtuals. class PyMCBase : public mcbase { public: - // Slot count = the number of NB_OVERRIDE* calls below. // mcbase (src/alps/mcbase.hpp) declares five virtuals: // update / measure / fraction_completed (pure) and // save(archive&) / load(archive&); all five must be // forwarded so Python overrides are seen by C++ callers. - NB_TRAMPOLINE(mcbase, 5); + NB_TRAMPOLINE(mcbase); PyMCBase(nb::dict const & arg, std::size_t seed_offset = 42, nb::handle /*communicator*/ = nb::none()) diff --git a/bindings/python/pyalps/cpp/numpy_compat.hpp b/bindings/python/pyalps/cpp/numpy_compat.hpp index abcff3c61..f886b59b5 100644 --- a/bindings/python/pyalps/cpp/numpy_compat.hpp +++ b/bindings/python/pyalps/cpp/numpy_compat.hpp @@ -63,6 +63,28 @@ namespace alps { } return mod; } + // Name of `obj`'s type, matching what Py_TYPE(obj)->tp_name + // reports for the types the bindings dispatch on: builtins stay + // bare ("int", "list") and NumPy's static C types keep their + // dotted names ("numpy.float64", "numpy.ndarray"). tp_name + // itself is unreachable under the limited API (PyTypeObject is + // opaque), so reconstruct it from __module__ and __qualname__. + // (Heap types defined in Python get "pkg.Class" where tp_name + // would be bare "Class"; every caller only compares against + // builtin or numpy names, where both spellings miss alike.) + inline std::string type_fullname(nb_::handle obj) { + nb_::handle tp = obj.type(); + std::string name = + nb_::cast(nb_::str(tp.attr("__qualname__"))); + nb_::object mod = nb_::getattr(tp, "__module__", nb_::none()); + if (!mod.is_none()) { + std::string const mod_name = + nb_::cast(nb_::str(mod)); + if (mod_name != "builtins") + return mod_name + "." + name; + } + return name; + } // Allocates numpy.empty(shape, dtype=numpy_dtype::name) and // memcpy's `data` (length = product(shape)) into it. Returns // a writable numpy.ndarray. diff --git a/bindings/python/pyalps/pyproject.toml b/bindings/python/pyalps/pyproject.toml index c9195f15a..6d68cacd3 100644 --- a/bindings/python/pyalps/pyproject.toml +++ b/bindings/python/pyalps/pyproject.toml @@ -2,7 +2,7 @@ # nanobind is capped below the next major: all extension modules in one # process must agree on the nanobind ABI, and its API/ABI may break at # major versions. Bump the cap deliberately, with a full test run. -requires = ["scikit-build-core>=1.0", "nanobind>=2.10,<3"] +requires = ["scikit-build-core>=1.0", "nanobind>=3.0,<4"] build-backend = "scikit_build_core.build" [project] @@ -12,7 +12,9 @@ description = "Python Applications and Libraries for Physics Simulations" readme = "README.md" requires-python = ">=3.10" license = "MIT" -dependencies = ["numpy>=1.26", "scipy>=1.13"] +# nanobind-backend serves the compiled nanobind runtime to the split-mode +# (stable-ABI) extension modules; it is resolved at import time. +dependencies = ["numpy>=1.26", "scipy>=1.13", "nanobind-backend>=1.0"] authors = [ { name = "Sergei Iskakov", email = "siskakov@umich.edu" }, { name = "Fei Lin", email = "feilin.physics@gmail.com" }, @@ -48,6 +50,9 @@ mpi = ["mpi4py>=4"] [tool.scikit-build] cmake.source-dir = "." +# Split-mode extensions target the stable ABI with a Python 3.10 floor: +# one cp310-abi3 wheel per platform covers CPython 3.10+. +wheel.py-api = "cp310" wheel.packages = ["src/pyalps"] wheel.force-include = { "LICENSE.txt" = "${SKBUILD_METADATA_DIR}/licenses/LICENSE.txt" } # pyalps_config.py is generated by CMake from this template; the template @@ -70,9 +75,14 @@ ALPS_DIR = { env = "ALPS_DIR" } "../../../lib/xml" = "_vendor/lib/xml" [tool.cibuildwheel] -build = ["cp310-*", "cp311-*", "cp312-*", "cp313-*", "cp314-*"] +# Split mode: the cp310 build produces an abi3 wheel that covers every +# supported CPython version; the packaging workflow's smoke_test job +# reinstalls that same wheel on 3.10-3.14. nanobind is a test +# requirement because the downstream-export test configures a consumer +# extension via `python -m nanobind --cmake_dir`. +build = ["cp310-*"] manylinux-x86_64-image = "manylinux_2_28" -test-requires = ["pytest"] +test-requires = ["pytest", "nanobind>=3.0,<4"] test-command = "pytest -q {project}/test/pyalps" # The ALPS C++ SDK is built once per platform in before-all via the wheel-deps @@ -83,6 +93,7 @@ ALPS_DIR = "$(pwd)/_build/wheel-deps/install/share/alps" CCACHE_DIR = "$(pwd)/_build/ccache" CCACHE_NAMESPACE = "pyalps-wheel" CMAKE_ARGS = "-DCMAKE_CXX_COMPILER_LAUNCHER=ccache" +PYALPS_TEST_DOWNSTREAM_EXPORT = "1" # manylinux (AlmaLinux/glibc) uses dnf and glibc's SunRPC/XDR + execinfo. # musllinux (Alpine/musl) has neither: install libtirpc for the system @@ -111,12 +122,6 @@ repair-wheel-command = [ "delocate-listdeps --all {dest_dir}/*.whl", ] -[[tool.cibuildwheel.overrides]] -select = "cp314-*" -inherit.environment = "append" -environment = { PYALPS_TEST_DOWNSTREAM_EXPORT = "1" } -test-requires = ["pytest", "nanobind>=2.10,<3"] - [[tool.cibuildwheel.overrides]] select = "*-macosx_*" inherit.environment = "append" diff --git a/bindings/python/pyalps/src/pyalps/cxx.py b/bindings/python/pyalps/src/pyalps/cxx.py index 72784f3e2..aaaaae0e6 100644 --- a/bindings/python/pyalps/src/pyalps/cxx.py +++ b/bindings/python/pyalps/src/pyalps/cxx.py @@ -31,7 +31,11 @@ from ._ext import pyngsresult_c from ._ext import pyngsresults_c from ._ext import pytools_c -except ImportError: +# Only a missing pyalps._ext package means "legacy flat layout" (build +# tree on PYTHONPATH). Any other ImportError — a missing shared library, +# or split-mode's "pip install nanobind-backend" advice — must surface +# as-is rather than be masked by the fallback's own failure. +except ModuleNotFoundError: import pyalea_c import pymcdata_c import pyngsbase_c diff --git a/tutorials/ngs/5_export_python/CMakeLists.txt b/tutorials/ngs/5_export_python/CMakeLists.txt index d1ba4afb9..b5a950382 100644 --- a/tutorials/ngs/5_export_python/CMakeLists.txt +++ b/tutorials/ngs/5_export_python/CMakeLists.txt @@ -2,7 +2,8 @@ cmake_minimum_required(VERSION 3.22) project(alps_nanobind_export_example LANGUAGES CXX) find_package(ALPS REQUIRED CONFIG) -find_package(Python 3.10 REQUIRED COMPONENTS Interpreter Development.Module) +find_package(Python 3.10 REQUIRED COMPONENTS Interpreter Development.Module + OPTIONAL_COMPONENTS Development.SABIModule) execute_process( COMMAND "${Python_EXECUTABLE}" -m nanobind --cmake_dir @@ -10,7 +11,7 @@ execute_process( OUTPUT_STRIP_TRAILING_WHITESPACE COMMAND_ERROR_IS_FATAL ANY) list(PREPEND CMAKE_PREFIX_PATH "${_nanobind_cmake_dir}") -find_package(nanobind 2.10 CONFIG REQUIRED) +find_package(nanobind 3.0 CONFIG REQUIRED) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) @@ -19,7 +20,10 @@ set(CMAKE_CXX_EXTENSIONS OFF) separate_arguments(_alps_link_options NATIVE_COMMAND "${ALPS_EXTRA_LINKER_FLAGS}") separate_arguments(_alps_compile_options NATIVE_COMMAND "${ALPS_CMAKE_CXX_FLAGS}") -nanobind_add_module(ising_c NB_STATIC export2py.cpp ising.cpp) +# Split mode, matching pyalps itself: extensions only share bound types +# (mcbase identity for Python-visible subclasses) when they resolve the +# same nanobind backend, so a downstream consumer must build the same way. +nanobind_add_module(ising_c BACKEND_MODULE nanobind_backend export2py.cpp ising.cpp) target_include_directories(ising_c PRIVATE ${ALPS_INCLUDE_DIRS} ${ALPS_EXTRA_INCLUDE_DIRS}) From 9de77315231a017a0267201ba9138221017c095a Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Wed, 26 Aug 2026 00:51:10 -0500 Subject: [PATCH 50/51] ci: pin GitHub Actions to full commit SHAs The fork's Actions policy (and supply-chain hardening generally) requires action references pinned to full-length commit SHAs; the version each SHA resolves to is noted inline. Co-Authored-By: Claude Fable 5 --- .github/workflows/build.yml | 8 ++++---- .github/workflows/build_wheels.yml | 31 ++++++++++++++++-------------- 2 files changed, 21 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c197565ed..accf060c0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -63,9 +63,9 @@ jobs: - { os: ubuntu-24.04, comp_pack: "gcc-14 g++-14", c_compiler: gcc, cxx_compiler: g++, c_version: 14, py_version: "3.14", boost_version: 91, cxx_standard: 23 } steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 - name: Set up Python - uses: actions/setup-python@v7 + uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7 with: python-version: ${{ matrix.plat.py_version }} - name: Install dependencies @@ -133,7 +133,7 @@ jobs: - { os: macos-15, c_compiler: gcc-14, cxx_compiler: g++-14, comp_pack: "gcc@14", cxx_stdlib: "", py_version: "3.14", boost_version: 91 } steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 - name: Install dependencies run: | brew install python@${{ matrix.plat.py_version }} gfortran @@ -166,7 +166,7 @@ jobs: - name: Upload test logs on failure if: failure() - uses: actions/upload-artifact@v7 + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 with: name: test-logs-${{ github.run_id }} path: | diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index f61a9962e..cd2ab96d6 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -4,6 +4,9 @@ on: push: branches: - master # the default branch + # Fork-only CI line (drop before upstreaming): the fork's master has + # diverged from this branch's base, so pull_request runs cannot fire. + - modernization/pyalps-nanobind3-split tags: - 'v*' # this triggers the workflow when a tag starting with 'v' is pushed pull_request: @@ -24,17 +27,17 @@ jobs: - { os: macos-26, target: "26.0" , arch: arm64 } steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 - name: Restore compiler cache - uses: actions/cache@v6 + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6 with: path: _build/ccache key: pyalps-ccache-${{ runner.os }}-${{ matrix.plat.arch }}-${{ hashFiles('src/**', 'bindings/python/**', 'applications/**', 'tool/maxent*') }} restore-keys: pyalps-ccache-${{ runner.os }}-${{ matrix.plat.arch }}- - name: Build wheels - uses: pypa/cibuildwheel@v3.4.1 + uses: pypa/cibuildwheel@8d2b08b68458a16aeb24b64e68a09ab1c8e82084 # v3.4.1 with: package-dir: bindings/python/pyalps env: @@ -44,7 +47,7 @@ jobs: CIBW_ARCHS: ${{ matrix.plat.arch }} MACOSX_DEPLOYMENT_TARGET: ${{ matrix.plat.target }} - - uses: actions/upload-artifact@v7 + - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 with: name: cibw-wheels-${{ matrix.plat.os }}-${{ strategy.job-index }} path: ./wheelhouse/*.whl @@ -54,7 +57,7 @@ jobs: name: Build source distribution runs-on: ubuntu-latest steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 - name: Build sdist run: pipx run build --sdist --outdir dist bindings/python/pyalps @@ -72,7 +75,7 @@ jobs: grep -q "$path" sdist-manifest.txt || { echo "missing $path in sdist"; exit 1; } done - - uses: actions/upload-artifact@v7 + - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 with: name: cibw-sdist path: dist/*.tar.gz @@ -92,13 +95,13 @@ jobs: os: [ubuntu-latest, macos-15, macos-26] python: ["3.10", "3.11", "3.12", "3.13", "3.14"] steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 - - uses: actions/setup-python@v7 + - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7 with: python-version: ${{ matrix.python }} - - uses: actions/download-artifact@v8 + - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8 with: pattern: cibw-wheels-* path: wheelhouse @@ -123,13 +126,13 @@ jobs: needs: [build_wheels] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 - - uses: actions/setup-python@v7 + - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7 with: python-version: "3.14" - - uses: actions/download-artifact@v8 + - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8 with: pattern: cibw-wheels-ubuntu-latest-* path: wheelhouse @@ -155,14 +158,14 @@ jobs: # or, alternatively, upload to PyPI on every tag starting with 'v' (remove on: release above to use this) if: startsWith(github.ref, 'refs/tags/v') || github.event_name == 'release' steps: - - uses: actions/download-artifact@v8 + - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8 with: # unpacks all CIBW artifacts into dist/ pattern: cibw-* path: dist merge-multiple: true - - uses: pypa/gh-action-pypi-publish@release/v1 + - uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # release/v1 #with: # To test: # repository-url: https://test.pypi.org/legacy/ From bcf169da849e40ae53b52fe6dda548c0b57d49ee Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Wed, 26 Aug 2026 01:43:42 -0500 Subject: [PATCH 51/51] =?UTF-8?q?build(pyalps):=20skip=20musllinux=20wheel?= =?UTF-8?q?s=20=E2=80=94=20nanobind-backend=20has=20no=20musl=20dists?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The split-mode wheel depends on nanobind-backend at import time, and that package publishes neither musllinux wheels nor an sdist, so the repaired musllinux wheel cannot install. Skip musllinux until the backend covers musl; documented in the README. Co-Authored-By: Claude Fable 5 --- bindings/python/pyalps/README.md | 4 ++++ bindings/python/pyalps/pyproject.toml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/bindings/python/pyalps/README.md b/bindings/python/pyalps/README.md index c90b06903..39314b73d 100644 --- a/bindings/python/pyalps/README.md +++ b/bindings/python/pyalps/README.md @@ -55,6 +55,10 @@ Consequences: (e.g. `mcbase` subclasses) must also build in split mode against the same backend module — see `tutorials/ngs/5_export_python`. Extensions only share nanobind type bindings when they share a backend. +- **musllinux (Alpine):** not shipped for now — nanobind-backend + publishes no musl wheels (and no sdist), so a split-mode wheel could + not resolve its backend there. Re-enable in `[tool.cibuildwheel]` + once the backend covers musl. - **Free-threading (3.13t/3.14t):** still deliberately unsupported; abi3 wheels do not install on free-threaded interpreters. The ALPS C++ library relies on the GIL as its lock around shared state diff --git a/bindings/python/pyalps/pyproject.toml b/bindings/python/pyalps/pyproject.toml index 6d68cacd3..3cf29fe1f 100644 --- a/bindings/python/pyalps/pyproject.toml +++ b/bindings/python/pyalps/pyproject.toml @@ -81,6 +81,10 @@ ALPS_DIR = { env = "ALPS_DIR" } # requirement because the downstream-export test configures a consumer # extension via `python -m nanobind --cmake_dir`. build = ["cp310-*"] +# nanobind-backend publishes no musllinux wheels (and no sdist), so a +# split-mode pyalps wheel cannot resolve its runtime backend on Alpine. +# Re-enable musllinux when the backend ships musl wheels. +skip = ["*-musllinux_*"] manylinux-x86_64-image = "manylinux_2_28" test-requires = ["pytest", "nanobind>=3.0,<4"] test-command = "pytest -q {project}/test/pyalps"