Changeset 4be499 in git


Ignore:
Timestamp:
Nov 17, 2022, 11:35:27 AM (17 months ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
164e0526f677f7a21cec1d5f3d60c633af308f0d
Parents:
5cf36cb1c99d617d81e98b1b6986dc9b03b3883f
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2022-11-17 11:35:27+01:00
git-committer:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2022-11-17 11:36:17+01:00
Message:
compiler warnings
Location:
Singular/dyn_modules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/dyn_modules/cohomo/cohomo.cc

    r5cf36cb r4be499  
    262262}
    263263
    264 
    265 
    266264//returns the union of two vectors(as the union of sets)
    267265std::vector<int> vecUnion(std::vector<int> vec1, std::vector<int> vec2)
    268266{
    269267  std::vector<int> vec=vec1;
    270   int i;
     268  unsigned i;
    271269  for(i=0;i<vec2.size();i++)
    272270  {
     
    277275}
    278276
    279 
    280 
    281277std::vector<int> vecMinus(std::vector<int> vec1,std::vector<int> vec2)
    282278{
    283279  std::vector<int> vec;
    284   for(int i=0;i<vec1.size();i++)
     280  for(unsigned i=0;i<vec1.size();i++)
    285281  {
    286282    if(!IsinL(vec1[i],vec2))
     
    291287  return vec;
    292288}
    293 
    294 
    295 
    296 
    297 
    298289
    299290std::vector<std::vector<int> > vsMinusv(std::vector<std::vector<int> > vecs, std::vector<int> vec)
     
    11531144  ideal h2=id_complement(h);
    11541145  std::vector<std::vector<int> > hvs=supports(h), h2v=supports(h2), vecs;
    1155   for(int i=0;i<h2v.size();i++)
     1146  for(unsigned i=0;i<h2v.size();i++)
    11561147  {
    11571148    pv=h2v[i];
     
    11631154  return vecs;
    11641155}
    1165 
    1166 
    1167 
    1168 
    1169 
    1170 
    1171 
    1172 
    1173 
    1174 
    11751156
    11761157/***************************************************************************/
    11771158//For solving the equations which has form of x_i-x_j.(equations got from T_1)
    11781159/***************************************************************************/
    1179 
    1180 
    11811160
    11821161//subroutine for soleli1
     
    12401219std::vector<std::vector<int> > soleli1( std::vector<std::vector<int> > eqs)
    12411220{
    1242   int i,j;
     1221  int i;
    12431222  std::vector<int> yaya;
    12441223  std::vector<std::vector<int> >  pre=eqs, ppre, re;
     
    22522231}
    22532232
    2254 
    2255 
    22562233/**************************************************************************/
    2257 
    2258 
    2259 
    2260 
    2261 
    2262 
    2263 
    2264 
    22652234
    22662235//subspace of T2(find all the possible values of alpha)
     
    22682237{
    22692238  std::vector<int> alset;
    2270   for(int i=0;i<mv.size();i++)
     2239  for(unsigned i=0;i<mv.size();i++)
    22712240  {
    22722241    if(vsubset(bv,mv[i]))
     
    22802249}
    22812250
    2282 
    2283 
    2284 
    2285 
    2286 
    2287 
    2288 
    22892251std::vector<int> subspacet1(int num, std::vector<std::vector<int> > ntvs)
    22902252{
     
    23392301  std::vector<int> v1,var;
    23402302  std::vector<std::vector<int> > vars;
    2341   for(int i=0;i<Mv.size();i++)
    2342   {
    2343     for(int j=i+1;j<Mv.size();j++)
     2303  for(unsigned i=0;i<Mv.size();i++)
     2304  {
     2305    for(unsigned j=i+1;j<Mv.size();j++)
    23442306    {
    23452307      var.clear();
     
    25332495  std::vector<int> v1,var;
    25342496  std::vector<std::vector<int> > vars;
    2535   for(int i=0;i<Nv.size();i++)
    2536   {
    2537     for(int j=i+1;j<Nv.size();j++)
     2497  for(unsigned i=0;i<Nv.size();i++)
     2498  {
     2499    for(unsigned j=i+1;j<Nv.size();j++)
    25382500    {
    25392501      var.clear();
     
    25642526  std::vector<int> sv;
    25652527  if(bvs.size()<=1) return false;
    2566   for(int i=0;i<bvs.size();i++)
     2528  for(unsigned i=0;i<bvs.size();i++)
    25672529  {
    25682530    sv=vecUnion(pv,bvs[i]);
     
    25752537}
    25762538
    2577 
    2578 
    2579 
    2580 
    2581 
    2582 
    25832539std::vector<int>  tnab(std::vector<std::vector<int> > hvs,std::vector<std::vector<int> > nvs,std::vector<std::vector<int> > bvs)
    25842540{
    25852541  std::vector<int> pv, vec;
    2586   for(int j=0;j<nvs.size();j++)
     2542  for(unsigned j=0;j<nvs.size();j++)
    25872543  {
    25882544    pv=nvs[j];
     
    26192575  std::vector<int> pv, base;
    26202576  std::vector<std::vector<int> > bases;
    2621   for(int t=0;t<vecs.size();t++)
    2622   {
    2623     for(int i=0;i<mvs.size();i++)
     2577  for(unsigned t=0;t<vecs.size();t++)
     2578  {
     2579    for(unsigned i=0;i<mvs.size();i++)
    26242580    {
    26252581      pv=phimage(mvs[i],av,bv);
     
    29022858std::vector<std::vector<int> > subspacetn(std::vector<std::vector<int> >  N, std::vector<int>   tN, std::vector<std::vector<int> > ntvs)
    29032859{
    2904   int i,j;
     2860  int i;
    29052861  std::vector<int> alset=findalphan(N,tN), subase;
    29062862  std::vector<std::vector<int> > subases;
     
    29322888  //listsprint(mts);
    29332889  //PrintS("mabt ends:\n");
    2934   for(int t=0;t<vecs.size();t++)
    2935   {
    2936     for(int i=0;i<mts.size();i++)
     2890  for(unsigned t=0;t<vecs.size();t++)
     2891  {
     2892    for(unsigned i=0;i<mts.size();i++)
    29372893    {
    29382894      row=mts[i][0];
     
    31483104  std::vector<int> base;
    31493105  std::vector<std::vector<int> > bases;
    3150   for(int t=0;t<vecs.size();t++)
    3151   {
    3152     for(int i=0;i<mvs.size();i++)
     3106  for(unsigned t=0;t<vecs.size();t++)
     3107  {
     3108    for(unsigned i=0;i<mvs.size();i++)
    31533109    {
    31543110      pv=phimagel(mvs[i], av, bv);
     
    32933249
    32943250  }
    3295   for(int t=0;t<vecs.size();t++)
    3296   {
    3297     for(int i=0;i<mts.size();i++)
     3251  for(unsigned t=0;t<vecs.size();t++)
     3252  {
     3253    for(unsigned i=0;i<mts.size();i++)
    32983254    {
    32993255      row=mts[i][0];
     
    38863842  std::vector<std::vector<int> > ss=p_new(Sigma, Xo), fvs;
    38873843  std::vector<int> av=support1(a), intvec, vv;
    3888   for(int i=0;i<ss.size();i++)
     3844  for(unsigned i=0;i<ss.size();i++)
    38893845  {
    38903846    intvec=vecIntersection(ss[i], av);
     
    41074063  std::vector<int>  bvs=support1(b), vs;
    41084064  std::vector<std::vector<int> > bset;
    4109   for(int i=0;i<bvs.size();i++)
     4065  for(unsigned i=0;i<bvs.size();i++)
    41104066  {
    41114067    for(int j=0;j!=i; j++)
     
    47514707         sbv=supports(sub);
    47524708         std::vector<int> tnv =tnab(vecs,nvs,sbv);
    4753          for(int i=0;i<tnv.size();i++)
     4709         for(unsigned i=0;i<tnv.size();i++)
    47544710         {
    47554711           tnbr.push_back(nvs[tnv[i]]);
     
    48264782         std::vector<std::vector<poly> > pvs=idMakei(nv,ntvs);
    48274783         ideal gens=idInit(1,1);
    4828          for(int i=0;i<pvs.size();i++)
     4784         for(unsigned i=0;i<pvs.size();i++)
    48294785         {
    48304786           idInsertPoly(gens,pvs[i][0]);
  • Singular/dyn_modules/systhreads/shared.cc

    r5cf36cb r4be499  
    761761  memset(&result, 0, sizeof(result));
    762762  leftv *tail = &procnode->next;
    763   for (int i = 0; i < argv.size(); i++) {
     763  for (unsigned i = 0; i < argv.size(); i++) {
    764764    *tail = argv[i];
    765765    tail = &(*tail)->next;
     
    16881688  int threadpool_size(ThreadPool *pool) {
    16891689    int n;
    1690     for (int i = 0; i <thread_owners.size(); i++) {
     1690    for (unsigned i = 0; i <thread_owners.size(); i++) {
    16911691      if (thread_owners[i] == pool)
    16921692        n++;
     
    16951695  }
    16961696  virtual ~Scheduler() {
    1697     for (int i = 0; i < thread_queues.size(); i++) {
     1697    for (unsigned i = 0; i < thread_queues.size(); i++) {
    16981698      JobQueue *q = thread_queues[i];
    16991699      while (!q->empty()) {
     
    17291729    }
    17301730    lock.unlock();
    1731     for (int i = 0; i <threads.size(); i++) {
     1731    for (unsigned i = 0; i <threads.size(); i++) {
    17321732      joinThread(threads[i]);
    17331733    }
     
    17761776  void broadcastJob(ThreadPool *pool, Job *job) {
    17771777    lock.lock();
    1778     for (int i = 0; i <thread_queues.size(); i++) {
     1778    for (unsigned i = 0; i <thread_queues.size(); i++) {
    17791779      if (thread_owners[i] == pool) {
    17801780        acquireShared(job);
     
    17861786  void cancelDeps(Job * job) {
    17871787    vector<Job *> &notify = job->notify;
    1788     for (int i = 0; i <notify.size(); i++) {
     1788    for (unsigned i = 0; i <notify.size(); i++) {
    17891789      Job *next = notify[i];
    17901790      if (!next->cancelled) {
     
    18301830    vector<Job *> &notify = job->notify;
    18311831    job->incref(notify.size());
    1832     for (int i = 0; i <notify.size(); i++) {
     1832    for (unsigned i = 0; i <notify.size(); i++) {
    18331833      Job *next = notify[i];
    18341834      if (!next->queued && next->ready() && !next->cancelled) {
     
    18411841    if (triggers.size() > 0 && job->result.size() > 0)
    18421842      arg = LinTree::from_string(job->result);
    1843     for (int i = 0; i < triggers.size(); i++) {
     1843    for (unsigned i = 0; i < triggers.size(); i++) {
    18441844      Trigger *trigger = triggers[i];
    18451845      if (trigger->accept(arg)) {
     
    20182018    lists l = (lists) omAlloc0Bin(slists_bin);
    20192019    l->Init(args.size());
    2020     for (int i = 0; i < args.size(); i++) {
     2020    for (unsigned i = 0; i < args.size(); i++) {
    20212021      leftv val = LinTree::from_string(args[i]);
    20222022      memcpy(&l->m[i], val, sizeof(*val));
     
    21032103      pool->scheduler->lock.unlock();
    21042104      vector<leftv> argv;
    2105       for (int i = 0; i < args.size(); i++) {
     2105      for (unsigned i = 0; i < args.size(); i++) {
    21062106        appendArg(argv, args[i]);
    21072107      }
     
    24202420    if (argv.size() > 0) {
    24212421      leftv *tail = &argv[0]->next;
    2422       for (int i = 1; i < argv.size(); i++) {
     2422      for (unsigned i = 1; i < argv.size(); i++) {
    24232423        *tail = argv[i];
    24242424        tail = &(*tail)->next;
Note: See TracChangeset for help on using the changeset viewer.