Changeset 2e48e4 in git for libpolys


Ignore:
Timestamp:
Aug 11, 2022, 2:15:03 PM (21 months ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
959b2d791fb6ac7b1528755b4d5a2c9290261b38
Parents:
c93e63b277430f6fe6f6a302af80b2b3f76909a6
Message:
fix: CoeffTerm
Location:
libpolys/polys
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/pCoeff.cc

    rc93e63 r2e48e4  
    1818#include "simpleideals.h"
    1919
    20 /// find coeff of (polynomial/vector) m in polynomial/vector p
     20/// find coeff of (polynomial) m in polynomial p
     21/// find coeff of (vector) m in vector p
    2122number p_CoeffTerm(poly p, poly m, const ring r)
    2223{
     
    5354
    5455/// find coeffs of (polynomial) m in all polynomials from I
     56/// find coeffs of (vector) m in all vectors from I
    5557ideal id_CoeffTerm(ideal I, poly m, const ring r)
    5658{
    57   ideal res=idInit(IDELEMS(I),1);
     59  ideal res=idInit(IDELEMS(I),I->rank);
    5860  for(int i=IDELEMS(I)-1;i>=0;i--)
    5961  {
     
    6769ideal id_CoeffTermV(ideal M, poly m, const ring r)
    6870{
    69   ideal res=idInit(IDELEMS(M),1);
     71  ideal res=idInit(IDELEMS(M),M->rank);
    7072  for(int i=IDELEMS(M)-1;i>=0;i--)
    7173  {
  • libpolys/polys/pCoeff.h

    rc93e63 r2e48e4  
    1717#include "simpleideals.h"
    1818
    19 /// find coeff of (polynomial/vector) m in polynomial/vector p
     19/// find coeff of (polynomial) m in polynomial p
     20/// find coeff of (vector) m in vector p
    2021number p_CoeffTerm(poly p, poly m, const ring r);
    2122
     
    2425
    2526/// find coeffs of (polynomial) m in all polynomials from I
     27/// find coeffs of (vector) m in all vectors from I
    2628ideal id_CoeffTerm(ideal I, poly m, const ring r);
    2729
Note: See TracChangeset for help on using the changeset viewer.