[ntl] overflow issue when pass size_t value to Mat<size_t>

Qifan Wang qwan301 at aucklanduni.ac.nz
Mon Jul 5 07:39:52 CDT 2021


Dear author,
  I'm using the NTL library. But I encounter a problem. That is, I'm using
size_t in my code, but when I create Mat<size_t> mat; mat.setDims(row,
col), it will cause the overflow issue. (row and col is size_t type).
 In matrix.h: https://libntl.org/doc/matrix.cpp.html
 we can see that void SetDims(long n, long m); all of these are long type.

Best wishes,
Qifan
-- 

Qifan Wang

PhD Student, Student ID: 187780808

School of Computer Science

Faculty of Science

The University of Auckland | Te Whare Wānanga o Tāmaki Makaurau

Email: qwan301 at aucklanduni.ac.nz

38 Princes St •  Building 303S• Level 5 • Room 576
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shoup.net/pipermail/ntl_shoup.net/attachments/20210706/a7276422/attachment.html>


More information about the ntl mailing list