482 Vector<BaseFloat> last_frame;
490 if (next_features.NumRows() == 0 && !
finished_) {
494 if (next_features.NumRows() > 0) {
495 int32 new_size = (have_last_frame ? 1 : 0) +
496 next_features.NumRows();
498 (have_last_frame ? 1 : 0);
501 if (have_last_frame) {
504 CopyFromMat(next_features);
Matrix< BaseFloat > feat_matrix_
void CopyFromMat(const MatrixBase< OtherReal > &M, MatrixTransposeType trans=kNoTrans)
Copy given matrix. (no resize is done).
OnlineFeatInputItf * input_
const SubVector< Real > Row(MatrixIndexT i) const
Return specific row of matrix [const].
const OnlineFeatureMatrixOptions opts_
MatrixIndexT NumRows() const
Returns number of rows (or zero for empty matrix).
SubMatrix< Real > Range(const MatrixIndexT row_offset, const MatrixIndexT num_rows, const MatrixIndexT col_offset, const MatrixIndexT num_cols) const
Return a sub-part of matrix.
void Resize(const MatrixIndexT r, const MatrixIndexT c, MatrixResizeType resize_type=kSetZero, MatrixStrideType stride_type=kDefaultStride)
Sets matrix to a specified size (zero is OK as long as both r and c are zero).