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

Go to the source code of this file.

Typedefs

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

Functions

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

Detailed Description

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

Typedef Documentation

◆ IntervalMatrix

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

Alias for a dynamic-size matrix of intervals.

Represents a matrix with a dynamic number of rows and columns, 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 IntervalMatrix & x )
inline

Stream output operator for IntervalMatrix objects.

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