Algorithm-GaussianElimination-GF2
view release on metacpan or search on metacpan
lib/Algorithm/GaussianElimination/GF2.pm view on Meta::CPAN
my $self = shift;
my $eq = Algorithm::GaussianElimination::GF2::Equation->_new(@_);
$self->_add_equation($eq);
$eq;
}
*add_equation = \&new_equation;
sub _first_1 {
pos($_[0]) = 0;
$_[0] =~ /[^\0]/g or return length($_[0]) * 8;
my $end = pos($_[0]) * 8 - 1;
for my $i (($end - 7) .. $end) {
return $i if vec($_[0], $i, 1);
}
}
sub dump {
my $self = shift;
my $eqs = $self->{eqs};
my $len = 0;
lib/Algorithm/GaussianElimination/GF2.pm view on Meta::CPAN
index.
=item $b = $eq->b
=item $eq->b($b)
Retrieves or sets the value of the constant term of the equation.
=item $eq->len
Returns the internal length of the coeficients vector.
Note that this value is just a hint as the internal representation
grows transparently when new coeficients are set or inside the
C<solve> method.
=back
=head1 SEE ALSO
The Wikipedia page about systems of linear equations:
( run in 0.609 second using v1.01-cache-2.11-cpan-65fba6d93b7 )