1 class vector // Allocated array of doubles
3 vector() // default dimension: 3
5 vector(vector &) // copy constructor
9 class matrix // Allocated array of vectors
11 matrix() // default 3 x 3
12 matrix(int rows, int cols = 0)
13 // 0 columns: cols = rows, default to square matrix
14 matrix(double) // numbers on diagonal, rest=0
15 matrix(matrix &) // copy constructor
17 To raise a matrix M to an integer power n:
18 (see DDJ #177, page 86)
19 note that the bits in n represent squares of M
22 for (bit = 0; bit < # bits in n; bit ++)
29 Hours, minutes, seconds (fractional seconds ?)
31 Conversion from HMS to decimal and vice-versa
35 double() // Convert to decimal hours