spyrit.misc.walsh_hadamard.load_matrix

spyrit.misc.walsh_hadamard.load_matrix(order, name='sage')[source]

Load the Walsh-Hadamard matrix from a file

Args:

order (int): Order of the matrix. name (str): Name of the hadamard matrix file of order order.

Returns:

np.ndarray: Walsh-Hadamard matrix.

Example 1:
>>> had = load_matrix(order=28, name="296")
>>> had = load_matrix(order=4)
>>> had = load_matrix(order=508)
>>> had = load_matrix(order=508, name="sage")
>>> had = load_matrix(order=508, name="sage.SDS")