Righty,

1: Is there a standard library that contain matrices and complex numbers. I

need to find eigen values of a 3x3 matrix.

2: Is there a way of getting the pointer to the start of an array from the

data stored in a std vector. I load loads of floats into a vector at the

moment to store vertex infomration for openGL, but to render them, I need to

pass a pointer to the beginning of the array to OpenGL, not a vector. At the

moment I'm just compying them into another array, but this seems like a bit

of a waste:

vector<float> vertices;

//Copy data into 'vertices'

Then before rendering I have to :

float* pVertexArray = new float[vertices.size()];

for(int i=0;i< vertices.size();i++) pVertexArray[i] = vertices[i];

But this seems silly!

Thanks Mike.