c++ - Const float** defined in header file -


I have a DLL in which there are three computing methods and two fixed container containers. Class does not define as it is a scientific code, the DLL caller will directly call the methods defined in it.

Two data structures can be constrained and static, and can be typed as float ** . For now, I did this QVector & lt; QVector & lt; Float & gt; & Gt; The class header is defined in the file.

  jsekseArr.reserve (3); JsekseArr.resize (3); JsekseArr [0] = QVector & lt; Float & gt; () & Lt; & Lt; 0 & lt; & Lt; 1 & lt; & Lt; 1 & lt; & Lt; 3; JsekseArr [1] = QVector & lt; Float & gt; () & Lt; & Lt; 0 & lt; & Lt; 1 & lt; & Lt; 3 & lt; & Lt; 6; JsekseArr [2] = QVector & lt; Float & gt; () & Lt; & Lt; 0 & lt; & Lt; 1 & lt; & Lt; 6 & lt; & Lt; 10;  

But I do not want to be more dependent on QT, what is the best, cleaner way to define these data structures in float ** as float **?

Do I want to make a straight for this matrix?

std :: vector for a 2D vector & lt; Std :: vector & lt; Float & gt; & Gt;


Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -