]> https://gitweb.dealii.org/ - code-gallery.git/commitdiff
Update header: MCMC-Laplace
authorMatthias Maier <tamiko@43-1.org>
Sat, 24 Feb 2024 00:53:07 +0000 (18:53 -0600)
committerMatthias Maier <tamiko@43-1.org>
Sat, 24 Feb 2024 00:53:07 +0000 (18:53 -0600)
MCMC-Laplace/Matlab/exact_values.m
MCMC-Laplace/Matlab/forward_solver.m
MCMC-Laplace/Matlab/get_statistics.m
MCMC-Laplace/Matlab/log_probability.m
MCMC-Laplace/Matlab/main.m
MCMC-Laplace/Matlab/plot_solution.m
MCMC-Laplace/Matlab/precomputations.m
MCMC-Laplace/Python/forward_solver.py
MCMC-Laplace/mcmc-laplace.cc

index d66e47ff07bdfaa9019b8f00014370d92f082dd8..a639539a6a22396bad014d3d4c9a99435558e218 100644 (file)
@@ -1,3 +1,12 @@
+%% -----------------------------------------------------------------------------
+%%
+%% SPDX-License-Identifier: LGPL-2.1-or-later
+%% Copyright (C) 2022 by Wolfgang Bangerth
+%%
+%% This file is part of the deal.II code gallery.
+%%
+%% -----------------------------------------------------------------------------
+
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %%%%%%%%%%%% list of "exact" measurement values, z_hat %%%%%%%%%%%%%%%%%%%%
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
index 33e0a1db38bcf0e1f24a2adf287f07d004988cf0..c0443d8f1d99b75083f3af4e6b6507f44712a54a 100644 (file)
@@ -1,3 +1,12 @@
+%% -----------------------------------------------------------------------------
+%%
+%% SPDX-License-Identifier: LGPL-2.1-or-later
+%% Copyright (C) 2022 by Wolfgang Bangerth
+%%
+%% This file is part of the deal.II code gallery.
+%%
+%% -----------------------------------------------------------------------------
+
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %%%%%%%%%%%%%%%%%%%%%% forward solver function %%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
index c99353a616e3b84cbd63b723c20189cf5b1feb29..834dbd6c72f39a6441c981c7e579968ad3f1bfba 100644 (file)
@@ -1,3 +1,12 @@
+%% -----------------------------------------------------------------------------
+%%
+%% SPDX-License-Identifier: LGPL-2.1-or-later
+%% Copyright (C) 2022 by Wolfgang Bangerth
+%%
+%% This file is part of the deal.II code gallery.
+%%
+%% -----------------------------------------------------------------------------
+
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %%%%%%%%%%%%%%%%% compute statistics on data set %%%%%%%%%%%%%%%%%%%%%%%%%%
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
index 62ed698470eb45ad2f83e9e1c43cc5a84c3f2451..24bdae9c219f9fd183bb3e10393dd237cd4d3d32 100644 (file)
@@ -1,3 +1,12 @@
+%% -----------------------------------------------------------------------------
+%%
+%% SPDX-License-Identifier: LGPL-2.1-or-later
+%% Copyright (C) 2022 by Wolfgang Bangerth
+%%
+%% This file is part of the deal.II code gallery.
+%%
+%% -----------------------------------------------------------------------------
+
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %%%%%%%%%%%%%%%%% compute log probability, log pi %%%%%%%%%%%%%%%%%%%%%%%%%
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
index 45f86a4380df510fe29c0b3205863f5b2bd54d0e..5b6d300ac8ed8650bf053b9e6d905e084243332a 100644 (file)
@@ -1,3 +1,12 @@
+%% -----------------------------------------------------------------------------
+%%
+%% SPDX-License-Identifier: LGPL-2.1-or-later
+%% Copyright (C) 2022 by Wolfgang Bangerth
+%%
+%% This file is part of the deal.II code gallery.
+%%
+%% -----------------------------------------------------------------------------
+
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %%%%%%%%% Run MCMC sampler to estimate posterior distribution %%%%%%%%%%%%%
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
index 39ddb2bbc26328af333f95f02828f16173fffdf5..c9bc461fc99b755bca9131feb123828b623c2f3b 100644 (file)
@@ -1,3 +1,12 @@
+%% -----------------------------------------------------------------------------
+%%
+%% SPDX-License-Identifier: LGPL-2.1-or-later
+%% Copyright (C) 2022 by Wolfgang Bangerth
+%%
+%% This file is part of the deal.II code gallery.
+%%
+%% -----------------------------------------------------------------------------
+
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %%%%%%%%%%%%%%% plots solution, u, to Poisson equation %%%%%%%%%%%%%%%%%%%%
 %%%%%%%%%%%%%%%% associated to theta and a 32x32 mesh %%%%%%%%%%%%%%%%%%%%%
index 4d0426e558c8c8ecbde442dc4c4a27735490336a..bf8791e6b28db6bfa70614807b5722e2f40b6ce0 100644 (file)
@@ -1,3 +1,12 @@
+%% -----------------------------------------------------------------------------
+%%
+%% SPDX-License-Identifier: LGPL-2.1-or-later
+%% Copyright (C) 2022 by Wolfgang Bangerth
+%%
+%% This file is part of the deal.II code gallery.
+%%
+%% -----------------------------------------------------------------------------
+
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %%%%%%% do all precomputations necessary for MCMC simulations %%%%%%%%%%%%%
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
index a49d3e4b2f346385f96d4429858a8bd2d8c02999..8cfae07ffd1cffa999abf3fcb43a41d7a42631ed 100644 (file)
@@ -1,3 +1,12 @@
+## -----------------------------------------------------------------------------
+##
+## SPDX-License-Identifier: LGPL-2.1-or-later
+## Copyright (C) 2022 by Wolfgang Bangerth
+##
+## This file is part of the deal.II code gallery.
+##
+## -----------------------------------------------------------------------------
+
 import numpy as np
 import scipy.sparse
 from scipy.sparse.linalg import spsolve
index 382a278e01f331e7ee2c2345262501437e481e99..44a0de2908a69760c7d012ec4351dc5bd81174ca 100644 (file)
@@ -1,24 +1,16 @@
-/* ---------------------------------------------------------------------
+/* -----------------------------------------------------------------------------
  *
- * Copyright (C) 2019 by the deal.II authors and Wolfgang Bangerth.
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ * Copyright (C) 2019 by Wolfgang Bangerth
  *
- * This file is part of the deal.II library.
+ * This file is part of the deal.II code gallery.
  *
- * The deal.II library is free software; you can use it, redistribute
- * it, and/or modify it under the terms of the GNU Lesser General
- * Public License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- * The full text of the license can be found in the file LICENSE.md at
- * the top level directory of deal.II.
- *
- * ---------------------------------------------------------------------
-
+ * -----------------------------------------------------------------------------
  *
  * Author: Wolfgang Bangerth, Colorado State University, 2019.
  */
 
 
-
 #include <deal.II/base/timer.h>
 #include <deal.II/base/multithread_info.h>
 #include <deal.II/grid/tria.h>

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.