Changeset c987db in git


Ignore:
Timestamp:
Feb 3, 2023, 4:53:58 PM (15 months ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
103e305ddf0f8228433a0d21ef52f9aeab76c8b5
Parents:
ad2543eab51733612ba7d118afc77edca719600e
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2023-02-03 16:53:58+01:00
git-committer:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2023-02-03 16:56:13+01:00
Message:
opt: matrix->ideal
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/iparith.cc

    rad2543e rc987db  
    43624362  matrix mat=(matrix)v->CopyD(MATRIX_CMD);
    43634363  IDELEMS((ideal)mat)=MATCOLS(mat)*MATROWS(mat);
    4364   if (IDELEMS((ideal)mat)==0)
    4365   {
    4366     idDelete((ideal *)&mat);
    4367     mat=(matrix)idInit(1,1);
    4368   }
    4369   else
    4370   {
    4371     MATROWS(mat)=1;
    4372     mat->rank=1;
    4373     idTest((ideal)mat);
    4374   }
     4364  MATROWS(mat)=1;
     4365  mat->rank=1;
    43754366  res->data=(char *)mat;
    43764367  return FALSE;
  • libpolys/polys/matpol.cc

    rad2543e rc987db  
    3737matrix mpNew(int r, int c)
    3838{
    39   int rr=r;
    40   if (rr<=0) rr=1;
    41   //if ( (((int)(MAX_INT_VAL/sizeof(poly))) / rr) <= c)
    42   //{
    43   //  Werror("internal error: creating matrix[%d][%d]",r,c);
    44   //  return NULL;
    45   //}
    4639  matrix rc = (matrix)omAllocBin(sip_sideal_bin);
    4740  rc->nrows = r;
Note: See TracChangeset for help on using the changeset viewer.