1#ifndef TATAMI_ARRAY_VIEW_HPP
2#define TATAMI_ARRAY_VIEW_HPP
22template<
typename Type_>
30 ArrayView(
const Type_*
const ptr,
const std::size_t number) : my_ptr(ptr), my_number(number) {}
40 std::size_t
size()
const {
return my_number; }
45 const Type_*
data()
const {
return my_ptr; }
50 const Type_*
begin()
const {
return my_ptr; }
55 const Type_*
end()
const {
return my_ptr + my_number; }
67 std::size_t my_number;
View into a pre-allocated array.
Definition ArrayView.hpp:23
const Type_ * end() const
Definition ArrayView.hpp:55
Type_ operator[](std::size_t i) const
Definition ArrayView.hpp:61
ArrayView(const Type_ *const ptr, const std::size_t number)
Definition ArrayView.hpp:30
const Type_ * begin() const
Definition ArrayView.hpp:50
ArrayView()
Definition ArrayView.hpp:35
const Type_ * data() const
Definition ArrayView.hpp:45
std::size_t size() const
Definition ArrayView.hpp:40
Flexible representations for matrix data.
Definition Extractor.hpp:15