Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

Companion to "Pfaffian Point Processes for Two Classes of Random Plane Partitions"

27669 views
1
def mat_to_list(M):
2
"""
3
mat_to_list(M)
4
5
Converts a matrix type M into a comma-separated
6
list of lists; the elements of the outermost list
7
are the rows
8
9
Inputs
10
M: a matrix
11
"""
12
13
m = M.nrows()
14
n = M.ncols()
15
L = []
16
for ii in [0 .. m-1]:
17
R = []
18
for jj in [0 .. n-1]:
19
R.append(M[ii, jj])
20
L.append(R)
21
return(L)
22