#include "kernel/mod2.h"
#include "omalloc/omalloc.h"
#include "misc/intvec.h"
#include "polys/matpol.h"
#include "kernel/polys.h"
#include "kernel/ideals.h"
#include "tok.h"
#include "ipid.h"
#include "subexpr.h"
#include "ipshell.h"
#include "ipprint.h"
#include "attrib.h"
Go to the source code of this file.
◆ ipPrint_CRING()
Definition at line 211 of file ipprint.cc.
216 else PrintS(
"ring (with zero-divisors): ");
static FORCE_INLINE BOOLEAN nCoeff_is_Ring(const coeffs r)
static FORCE_INLINE char * nCoeffName(const coeffs cf)
void PrintS(const char *s)
static FORCE_INLINE BOOLEAN nCoeff_is_Domain(const coeffs r)
returns TRUE, if r is a field or r has no zero divisors (i.e is a domain)
◆ ipPrint_INTMAT()
Definition at line 41 of file ipprint.cc.
44 for(
i=0;
i<
v->rows();
i++)
46 for(
j=0;
j<
v->cols();
j++)
const Variable & v
< [in] a sqrfree bivariate poly
#define IMATELEM(M, I, J)
◆ ipPrint_INTVEC()
Definition at line 31 of file ipprint.cc.
const Variable & v
< [in] a sqrfree bivariate poly
◆ ipPrint_MA()
Definition at line 184 of file ipprint.cc.
void ipPrint_MA0(matrix m, const char *name)
◆ ipPrint_MA0()
Definition at line 58 of file ipprint.cc.
71 vl=
si_max(vl,(
int)strlen(ss));
99 sprintf(ss,
"%s[%d,%d]",
name,
i+1,
j+1);
103 vl=
si_max(vl,(
int)strlen(ss));
133 sprintf(ss,
"%s[%d,%d]",
name,
i+1,
j+1);
const CanonicalForm int s
#define omFreeSize(addr, size)
void StringSetS(const char *st)
void StringAppendS(const char *st)
static int si_max(const int a, const int b)
void PrintS(const char *s)
char name(const Variable &v)
◆ ipPrint_RING()
static BOOLEAN ipPrint_RING |
( |
ring |
r | ) |
|
|
static |
Definition at line 194 of file ipprint.cc.
196 PrintS(
"polynomial ring, over a ");
200 else PrintS(
"ring (with zero-divisors)");
203 if (r->OrdSgn==1)
PrintS(
", global");
204 else if (r->MixedOrder==1)
PrintS(
", mixed");
static BOOLEAN rField_is_Domain(const ring r)
void PrintS(const char *s)
void rWrite(ring r, BOOLEAN details)
static BOOLEAN rField_is_Ring(const ring r)
◆ ipPrint_V()
Definition at line 225 of file ipprint.cc.
#define omFreeSize(addr, size)
void p_Vec2Polys(poly v, poly **p, int *len, const ring r)
void PrintS(const char *s)
ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...
◆ ipPrintBetti()
static void ipPrintBetti |
( |
leftv |
u | ) |
|
|
static |
Definition at line 345 of file ipprint.cc.
348 int row_shift=(int)((
long)(
atGet(u,
"rowShift",
INT_CMD)));
359 Print(
"%5d:",
i+row_shift);
const CanonicalForm int s
void PrintS(const char *s)
void * atGet(idhdl root, const char *name, int t, void *defaultReturnValue)
#define IMATELEM(M, I, J)
◆ jjDBPRINT()
Definition at line 317 of file ipprint.cc.
322 print= (((int)((
long)(u->
Data()))) > 0);
Class used for (list of) interpreter objects.
BOOLEAN jjPRINT(leftv res, leftv u)
void PrintS(const char *s)
◆ jjPRINT()
Definition at line 251 of file ipprint.cc.
307 if (
s[
l-1]==
'\n')
s[
l-1]=
'\0';
const CanonicalForm int s
static BOOLEAN ipPrint_RING(ring r)
static BOOLEAN ipPrint_INTVEC(intvec *v)
ideal id_Copy(ideal h1, const ring r)
copy an ideal
static BOOLEAN ipPrint_MA(leftv u)
void id_Delete(ideal *h, ring r)
deletes an ideal/module/matrix
static BOOLEAN ipPrint_CRING(coeffs r)
void Print(leftv store=NULL, int spaces=0)
Called by type_cmd (e.g. "r;") or as default in jPRINT.
char * String(void *d=NULL, BOOLEAN typed=FALSE, int dim=1)
Called for conversion to string (used by string(..), write(..),..)
The main handler for Singular numbers which are suitable for Singular polynomials.
void ipPrint_MA0(matrix m, const char *name)
static BOOLEAN ipPrint_V(poly u)
void PrintS(const char *s)
matrix id_Module2Matrix(ideal mod, const ring R)
ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...
static BOOLEAN ipPrint_INTMAT(intvec *v)
◆ jjPRINT_FORMAT()
Definition at line 390 of file ipprint.cc.
393 if ((u->
Typ()==
INTMAT_CMD)&&(strcmp((
char *)
v->Data(),
"betti")==0))
406 if (strlen(ns) == 3 && ns[1] ==
'2')
412 if (strcmp(ns,
"%l") == 0)
417 char* ns = (
char*)
omAlloc(strlen((
char*)
res->data) + 2);
418 strcpy(ns, (
char*)
res->data);
424 else if (strcmp(ns,
"%t") == 0)
430 ((
char*)
res->data)[strlen((
char*)
res->data) -1] =
'\0';
432 else if (strcmp(ns,
"%;") == 0)
439 else if (strcmp(ns,
"%p") == 0)
455 char* ns = (
char*)
omAlloc(strlen((
char*)
res->data) + 2);
456 strcpy(ns, (
char*)
res->data);
const CanonicalForm int s
BOOLEAN iiExprArith1(leftv res, leftv a, int op)
void Print(leftv store=NULL, int spaces=0)
Called by type_cmd (e.g. "r;") or as default in jPRINT.
char * String(void *d=NULL, BOOLEAN typed=FALSE, int dim=1)
Called for conversion to string (used by string(..), write(..),..)
const Variable & v
< [in] a sqrfree bivariate poly
static void ipPrintBetti(leftv u)