ginkgo/core/base/segmented_array.hpp Source File#
|
Reference API
|
segmented_array.hpp
Definition executor.hpp:615
Definition array.hpp:166
array< ValueType > make_array_view(std::shared_ptr< const Executor > exec, size_type size, ValueType *data)
Definition array.hpp:787
STL namespace.
const T * get_const_flat_data() const
segmented_array(std::shared_ptr< const Executor > exec, const segmented_array &other)
static segmented_array create_from_offsets(gko::array< T > buffer, gko::array< int64 > offsets)
segmented_array(std::shared_ptr< const Executor > exec)
static segmented_array create_from_sizes(gko::array< T > buffer, const gko::array< int64 > &sizes)
size_type get_segment_count() const
segmented_array(std::shared_ptr< const Executor > exec, segmented_array &&other)
T * get_flat_data()
size_type get_size() const
std::shared_ptr< const Executor > get_executor() const
static segmented_array create_from_sizes(const gko::array< int64 > &sizes)
const gko::array< int64 > & get_offsets() const
static segmented_array create_from_offsets(gko::array< int64 > offsets)
Generated by