Changeset 95a6f3 in git for Singular/extra.cc


Ignore:
Timestamp:
Oct 9, 2009, 3:46:30 PM (15 years ago)
Author:
Frank Seelisch <seelisch@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
60e4be265398f8004f3b093179a74b59f4fdcb74
Parents:
70f63ab39d1a6a435e42e041336a21e13c1269d9
Message:
more functionality: compute int minors modulo p


git-svn-id: file:///usr/local/Singular/svn/trunk@12182 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/extra.cc

    r70f63a r95a6f3  
    22*  Computer Algebra System SINGULAR      *
    33*****************************************/
    4 /* $Id: extra.cc,v 1.324 2009-10-09 09:05:18 seelisch Exp $ */
     4/* $Id: extra.cc,v 1.325 2009-10-09 13:46:30 seelisch Exp $ */
    55/*
    66* ABSTRACT: general interface to internals of Singular ("system" command)
     
    21472147            // starts the computation of all k x k minors in the
    21482148            // provided matrix m (which is assumed to have polynomial
    2149             // entries) using a cache with 200 entries and a maximum total
    2150             // number of 10000 cached monomials;
     2149            // entries);
    21512150            // when calling this method, a ring must be declared before;
    2152             // there will be a run without using a cache; afterwards all 5
    2153             // caching strategies will be run
     2151            // there will be one run using a cache with specified properties
     2152          res->rtyp = IDEAL_CMD;
     2153          res->data = iii;
     2154        }
     2155        else if ((h->Typ() == MATRIX_CMD) &&
     2156                 (h->next->Typ() == INT_CMD) &&
     2157                 (h->next->next->Typ() == INT_CMD) &&
     2158                 (h->next->next->next->Typ() == INT_CMD) &&
     2159                 (h->next->next->next->next->Typ() == INT_CMD) &&
     2160                 (h->next->next->next->next->next->Typ() == INT_CMD) &&
     2161                 (h->next->next->next->next->next->next == NULL))
     2162        {
     2163          const matrix m           = (const matrix)h->Data();
     2164          const int k              = (const int)(long)h->next->Data();
     2165          const int strategy       = (const int)(long)h->next->next->Data();
     2166          const int cacheEntries   = (const int)(long)h->next->next->next->Data();
     2167          const int cacheWeight    = (const int)(long)h->next->next->next->next->Data();
     2168          const int characteristic = (const int)(long)h->next->next->next->next->next->Data();
     2169          ideal iii = testAllIntMinorsAsIdeal(m, k, strategy, cacheEntries, cacheWeight, characteristic);
     2170            // starts the computation of all k x k minors in the
     2171            // provided matrix m (which is assumed to have integer
     2172            // entries);
     2173            // when calling this method, a ring must be declared before;
     2174            // there will be one run using a cache with specified properties;
     2175            // the resulting minors will be computed modulo the given characteristic
    21542176          res->rtyp = IDEAL_CMD;
    21552177          res->data = iii;
     
    21622184                 (h->next->next->next->next->next->Typ() == INT_CMD) &&
    21632185                 (h->next->next->next->next->next->next->Typ() == INT_CMD) &&
    2164                  (h->next->next->next->next->next->next->next->Typ() == INT_CMD))
     2186                 (h->next->next->next->next->next->next->next->Typ() == INT_CMD) &&
     2187                 (h->next->next->next->next->next->next->next->next == NULL))
    21652188        {
    21662189          const matrix m           = (const matrix)h->Data();
Note: See TracChangeset for help on using the changeset viewer.