gslcpp
Modern-C++ Wrapper for GSL
Classes | Namespaces | Macros | Typedefs
container.hpp File Reference

Definition of gsl::container, w_vector, w_vector_view, w_matrix, w_matrix_view. More...

#include "complex.hpp"
#include <gsl/gsl_matrix.h>
#include <gsl/gsl_vector.h>
Include dependency graph for container.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  gsl::container< E >
 For type E of element, define type of each vector, matrix, and view. More...
 
struct  gsl::container< double >
 Specialization for double. More...
 
struct  gsl::container< double const >
 Specialization for double const. More...
 
struct  gsl::container< float >
 Specialization for float. More...
 
struct  gsl::container< float const >
 Specialization for float const. More...
 
struct  gsl::container< long double >
 Specialization for long double. More...
 
struct  gsl::container< long double const >
 Specialization for long double const. More...
 
struct  gsl::container< int >
 Specialization for int. More...
 
struct  gsl::container< int const >
 Specialization for int const. More...
 
struct  gsl::container< unsigned >
 Specialization for unsigned. More...
 
struct  gsl::container< unsigned const >
 Specialization for unsigned const. More...
 
struct  gsl::container< long >
 Specialization for long. More...
 
struct  gsl::container< long const >
 Specialization for long const. More...
 
struct  gsl::container< unsigned long >
 Specialization for unsigned long. More...
 
struct  gsl::container< unsigned long const >
 Specialization for unsigned long const. More...
 
struct  gsl::container< short >
 Specialization for short. More...
 
struct  gsl::container< short const >
 Specialization for short const. More...
 
struct  gsl::container< unsigned short >
 Specialization for unsigned short. More...
 
struct  gsl::container< unsigned short const >
 Specialization for unsigned short const. More...
 
struct  gsl::container< char >
 Specialization for char. More...
 
struct  gsl::container< char const >
 Specialization for char const. More...
 
struct  gsl::container< unsigned char >
 Specialization for unsigned char. More...
 
struct  gsl::container< unsigned char const >
 Specialization for unsigned char const. More...
 
struct  gsl::container< complex< double > >
 Specialization for gsl_complex. More...
 
struct  gsl::container< complex< double > const >
 Specialization for gsl_complex const. More...
 
struct  gsl::container< complex< float > >
 Specialization for gsl_complex_float. More...
 
struct  gsl::container< complex< float > const >
 Specialization for gsl_complex_float const. More...
 
struct  gsl::container< complex< long double > >
 Specialization for gsl_complex_long_double. More...
 
struct  gsl::container< complex< long double > const >
 Specialization for gsl_complex_long_double const. More...
 

Namespaces

 gsl
 Namespace for C++-interface to GSL.
 

Macros

#define HAVE_INLINE
 Indicate that the inline-definition of each function in GSL should used. More...
 

Typedefs

template<typename E >
using gsl::w_vector = typename container< E >::vector
 GSL's native vector-type corresponding to element-type E. More...
 
template<typename E >
using gsl::w_vector_view = typename container< E >::vector_view
 GSL's native view of vector corresponding to element-type E. More...
 
template<typename E >
using gsl::w_matrix = typename container< E >::matrix
 GSL's native matrix-type corresponding to element-type E. More...
 
template<typename E >
using gsl::w_matrix_view = typename container< E >::matrix_view
 GSL's native view of matrix corresponding to element-type E. More...
 

Detailed Description

Definition of gsl::container, w_vector, w_vector_view, w_matrix, w_matrix_view.

Definition in file container.hpp.


Class Documentation

◆ gsl::container

struct gsl::container

template<typename E>
struct gsl::container< E >

For type E of element, define type of each vector, matrix, and view.

Template Parameters
EType of each element in vector or matrix.

Definition at line 31 of file container.hpp.

◆ gsl::container< double >

struct gsl::container< double >

Specialization for double.

See also
container

Definition at line 36 of file container.hpp.

Class Members
typedef gsl_matrix matrix GSL's native type for matrix.
typedef gsl_matrix_view matrix_view GSL's native type for matrix-view.
typedef gsl_vector vector GSL's native type for vector.
typedef gsl_vector_view vector_view GSL's native type for vector-view.

◆ gsl::container< double const >

struct gsl::container< double const >

Specialization for double const.

See also
container

Definition at line 46 of file container.hpp.

