|
| 1 | +""" |
| 2 | +© (or copyright) 2023. Triad National Security, LLC. All rights reserved. |
| 3 | +This program was produced under U.S. Government contract 89233218CNA000001 for Los Alamos |
| 4 | +National Laboratory (LANL), which is operated by Triad National Security, LLC for the U.S. |
| 5 | +Department of Energy/National Nuclear Security Administration. All rights in the program are |
| 6 | +reserved by Triad National Security, LLC, and the U.S. Department of Energy/National Nuclear |
| 7 | +Security Administration. The Government is granted for itself and others acting on its behalf a |
| 8 | +nonexclusive, paid-up, irrevocable worldwide license in this material to reproduce, prepare |
| 9 | +derivative works, distribute copies to the public, perform publicly and display publicly, and to permit |
| 10 | +others to do so. |
| 11 | +
|
| 12 | +This program is open source under the BSD-3 License. |
| 13 | +Redistribution and use in source and binary forms, with or without modification, are permitted |
| 14 | +provided that the following conditions are met: |
| 15 | +1. Redistributions of source code must retain the above copyright notice, this list of conditions and |
| 16 | +the following disclaimer. |
| 17 | +
|
| 18 | +2.Redistributions in binary form must reproduce the above copyright notice, this list of conditions |
| 19 | +and the following disclaimer in the documentation and/or other materials provided with the |
| 20 | +distribution. |
| 21 | +
|
| 22 | +3.Neither the name of the copyright holder nor the names of its contributors may be used to endorse |
| 23 | +or promote products derived from this software without specific prior written permission. |
| 24 | +
|
| 25 | +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS |
| 26 | +IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 27 | +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
| 28 | +PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR |
| 29 | +CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
| 30 | +EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
| 31 | +PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; |
| 32 | +OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
| 33 | +WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
| 34 | +OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 35 | +""" |
| 36 | + |
1 | 37 | import numpy as np |
2 | 38 | import copy |
3 | 39 | from random import random |
|
0 commit comments