fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. #include <vector>
  4. #include <array>
  5.  
  6. void spatial_correlation(
  7. const std::vector<char>& Lattice,
  8. int L, // const no needed, it"s a copy here
  9. const std::vector<float>& distances,
  10. const std::array<char,4>& types,
  11. const std::array<std::array<std::vector<float>,4>,4>& space_corr
  12. )
  13. {
  14. auto D = distances.size();
  15. auto S = L*L;
  16. //Finds the spatial correlation. Code not relevant
  17. }
  18.  
  19. int main()
  20. {
  21. std::array<char,4> types = {'A','B','C','D'};
  22. std::vector<float> distances;
  23. // get_distances(Lattice, L, distances); ? ? ?
  24. std::vector<char> Lattice;
  25.  
  26. std::array<std::array<std::vector<float>,4>,4> space_corr;
  27.  
  28. spatial_correlation(Lattice, L, distances, types, space_corr);
  29. }
  30.  
Success #stdin #stdout 0s 5296KB
stdin
Standard input is empty
stdout
Standard output is empty