#include <int64vec.h>
Definition at line 20 of file int64vec.h.
◆ int64vec() [1/4]
int64vec::int64vec |
( |
int |
l = 1 | ) |
|
|
inline |
◆ int64vec() [2/4]
int64vec::int64vec |
( |
int |
r, |
|
|
int |
c, |
|
|
int64 |
init |
|
) |
| |
Definition at line 41 of file int64vec.cc.
42{
46 if ((r>0) && (c>0))
48 else
50 for (
int i=0;
i<
l;
i++)
51 {
53 }
54}
◆ int64vec() [3/4]
◆ int64vec() [4/4]
int64vec::int64vec |
( |
intvec * |
iv | ) |
|
◆ ~int64vec()
Definition at line 71 of file int64vec.h.
72 {
74 {
77 }
78 }
#define omFreeSize(addr, size)
◆ cols()
int int64vec::cols |
( |
| ) |
const |
|
inline |
◆ compare()
Definition at line 138 of file int64vec.cc.
139{
140 if ((
col!=1) ||(op->cols()!=1))
141 {
143 || (
row!=op->rows()))
144 return -2;
145 }
148 {
150 return 1;
152 return -1;
153 }
154
156 {
158 return 1;
160 return -1;
161 }
162 for (;
i<op->rows();
i++)
163 {
165 return 1;
167 return -1;
168 }
169 return 0;
170}
static int si_min(const int a, const int b)
◆ iv64GetVec()
int64 * int64vec::iv64GetVec |
( |
| ) |
|
|
inline |
◆ iv64String()
char * int64vec::iv64String |
( |
int |
not_mat = 1 , |
|
|
int |
mat = 0 , |
|
|
int |
spaces = 0 , |
|
|
int |
dim = 2 |
|
) |
| |
Definition at line 56 of file int64vec.cc.
57{
59 if ((
col == 1)&&(not_mat))
60 {
63 {
65 }
67 {
69 }
70 }
71 else
72 {
74 {
76 {
78 {
80 }
81 }
82 else
83 {
85 {
87 }
88 }
90 {
93 }
94 }
95 }
97}
void StringSetS(const char *st)
void StringAppendS(const char *st)
◆ iv64TEST()
void int64vec::iv64TEST |
( |
| ) |
|
|
inline |
Definition at line 79 of file int64vec.h.
80 {
82 }
#define omCheckAddrSize(addr, size)
◆ length()
int int64vec::length |
( |
| ) |
const |
|
inline |
◆ operator*=()
void int64vec::operator*= |
( |
int64 |
intop | ) |
|
◆ operator/=()
void int64vec::operator/= |
( |
int64 |
intop | ) |
|
Definition at line 124 of file int64vec.cc.
125{
126 if (intop == 0) return;
129 {
132 if (c<0) c+=bb;
133 r=(r-c)/intop;
135 }
136}
◆ operator[]() [1/2]
int64 & int64vec::operator[] |
( |
int |
i | ) |
|
|
inline |
Definition at line 40 of file int64vec.h.
41 {
42#ifndef SING_NDEBUG
44 {
45 Werror(
"wrong int64vec index:%d\n",
i);
46 }
47#endif
49 }
void Werror(const char *fmt,...)
◆ operator[]() [2/2]
Definition at line 50 of file int64vec.h.
51 {
52#ifndef SING_NDEBUG
54 {
55 Werror(
"wrong int64vec index:%d\n",
i);
56 }
57#endif
59 }
◆ rows()
int int64vec::rows |
( |
| ) |
const |
|
inline |
◆ show()
void int64vec::show |
( |
int |
mat = 0 , |
|
|
int |
spaces = 0 |
|
) |
| |
Definition at line 104 of file int64vec.cc.
105{
107 if (spaces>0)
108 {
111 }
112 else
113 {
115 }
117}
char * iv64String(int not_mat=1, int mat=0, int spaces=0, int dim=2)
const CanonicalForm int s
void PrintNSpaces(const int n)
void PrintS(const char *s)
◆ String()
char * int64vec::String |
( |
int |
dim = 2 | ) |
|
◆ col
◆ row
The documentation for this class was generated from the following files: