Skip to content

Commit

Permalink
rename identity matrix name in Misc of linalg eigen
Browse files Browse the repository at this point in the history
  • Loading branch information
vigsterkr committed Jul 8, 2017
1 parent 58f3e30 commit 377f02b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/shogun/mathematics/linalg/backend/eigen/Misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ DEFINE_FOR_NON_INTEGER_PTYPE(BACKEND_GENERIC_CENTER_MATRIX, SGMatrix)
#undef BACKEND_GENERIC_CENTER_MATRIX

#define BACKEND_GENERIC_IDENTITY(Type, Container) \
void LinalgBackendEigen::identity(Container<Type>& I) const \
void LinalgBackendEigen::identity(Container<Type>& identity_matrix) const \
{ \
identity_impl(I); \
identity_impl(identity_matrix); \
}
DEFINE_FOR_ALL_PTYPE(BACKEND_GENERIC_IDENTITY, SGMatrix)
#undef BACKEND_GENERIC_IDENTITY
Expand Down Expand Up @@ -111,9 +111,9 @@ void LinalgBackendEigen::center_matrix_impl(SGMatrix<T>& A) const
}

template <typename T>
void LinalgBackendEigen::identity_impl(SGMatrix<T>& I) const
void LinalgBackendEigen::identity_impl(SGMatrix<T>& identity_matrix) const
{
typename SGMatrix<T>::EigenMatrixXtMap I_eig = I;
typename SGMatrix<T>::EigenMatrixXtMap I_eig = identity_matrix;
I_eig.setIdentity();
}

Expand Down

0 comments on commit 377f02b

Please sign in to comment.