I'm pretty new to HPC, SSE technlogy etc so forgive me easy question.
I'm developing an application for a fast simulation in magnetism. I use very large array(implemented as vector from stl) to store index of every atom. My array is 1D so when i need xyz coordinates of a certain atom I need to calculate it(i know the dimensions of a "cube"). Functions responisble for that are main issiue in my program performance.
It's sth like this(for 2D model), index is an input:
(*ptrDANE_2D).y = index * (*ptrD2);
(*ptrDANE_2D).x = index & (*ptrD3);