Porting application from NTL to M4RI

18 views
Skip to first unread message

Sebastian

unread,
Nov 4, 2013, 2:39:13 PM11/4/13
to m4ri-...@googlegroups.com
Hi all,

I want to port an application that uses NTL to a version that will use M4RI. I'm wondering if there exists a guide/cheatsheet to help me with this process? Otherwise, can anyone give me some hints whether this kind of port is challenging due to reasons such as re-engineering, or if it is straightforward?

Thanks,
Sebastian   

Martin Albrecht

unread,
Nov 5, 2013, 5:54:23 AM11/5/13
to m4ri-...@googlegroups.com
Hi Sebastian,

I actually don't know the NTL API well enough to suggest particular tips, but
I guess the biggest difference is M4RI is C not C++. To see how use M4RI from
an object oriented language, the Sage bindings could be of interest:

http://hg.sagemath.org/sage-main/src/tip/sage/matrix/matrix_mod2_dense.pyx

Also, let us know where and if the API documentation isn't as clear as it
should be:

http://m4ri.sagemath.org/m4ri-doxygen/index.html

But in a nutshell you'd always setup your matrices by some call to:

mzd_t * A = mzd_init(m, n);

and then call some function mzd_foo() on A, where A->foo() in an object
oriented language becomes mzd_foo(A).


Cheers,
Martin
--
name: Martin Albrecht
_pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x6532AFB4
_otr: 47F43D1A 5D68C36F 468BAEBA 640E8856 D7951CCF
_www: http://martinralbrecht.wordpress.com/
_jab: martinr...@jabber.ccc.de
signature.asc
Reply all
Reply to author
Forward
0 new messages