Lines Matching full:num_cols
42 DenseSparseMatrix::DenseSparseMatrix(int num_rows, int num_cols)
45 m_.resize(num_rows, num_cols);
50 int num_cols,
56 m_.resize(num_rows + num_cols, num_cols);
58 m_.resize(num_rows, num_cols);
64 : m_(Eigen::MatrixXd::Zero(m.num_rows(), m.num_cols())),
88 VectorRef(y, num_rows()) += matrix() * ConstVectorRef(x, num_cols());
92 VectorRef(y, num_cols()) +=
97 VectorRef(x, num_cols()) = m_.colwise().squaredNorm();
101 m_ *= ConstVectorRef(scale, num_cols()).asDiagonal();
105 *dense_matrix = m_.block(0, 0, num_rows(), num_cols());
136 int DenseSparseMatrix::num_cols() const {