c_array.hpp 957 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /**
  2. * -*- c++ -*-
  3. *
  4. * \file c_array.hpp
  5. *
  6. * \brief provides specializations of matrix and vector operations for c arrays and c matrices.
  7. *
  8. * Copyright (c) 2009, Gunter Winkler
  9. *
  10. * Distributed under the Boost Software License, Version 1.0. (See
  11. * accompanying file LICENSE_1_0.txt or copy at
  12. * http://www.boost.org/LICENSE_1_0.txt)
  13. *
  14. * \author Gunter Winkler (guwi17 at gmx dot de)
  15. */
  16. #ifndef BOOST_NUMERIC_UBLAS_OPERATION_C_ARRAY_HPP
  17. #define BOOST_NUMERIC_UBLAS_OPERATION_C_ARRAY_HPP
  18. #include <boost/numeric/ublas/traits/c_array.hpp>
  19. namespace boost { namespace numeric { namespace ublas {
  20. namespace detail {
  21. } // namespace boost::numeric::ublas::detail
  22. template <typename T>
  23. BOOST_UBLAS_INLINE
  24. typename ExprT::const_iterator begin(vector_expression<ExprT> const& e)
  25. {
  26. return detail::begin_impl<typename ExprT::type_category>::apply(e());
  27. }
  28. }}} // Namespace boost::numeric::ublas
  29. #endif