Expression Templates Library (ETL)
stop.hpp
1 //=======================================================================
2 // Copyright (c) 2014-2023 Baptiste Wicht
3 // Distributed under the terms of the MIT License.
4 // (See accompanying file LICENSE or copy at
5 // http://opensource.org/licenses/MIT)
6 //=======================================================================
7 
8 #pragma once
9 
10 namespace etl {
11 
17 template <dyn_expr T>
18 auto s(T&& value) {
19  // Sizes will be directly propagated
21  mat = value;
22  return mat;
23 }
24 
28 template <typename M, typename Sequence>
30 
34 template <typename M, size_t... I>
35 struct build_matrix_type<M, std::index_sequence<I...>> {
37 };
38 
44 template <fast_expr T>
45 auto s(T&& value) {
47  mat = value;
48  return mat;
49 }
50 
51 } // end of namespace etl
auto s(T &&value)
Force the evaluation of the given expression.
Definition: stop.hpp:18
TMP struct to build fast matrix type from a fast expression type.
Definition: stop.hpp:29
Traits to get information about ETL types.
Definition: tmp.hpp:68
Root namespace for the ETL library.
Definition: adapter.hpp:15
static constexpr size_t dimensions()
Return the number of dimensions of the expression.
Definition: traits_base.hpp:31
Matrix with run-time fixed dimensions.
Definition: dyn.hpp:26
Matrix with compile-time fixed dimensions.
Definition: fast.hpp:26