Changes between Initial Version and Version 4 of Ticket #13703


Ignore:
Timestamp:
12/01/12 15:54:57 (7 years ago)
Author:
jason
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13703 – Description

    initial v4  
    77def hankel(R,c,r): entries=c+r[1:]; return matrix(R, len(c), len(r), lambda i,j: entries[i+j])
    88def circulant(R,E): return hankel(R, E, E[-1:]+E[:-1])
     9def jacobsthal(p,n):
     10    """See http://en.wikipedia.org/wiki/Paley_construction for a way to use jacobsthal matrices to construct hadamard matrices"""
     11    elts = GF(p^n).list()
     12    return matrix(len(elts), lambda i,j: legendre_symbol(elts[i]-elts[j],p))
    913}}}
    1014