Skip to content

Commit

Permalink
Fix name
Browse files Browse the repository at this point in the history
  • Loading branch information
oberbichler committed Jun 9, 2020
1 parent 98b2669 commit e16b6bf
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions include/hyperjet/detail/space.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ struct Space<0, TScalar, TSize> {
return value;
}

template <index TOffset, index TSize>
HYPERJET_INLINE static Eigen::Matrix<Scalar, 1, TSize> variables(Eigen::Matrix<TScalar, 1, TSize> value)
template <index TOffset, index TDerivedSize>
HYPERJET_INLINE static Eigen::Matrix<Scalar, 1, TDerivedSize> variables(Eigen::Matrix<TScalar, 1, TDerivedSize> value)
{
static_assert(-1 <= TSize);

Eigen::Matrix<Scalar, 1, TSize> result;
Eigen::Matrix<Scalar, 1, TDerivedSize> result;

for (index i = 0; i < TSize; i++) {
for (index i = 0; i < TDerivedSize; i++) {
result(i) = variable(TOffset + i, value(i));
}

Expand Down Expand Up @@ -128,14 +128,14 @@ struct Space<1, TScalar, TSize> {
return result;
}

template <index TOffset, index TSize>
HYPERJET_INLINE static Eigen::Matrix<Scalar, 1, TSize> variables(Eigen::Matrix<TScalar, 1, TSize> value)
template <index TOffset, index TDerivedSize>
HYPERJET_INLINE static Eigen::Matrix<Scalar, 1, TDerivedSize> variables(Eigen::Matrix<TScalar, 1, TDerivedSize> value)
{
static_assert(-1 <= TSize);

Eigen::Matrix<Scalar, 1, TSize> result;
Eigen::Matrix<Scalar, 1, TDerivedSize> result;

for (index i = 0; i < TSize; i++) {
for (index i = 0; i < TDerivedSize; i++) {
result(i) = variable(TOffset + i, value(i));
}

Expand Down Expand Up @@ -215,14 +215,14 @@ struct Space<2, TScalar, TSize> {
return result;
}

template <index TOffset, index TSize>
HYPERJET_INLINE static Eigen::Matrix<Scalar, 1, TSize> variables(Eigen::Matrix<TScalar, 1, TSize> value)
template <index TOffset, index TDerivedSize>
HYPERJET_INLINE static Eigen::Matrix<Scalar, 1, TDerivedSize> variables(Eigen::Matrix<TScalar, 1, TDerivedSize> value)
{
static_assert(-1 <= TSize);

Eigen::Matrix<Scalar, 1, TSize> result;
Eigen::Matrix<Scalar, 1, TDerivedSize> result;

for (index i = 0; i < TSize; i++) {
for (index i = 0; i < TDerivedSize; i++) {
result(i) = variable(TOffset + i, value(i));
}

Expand Down

0 comments on commit e16b6bf

Please sign in to comment.