Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compilation problem by removing specialization of member functions. #42

Merged
merged 1 commit into from Aug 27, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
29 changes: 9 additions & 20 deletions blaze_tensor/math/expressions/DQuatTransExpr.h
Expand Up @@ -373,26 +373,15 @@ class DQuatTransExpr
// \return The number of columns of the array.
*/
template< size_t Dim >
size_t dimension() const noexcept;

template<>
inline size_t dimension<0>() const noexcept {
return columns();
}

template< >
inline size_t dimension<1>() const noexcept {
return rows();
}

template< >
inline size_t dimension<2>() const noexcept {
return pages();
}

template< >
inline size_t dimension<3>() const noexcept {
return quats();
size_t dimension() const noexcept {
if(Dim == 0)
return columns();
else if(Dim == 1)
return rows();
else if(Dim == 2)
return pages();
else
return quats();
}
//**********************************************************************************************

Expand Down