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

Go to the source code of this file.

Typedefs

using codac2::Matrix = Eigen::Matrix<double,-1,-1>
 Alias for a dynamic-size matrix of doubles.
 

Functions

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

Detailed Description

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

Date
2024
Author
Simon Rohou, Damien Massé
License: GNU Lesser General Public License (LGPL)

Typedef Documentation

◆ Matrix

using codac2::Matrix = Eigen::Matrix<double,-1,-1>

Alias for a dynamic-size matrix of doubles.

Represents a matrix with dynamic number of rows and columns, where each element is a double precision floating point number.

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

See also
Vector, Row, Eigen::Matrix

Function Documentation

◆ operator<<()

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

Stream output operator for Matrix objects.

Parameters
osThe output stream to write to.
xThe matrix whose contents are to be printed.
Returns
A reference to the modified output stream.
36 {
37 os << x.format(codac_matrix_fmt());
38 return os;
39 }
Eigen::IOFormat codac_matrix_fmt()
Provides an Eigen IOFormat for formatting matrices.
Definition codac2_matrices.h:232