DebugPrint.h
Go to the documentation of this file.
1 // -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 /*****************************************************************************\
3  * Computer Algebra System SINGULAR
4 \*****************************************************************************/
5 /** @file DebugPrint.h
6  *
7  * Detailed print for debugging
8  *
9  * ABSTRACT: dPrint outputs as much info as possible
10  *
11  * @author Oleksandr Motsak
12  *
13  *
14  **/
15 /*****************************************************************************/
16 
17 #ifndef DEBUGPRINT_H
18 #define DEBUGPRINT_H
19 
20 // include basic definitions
21 #include "singularxx_defs.h"
22 #include <kernel/polys.h>
23 
25 
26 
27 
28 /// debug-print at most nTerms (2 by default) terms from poly/vector p,
29 /// assuming that lt(p) lives in lmRing and tail(p) lives in tailRing.
30 void dPrint(const poly p, const ring lmRing = currRing, const ring tailRing = currRing, const int nTerms = 2);
31 
32 /// prints an ideal, optionally with details
33 void dPrint(const ideal id, const ring lmRing = currRing, const ring tailRing = currRing, const int nTerms = 0);
34 
36 
37 #endif
38 /* #ifndef DEBUGPRINT_H */
39 
40 // Vi-modeline: vim: filetype=c:syntax:shiftwidth=2:tabstop=8:textwidth=0:expandtab
41 
BEGIN_NAMESPACE_SINGULARXX BEGIN_NAMESPACE(DEBUG) void dPrint(const poly p
debug-print at most nTerms (2 by default) terms from poly/vector p, assuming that lt(p) lives in lmRi...
BEGIN_NAMESPACE_SINGULARXX const ring lmRing
Definition: DebugPrint.h:30
Compatiblity layer for legacy polynomial operations (over currRing)
return P p
Definition: myNF.cc:203
BEGIN_NAMESPACE_SINGULARXX const ring const ring tailRing
Definition: DebugPrint.h:30
#define BEGIN_NAMESPACE_SINGULARXX
ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...
Definition: polys.cc:10
#define END_NAMESPACE_SINGULARXX
BEGIN_NAMESPACE_SINGULARXX const ring const ring const int nTerms
Definition: DebugPrint.h:30
#define END_NAMESPACE
#define const
Definition: fegetopt.c:41
polyrec * poly
Definition: hilb.h:10
void dPrint(const ideal id, const ring lmRing=currRing, const ring tailRing=currRing, const int nTerms=0)
prints an ideal, optionally with details