![]() |
mgcpp
A C++ Math Library Based on CUDA
|
#include <device_vector.hpp>


Public Types | |
| using | this_type = device_vector< Type, Alloc > |
| using | value_type = Type |
| using | pointer = value_type * |
| using | const_pointer = value_type const * |
| using | device_value_type = typename device_value_type< Type >::type |
| using | device_pointer = device_value_type * |
| using | const_device_pointer = device_value_type const * |
| using | result_type = this_type |
| template<typename T > | |
| using | result_expr_type = dvec_expr< T > |
| using | allocator_type = Alloc |
| using | shape_type = mgcpp::shape< 1 > |
| using | parent_type = dense_vector< device_vector< Type, Alloc >, Type > |
Public Member Functions | |
| device_vector () noexcept | |
| ~device_vector () noexcept | |
| device_vector (Alloc const &alloc) noexcept | |
| device_vector (size_t size, Alloc const &alloc=Alloc()) | |
| device_vector (size_t size, value_type init, Alloc const &alloc=Alloc()) | |
| device_vector (size_t size, const_pointer data, Alloc const &alloc=Alloc()) | |
| device_vector (std::initializer_list< value_type > const &array, Alloc const &alloc=Alloc()) | |
| device_vector (std::vector< value_type > const &vec, Alloc const &alloc=Alloc()) | |
| template<typename HostVec , MGCPP_CONCEPT(adapter< HostVec >::value) > | |
| device_vector (HostVec const &host_mat, Alloc const &alloc=Alloc()) | |
| device_vector (device_vector< Type, Alloc > const &other) | |
| template<typename DenseVec > | |
| device_vector (dense_vector< DenseVec, Type > const &other) | |
| device_vector (device_vector< Type, Alloc > &&other) noexcept | |
| template<typename DenseVec > | |
| device_vector< Type, Alloc > & | operator= (dense_vector< DenseVec, Type > const &other) |
| device_vector< Type, Alloc > & | operator= (device_vector< Type, Alloc > const &other) |
| device_vector< Type, Alloc > & | operator= (device_vector< Type, Alloc > &&other) noexcept |
| device_vector< Type, Alloc > & | zero () |
| device_vector< Type, Alloc > & | resize (size_t size, value_type pad_value=value_type{}) |
| void | copy_to_host (pointer host_p) const |
| value_type | check_value (size_t i) const |
| void | set_value (size_t i, value_type value) |
| const_device_pointer | data () const noexcept |
| device_pointer | data_mutable () noexcept |
| size_t | capacity () const noexcept |
| device_pointer | release_data () noexcept |
| thread_context * | context () const noexcept |
| shape_type | shape () const noexcept |
| Alloc | allocator () const noexcept |
| size_t | device_id () const noexcept |
| size_t | size () const noexcept |
Public Member Functions inherited from mgcpp::vector_base< VectorType, Type > | |
| VectorType const & | operator~ () const noexcept |
| VectorType & | operator~ () noexcept |
Static Public Member Functions | |
| template<size_t S> | |
| static device_vector | from_c_array (Type(&arr)[S], Alloc const &alloc=Alloc()) |
| using mgcpp::device_vector< Type, Alloc >::allocator_type = Alloc |
| using mgcpp::device_vector< Type, Alloc >::const_device_pointer = device_value_type const* |
| using mgcpp::device_vector< Type, Alloc >::const_pointer = value_type const* |
| using mgcpp::device_vector< Type, Alloc >::device_pointer = device_value_type* |
| using mgcpp::device_vector< Type, Alloc >::device_value_type = typename device_value_type<Type>::type |
| using mgcpp::device_vector< Type, Alloc >::parent_type = dense_vector<device_vector<Type, Alloc>, Type> |
| using mgcpp::device_vector< Type, Alloc >::pointer = value_type* |
| using mgcpp::device_vector< Type, Alloc >::result_expr_type = dvec_expr<T> |
| using mgcpp::device_vector< Type, Alloc >::result_type = this_type |
| using mgcpp::device_vector< Type, Alloc >::shape_type = mgcpp::shape<1> |
| using mgcpp::device_vector< Type, Alloc >::this_type = device_vector<Type, Alloc> |
| using mgcpp::device_vector< Type, Alloc >::value_type = Type |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlineexplicitnoexcept |
|
inlineexplicit |
|
inlineexplicit |
|
inlineexplicit |
|
inlineexplicit |
|
inlineexplicit |
|
inlineexplicit |
|
inline |
|
inlineexplicit |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinestatic |
|
inline |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
1.8.13