OpenABF 2.1.0
Loading...
Searching...
No Matches
Namespaces | Classes | Functions | Variables
OpenABF::detail Namespace Reference

Implementation details. More...

Namespaces

namespace  ABF
 ABF and ABF++ implementation details
 

Classes

class  FilteringIterator
 Input iterator that skips elements not matching a predicate. More...
 
struct  Range
 Lightweight non-owning range adapter holding begin/end iterators. More...
 

Functions

template<typename T >
auto vec_to_string (const T &v) -> std::string
 
template<class ForwardContainer , class UnaryPred >
auto filter (ForwardContainer v, UnaryPred p)
 
template<class SparseMatrix , class DenseMatrix , class Solver , std::enable_if_t<!is_instance_of_v< Solver, Eigen::LeastSquaresConjugateGradient >, bool > = false>
auto SolveLeastSquares (SparseMatrix A, SparseMatrix b) -> DenseMatrix
 

Variables

template<class T , template< class... > class U>
constexpr bool is_instance_of_v = std::false_type{}
 
template<template< class... > class U, class... Vs>
constexpr bool is_instance_of_v< U< Vs... >, U > = std::true_type{}
 

Detailed Description

Implementation details.

Function Documentation

◆ filter()

auto OpenABF::detail::filter ( ForwardContainer  v,
UnaryPred  p 
)

Remove elements which meet the given predicate

◆ SolveLeastSquares()

template<class SparseMatrix , class DenseMatrix , class Solver , std::enable_if_t<!is_instance_of_v< Solver, Eigen::LeastSquaresConjugateGradient >, bool > = false>
auto OpenABF::detail::SolveLeastSquares ( SparseMatrix  A,
SparseMatrix  b 
) -> DenseMatrix
private

Solve least squares using A'Ab

Solve least squares with LeastSquaresConjugateGradient

◆ vec_to_string()

template<typename T >
auto OpenABF::detail::vec_to_string ( const T &  v) -> std::string

Debug: Print a vector of elements to a string

Variable Documentation

◆ is_instance_of_v

template<class T , template< class... > class U>
constexpr bool OpenABF::detail::is_instance_of_v = std::false_type{}
constexprprivate

Check if type is an instance of a template type: False

◆ is_instance_of_v< U< Vs... >, U >

template<template< class... > class U, class... Vs>
constexpr bool OpenABF::detail::is_instance_of_v< U< Vs... >, U > = std::true_type{}
constexprprivate

Check if type is an instance of a template type: True