ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Fri, 01 Mar 2019 06:44:45 +0100Generate a random non-singular matrix?https://ask.sagemath.org/question/45579/generate-a-random-non-singular-matrix/I do this in a loop now:
while:
A = random_matrix(...)
if(not A.is_singular()):
....
But this is innefficient. How do I generate random matrices with more concrete properties in sage?rijndaelxyzFri, 01 Mar 2019 06:44:45 +0100https://ask.sagemath.org/question/45579/Assigning students in groupshttps://ask.sagemath.org/question/9871/assigning-students-in-groups/I have a project with 60 students and 6 teachers. I'd like to know if it is possible to use Matrix and Permutation functions in Sage to assign those 60 students in 6 groups. There would be 6 sessions (a month each). Each student has to work once with each teacher and avoid being in the same group of students (as much as possible).
Thank you.KaiserfilkSun, 03 Mar 2013 18:03:06 +0100https://ask.sagemath.org/question/9871/