Another place to speed up:

About 10% time is spent on 'totalDegree' of GDMP,

       totalDegree p ==
          zero? p => 0
          "max"/[reduce("+",(t.k)::(Vector NNI), 0) for t in p]

t.k is of type E which has category DirectProductCategory(#vl,
NonNegativeInteger).

The problem is in the coercion to Vector, it causes a copy.
Of cource it doesn't need a copy to count the degree, but
there's no 'reduce' function exported for DirectProductCategory.

I wonder how to add 'reduce' to DirectProductCategory.
'reduce' comes from Collection, but DirectProductCategory
is unfit to be a collection because it has fixed number of elements.

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" 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 https://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to