Changeset 5faa0e1 in git


Ignore:
Timestamp:
Sep 11, 2014, 7:45:04 PM (10 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
7df5dbe44d6ad4e3b6b80e8f74c0a85ec6452b3e
Parents:
922890d232f31c404a7e6e8fb0b4328c0bad1252
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2014-09-11 19:45:04+02:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2014-09-15 17:39:46+02:00
Message:
Fixing trac ticket #637 : non-constant 1st argument to nc_algebra
Files:
3 added
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/nc/old.gring.cc

    r922890 r5faa0e1  
    28642864  if (CN != NULL)       /* create matrix C = CN * Id */
    28652865  {
     2866    if (!p_IsConstant(CN,curr))
     2867    {
     2868      Werror("Incorrect input : non-constants are not allowed as coefficients (first argument)");
     2869      return TRUE;
     2870    }
     2871    assume(p_IsConstant(CN,curr));
     2872     
    28662873    nN = p_GetCoeff(CN, curr);
    28672874    if (n_IsZero(nN, curr))
     
    29112918          qN = NULL;
    29122919        else
     2920        {   
     2921          if (!p_IsConstant(MATELEM(CC,i,j),curr))
     2922          {
     2923            Werror("Incorrect input : non-constants are not allowed as coefficients (first argument at [%d, %d])", i, j);
     2924            return TRUE;
     2925          }           
     2926          assume(p_IsConstant(MATELEM(CC,i,j),curr));
    29132927          qN = p_GetCoeff(MATELEM(CC,i,j),curr);
     2928        }
     2929         
    29142930
    29152931        if ( qN == NULL )   /* check the consistency: Cij!=0 */
Note: See TracChangeset for help on using the changeset viewer.