Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
trac #16604: small check of dimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
videlec committed Aug 11, 2014
1 parent d612056 commit bff470e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/sage/combinat/designs/orthogonal_arrays.py
Expand Up @@ -1299,6 +1299,11 @@ def OA_n_times_2_pow_c_from_matrix(k,c,G,A,Y):
from sage.rings.integer import Integer
from itertools import izip,combinations

if len(A) != k-1 or any(len(a) != 2*G.cardinality() for a in A):
raise ValueError("A must be a (k-1) x (2|G|) array")
if len(Y) != k-1:
raise ValueError("Y must be a (k-1)-vector")

F = FiniteField(2**c,'w')
GG = G.cartesian_product(F)

Expand Down

0 comments on commit bff470e

Please sign in to comment.