alpaqa pantr
Nonconvex constrained optimization
Loading...
Searching...
No Matches
Namespaces | Macros | Functions
print.hpp File Reference
#include <alpaqa/export.hpp>
#include <alpaqa/util/float.hpp>
#include <iosfwd>
#include <limits>
#include <string>
#include <Eigen/Core>
+ Include dependency graph for print.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  alpaqa
 

Macros

#define ALPAQA_PRINT_CSV_OVL_IMPL(type)
 
#define ALPAQA_PRINT_OVL_IMPL(name, type)
 
#define ALPAQA_PRINT_OVL(type)
 

Functions

template<std::floating_point F>
std::string float_to_str (F value, int precision)
 
template<class T >
std::ostream & print_csv_impl (std::ostream &os, const T &M, std::string_view sep, std::string_view begin, std::string_view end)
 
template<class T >
std::ostream & print_matlab_impl (std::ostream &os, const T &M, std::string_view end)
 
template<class T >
std::ostream & print_python_impl (std::ostream &os, const T &M, std::string_view end)
 
std::ostream & print_csv (std::ostream &os, const Eigen::Ref< const Eigen::MatrixX< float > > &M, std::string_view sep, std::string_view begin, std::string_view end)
 
std::ostream & print_csv (std::ostream &os, const Eigen::Ref< const Eigen::MatrixX< float > > &M, std::string_view sep, std::string_view begin)
 
std::ostream & print_csv (std::ostream &os, const Eigen::Ref< const Eigen::MatrixX< float > > &M, std::string_view sep)
 
std::ostream & print_csv (std::ostream &os, const Eigen::Ref< const Eigen::MatrixX< float > > &M)
 
std::ostream & print_matlab (std::ostream &os, const Eigen::Ref< const Eigen::MatrixX< float > > &M, std::string_view end)
 
std::ostream & print_matlab (std::ostream &os, const Eigen::Ref< const Eigen::MatrixX< float > > &M)
 
std::ostream & print_python (std::ostream &os, const Eigen::Ref< const Eigen::MatrixX< float > > &M, std::string_view end)
 
std::ostream & print_python (std::ostream &os, const Eigen::Ref< const Eigen::MatrixX< float > > &M)
 
std::ostream & print_csv (std::ostream &os, const Eigen::Ref< const Eigen::MatrixX< double > > &M, std::string_view sep, std::string_view begin, std::string_view end)
 
std::ostream & print_csv (std::ostream &os, const Eigen::Ref< const Eigen::MatrixX< double > > &M, std::string_view sep, std::string_view begin)
 
std::ostream & print_csv (std::ostream &os, const Eigen::Ref< const Eigen::MatrixX< double > > &M, std::string_view sep)
 
std::ostream & print_csv (std::ostream &os, const Eigen::Ref< const Eigen::MatrixX< double > > &M)
 
std::ostream & print_matlab (std::ostream &os, const Eigen::Ref< const Eigen::MatrixX< double > > &M, std::string_view end)
 
std::ostream & print_matlab (std::ostream &os, const Eigen::Ref< const Eigen::MatrixX< double > > &M)
 
std::ostream & print_python (std::ostream &os, const Eigen::Ref< const Eigen::MatrixX< double > > &M, std::string_view end)
 
std::ostream & print_python (std::ostream &os, const Eigen::Ref< const Eigen::MatrixX< double > > &M)
 
std::ostream & print_csv (std::ostream &os, const Eigen::Ref< const Eigen::MatrixX< long double > > &M, std::string_view sep, std::string_view begin, std::string_view end)
 
std::ostream & print_csv (std::ostream &os, const Eigen::Ref< const Eigen::MatrixX< long double > > &M, std::string_view sep, std::string_view begin)
 
std::ostream & print_csv (std::ostream &os, const Eigen::Ref< const Eigen::MatrixX< long double > > &M, std::string_view sep)
 
std::ostream & print_csv (std::ostream &os, const Eigen::Ref< const Eigen::MatrixX< long double > > &M)
 
std::ostream & print_matlab (std::ostream &os, const Eigen::Ref< const Eigen::MatrixX< long double > > &M, std::string_view end)
 
std::ostream & print_matlab (std::ostream &os, const Eigen::Ref< const Eigen::MatrixX< long double > > &M)
 
std::ostream & print_python (std::ostream &os, const Eigen::Ref< const Eigen::MatrixX< long double > > &M, std::string_view end)
 
std::ostream & print_python (std::ostream &os, const Eigen::Ref< const Eigen::MatrixX< long double > > &M)
 

Macro Definition Documentation

◆ ALPAQA_PRINT_CSV_OVL_IMPL

#define ALPAQA_PRINT_CSV_OVL_IMPL (   type)
Value:
inline std::ostream &print_csv( \
std::ostream &os, const Eigen::Ref<const Eigen::MatrixX<type>> &M, \
std::string_view sep, std::string_view begin, std::string_view end) { \
return print_csv_impl(os, M, sep, begin, end); \
} \
inline std::ostream &print_csv( \
std::ostream &os, const Eigen::Ref<const Eigen::MatrixX<type>> &M, \
std::string_view sep, std::string_view begin) { \
return print_csv_impl(os, M, sep, begin); \
} \
inline std::ostream &print_csv( \
std::ostream &os, const Eigen::Ref<const Eigen::MatrixX<type>> &M, \
std::string_view sep) { \
return print_csv_impl(os, M, sep); \
} \
inline std::ostream &print_csv( \
std::ostream &os, const Eigen::Ref<const Eigen::MatrixX<type>> &M) { \
return print_csv_impl(os, M); \
}
std::ostream & print_csv(std::ostream &os, const Eigen::Ref< const Eigen::MatrixX< float > > &M, std::string_view sep, std::string_view begin, std::string_view end)
Definition: print.hpp:66
std::ostream & print_csv_impl(std::ostream &os, const T &M, std::string_view sep, std::string_view begin, std::string_view end)
Definition: print.tpp:83

Definition at line 31 of file print.hpp.

◆ ALPAQA_PRINT_OVL_IMPL

#define ALPAQA_PRINT_OVL_IMPL (   name,
  type 
)
Value:
inline std::ostream &print_##name( \
std::ostream &os, const Eigen::Ref<const Eigen::MatrixX<type>> &M, \
std::string_view end) { \
return print_##name##_impl(os, M, end); \
} \
inline std::ostream &print_##name( \
std::ostream &os, const Eigen::Ref<const Eigen::MatrixX<type>> &M) { \
return print_##name##_impl(os, M); \
}

Definition at line 51 of file print.hpp.

◆ ALPAQA_PRINT_OVL

#define ALPAQA_PRINT_OVL (   type)
Value:
ALPAQA_PRINT_OVL_IMPL(matlab, type) \
ALPAQA_PRINT_OVL_IMPL(python, type)
#define ALPAQA_PRINT_CSV_OVL_IMPL(type)
Definition: print.hpp:31

Definition at line 61 of file print.hpp.