The DoubleArray class represents arrays of double precision numbers. It encapsulates a pointer to a C array and the size of the array in a single object as follows:
class DoubleArray
{
public :
int len;
const double *data;
DoubleArray() : data(0), len(0) {}
DoubleArray(const double *data, int len) : data(data), len(len) {}
double operator[](int i) const { return data[i]; }
};
Method | Inherited | Description |
DoubleArray | (Self) | The constructor of the DoubleArray class. |
© 2023 Advanced Software Engineering Limited. All rights reserved.