#16295: Faster is_orthogonal_array
-------------------------+-------------------------------------------------
Reporter: | Owner:
ncohen | Status: needs_review
Type: | Milestone: sage-6.3
enhancement | Resolution:
Priority: major | Merged in:
Component: | Reviewers:
combinatorics | Work issues:
Keywords: | Commit:
Authors: | 0d5c222cc78546cada8ae505197f429781b9595c
Nathann Cohen | Stopgaps:
Report Upstream: N/A |
Branch: |
u/ncohen/16295 |
Dependencies: |
#16236 |
-------------------------+-------------------------------------------------
Comment (by vdelecroix):
Hi Nathann,
You should avoid using `any` in Cython. This is not properly cythonized.
The following is better by 15%:
{{{
for i in range(len(OA)):
if len(OA[i]) != k:
if verbose:
print {"OA" : "Some row does not have length "+str(k),
"MOLS" : "The number of matrices is not
"+str(k)}[terminology]
}}}
If you do so, you need to move up the `cdef int i,j,l`.
Vincent
--
Ticket URL: <http://trac.sagemath.org/ticket/16295#comment:6>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.