25 template<
class T,
class solution_t >
26 class gsAPALMDataContainer
31 ~gsAPALMDataContainer() { }
33 gsAPALMDataContainer() { }
35 gsAPALMDataContainer(
const gsAPALMData<T,solution_t> & data)
43 for (
typename std::vector<gsAPALMData<T,solution_t>>::iterator it=m_container.begin(); it!=m_container.end(); it++)
44 result &= it->empty();
50 return m_container.size();
55 index_t add(
const gsAPALMData<T,solution_t> & data)
57 m_container.push_back(data);
58 return m_container.size()-1;
61 gsAPALMData<T,solution_t> & branch(
index_t k)
63 return m_container.at(k);
66 index_t getFirstNonEmptyBranch()
69 while (m_container[k].empty() && (
size_t)k < m_container.size())
77 for (
typename std::vector<gsAPALMData<T,solution_t>>::iterator it=m_container.begin(); it!=m_container.end(); it++, k++)
79 gsInfo<<
"-------------------------------------------\n";
80 gsInfo<<
"Branch "<<k<<
"\n";
88 for (
typename std::vector<gsAPALMData<T,solution_t>>::iterator it=m_container.begin(); it!=m_container.end(); it++, k++)
90 gsInfo<<
"-------------------------------------------\n";
91 gsInfo<<
"Branch "<<k<<
"\n";
99 for (
typename std::vector<gsAPALMData<T,solution_t>>::iterator it=m_container.begin(); it!=m_container.end(); it++, k++)
101 gsInfo<<
"-------------------------------------------\n";
102 gsInfo<<
"Branch "<<k<<
"\n";
110 for (
typename std::vector<gsAPALMData<T,solution_t>>::iterator it=m_container.begin(); it!=m_container.end(); it++)
117 for (
typename std::vector<gsAPALMData<T,solution_t>>::iterator it=m_container.begin(); it!=m_container.end(); it++)
125 for (
typename std::vector<gsAPALMData<T,solution_t>>::iterator it=m_container.begin(); it!=m_container.end(); it++)
126 k = it->maxLevel() > k ? it->maxLevel() : k;
131 std::vector<gsAPALMData<T,solution_t>> m_container;
137 #ifndef GISMO_BUILD_LIB
138 #include GISMO_HPP_HEADER(gsAPALMDataContainer.hpp)
Knot vector for B-splines.
#define index_t
Definition: gsConfig.h:32
Provides a list of labeled parameters/options that can be set and accessed easily.
#define gsInfo
Definition: gsDebug.h:43
This is the main header file that collects wrappers of Eigen for linear algebra.
Provides declaration of the tree node.