source: git/ntl/doc/vec_ZZ.txt @ ae85a3

fieker-DuValspielwiese
Last change on this file since ae85a3 was 2cfffe, checked in by Hans Schönemann <hannes@…>, 22 years ago
This commit was generated by cvs2svn to compensate for changes in r6316, which included commits to RCS files with non-trunk default branches. git-svn-id: file:///usr/local/Singular/svn/trunk@6317 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 1.8 KB
Line 
1
2/**************************************************************************\
3
4MODULE: vec_ZZ
5
6SUMMARY:
7
8Defines the class vec_ZZ.
9
10\**************************************************************************/
11
12NTL_vector_decl(ZZ,vec_ZZ)
13
14NTL_eq_vector_decl(ZZ,vec_ZZ)
15// == and !=
16
17NTL_io_vector_decl(ZZ,vec_ZZ)
18// I/O operators
19
20void mul(vec_ZZ& x, const vec_ZZ& a, const ZZ& b);
21void mul(vec_ZZ& x, const vec_ZZ& a, long b);
22
23void mul(vec_ZZ& x, const ZZ& a, const vec_ZZ& b);
24void mul(vec_ZZ& x, long a, const vec_ZZ& b);
25// x = a * b
26
27void add(vec_ZZ& x, const vec_ZZ& a, const vec_ZZ& b);
28// x = a + b
29
30void sub(vec_ZZ& x, const vec_ZZ& a, const vec_ZZ& b);
31// x = a - b
32
33void clear(vec_ZZ& x);
34// x = 0 (length unchanged)
35
36void negate(vec_ZZ& x, const vec_ZZ& a);
37// x = -a
38
39long IsZero(const vec_ZZ& a);
40// test if a is the zero vector
41
42void InnerProduct(ZZ& x, const vec_ZZ& a, const vec_ZZ& b);
43// x = inner product of a and b, padded with zeros to make the lengths
44// even.
45
46void VectorCopy(vec_ZZ& x, const vec_ZZ& a, long n);
47vec_ZZ VectorCopy(const vec_ZZ& a, long n);
48// x = a copy of a of length exactly n.
49// The input is truncated or padded with zeroes, as necessary.
50
51
52// operator notation:
53
54vec_ZZ operator+(const vec_ZZ& a, const vec_ZZ& b);
55vec_ZZ operator-(const vec_ZZ& a, const vec_ZZ& b);
56
57vec_ZZ operator-(const vec_ZZ& a);
58
59
60// vector/scalar multiplication:
61
62vec_ZZ operator*(const vec_ZZ& a, const ZZ& b);
63vec_ZZ operator*(const vec_ZZ& a, long b);
64
65vec_ZZ operator*(const ZZ& a, const vec_ZZ& b);
66vec_ZZ operator*(long a, const vec_ZZ& b);
67
68// inner product:
69
70ZZ operator*(const vec_ZZ& a, const vec_ZZ& b);
71
72
73
74// assignment operator notation:
75
76vec_ZZ& operator+=(vec_ZZ& x, const vec_ZZ& a);
77vec_ZZ& operator-=(vec_ZZ& x, const vec_ZZ& a);
78
79vec_ZZ& operator*=(vec_ZZ& x, const ZZ& a);
80vec_ZZ& operator*=(vec_ZZ& x, long a);
81
82
Note: See TracBrowser for help on using the repository browser.