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


Public Types | |
| using | this_type = device_matrix< 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 = dmat_expr< T > |
| using | allocator_type = Alloc |
| using | shape_type = mgcpp::shape< 2 > |
Public Member Functions | |
| device_matrix () noexcept | |
| ~device_matrix () noexcept | |
| device_matrix (Alloc const &alloc) | |
| device_matrix (shape_type shape, Alloc const &alloc=Alloc()) | |
| device_matrix (shape_type shape, value_type init, Alloc const &alloc=Alloc()) | |
| device_matrix (shape_type shape, const_pointer data, Alloc const &alloc=Alloc()) | |
| template<typename HostMat , MGCPP_CONCEPT(adapter< HostMat >::value) > | |
| device_matrix (HostMat const &host_mat, Alloc const &alloc=Alloc()) | |
| device_matrix (device_matrix< Type, Alloc > const &other) | |
| template<typename DenseMatrix > | |
| device_matrix (dense_matrix< DenseMatrix, Type > const &other) | |
| device_matrix (device_matrix< Type, Alloc > &&other) noexcept | |
| device_matrix< Type, Alloc > & | operator= (device_matrix< Type, Alloc > const &other) |
| template<typename DenseMatrix > | |
| device_matrix< Type, Alloc > & | operator= (dense_matrix< DenseMatrix, Type > const &other) |
| device_matrix< Type, Alloc > & | operator= (device_matrix< Type, Alloc > &&other) noexcept |
| device_matrix< Type, Alloc > & | zero () |
| device_matrix< Type, Alloc > & | resize (shape_type new_shape) |
| device_matrix< Type, Alloc > & | resize (shape_type new_shape, value_type init) |
| column_view< this_type, Type > | column (size_t i) noexcept |
| void | copy_to_host (pointer host_p) const |
| value_type | check_value (size_t i, size_t j) const |
| void | set_value (size_t i, size_t j, value_type value) |
| const_device_pointer | data () const noexcept |
| device_pointer | data_mutable () noexcept |
| size_t | capacity () const noexcept |
| thread_context * | context () const noexcept |
| device_pointer | release_data () noexcept |
| Alloc | allocator () const noexcept |
| size_t | device_id () const noexcept |
| shape_type const & | shape () const noexcept |
Public Member Functions inherited from mgcpp::matrix_base< MatrixType, Type > | |
| MatrixType const & | operator~ () const noexcept |
| MatrixType & | operator~ () noexcept |
Static Public Member Functions | |
| static device_matrix | from_list (std::initializer_list< std::initializer_list< value_type >> const &array, Alloc const &alloc=Alloc()) |
| template<size_t S1, size_t S2> | |
| static device_matrix | from_c_array (Type(&arr)[S1][S2], Alloc const &alloc=Alloc()) |
| using mgcpp::device_matrix< Type, Alloc >::allocator_type = Alloc |
| using mgcpp::device_matrix< Type, Alloc >::const_device_pointer = device_value_type const* |
| using mgcpp::device_matrix< Type, Alloc >::const_pointer = value_type const* |
| using mgcpp::device_matrix< Type, Alloc >::device_pointer = device_value_type* |
| using mgcpp::device_matrix< Type, Alloc >::device_value_type = typename device_value_type<Type>::type |
| using mgcpp::device_matrix< Type, Alloc >::pointer = value_type* |
| using mgcpp::device_matrix< Type, Alloc >::result_expr_type = dmat_expr<T> |
| using mgcpp::device_matrix< Type, Alloc >::result_type = this_type |
| using mgcpp::device_matrix< Type, Alloc >::shape_type = mgcpp::shape<2> |
| using mgcpp::device_matrix< Type, Alloc >::this_type = device_matrix<Type, Alloc> |
| using mgcpp::device_matrix< Type, Alloc >::value_type = Type |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlineexplicit |
|
inlineexplicit |
|
inlineexplicit |
|
inlineexplicit |
|
inlineexplicit |
|
inline |
|
inlineexplicit |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |
|
inline |
1.8.13