Hi all -
a slightly more general but less ambitious version of my previous (as yet unanswered) question: http://ask.sagemath.org/question/2114/unitary-matrices-over-finite-fields
I set up a matrix space M (for simplicity say over a finite field F) and I have a (finite) subset S of F. I need to do a search through the elements of M which satisfy certain algebraic constraints; however I only wish to study matrices whose entries ALL lie in S.
How please do I restrict to such matrices?
Many thanks in advance