Top
Back: bigintvec type cast
Forward: def
FastBack: bigintmat
FastForward: def
Up: bigintvec
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

4.4.4 bigintvec operations

+
addition with intvec, int, or bigint. In case of (big-)int, it is added to every entry of the vector.

-
negation or subtraction with intvec, int, or bigint. In case of (big-)int, it is subtracted from every entry of the matrix.

*
multiplication with int, or bigint; every entry of the vector is multiplied by the (big-)int

<>, ==
comparators

bigintvec_expression [ int ]
is a bigintvec entry.


Example:
 
  bigintvec v = 3,3,6,3,5,2,2,7,0,0,45,3;
  v;
==> 3,3,6,3,5,2,2,7,0,0,45,3
  v[3];               // show entry at [3]
==> 6
  v[3] = 10;          // set entry at [3] to 10
  v;
==> 3,3,10,3,5,2,2,7,0,0,45,3
  size(v);         // number of entries
==> 12
  -v;
==> -3,-3,-10,-3,-5,-2,-2,-7,0,0,-45,-3
  v-10;
==> -7,0,0,0,0,0,0,0,0,0,0,0
  v*2;           // double each entry of v
==> 6,6,20,6,10,4,4,14,0,0,90,6


Top Back: bigintvec type cast Forward: def FastBack: bigintmat FastForward: def Up: bigintvec Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 4.4.0, 2024, generated by texi2html.