Skip to content

Commit

Permalink
added disclaimer in all files and the printing function in the main m…
Browse files Browse the repository at this point in the history
…ethod
  • Loading branch information
mlliarm committed Jan 17, 2022
1 parent e44da9e commit 45655d2
Show file tree
Hide file tree
Showing 4 changed files with 92 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/cython/create_matrix_fast3.pyx
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
##########################################################################################
#
# mixmax-py - a PRNG based on uniformly hyperbolic Anosov C-systems defined on a torus.
#
# Copyright (C) 2019-2022 Michail Liarmakopoulos <mlliarm@yandex.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
###########################################################################################

import numpy as np

# DEF N = 1000
Expand Down
29 changes: 29 additions & 0 deletions src/cython/create_matrix_new.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
##########################################################################################
#
# mixmax-py - a PRNG based on uniformly hyperbolic Anosov C-systems defined on a torus.
#
# Copyright (C) 2019-2022 Michail Liarmakopoulos <mlliarm@yandex.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
###########################################################################################

import numpy as np
from numpy.linalg import eig
from typing import List, Tuple
Expand Down Expand Up @@ -133,10 +154,18 @@ def write_parts_of_eigenvals_to_disk(eigenvals:list, N:int, s:int, m:int) -> Non
for imag in imag_set:
file2.write(str(imag) + "\n")

def print_GPL_msg():
msg = "mixmax-py Copyright (c) 2019-2022 Michail Liarmakopoulos <mlliarm@yandex.com>\n\
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n\
This is free software, and you are welcome to redistribute it\n\
under certain conditions; type `show c' for details.\n"
print(msg)


if __name__ == "__main__":
try:
#N = 512
print_GPL_msg()
N = int(sys.argv[1])
if N == 0:
raise ValueError("N should not be zero.")
Expand Down
21 changes: 21 additions & 0 deletions src/cython/run_tests.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
###########################################################################################
#
# mixmax-py - a PRNG based on uniformly hyperbolic Anosov C-systems defined on a torus.
#
# Copyright (C) 2019-2022 Michail Liarmakopoulos <mlliarm@yandex.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
###########################################################################################

#/usr/bin/python3
import subprocess

Expand Down
21 changes: 21 additions & 0 deletions src/cython/setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
###########################################################################################
#
# mixmax-py - a PRNG based on uniformly hyperbolic Anosov C-systems defined on a torus.
#
# Copyright (C) 2019-2022 Michail Liarmakopoulos <mlliarm@yandex.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
###########################################################################################

from distutils.core import setup
from Cython.Build import cythonize

Expand Down

0 comments on commit 45655d2

Please sign in to comment.