Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#61 bug in hammcode.cpp

release_3.7.x
closed
None
5
2012-09-15
2004-01-27
Anonymous
No

As far as vectors are column-oriented following piece of code:
syndrome = coded * transpose(H);
should be replaced with
syndrome = coded.transpose() * transpose(H);
in
bvec Hamming_Code::decode(const bvec &coded_bits)
function

Best Regards.
Andy. P.

Discussion

  • Logged In: YES
    user_id=326034

    I agree. This is a bug that was introduced when changing the
    orientation of vectors.

    The solution is to instead to write:
    syndrome = H * coded;

    Solution checked into CVS for release in 3.7.3.

    /Tony