Class Members
typedef gsl_matrix const matrix GSL's native type for matrix.
typedef gsl_matrix_const_view matrix_view GSL's native type for matrix-view.
typedef gsl_vector const vector GSL's native type for vector.
typedef gsl_vector_const_view vector_view GSL's native type for vector-view.

◆ gsl::container< float >

struct gsl::container< float >

Specialization for float.

See also
container

Definition at line 63 of file container.hpp.

Class Members
typedef gsl_matrix_float matrix GSL's native type for matrix.
typedef gsl_matrix_float_view matrix_view GSL's native type for matrix-view.
typedef gsl_vector_float vector GSL's native type for vector.
typedef gsl_vector_float_view vector_view GSL's native type for vector-view.

◆ gsl::container< float const >

struct gsl::container< float const >

Specialization for float const.

See also
container

Definition at line 80 of file container.hpp.

Class Members
typedef gsl_matrix_float const matrix GSL's native type for matrix.
typedef gsl_matrix_float_const_view matrix_view GSL's native type for matrix-view.
typedef gsl_vector_float const vector GSL's native type for vector.
typedef gsl_vector_float_const_view vector_view GSL's native type for vector-view.

◆ gsl::container< long double >

struct gsl::container< long double >

Specialization for long double.

See also
container

Definition at line 97 of file container.hpp.

Class Members
typedef gsl_matrix_long_double matrix GSL's native type for matrix.
typedef gsl_matrix_long_double_view matrix_view GSL's native type for matrix-view.
typedef gsl_vector_long_double vector GSL's native type for vector.
typedef gsl_vector_long_double_view vector_view GSL's native type for vector-view.

◆ gsl::container< long double const >

struct gsl::container< long double const >

Specialization for long double const.

See also
container

Definition at line 114 of file container.hpp.

Class Members
typedef gsl_matrix_long_double const matrix GSL's native type for matrix.
typedef gsl_matrix_long_double_const_view matrix_view GSL's native type for matrix-view.
typedef gsl_vector_long_double const vector GSL's native type for vector.
typedef gsl_vector_long_double_const_view vector_view GSL's native type for vector-view.

◆ gsl::container< int >

struct gsl::container< int >

Specialization for int.

See also
container

Definition at line 131 of file container.hpp.

Class Members
typedef gsl_matrix_int matrix GSL's native type for matrix.
typedef gsl_matrix_int_view matrix_view GSL's native type for matrix-view.
typedef gsl_vector_int vector GSL's native type for vector.
typedef gsl_vector_int_view vector_view GSL's native type for vector-view.

◆ gsl::container< int const >

struct gsl::container< int const >

Specialization for int const.

See also
container

Definition at line 148 of file container.hpp.

Class Members
typedef gsl_matrix_int const matrix GSL's native type for matrix.
typedef gsl_matrix_int_const_view matrix_view GSL's native type for matrix-view.
typedef gsl_vector_int const vector GSL's native type for vector.
typedef gsl_vector_int_const_view vector_view GSL's native type for vector-view.

◆ gsl::container< unsigned >

struct gsl::container< unsigned >

Specialization for unsigned.

See also
container

Definition at line 165 of file container.hpp.

Class Members
typedef gsl_matrix_uint matrix GSL's native type for matrix.
typedef gsl_matrix_uint_view matrix_view GSL's native type for matrix-view.
typedef gsl_vector_uint vector GSL's native type for vector.
typedef gsl_vector_uint_view vector_view GSL's native type for vector-view.

◆ gsl::container< unsigned const >

struct gsl::container< unsigned const >

Specialization for unsigned const.

See also
container

Definition at line 182 of file container.hpp.

Class Members
typedef gsl_matrix_uint const matrix GSL's native type for matrix.
typedef gsl_matrix_uint_const_view matrix_view GSL's native type for matrix-view.
typedef gsl_vector_uint const vector GSL's native type for vector.
typedef gsl_vector_uint_const_view vector_view GSL's native type for vector-view.

◆ gsl::container< long >

struct gsl::container< long >

Specialization for long.

See also
container

Definition at line 199 of file container.hpp.

Class Members
typedef gsl_matrix_long matrix GSL's native type for matrix.
typedef gsl_matrix_long_view matrix_view GSL's native type for matrix-view.
typedef gsl_vector_long vector GSL's native type for vector.
typedef gsl_vector_long_view vector_view GSL's native type for vector-view.

