- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmemory.cpp
More file actions
Latest commit
24 lines (19 loc) · 490 Bytes
/
Copy pathmemory.cpp
File metadata and controls
24 lines (19 loc) · 490 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include"memory.hpp"
template <>
void SmartArray<double, 1>::transpose() {}
template <>
void SmartArray<float, 1>::transpose() {}
template <>
void SmartArray<int, 1>::transpose() {}
#ifdef __INTEL_MKL__
template <>
void SmartArray<double, 2>::transpose() {
convertF_inplace(m_storage, shape);
std::reverse(shape.begin(), shape.end());
}
template <>
void SmartArray<float, 2>::transpose() {
convertF_inplace(m_storage, shape);
std::reverse(shape.begin(), shape.end());
}
#endif