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 327 of file GPSurrogateJob.cpp.

327 {
328 assert(data.cols() == newrow.size());
329 data.conservativeResize(data.rows() + 1, data.cols());
330 data.row(data.rows() - 1) = newrow;
331}

◆ vertCat()

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

Definition at line 321 of file GPSurrogateJob.cpp.

321 {
322 assert(m1.cols() == m2.cols());
323 MatrixXd res(m1.rows() + m2.rows(), m2.cols());
324 res << m1, m2;
325 return res;
326}
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic, eOnStorageOrder > MatrixXd
Definition Eigen.h:33