Eigen  5.0.1
 
Loading...
Searching...
No Matches
Eigen::Concat< Direction, LhsType, RhsType > Class Template Reference

#include <Eigen/src/Core/ConcatOp.h>

Detailed Description

template<int Direction, typename LhsType, typename RhsType>
class Eigen::Concat< Direction, LhsType, RhsType >

Expression of the concatenation of two dense expressions.

Template Parameters
Directioneither Vertical or Horizontal
LhsTypethe type of the left-hand side expression
RhsTypethe type of the right-hand side expression

This class represents an expression of the concatenation of two dense expressions, either vertically (stacking rows) or horizontally (stacking columns).

It is the return type of hcat() and vcat() and typically this is the only way it is used.

See also
hcat(), vcat()

Related Symbols

(Note that these are not member symbols.)

template<typename Lhs, typename Rhs>
const Concat< Horizontal, Lhs, Rhs > hcat (const DenseBase< Lhs > &lhs, const DenseBase< Rhs > &rhs)
 
template<typename Lhs, typename Rhs>
const Concat< Vertical, Lhs, Rhs > vcat (const DenseBase< Lhs > &lhs, const DenseBase< Rhs > &rhs)
 

Friends And Related Symbol Documentation

◆ hcat()

template<typename Lhs, typename Rhs>
const Concat< Horizontal, Lhs, Rhs > hcat ( const DenseBase< Lhs > & lhs,
const DenseBase< Rhs > & rhs )
related
Returns
an expression of lhs and rhs concatenated horizontally (side by side).

Both arguments must have the same number of rows. To concatenate more than two expressions, chain calls: hcat(hcat(a, b), c).

Example:

Matrix2d A, B;
auto C = hcat(A, B); // C is 2x4
const Concat< Horizontal, Lhs, Rhs > hcat(const DenseBase< Lhs > &lhs, const DenseBase< Rhs > &rhs)
Definition ConcatOp.h:331
Matrix< double, 2, 2 > Matrix2d
2×2 matrix of type double.
Definition Matrix.h:489
See also
vcat(), Concat

◆ vcat()

template<typename Lhs, typename Rhs>
const Concat< Vertical, Lhs, Rhs > vcat ( const DenseBase< Lhs > & lhs,
const DenseBase< Rhs > & rhs )
related
Returns
an expression of lhs and rhs concatenated vertically (stacked on top of each other).

Both arguments must have the same number of columns. To concatenate more than two expressions, chain calls: vcat(vcat(a, b), c).

Example:

Matrix2d A, B;
auto C = vcat(A, B); // C is 4x2
const Concat< Vertical, Lhs, Rhs > vcat(const DenseBase< Lhs > &lhs, const DenseBase< Rhs > &rhs)
Definition ConcatOp.h:350
See also
hcat(), Concat

The documentation for this class was generated from the following file: