Karim Belabas on Wed, 07 Jul 2010 20:34:01 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: boolean matrices ?


* Alessandro Languasco [2010-07-07 17:49]:
> do you know if it is possible to define a boolean matrix in gp?

Not in GP. In the 'testing' branch (available via svn), we have 'F2m'
objects in C, which you can somewhat manipulate under gp using install()

  install(zero_F2m_copy, LL, zero_F2m)
  install(F2m_coeff,lGLL)
  install(F2m_set,vGLL)
  install(F2m_flip,vGLL)

  A = zero_F2m(100,200);
  F2m_set(A, 10,20)
  F2m_coeff(A, 10,20)
  F2m_flip(A, 10,20)
  F2m_coeff(A, 10,20)

Do you need something else than these basic manipulations ?

Hope this helps,

    K.B.
--
Karim Belabas, IMB (UMR 5251)  Tel: (+33) (0)5 40 00 26 17
Universite Bordeaux 1          Fax: (+33) (0)5 40 00 69 50
351, cours de la Liberation    http://www.math.u-bordeaux1.fr/~belabas/
F-33405 Talence (France)       http://pari.math.u-bordeaux1.fr/  [PARI/GP]
`