Skip to content

Commit

Permalink
Tiny first step in removing ArgsTuple and other tuples and replace by…
Browse files Browse the repository at this point in the history
… std::array.

fix echelon level to 2. There is no plan to ever implement higher levels in this way and version. Not quite supported anyways.
using array probably not using much more space and probably even faster than use of tuples.
recursion can be replaced by loops which are typically faster.
  • Loading branch information
hgutsche committed May 17, 2021
1 parent 3f4648c commit f6b16b0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/config.h
Expand Up @@ -34,7 +34,7 @@
//#define PIRANHA_VISIBLE __attribute__ ((visibility("default")))
//#endif

#define PIRANHA_MAX_ECHELON_LEVEL (1)
#define PIRANHA_MAX_ECHELON_LEVEL (2)


#endif
7 changes: 7 additions & 0 deletions src/core/psym.h
Expand Up @@ -466,6 +466,13 @@ namespace piranha

return vectorPsym;
}

using EvalVectors = std::array<std::vector<std::vector<double>> &, PIRANHA_MAX_ECHELON_LEVEL>; // we don't use and/or intend to use anything higher than echeclonLevel 2
using ArgsVector = std::array<VectorPsym, PIRANHA_MAX_ECHELON_LEVEL>;
//EvalVectors args2EvalVectors(ArgsTupleType const & argdTuple)
//{

//}
}

#pragma warning (pop)
Expand Down

0 comments on commit f6b16b0

Please sign in to comment.