Hi Martin,

On 11 Jul., 12:58, Martin Albrecht <martinralbre...@googlemail.com>
wrote:
> We are not doing anything special except for calling calloc which zeros the
> memory or we memset() the memory to zero which should still be faster than a
> memcpy().

Matrix_modn_dense does sage_malloc instead. If I understand correctly,
it won't initialize the memory, right?

I also searched if there exists sage_calloc, but apparently it is a
missing (though requested) feature:
sage: search_src("sage_calloc")
plot/plot3d/index_face_set.pyx:285:        memset(point_map, 0,
sizeof(int) * self.vcount)  # TODO: sage_calloc

Would it be difficult to provide sage_calloc? Or would calloc itself
be just fine?

Cheers,
Simon

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to