Skip to content

Commit

Permalink
[Janitor mode] Fix whitespace
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@23757 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
OpenModelica-Hudson committed Dec 12, 2014
1 parent a9c029a commit a4d6717
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SimulationRuntime/cpp/Include/Core/Math/Array.h
Expand Up @@ -583,14 +583,14 @@ template<typename T ,std::size_t size1, std::size_t size2, std::size_t size3> cl
virtual T& operator()(vector<size_t> idx)
{
//row-major order
return _real_array[(idx[2] - 1) + size3*((idx[1]-1)+size2*(idx[0]-1))];
return _real_array[(idx[2] - 1) + size3*((idx[1]-1)+size2*(idx[0]-1))];
//column-major order
//return _real_array[(idx[2] - 1)*size2*size1 + (idx[1] - 1)*size1 + (idx[0] - 1)];
};
inline virtual T& operator()(unsigned int i, unsigned int j, unsigned int k)
{
//row-major order
return _real_array[(k - 1) + size3*((j-1)+size2*(i-1))];
return _real_array[(k - 1) + size3*((j-1)+size2*(i-1))];
//column-major order
//return _real_array[(k - 1)*size2*size1 + (j - 1)*size1 + (i - 1)];
}
Expand Down

0 comments on commit a4d6717

Please sign in to comment.