◆ gsl::container< long const >

struct gsl::container< long const >

Specialization for long const.

See also
container

Definition at line 216 of file container.hpp.

Class Members
typedef gsl_matrix_long const matrix GSL's native type for matrix.
typedef gsl_matrix_long_const_view matrix_view GSL's native type for matrix-view.
typedef gsl_vector_long const vector GSL's native type for vector.
typedef gsl_vector_long_const_view vector_view GSL's native type for vector-view.

◆ gsl::container< unsigned long >

struct gsl::container< unsigned long >

Specialization for unsigned long.

See also
container

Definition at line 233 of file container.hpp.

Class Members
typedef gsl_matrix_ulong matrix GSL's native type for matrix.
typedef gsl_matrix_ulong_view matrix_view GSL's native type for matrix-view.
typedef gsl_vector_ulong vector GSL's native type for vector.
typedef gsl_vector_ulong_view vector_view GSL's native type for vector-view.

◆ gsl::container< unsigned long const >

struct gsl::container< unsigned long const >

Specialization for unsigned long const.

See also
container

Definition at line 250 of file container.hpp.

Class Members
typedef gsl_matrix_ulong const matrix GSL's native type for matrix.
typedef gsl_matrix_ulong_const_view matrix_view GSL's native type for matrix-view.
typedef gsl_vector_ulong const vector GSL's native type for vector.
typedef gsl_vector_ulong_const_view vector_view GSL's native type for vector-view.

◆ gsl::container< short >

struct gsl::container< short >

Specialization for short.

See also
container

Definition at line 267 of file container.hpp.

Class Members
typedef gsl_matrix_short matrix GSL's native type for matrix.
typedef gsl_matrix_short_view matrix_view GSL's native type for matrix-view.
typedef gsl_vector_short vector GSL's native type for vector.
typedef gsl_vector_short_view vector_view GSL's native type for vector-view.

◆ gsl::container< short const >

struct gsl::container< short const >

Specialization for short const.

See also
container

Definition at line 284 of file container.hpp.

Class Members
typedef gsl_matrix_short const matrix GSL's native type for matrix.
typedef gsl_matrix_short_const_view matrix_view GSL's native type for matrix-view.
typedef gsl_vector_short const vector GSL's native type for vector.
typedef gsl_vector_short_const_view vector_view GSL's native type for vector-view.

◆ gsl::container< unsigned short >

struct gsl::container< unsigned short >

Specialization for unsigned short.

See also
container

Definition at line 301 of file container.hpp.

Class Members
typedef gsl_matrix_ushort matrix GSL's native type for matrix.
typedef gsl_matrix_ushort_view matrix_view GSL's native type for matrix-view.
typedef gsl_vector_ushort vector GSL's native type for vector.
typedef gsl_vector_ushort_view vector_view GSL's native type for vector-view.

◆ gsl::container< unsigned short const >

struct gsl::container< unsigned short const >

Specialization for unsigned short const.

See also
container

Definition at line 318 of file container.hpp.

Class Members
typedef gsl_matrix_ushort const matrix GSL's native type for matrix.
typedef gsl_matrix_ushort_const_view matrix_view GSL's native type for matrix-view.
typedef gsl_vector_ushort const vector GSL's native type for vector.
typedef gsl_vector_ushort_const_view vector_view GSL's native type for vector-view.

◆ gsl::container< char >

struct gsl::container< char >

Specialization for char.

See also
container

Definition at line 335 of file container.hpp.

Class Members
typedef gsl_matrix_char matrix GSL's native type for matrix.
typedef gsl_matrix_char_view matrix_view GSL's native type for matrix-view.
typedef gsl_vector_char vector GSL's native type for vector.
typedef gsl_vector_char_view vector_view GSL's native type for vector-view.

◆ gsl::container< char const >

struct gsl::container< char const >

Specialization for char const.

See also
container

Definition at line 352 of file container.hpp.

Class Members
typedef gsl_matrix_char const matrix GSL's native type for matrix.
typedef gsl_matrix_char_const_view matrix_view GSL's native type for matrix-view.
typedef gsl_vector_char const vector GSL's native type for vector.
typedef gsl_vector_char_const_view vector_view GSL's native type for vector-view.

