Helloooooo everybody ! This thread is obviously totally unrelated to the other one.
I have a function named "a" which takes an integer as input. Unfortunately when 'n' is a prime power, a(n) returns a very large matrix (but quick to compute). Thus, I would love to cache only the answers of a(n) when n is NOT a prime power, which are smaller and take more time to compute. I have two questions: 1) Is there a way to obtain this behaviour with @cached_function ? 2) If not, do you think that implementing this is a nice idea ? (I am worried of making the standard use case slower) Thaaaaanks for your help :-PPP Nathann -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.