#11589: faster zero matrix creation
------------------------------+---------------------------------------------
   Reporter:  malb            |          Owner:  jason, was                 
       Type:  enhancement     |         Status:  new                        
   Priority:  major           |      Milestone:  sage-4.7.2                 
  Component:  linear algebra  |       Keywords:                             
Work_issues:                  |       Upstream:  N/A                        
   Reviewer:                  |         Author:  Martin Albrecht, Simon King
     Merged:                  |   Dependencies:                             
------------------------------+---------------------------------------------

Comment(by SimonKing):

 Hi Martin,

 Thank you for creating the patch!

 I don't like that the timings became a little slower for small matrices.
 We should try to find out why that happens.

 I think we should use calloc ''only'' when the argument `entries` is not a
 list. Namely, ''if'' it is a list then the matrix will be initialised by
 direct assignments anyway. Hence, in that case there is no need to
 initialise with calloc.

 Did you carefully determine the threshold for which calloc becomes faster
 than copying? Or is "nrows, ncols > 100" just a guess?

 Cheers,

 Simon

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11589#comment:2>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to