68 void CSubsetStack::init()
77 SG_REF(m_active_subsets_stack);
87 if (subset.
vlen>latest->m_subset_idx.
vlen)
91 SG_ERROR(
"%s::add_subset(): Provided index vector is " 92 "larger than the subsets on the stubset stack!\n",
get_name());
97 if (max_index>=latest->m_subset_idx.
vlen)
101 SG_ERROR(
"%s::add_subset(): Provided index vector contains" 102 " indices larger than possible range!\n",
get_name());
128 new_active_subset.
vector[i]=
133 m_active_subset=
new CSubset(new_active_subset);
140 m_active_subset=
new CSubset(subset);
160 m_active_subset=NULL;
Wrapper class for an index subset which is used by SubsetStack.
CSGObject * get_element(int32_t index) const
#define SG_NOTIMPLEMENTED
const char * get_name() const
class to add subset support to another class. A CSubsetStackStack instance should be added and wrappe...
virtual void add_subset(SGVector< index_t > subset)
Class SGObject is the base class of all shogun objects.
virtual void remove_all_subsets()
virtual void add_subset_in_place(SGVector< index_t > subset)
Dynamic array class for CSGObject pointers that creates an array that can be used like a list or an a...
int32_t get_num_elements() const
CSGObject * get_last_element() const
all of classes and functions are contained in the shogun namespace
virtual void remove_subset()
bool delete_element(int32_t idx)
bool append_element(CSGObject *e)
void display_vector(const char *name="vector", const char *prefix="") const