Advertisement
Guest User

Untitled

a guest
Mar 27th, 2015
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.66 KB | None | 0 0
  1. vector<vector<vector<float>>> p;
  2. vector<vector<vector<float>>> r;
  3.  
  4. vector<vector<float>> q;
  5.  
  6. vector<string> name_of_str;
  7. vector<string> name_of_sost;
  8.  
  9. void read_size(int N, int k1, int ns1) {
  10.     n = N;
  11.     k = k1;
  12.     ns = ns1 + 1;
  13.     name_of_sost.resize(n);
  14.     name_of_str.resize(k);
  15.     p.resize(k1);
  16.     r.resize(k1);
  17.     q.resize(N);
  18.     v.resize(ns);
  19.     for (int i = 0; i < k1; i++) {
  20.         p[i].resize(N);
  21.         r[i].resize(N);
  22.         for  (int j = 0; j < N; j++) {
  23.             p[i][j].resize(N);
  24.             r[i][j].resize(N);
  25.             q[j].resize(k1);
  26.         }
  27.     }
  28.     for (int i = 0; i < ns; i++) {
  29.         v[i].resize(n);
  30.     }
  31. }
  32.  
  33. void load_data_p(int p1, int p2, int p3, float val) {
  34.     p[p1][p2][p3] = val;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement