Expression Templates Library (ETL)
Namespaces | Functions
view_expression_builder.hpp File Reference

Contains all the operators and functions to build expressions for views. More...

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

Go to the source code of this file.

Namespaces

 etl
 Root namespace for the ETL library.
 

Functions

template<size_t D, etl_expr E>
auto etl::dim (E &&value, size_t i) -> detail::identity_helper< E, dim_view< detail::build_identity_type< E >, D >>
 Return a view representing the ith Dth dimension. More...
 
template<etl_expr E>
auto etl::row (E &&value, size_t i) -> detail::identity_helper< E, dim_view< detail::build_identity_type< E >, 1 >>
 Returns view representing the ith row of the given expression. More...
 
template<etl_expr E>
auto etl::col (E &&value, size_t i) -> detail::identity_helper< E, dim_view< detail::build_identity_type< E >, 2 >>
 Returns view representing the ith column of the given expression. More...
 
template<matrix E>
auto etl::sub (E &&value, size_t i) -> sub_view< detail::build_identity_type< E >, false >
 Returns view representing a sub dimensional view of the given expression. More...
 
template<etl_2d E>
auto etl::sub (E &&value, size_t i, size_t j, size_t m, size_t n) -> sub_matrix_2d< detail::build_identity_type< E >, false >
 Returns view representing a sub matrix view of the given expression. More...
 
template<etl_3d E>
auto etl::sub (E &&value, size_t i, size_t j, size_t k, size_t m, size_t n, size_t o) -> sub_matrix_3d< detail::build_identity_type< E >, false >
 Returns view representing a sub matrix view of the given expression. More...
 
template<etl_4d E>
auto etl::sub (E &&value, size_t i, size_t j, size_t k, size_t l, size_t m, size_t n, size_t o, size_t p) -> sub_matrix_4d< detail::build_identity_type< E >, false >
 Returns view representing a sub matrix view of the given expression. More...
 
template<etl_expr E>
auto etl::slice (E &&value, size_t first, size_t last) -> slice_view< detail::build_identity_type< E >>
 Returns view representing a slice view of the given expression. More...
 
template<size_t... Dims, etl_expr E>
auto etl::reshape (E &&value) -> fast_matrix_view< detail::build_identity_type< E >, is_dma< E >, Dims... >
 Returns view representing the reshape of another expression. More...
 
template<etl_expr E, typename... S>
auto etl::reshape (E &&value, S... sizes) -> dyn_matrix_view< detail::build_identity_type< E >, sizeof...(sizes)>
 Returns view representing the reshape of another expression. More...
 
template<typename D = double>
auto etl::magic (size_t i) -> detail::virtual_helper< D, magic_view< D >>
 Returns a view representing the square magic matrix. More...
 
template<size_t N, typename D = double>
auto etl::magic () -> detail::virtual_helper< D, fast_magic_view< D, N >>
 Returns a view representing the square magic matrix. More...
 

Detailed Description

Contains all the operators and functions to build expressions for views.