Changes between Version 5 and Version 7 of Ticket #13703
 Timestamp:
 03/15/13 13:37:24 (7 years ago)
Legend:
 Unmodified
 Added
 Removed
 Modified

Ticket #13703 – Description
v5 v7 6 6 def toeplitz(R,c,r): return matrix(R, len(c), len(r), lambda i,j: c[ij] if i>=j else r[ji]) 7 7 def hankel(R,c,r): entries=c+r[1:]; return matrix(R, len(c), len(r), lambda i,j: entries[i+j]) 8 def circulant(R,E): return hankel(R, E, E[1:]+E[:1]) 8 def circulant(R, E): return toeplitz(R, E[0:1]+E[1:0:1], E) 9 def skew_circulant(R,E): return hankel(R, E, E[1:]+E[:1]) 9 10 10 11 #Hadamard matrices: … … 55 56 56 57 Additionally, we could use scipy to create more matrices (or do it ourselves): http://docs.scipy.org/doc/scipy/reference/linalg.html#specialmatrices 58 59 (thanks to pascal on sagesupport for correcting the circulant code above: https://groups.google.com/d/msg/sagesupport/RnKjQ9n2YB0/vfCEvIV_HZUJ )