/usr/share/doc/NTL/vec_RR.txt is in libntl-dev 5.4.2-4.1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | /**************************************************************************\
MODULE: vec_RR
SUMMARY:
Defines the class vec_RR.
\**************************************************************************/
NTL_vector_decl(RR,vec_RR)
NTL_eq_vector_decl(RR,vec_RR)
// == and !=
NTL_io_vector_decl(RR,vec_RR)
// I/O operators
void mul(vec_RR& x, const vec_RR& a, const RR& b);
void mul(vec_RR& x, const vec_RR& a, double b);
void mul(vec_RR& x, const RR& a, const vec_RR& b);
void mul(vec_RR& x, double a, const vec_RR& b);
// x = a * b
void add(vec_RR& x, const vec_RR& a, const vec_RR& b);
// x = a + b
void sub(vec_RR& x, const vec_RR& a, const vec_RR& b);
// x = a - b
void clear(vec_RR& x);
// x = 0 (length unchanged)
void negate(vec_RR& x, const vec_RR& a);
// x = -a
long IsZero(const vec_RR& a);
// test if a is the zero vector
void InnerProduct(RR& x, const vec_RR& a, const vec_RR& b);
// x = inner product of a and b, padded with zeros to make the lengths
// even.
void VectorCopy(vec_RR& x, const vec_RR& a, long n);
vec_RR VectorCopy(const vec_RR& a, long n);
// x = a copy of a of length exactly n.
// The input is truncated or padded with zeroes, as necessary.
// operator notation:
vec_RR operator+(const vec_RR& a, const vec_RR& b);
vec_RR operator-(const vec_RR& a, const vec_RR& b);
vec_RR operator-(const vec_RR& a);
// vector/scalar multiplication:
vec_RR operator*(const vec_RR& a, const RR& b);
vec_RR operator*(const vec_RR& a, double b);
vec_RR operator*(const RR& a, const vec_RR& b);
vec_RR operator*(double a, const vec_RR& b);
// inner product:
RR operator*(const vec_RR& a, const vec_RR& b);
// assignment operator notation:
vec_RR& operator+=(vec_RR& x, const vec_RR& a);
vec_RR& operator-=(vec_RR& x, const vec_RR& a);
vec_RR& operator*=(vec_RR& x, const RR& a);
vec_RR& operator*=(vec_RR& x, double a);
|