codac 2.0.0
Loading...
Searching...
No Matches
codac2_IntervalVector.h File Reference
#include "codac2_matrices.h"
#include "codac2_Vector.h"
Include dependency graph for codac2_IntervalVector.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

using codac2::IntervalVector = Eigen::Matrix<Interval,-1,1>
 Alias for a dynamic-size column vector of intervals.
 

Functions

std::ostream & codac2::operator<< (std::ostream &os, const IntervalVector &x)
 Stream output operator for IntervalVector objects.
 

Detailed Description

Date
2024
Author
Simon Rohou
License: GNU Lesser General Public License (LGPL)

Typedef Documentation

◆ IntervalVector

using codac2::IntervalVector = Eigen::Matrix<Interval,-1,1>

Alias for a dynamic-size column vector of intervals.

Represents a column vector with a dynamic number of rows, where each element is an Interval object.

This type alias is based on Eigen's matrix template and corresponds to Eigen::Matrix<Interval,-1,1>.

Function Documentation

◆ operator<<()

std::ostream & codac2::operator<< ( std::ostream & os,
const IntervalVector & x )
inline

Stream output operator for IntervalVector objects.

Parameters
osThe output stream to write to.
xThe interval vector whose contents are to be printed.
Returns
A reference to the modified output stream.
35 {
36 if(x.is_empty())
37 return os << "[ empty vector ]";
38
39 else
40 {
41 os << x.format(codac_vector_fmt());
42 return os;
43 }
44 }
Eigen::IOFormat codac_vector_fmt()
Provides an Eigen IOFormat for formatting column vectors.
Definition codac2_matrices.h:218