On Mon, Jul 26, 2010 at 4:43 AM, Sergey Bochkanov <sergey.bochka...@alglib.net> wrote: > Hello! > > Second beta of ALGLIB.spkg is ready. It can be downloaded from > http://www.alglib.net/share/2010-07-26-alglib-for-sage/
Cool. Compiles for me, but I didn't try any tests. > -- SAGE INTEGRATION -- > > Well, ALGLIB can be called from Python and Sage by now. But I think > that more can be done to integrate it with Sage. For example, we can't > write > > sage: A = Matrix([[3,2],[2,3]]) > sage: matdet.rmatrixdet(A) > > because ALGLIB uses Python's list-of-lists to store matrices, and Sage > uses its own matrix class. But only several functions from _alglib.py > have to be fixed to work with Sage matrices/vectors: > * safe_len/safe_cols/safe_rows > * is_bool_vector/is_int_vector/is_real_vector/is_complex_vector > * is_bool_matrix/is_int_matrix/is_real_matrix/is_complex_matrix > * x_from_list/x_from_listlist > > I think that it is very easy to do for someone familiar with Sage > internals. Anyone interested in helping me with this issue? Sure, I can help. I have some API questions first. What are the bool and int vectors and matrices used for? (Sage doesn't really have vectors or matrices of booleans or of machine ints. It has vectors and matrices over GF(2) (integers mod 2, so 1+1=0), which could be used as booleans. There are also numpy arrays and matrices of these types.) My suggestion would be to support Sage vectors and matrices over GF(2), RDF, and CDF (machine floats and complex numbers), as well as numpy arrays and matrices of appropriate types. If people think this is the right choice, I can help write the code. Carl -- 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