alpaqa
dll
Nonconvex constrained optimization
Loading...
Searching...
No Matches
src
alpaqa
include
alpaqa
util
print.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <Eigen/Core>
4
#include <guanaqo/eigen/view.hpp>
5
#include <guanaqo/print.hpp>
6
7
namespace
alpaqa
{
8
9
using
guanaqo::float_to_str;
10
using
guanaqo::float_to_str_vw;
11
12
template
<
class
Derived>
13
std::ostream &
print_python
(std::ostream &os,
14
const
Eigen::DenseBase<Derived> &M) {
15
if
constexpr
(
requires
{ M.derived().data(); })
16
return
guanaqo::print_python(os, guanaqo::as_view(M));
17
else
18
return
print_python
(os, M.eval());
19
}
20
21
}
// namespace alpaqa
alpaqa
Definition
anderson.hpp:10
alpaqa::print_python
std::ostream & print_python(std::ostream &os, const Eigen::DenseBase< Derived > &M)
Definition
print.hpp:13
Generated on
for alpaqa by
1.14.0