Loading...
Searching...
No Matches
eonc::helpers::eigen Namespace Reference

Functions

MatrixXd vertCat (const MatrixXd &m1, const MatrixXd &m2)
void addVectorRow (MatrixXd &data, const Eigen::VectorXd &newrow)

Function Documentation

◆ addVectorRow()

void eonc::helpers::eigen::addVectorRow ( MatrixXd & data,
const Eigen::VectorXd & newrow )

Definition at line 338 of file GPSurrogateJob.cpp.

338 {
339 assert(data.cols() == newrow.size());
340 data.conservativeResize(data.rows() + 1, data.cols());
341 data.row(data.rows() - 1) = newrow;
342}

◆ vertCat()

MatrixXd eonc::helpers::eigen::vertCat ( const MatrixXd & m1,
const MatrixXd & m2 )

Definition at line 332 of file GPSurrogateJob.cpp.

332 {
333 assert(m1.cols() == m2.cols());
334 MatrixXd res(m1.rows() + m2.rows(), m2.cols());
335 res << m1, m2;
336 return res;
337}
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic, eOnStorageOrder > MatrixXd
Definition Eigen.h:33