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

Go to the source code of this file.

Typedefs

using codac2::Vector = Eigen::Matrix<double,-1,1>
 Alias for a dynamically-sized column vector of doubles.
 

Functions

std::ostream & codac2::operator<< (std::ostream &os, const Vector &x)
 Stream output operator for Vector 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

◆ Vector

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

Alias for a dynamically-sized column vector of doubles.

Defines a convenient shorthand for representing column vectors with dynamic size. This type alias is based on Eigen's matrix template and corresponds to Eigen::Matrix<double,-1,1>.

See also
Eigen::Matrix

Function Documentation

◆ operator<<()

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

Stream output operator for Vector objects.

Parameters
osThe output stream to write to.
xThe vector whose contents are to be printed.
Returns
A reference to the modified output stream.
34 {
35 os << x.format(codac_vector_fmt());
36 return os;
37 }
Eigen::IOFormat codac_vector_fmt()
Provides an Eigen IOFormat for formatting column vectors.
Definition codac2_matrices.h:218