reconciliation_lib 0.1
Library for data reconciliation algorithms
Loading...
Searching...
No Matches
gsl_wrapper.h File Reference
#include <gsl/gsl_vector.h>
#include <gsl/gsl_matrix.h>
#include <iostream>
#include "dvr_assert.h"
Include dependency graph for gsl_wrapper.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  dvrlib::gsl_exception
 Exception type thrown by GSL when gsl_enable_exceptions() is active. More...
 
class  dvrlib::vector
 RAII wrapper around a heap-allocated gsl_vector. More...
 
class  dvrlib::vector_view
 Non-owning view into a contiguous slice of a vector or matrix row/column. More...
 
class  dvrlib::matrix
 RAII wrapper around a heap-allocated gsl_matrix. More...
 
class  dvrlib::matrix_view
 Non-owning view into a rectangular sub-region of a matrix. More...
 

Namespaces

namespace  dvrlib
 

Functions

void dvrlib::gsl_enable_exceptions ()
 Install a GSL error handler that throws gsl_exception instead of aborting.
 
void dvrlib::set_vdi_print_format (bool enable)
 Switch between standard and VDI 2048 pretty-print format for vectors and matrices written to std::ostream.
 
vector dvrlib::operator* (double d, const vector &src)
 Scalar multiplication d*src (commutative with vector::operator*).
 
std::ostream & dvrlib::operator<< (std::ostream &out, const vector &vec)
 Write a vector to an output stream.
 
matrix dvrlib::operator* (double d, const matrix &src)
 Scalar multiplication d*src (commutative with matrix::operator*).
 
std::ostream & dvrlib::operator<< (std::ostream &out, const matrix &mat)
 Write a matrix to an output stream.
 
std::ostream & dvrlib::operator<< (std::ostream &out, const gsl_vector &v)
 
std::ostream & dvrlib::operator<< (std::ostream &out, const gsl_matrix &m)
 
std::ostream & dvrlib::operator<< (std::ostream &out, const gsl_matrix_view &mv)