gslcpp
Modern-C++ Wrapper for GSL
d-v-iface.hpp
Go to the documentation of this file.
1 /// \file include/gslcpp/doc/d-v-iface.hpp
2 /// \brief Narrative documentation for gsl::vector.
3 /// \copyright 2022 Thomas E. Vaughan, all rights reserved.
4 
5 /// \page d_v_iface About gsl::v_iface
6 ///
7 /// The template-class gsl::v_iface provides the bulk of the C++ interface to
8 /// GSL's vector.
9 ///
10 /// gsl::v_iface has two descendants, gsl::vector and gsl::vector_view.
11 ///
12 /// - gsl::vector provides constructors, each of which allocates memory for
13 /// a new vector.
14 ///
15 /// - gsl::vector_view provides constructors, each of which provides a view
16 /// into an existing C-style array.
17 ///
18 /// Additionally, any instance of gsl::v_iface has member functions, each of
19 /// which provies a view like that provided by construction of
20 /// gsl::vector_view:
21 ///
22 /// - gsl::vector::subvector() returns a view of a portion of an existing
23 /// vector.
24 ///
25 /// - gsl::vector::view() return a view of the whole of an existing vector.
26 ///
27 /// A good overview of the interface can be found by looking at the
28 /// documentation for
29 ///
30 /// - gsl::v_iface (where the member-functions are listed) and
31 /// - v-iface.hpp (where the global functions are listed).
32 
33 // EOF