Changeset d6a97c3 in git for libpolys/polys/nc/nc.h


Ignore:
Timestamp:
Apr 11, 2011, 3:17:12 PM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
2ad10e9bccb45c1c7d3c33a6cd3de52209778816
Parents:
40d064981b228dd3692e8e17e5a065cfba2599a2
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-04-11 15:17:12+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:04:22+01:00
Message:
FIX: the rest of NC-related stuff can be compiled in now
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/nc/nc.h

    r40d0649 rd6a97c3  
    369369
    370370
    371 
     371#ifdef PLURAL_INTERNAL_DECLARATIONS
     372
     373#include <polys/matpol.h>
     374
     375// read only access to NC matrices C/D:
     376// get C_{i,j}, 1 <= row = i < j = col <= N
     377static inline poly GetC( const ring r, int i, int j )
     378{
     379  assume(r!= NULL && rIsPluralRing(r));
     380  const matrix C = GetNC(r)->C;
     381  assume(C != NULL);
     382  const int ncols = C->ncols;
     383  assume( (i > 0) && (i < j) && (j <= ncols) );
     384  return ( C->m[ncols * ((i)-1) + (j)-1] );
     385}
     386
     387// get D_{i,j}, 1 <= row = i < j = col <= N
     388static inline poly GetD( const ring r, int i, int j )
     389{
     390  assume(r!= NULL && rIsPluralRing(r));
     391  const matrix D = GetNC(r)->D;
     392  assume(D != NULL);
     393  const int ncols = D->ncols;
     394  assume( (i > 0) && (i < j) && (j <= ncols) );
     395  return ( D->m[ncols * ((i)-1) + (j)-1] );
     396}
     397
     398#endif /* PLURAL_INTERNAL_DECLARATIONS */
    372399
    373400#endif /* HAVE_PLURAL */
Note: See TracChangeset for help on using the changeset viewer.