aimstil  5.0.5
numeric_array.tpp
Go to the documentation of this file.
1 
2 
3 namespace til
4 {
5 
6  namespace detail
7  {
8  //-------------------------------------------------------------------------
9 
10  template < typename T, std::size_t D >
11  numeric_array_impl<T,D>::numeric_array_impl()
12  : Base()
13  {
14  for (std::size_t i = 0; i < D; ++i) (*this)[i] = 0;
15  }
16 
17  //-------------------------------------------------------------------------
18 
19  /*
20  template < typename T, std::size_t D >
21  numeric_array_impl<T,D>::numeric_array_impl
22 #ifdef NDEBUG
23  (std::size_t)
24 #else
25  (std::size_t d)
26 #endif
27  : Base()
28  {
29  assert(d == D);
30  for (std::size_t i = 0; i < D; ++i) (*this)[i] = 0;
31  }
32 
33  //-------------------------------------------------------------------------
34 
35  template < typename T, std::size_t D >
36  numeric_array_impl<T,D>::numeric_array_impl(std::size_t d, typename boost::call_traits<T>::param_type t)
37  : Base()
38  {
39  assert(d == D);
40  til::fill(*this, t);
41  }
42 */
43 
44 
45  } // namespace detail
46 
47 
48 } // namespace til
49 
50