Changeset 2f436b in git for Singular/pInline1.h


Ignore:
Timestamp:
Dec 31, 2000, 4:14:47 PM (23 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
e609098c45a74ac91c002ffa7ece5eebe7f8c002
Parents:
33ec1145a109507ad3e3cf4a69a847b703358e93
Message:
* version 1-3-13: sparsemat improivements


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

Legend:

Unmodified
Added
Removed
  • Singular/pInline1.h

    r33ec11 r2f436b  
    77 *  Author:  obachman (Olaf Bachmann)
    88 *  Created: 8/00
    9  *  Version: $Id: pInline1.h,v 1.14 2000-12-05 13:01:11 obachman Exp $
     9 *  Version: $Id: pInline1.h,v 1.15 2000-12-31 15:14:37 obachman Exp $
    1010 *******************************************************************/
    1111#ifndef PINLINE1_H
     
    492492  return TRUE;
    493493}
     494// test if monomial is a constant, i.e. if all exponents and the component
     495// is zero
     496PINLINE1 BOOLEAN p_LmIsConstant(const poly p, const ring r)
     497{
     498  if (p_LmIsConstantComp(p, r))
     499    return (p_GetComp(p, r) == 0);
     500  return FALSE;
     501}
     502
     503// like the respective p_LmIs* routines, except that p might be empty
     504PINLINE1 BOOLEAN p_IsConstantComp(const poly p, const ring r)
     505{
     506  if (p == NULL) return TRUE;
     507  return p_LmIsConstantComp(p, r);
     508}
     509
     510PINLINE1 BOOLEAN p_IsConstant(const poly p, const ring r)
     511{
     512  if (p == NULL) return TRUE;
     513  return p_LmIsConstant(p, r);
     514}
    494515
    495516PINLINE1 BOOLEAN p_LmExpVectorAddIsOk(const poly p1, const poly p2,
Note: See TracChangeset for help on using the changeset viewer.