Changeset 69c765 in git


Ignore:
Timestamp:
Feb 25, 2015, 11:27:10 AM (9 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
d65bb4a479a8d896ce2cb336fedc7f7b00441f4d
Parents:
e10ff2e8b22550dc6590864fd03cd98b17001f63
Message:
minor: handle exceptional cases in a better way
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/iparith.cc

    re10ff2 r69c765  
    61546154    return TRUE;
    61556155  }
     6156  res->rtyp=IDEAL_CMD;
    61566157  if ((mk < 1) || (mk > m->rows()) || (mk > m->cols()))
    61576158  {
    6158     Werror("invalid size of minors: %d (matrix is (%d x %d))", mk,
    6159            m->rows(), m->cols());
    6160     return TRUE;
     6159    ideal I=idInit(1,1);
     6160    if (mk<1) I->m[0]=p_One(currRing);
     6161    //Werror("invalid size of minors: %d (matrix is (%d x %d))", mk,
     6162    //       m->rows(), m->cols());
     6163    res->data=(void*)I;
     6164    return FALSE;
    61616165  }
    61626166  if ((!noAlgorithm) && (strcmp(algorithm, "Cache") == 0)
     
    61796183                              (noIdeal ? 0 : IasSB), false);
    61806184  if (v_typ!=MATRIX_CMD) idDelete((ideal *)&m);
    6181   res->rtyp = IDEAL_CMD;
    61826185  return FALSE;
    61836186}
Note: See TracChangeset for help on using the changeset viewer.