Tomographer  v1.0a
Tomographer C++ Framework Documentation
util.h File Reference

(v1.0a)

Basic utilities for dealing with Eigen matrices and other types. More...

#include <complex>
#include <vector>
#include <Eigen/Core>
#include <Eigen/Dense>
#include <Eigen/StdVector>
+ Include dependency graph for util.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Tomographer::Tools::is_complex< Scalar >
 statically determine whether a type is complex More...
 
struct  Tomographer::Tools::complex_real_scalar< Scalar >
 The Real scalar type corresponding to a std::complex type. More...
 
struct  Tomographer::Tools::complex_real_scalar< std::complex< RealScalar > >
 Implementation of complex_real_scalar for complex types. More...
 
struct  Tomographer::Tools::eigen_std_vector< EigenType >
 Use this if you need an std::vector of any Eigen type. More...
 

Namespaces

 Tomographer
 Base namespace for the Tomographer project.
 
 Tomographer::Tools
 Various useful tools.
 

Functions

template<typename X >
std::enable_if< std::is_unsigned< X >::value, bool >::type Tomographer::Tools::is_positive (const X)
 Test whether the given value is positive or zero. More...
 
template<typename X >
std::enable_if<!std::is_unsigned< X >::value, bool >::type Tomographer::Tools::is_positive (const X val)
 See is_positive()
 
template<typename Der , typename Rng , typename RndDist , typename... IndexTypes>
auto Tomographer::dense_random (Rng &rng, RndDist &rnddist, IndexTypes...sizes) -> const Eigen::CwiseNullaryOp< tomo_internal::random_generator< Rng, RndDist, typename Eigen::internal::traits< Der >::Scalar >, Der >
 a matrix populated with random entries using C++'s random framework More...
 
template<typename Der , typename IndexType >
auto Tomographer::can_basis_vec (IndexType k, IndexType size) -> const Eigen::CwiseNullaryOp< tomo_internal::can_basis_vec_generator< typename Eigen::internal::traits< Der >::Scalar, IndexType >, Der >
 Expression for the k-th canonical basis vector of given dimension. More...
 
template<typename Der , typename IndexType >
auto Tomographer::can_basis_vec (IndexType k, IndexType j, IndexType rows, IndexType cols) -> const Eigen::CwiseNullaryOp< tomo_internal::can_basis_vec_generator< typename Eigen::internal::traits< Der >::Scalar, IndexType >, Der >
 Expression for the (k,j)-th canonical basis matrix of given dimension. More...
 
template<typename Der , typename... IndexTypes>
auto Tomographer::powers_of_two (IndexTypes...sizes) -> const Eigen::CwiseNullaryOp< tomo_internal::powers_of_two_generator< typename Eigen::internal::traits< Der >::Scalar >, Der >
 Expression for a 1-D expression of powers of two. More...
 
template<int RowFactorCTime, int ColFactorCTime, typename Derived , typename std::enable_if<(RowFactorCTime==Eigen::Dynamic||ColFactorCTime==Eigen::Dynamic), bool >::type dummy = true>
auto Tomographer::replicated (const Eigen::DenseBase< Derived > &x, int row_factor, int col_factor) -> const Eigen::Replicate< Derived, Eigen::Dynamic, Eigen::Dynamic >
 Replicate a Eigen Dense object; same call for compile-time & run-time dimensions. More...
 

Detailed Description

Basic utilities for dealing with Eigen matrices and other types.

Definition in file util.h.