Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion GenerateMatrixPermutations/GenerateMatrixPermuations.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

"""


#flattenMatrix - not used in this script, but this function
#flattens a matrix into an array
def flattenMatrix(matrix):
Expand Down Expand Up @@ -40,7 +41,7 @@ def souffleArray(array, size):
#ie a 4x4 matrix should have 16 nested for loops.
def fill4(min, max):
array = []
size = 2
size = 3
for n1 in range(min, max+1):
for n2 in range(min, max+1):
for n3 in range(min, max+1):
Expand Down
4 changes: 3 additions & 1 deletion README
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
This project is a container for various python scripts, added by folders. The following is a description of each project:

GenerateMatrixPermuations - a trivial script for generating all possible permuations of a 2x2 matrix with values from a rnage of [MIN,MAX] and doing some operation on each.
GenerateMatrixPermuations - a trivial script for generating all possible permuations of a 2x2 matrix with values from a rnage of [MIN,MAX] and doing some operation on each.
hii hello wel
welcome