Loading...
Searching...
No Matches
gpr::Observation Struct Reference

Observation data: energy, gradient and positions. More...

#include <structures/Structures.h>

Public Member Functions

void clear ()
void append (const Observation &other)
void resizeToMatch (const Observation &other, const Index_t num_rows)
void copyRow (const Index_t dest_row_idx, const Observation &other, const Index_t src_row_idx)
void printSizes ()

Public Attributes

Coord R
FieldMatrixd E
Coord G

Detailed Description

Observation data: energy, gradient and positions.

Definition at line 1029 of file Structures.h.

Member Function Documentation

◆ append()

void gpr::Observation::append ( const Observation & other)
inline

Definition at line 1041 of file Structures.h.

1042 {
1043 gpr::field::appendRows(R, other.R);
1044 gpr::field::appendRows(E, other.E);
1045 gpr::field::appendRows(G, other.G);
1046 }
void appendRows(Eigen::PlainObjectBase< Derived > &mat, const Eigen::PlainObjectBase< Derived > &other)
FieldMatrixd E

◆ clear()

void gpr::Observation::clear ( )
inline

Definition at line 1034 of file Structures.h.

1035 {
1036 R.resize(0, 0);
1037 E.resize(0, 0);
1038 G.resize(0, 0);
1039 }

◆ copyRow()

void gpr::Observation::copyRow ( const Index_t dest_row_idx,
const Observation & other,
const Index_t src_row_idx )
inline

Definition at line 1058 of file Structures.h.

1060 {
1061 R.row(dest_row_idx) = other.R.row(src_row_idx);
1062 E.row(dest_row_idx) = other.E.row(src_row_idx);
1063 G.row(dest_row_idx) = other.G.row(src_row_idx);
1064 }

◆ printSizes()

void gpr::Observation::printSizes ( )
inline

Definition at line 1067 of file Structures.h.

1068 {
1069 io::LogManager log_man;
1070
1071 log_man << "R size: " << R.size() << "\n";
1072 log_man << "R (rows, cols): " << R.rows() << " " << R.cols() << "\n\n";
1073
1074 log_man << "E size: " << E.size() << "\n";
1075 log_man << "E (rows, cols): " << E.rows() << " " << E.cols() << "\n\n";
1076
1077 log_man << "G size: " << G.size() << "\n";
1078 log_man << "G (rows, cols): " << G.rows() << " " << G.cols() << "\n\n";
1079 }

◆ resizeToMatch()

void gpr::Observation::resizeToMatch ( const Observation & other,
const Index_t num_rows )
inline

Definition at line 1048 of file Structures.h.

1049 {
1050 R.resize(num_rows, other.R.cols());
1051 R.setZero();
1052 E.resize(num_rows, other.E.cols());
1053 E.setZero();
1054 G.resize(num_rows, other.G.cols());
1055 G.setZero();
1056 }

Member Data Documentation

◆ E

FieldMatrixd gpr::Observation::E

Definition at line 1031 of file Structures.h.

◆ G

Coord gpr::Observation::G

Definition at line 1032 of file Structures.h.

◆ R

Coord gpr::Observation::R

Definition at line 1030 of file Structures.h.


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