math_utils.h Source File
|
CPP API
|
math_utils.h
Go to the documentation of this file.
39 IOResult<void> map_to_nonnegative(Eigen::Ref<Eigen::VectorX<FP>> x, const FP tolerance = Limits<FP>::zero_tolerance())
A collection of classes to simplify handling of matrix shapes in meta programming.
Definition: models/abm/analyze_result.h:30
auto failure(const IOStatus &s)
Create an object that is implicitly convertible to an error IOResult<T>.
Definition: io.h:380
@ InvalidValue
auto evaluate_intermediate(Intermediate &&x)
Evaluate an intermediate expression to its underlying type, if necessary.
Definition: math_utils.h:78
auto success()
Create an object that is implicitly convertible to a succesful IOResult<void>.
Definition: io.h:359
IOResult< void > map_to_nonnegative(Eigen::Ref< Eigen::VectorX< FP >> x, const FP tolerance=Limits< FP >::zero_tolerance())
Map a vector onto nonnegative values while preserving its nonnegative sum.
Definition: math_utils.h:39
boost::outcome_v2::unchecked< T, IOStatus > IOResult
Value-or-error type for operations that return a value but can fail.
Definition: io.h:353
Generated by