Go to the source code of this file.
◆ iv64Add()
Definition at line 172 of file int64vec.cc.
182 for (i=0; i<mn; i++) (*iv)[
i] = (*a)[
i] + (*b)[
i];
187 for(i=mn; i<ma; i++) (*iv)[
i] = (*a)[
i];
191 for(i=mn; i<ma; i++) (*iv)[
i] = (*b)[
i];
196 if (mn != ma)
return NULL;
198 for (i=0; i<mn*a->
cols(); i++) { (*iv)[
i] += (*b)[
i]; }
static int si_min(const int a, const int b)
static int si_max(const int a, const int b)
◆ iv64Sub()
Definition at line 202 of file int64vec.cc.
212 for (i=0; i<mn; i++) (*iv)[
i] = (*a)[
i] - (*b)[
i];
217 for(i=mn; i<ma; i++) (*iv)[
i] = (*a)[
i];
221 for(i=mn; i<ma; i++) (*iv)[
i] = -(*b)[
i];
226 if (mn != ma)
return NULL;
228 for (i=0; i<mn*a->
cols(); i++) { (*iv)[
i] -= (*b)[
i]; }
static int si_min(const int a, const int b)
static int si_max(const int a, const int b)