◆ gsl::container< unsigned char >

struct gsl::container< unsigned char >

Specialization for unsigned char.

See also
container

Definition at line 369 of file container.hpp.

Class Members
typedef gsl_matrix_uchar matrix GSL's native type for matrix.
typedef gsl_matrix_uchar_view matrix_view GSL's native type for matrix-view.
typedef gsl_vector_uchar vector GSL's native type for vector.
typedef gsl_vector_uchar_view vector_view GSL's native type for vector-view.

◆ gsl::container< unsigned char const >

struct gsl::container< unsigned char const >

Specialization for unsigned char const.

See also
container

Definition at line 386 of file container.hpp.

Class Members
typedef gsl_matrix_uchar const matrix GSL's native type for matrix.
typedef gsl_matrix_uchar_const_view matrix_view GSL's native type for matrix-view.
typedef gsl_vector_uchar const vector GSL's native type for vector.
typedef gsl_vector_uchar_const_view vector_view GSL's native type for vector-view.

◆ gsl::container< complex< double > >

struct gsl::container< complex< double > >

Specialization for gsl_complex.

See also
container

Definition at line 403 of file container.hpp.

Class Members
typedef gsl_matrix_complex matrix GSL's native type for matrix.
typedef gsl_matrix_complex_view matrix_view GSL's native type for matrix-view.
typedef gsl_vector_complex vector GSL's native type for vector.
typedef gsl_vector_complex_view vector_view GSL's native type for vector-view.

◆ gsl::container< complex< double > const >

struct gsl::container< complex< double > const >

Specialization for gsl_complex const.

See also
container

Definition at line 420 of file container.hpp.

Class Members
typedef gsl_matrix_complex const matrix GSL's native type for matrix.
typedef gsl_matrix_complex_const_view matrix_view GSL's native type for matrix-view.
typedef gsl_vector_complex const vector GSL's native type for vector.
typedef gsl_vector_complex_const_view vector_view GSL's native type for vector-view.

◆ gsl::container< complex< float > >

struct gsl::container< complex< float > >

Specialization for gsl_complex_float.

See also
container

Definition at line 437 of file container.hpp.

Class Members
typedef gsl_matrix_complex_float matrix GSL's native type for matrix.
typedef gsl_matrix_complex_float_view matrix_view GSL's native type for matrix-view.
typedef gsl_vector_complex_float vector GSL's native type for vector.
typedef gsl_vector_complex_float_view vector_view GSL's native type for vector.

◆ gsl::container< complex< float > const >

struct gsl::container< complex< float > const >

Specialization for gsl_complex_float const.

See also
container

Definition at line 454 of file container.hpp.

Class Members
typedef gsl_matrix_complex_float const matrix GSL's native type for matrix.
typedef gsl_matrix_complex_float_const_view matrix_view GSL's native type for matrix-view.
typedef gsl_vector_complex_float const vector GSL's native type for vector.
typedef gsl_vector_complex_float_const_view vector_view GSL's native type for vector.

◆ gsl::container< complex< long double > >

struct gsl::container< complex< long double > >

Specialization for gsl_complex_long_double.

See also
container

Definition at line 471 of file container.hpp.

Class Members
typedef gsl_matrix_complex_long_double matrix GSL's native type for matrix.
typedef gsl_matrix_complex_long_double_view matrix_view GSL's native type for matrix-view.
typedef gsl_vector_complex_long_double vector GSL's native type for vector.
typedef gsl_vector_complex_long_double_view vector_view GSL's native type for vector.

◆ gsl::container< complex< long double > const >

struct gsl::container< complex< long double > const >

Specialization for gsl_complex_long_double const.

See also
container

Definition at line 488 of file container.hpp.

Class Members
typedef gsl_matrix_complex_long_double const matrix GSL's native type for matrix.
typedef gsl_matrix_complex_long_double_const_view matrix_view GSL's native type for matrix-view.
typedef gsl_vector_complex_long_double const vector GSL's native type for vector.
typedef gsl_vector_complex_long_double_const_view vector_view GSL's native type for vector.

Macro Definition Documentation

◆ HAVE_INLINE

#define HAVE_INLINE

Indicate that the inline-definition of each function in GSL should used.

HAVE_INLINE should be defined before the inclusion of gsl_vector.h.

Definition at line 19 of file container.hpp.