You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "pure" versions of random functions all explicitly get and return a state, which is then used as input for the next random function.
This can also be done implicitly by using monads.
Both solutions are not really feasibly in our context right now. The easiest solution would be to simply don't dedupe expressions in Random.... A more elaborate solutions would be to to keep a list of functions returning random things and don't deduplicate any expressions containing such functions.
Thank you for the quick workaround. Of course, not compiling them is better than having not-well-defined outputs.
Also, for future reference, the above implies that because MatrixCategory(k) is purely compiled code, the random-methods are not added. Random methods, however, are still available in MatrixCategoryAsCategoryOfRows(k).
Two elements
turn into one hoisted variable. Hence, 'random morphisms' in k-mat are all endomorphisms :-)
Reason: the following derivation
CAP_project/CAP/gap/DerivedMethods.gi
Lines 1464 to 1477 in 74467a1
compiles to
CAP_project/LinearAlgebraForCAP/gap/precompiled_categories/MatrixCategoryPrecompiled.gi
Lines 4672 to 4685 in 74467a1
where the
RandomObjectByInteger
is implemented as follows:CAP_project/LinearAlgebraForCAP/gap/precompiled_categories/MatrixCategoryPrecompiled.gi
Lines 4736 to 4743 in 74467a1
The text was updated successfully, but these errors were encountered: