38 using namespace internal;
42 REQUIRE(m_feats!=
nullptr,
"Underlying feature object cannot be null!\n");
52 std::iota(inds.vector, inds.vector+inds.vlen, index*size);
58 Block::Block(
const Block& other) : m_block(other.m_block), m_feats(other.m_feats)
66 m_block=other.m_block;
67 m_feats=other.m_feats;
81 std::vector<Block> vec;
82 for (
index_t i=0; i<num_blocks; ++i)
83 vec.push_back(
Block(feats, i, size));
virtual CFeatures * shallow_subset_copy()
static std::vector< Block > create_blocks(CFeatures *feats, index_t num_blocks, index_t size)
all of classes and functions are contained in the shogun namespace
The class Features is the base class of all feature objects.
Class that holds a block feature. A block feature is a shallow copy of an underlying (non-owning) fea...
Block & operator=(const Block &other)
virtual void add_subset(SGVector< index_t > subset)
Block< Matrix > block(Matrix matrix, index_t row_begin, index_t col_begin, index_t row_size, index_t col_size)