Changeset 347a89 in git for factory/facMul.cc


Ignore:
Timestamp:
Jan 13, 2014, 5:50:31 PM (10 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
Children:
92333eb4c8ed4d16ed7b3230651e2506daf20698
Parents:
e17ab29e49b970bfdc7dcca676d6b173081c9f51
git-author:
Martin Lee <martinlee84@web.de>2014-01-13 17:50:31+01:00
git-committer:
Martin Lee <martinlee84@web.de>2014-01-27 16:12:22+01:00
Message:
fix: bug in modular multiplication over Q(a)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/facMul.cc

    re17ab2 r347a89  
    14761476      fmpq_poly_init2 (buf, d2);
    14771477      _fmpq_poly_set_length (buf, d2);
    1478       _fmpz_vec_set (buf->coeffs, F->coeffs + k*j*d2, d2);
     1478      _fmpz_vec_set (buf->coeffs, F->coeffs + k + j*d2, d2);
    14791479      _fmpq_poly_normalise (buf);
    14801480      fmpq_poly_rem (buf, buf, mipo);
Note: See TracChangeset for help on using the changeset viewer.