19 namespace mod2_system {
27 linear_combination
lhs;
unsigned int rhs;
28 equation(
unsigned int val) : lhs(), rhs(val&1u) {}
29 std::ostream&
print(std::ostream&
f)
const;
32 std::vector<equation>
eqn;
48 unsigned long extend(
unsigned int n=1);
52 bool add (I begin, I
end,
unsigned int rhs);
58 unsigned long size()
const;
62 unsigned long rank()
const;
Definition: mod2_system.h:34
equation(unsigned int val)
Definition: mod2_system.h:28
bool consistent() const
Definition: mod2_system.cpp:71
unsigned int eliminate(unsigned long inx, bitmap::BitMap &dst) const
Definition: mod2_system.cpp:77
linear_combination lhs
Definition: mod2_system.h:27
unsigned long dimension() const
Definition: mod2_system.cpp:93
Mod2_System & operator=(const Mod2_System &)
unsigned long size() const
Definition: mod2_system.cpp:32
std::vector< bitmap::BitMap > solution_basis()
Definition: mod2_system.cpp:145
unsigned long extend(unsigned int n=1)
Definition: mod2_system.cpp:35
unsigned long rank() const
Definition: mod2_system.cpp:88
std::ostream & print(std::ostream &f) const
Definition: mod2_system.cpp:18
void reduce()
Definition: mod2_system.cpp:117
Mod2_System()
Definition: mod2_system.h:38
std::vector< equation > eqn
Definition: mod2_system.h:32
Definition: mod2_system.h:26
Definitions and declarations for the BitMap class.
std::vector< unsigned long > linear_combination
Definition: mod2_system.h:25
unsigned int rhs
Definition: mod2_system.h:27
Definition: mod2_system.h:23
bitmap::BitMap a_solution() const
Definition: mod2_system.cpp:99
unsigned long n
Definition: axis.cpp:77
simple_list< T, Alloc >::const_iterator end(const simple_list< T, Alloc > &l)
Definition: sl_list.h:650
Container of a large (more than twice the machine word size) set of bits.
Definition: bitmap.h:52
bool add(I begin, I end, unsigned int rhs)
Definition: mod2_system.cpp:44
std::vector< unsigned long > pivot_index
Definition: mod2_system.h:33