I am just starting out with ffpack and as an exercise was trying to call NullSpaceBasis on a a matrix over Z2. I'm getting the following error message
The relevant parts of the code that produced this are adapted from the solve example (see below). It looks like I should be using some other givaro field type for the specific case of GF(2), but I was unable to figure out how to get this to work.
Can anyone assist with this.
typedef Givaro::Modular<int64_t> Field;
Field F(2);
int h_[] = {1,0,1,0,1,0,1, 0,1,1,0,0,1,1, 0,0,0,1,1,1,1};
Field::Element_ptr G, H;
H = fflas_new(F,3,7);
G = fflas_new(F,4,7);
for (unsigned i=0; i<21; i++)
F.init(H[i], h_[i]);
size_t dim = NullSpaceBasis (F, FflasLeft, 7, 3, H, 7, G, ldn, NSdim);