// Creates the root element. Will not create another if it already exists. UIElement * UserInterface::CreateRoot() { root = NewA(UIElement); root->name = "root"; root->exitable = false; root->selectable = false; root->activateable = false; root->textureSource = "0xFF00"; // Alpha texture. // Link it. root->ui = this; return root; }
void MultivariateModel ::ComputeAMatrix(const Realizations &R) { /// It computes the A matrix (ref documentation) based on the orthonormal basis B and the beta coefficients MatrixType NewA(m_ManifoldDimension, m_NbIndependentSources); for(int i = 0; i < m_NbIndependentSources; ++i) { VectorType Beta(m_ManifoldDimension, 0.0); for(size_t j = 0; j < m_ManifoldDimension - 1; ++j) { std::string Number = std::to_string(int(j + i*(m_ManifoldDimension - 1))); Beta(j) = R.at( "Beta#" + Number, 0); } NewA.set_column(i, m_OrthogonalBasis * Beta); } m_AMatrix = NewA; }