Skip to content

Commit 0b82a68

Browse files
author
Heikman
committed
rename TwistVectorAxes to TwistComponents
- remove surounding namespace `tools`
1 parent b6dace7 commit 0b82a68

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

src/libPMacc/include/math/vector/compile-time/twistVectorAxes.hpp renamed to src/libPMacc/include/math/vector/compile-time/twistComponents.hpp

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,35 +28,33 @@ namespace PMacc
2828
{
2929
namespace math
3030
{
31-
namespace tools
32-
{
3331
namespace CT
3432
{
3533

3634
/**
37-
* @class TwistVectorAxes
35+
* @class TwistComponents
3836
* @brief Twists axes of a compile-time vector.
3937
* @tparam Vec compile-time vector to be twisted
4038
* @tparam Axes compile-time vector containing new axes
4139
*
4240
* Example:
4341
*
4442
* typedef PMacc::math::CT::Int<1,2,0> Orientation_Y;
45-
* typedef typename PMacc::math::tools::CT::TwistVectorAxes<BlockDim, Orientation_Y>::type TwistedBlockDim;
43+
* typedef typename PMacc::math::CT::TwistComponents<BlockDim, Orientation_Y>::type TwistedBlockDim;
4644
*/
4745
template<typename Vec, typename Axes, int dim=Vec::dim>
48-
struct TwistVectorAxes;
46+
struct TwistComponents;
4947

5048
template<typename Vec, typename Axes>
51-
struct TwistVectorAxes<Vec, Axes, DIM2>
49+
struct TwistComponents<Vec, Axes, DIM2>
5250
{
5351
typedef math::CT::Vector<
5452
typename Vec::template at<Axes::x::value>::type,
5553
typename Vec::template at<Axes::y::value>::type> type;
5654
};
5755

5856
template<typename Vec, typename Axes>
59-
struct TwistVectorAxes<Vec, Axes, DIM3>
57+
struct TwistComponents<Vec, Axes, DIM3>
6058
{
6159
typedef math::CT::Vector<
6260
typename Vec::template at<Axes::x::value>::type,
@@ -65,6 +63,5 @@ struct TwistVectorAxes<Vec, Axes, DIM3>
6563
};
6664

6765
} // namespace CT
68-
} // namespace tools
6966
} // namespace math
7067
} // namespace PMacc

0 commit comments

Comments
 (0)