-
Notifications
You must be signed in to change notification settings - Fork 79
Expand file tree
/
Copy pathops_seq.cpp
More file actions
40 lines (35 loc) · 1.21 KB
/
ops_seq.cpp
File metadata and controls
40 lines (35 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include "konstantinov_s_broadcast/seq/include/ops_seq.hpp"
// #include <iostream>
// #include <numeric>
#include <cstring> // memcpy
#include "konstantinov_s_broadcast/common/include/common.hpp"
// #include "util/include/util.hpp"
namespace konstantinov_s_broadcast {
template <typename T>
KonstantinovSBroadcastSEQ<T>::KonstantinovSBroadcastSEQ(const InType &in) {
this->SetTypeOfTask(GetStaticTypeOfTask());
this->GetInput() = in;
this->GetOutput().resize(this->GetInput().size());
}
template <typename T>
bool KonstantinovSBroadcastSEQ<T>::ValidationImpl() {
// std::cout << "\t\tValidation seq\n";
return !this->GetInput().empty();
}
template <typename T>
bool KonstantinovSBroadcastSEQ<T>::PreProcessingImpl() {
return true;
}
template <typename T>
bool KonstantinovSBroadcastSEQ<T>::RunImpl() {
memcpy(this->GetOutput().data(), this->GetInput().data(), this->GetInput().size() * sizeof(T));
return true;
}
template <typename T>
bool KonstantinovSBroadcastSEQ<T>::PostProcessingImpl() {
return true;
}
template class KonstantinovSBroadcastSEQ<ETypeInt>;
template class KonstantinovSBroadcastSEQ<ETypeFloat>;
template class KonstantinovSBroadcastSEQ<ETypeDouble>;
} // namespace konstantinov_s_broadcast