Expression Templates Library (ETL)
Classes | Namespaces | Typedefs | Functions | Variables
sub_view.hpp File Reference

Contains the sub_view implementation. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  etl::etl_traits< etl::sub_view< T, Aligned > >
 Specialization for sub_view. More...
 

Namespaces

 etl
 Root namespace for the ETL library.
 

Typedefs

using etl::this_type = sub_view< T, Aligned >
 The type of this expression. More...
 

Functions

template<matrix T, bool Aligned>
 etl::requires (!fast_sub_view_able< T >) struct sub_view< T
 View that shows a sub matrix of an expression. More...
 
 etl::sub_view (sub_type sub_expr, size_t i)
 Construct a new sub_view over the given sub expression. More...
 
const_return_type etl::operator[] (size_t j) const
 Returns the element at the given index. More...
 
value_type etl::read_flat (size_t j) const noexcept
 Returns the value at the given index This function never has side effects. More...
 
template<typename... S>
 etl::operator() (S... args) const requires(sizeof...(S)+1
 Access to the element at the given (args...) position. More...
 
template<matrix T, bool Aligned>
 etl::requires (fast_sub_view_able< T >) struct sub_view< T
 View that shows a sub matrix of an expression. More...
 
template<typename Y >
const auto & etl::gpu_compute_hint ([[maybe_unused]] Y &y) const
 Return a GPU computed version of this expression. More...
 
void etl::visit (detail::evaluator_visitor &visitor) const
 Apply the given visitor to this expression and its descendants. More...
 
value_type * etl::gpu_memory () const noexcept
 Return GPU memory of this expression, if any. More...
 
void etl::gpu_evict () const noexcept
 Evict the expression from GPU.
 
void etl::invalidate_cpu () const noexcept
 Invalidates the CPU memory.
 
void etl::invalidate_gpu () const noexcept
 Invalidates the GPU memory.
 
void etl::validate_cpu () const noexcept
 Validates the CPU memory.
 
void etl::validate_gpu () const noexcept
 Validates the GPU memory.
 
void etl::ensure_gpu_allocated () const
 Ensures that the GPU memory is allocated and that the GPU memory is up to date (to undefined value).
 
void etl::ensure_gpu_up_to_date () const
 Copy back from the GPU to the expression memory if necessary. More...
 
void etl::ensure_cpu_up_to_date () const
 Ensures that the GPU memory is allocated and that the GPU memory is up to date (to undefined value). More...
 
void etl::gpu_copy_from ([[maybe_unused]] const value_type *new_gpu_memory) const
 Copy from GPU to GPU. More...
 
bool etl::is_cpu_up_to_date () const noexcept
 Indicates if the CPU memory is up to date. More...
 
bool etl::is_gpu_up_to_date () const noexcept
 Indicates if the GPU memory is up to date. More...
 
std::ostream & etl::operator<< (std::ostream &os, const sub_view &v)
 Print a representation of the view on the given stream. More...
 

Variables

Aligned etl::Aligned
 
Aligned etl::assignable< sub_view< T, Aligned >, value_t< T > >
 
Aligned etl::value_testable< sub_view< T, Aligned > >
 
Aligned etl::inplace_assignable< sub_view< T, Aligned > >
 The type of this expression. More...
 
Aligned etl::__pad0__
 

Detailed Description

Contains the sub_view implementation.