source: git/ntl/doc/vec_RR.txt @ 26e030

spielwiese
Last change on this file since 26e030 was 2cfffe, checked in by Hans Schönemann <hannes@…>, 21 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_RR
5
6SUMMARY:
7
8Defines the class vec_RR.
9
10\**************************************************************************/
11
12NTL_vector_decl(RR,vec_RR)
13
14NTL_eq_vector_decl(RR,vec_RR)
15// == and !=
16
17NTL_io_vector_decl(RR,vec_RR)
18// I/O operators
19
20void mul(vec_RR& x, const vec_RR& a, const RR& b);
21void mul(vec_RR& x, const vec_RR& a, double b);
22
23void mul(vec_RR& x, const RR& a, const vec_RR& b);
24void mul(vec_RR& x, double a, const vec_RR& b);
25// x = a * b
26
27
28void add(vec_RR& x, const vec_RR& a, const vec_RR& b);
29// x = a + b
30
31void sub(vec_RR& x, const vec_RR& a, const vec_RR& b);
32// x = a - b
33
34void clear(vec_RR& x);
35// x = 0 (length unchanged)
36
37void negate(vec_RR& x, const vec_RR& a);
38// x = -a
39
40long IsZero(const vec_RR& a);
41// test if a is the zero vector
42
43
44void InnerProduct(RR& x, const vec_RR& a, const vec_RR& b);
45// x = inner product of a and b, padded with zeros to make the lengths
46// even.
47
48void VectorCopy(vec_RR& x, const vec_RR& a, long n);
49vec_RR VectorCopy(const vec_RR& a, long n);
50// x = a copy of a of length exactly n.
51// The input is truncated or padded with zeroes, as necessary.
52
53
54// operator notation:
55
56vec_RR operator+(const vec_RR& a, const vec_RR& b);
57vec_RR operator-(const vec_RR& a, const vec_RR& b);
58
59vec_RR operator-(const vec_RR& a);
60
61
62// vector/scalar multiplication:
63
64vec_RR operator*(const vec_RR& a, const RR& b);
65vec_RR operator*(const vec_RR& a, double b);
66
67vec_RR operator*(const RR& a, const vec_RR& b);
68vec_RR operator*(double a, const vec_RR& b);
69
70// inner product:
71
72RR operator*(const vec_RR& a, const vec_RR& b);
73
74
75// assignment operator notation:
76
77vec_RR& operator+=(vec_RR& x, const vec_RR& a);
78vec_RR& operator-=(vec_RR& x, const vec_RR& a);
79
80vec_RR& operator*=(vec_RR& x, const RR& a);
81vec_RR& operator*=(vec_RR& x, double a);
82
83
Note: See TracBrowser for help on using the repository browser.