1 #include "../../../include/common/monolish_common.hpp"
2 #include "../../../include/common/monolish_dense.hpp"
3 #include "../../../include/common/monolish_logger.hpp"
4 #include "../../../include/common/monolish_matrix.hpp"
5 #include "../../../include/monolish_vml.hpp"
6 #include "../../internal/monolish_internal.hpp"
15 std::copy(vec.begin(), vec.end(), val.begin());
32 if (vec.get_device_mem_stat()) {
34 internal::vcopy(vec.val.size(), vec.val.data(), val.data(),
true);
37 internal::vcopy(vec.val.size(), vec.val.data(), val.data(),
false);
56 if (vec.get_device_mem_stat()) {
58 internal::vcopy(vec.size(), vec.data() + vec.get_offset(), val.data(),
62 internal::vcopy(vec.size(), vec.data() + vec.get_offset(), val.data(),
83 if (vec.get_device_mem_stat()) {
85 internal::vcopy(vec.size(), vec.data() + vec.get_offset(), val.data(),
89 internal::vcopy(vec.size(), vec.data() + vec.get_offset(), val.data(),