Lines Matching refs:m_
45 m_.resize(num_rows, num_cols); in DenseSparseMatrix()
46 m_.setZero(); in DenseSparseMatrix()
56 m_.resize(num_rows + num_cols, num_cols); in DenseSparseMatrix()
58 m_.resize(num_rows, num_cols); in DenseSparseMatrix()
60 m_.setZero(); in DenseSparseMatrix()
64 : m_(Eigen::MatrixXd::Zero(m.num_rows(), m.num_cols())), in DenseSparseMatrix()
73 m_(rows[i], cols[i]) += values[i]; in DenseSparseMatrix()
78 : m_(m), in DenseSparseMatrix()
84 m_.setZero(); in SetZero()
97 VectorRef(x, num_cols()) = m_.colwise().squaredNorm(); in SquaredColumnNorm()
101 m_ *= ConstVectorRef(scale, num_cols()).asDiagonal(); in ScaleColumns()
105 *dense_matrix = m_.block(0, 0, num_rows(), num_cols()); in ToDenseMatrix()
111 ColMajorMatrix tmp = m_; in AppendDiagonal()
112 m_.resize(m_.rows() + m_.cols(), m_.cols()); in AppendDiagonal()
113 m_.setZero(); in AppendDiagonal()
114 m_.block(0, 0, tmp.rows(), tmp.cols()) = tmp; in AppendDiagonal()
118 m_.bottomLeftCorner(m_.cols(), m_.cols()) = in AppendDiagonal()
119 ConstVectorRef(d, m_.cols()).asDiagonal(); in AppendDiagonal()
131 return m_.rows() - m_.cols(); in num_rows()
133 return m_.rows(); in num_rows()
137 return m_.cols(); in num_cols()
142 return (m_.rows() - m_.cols()) * m_.cols(); in num_nonzeros()
144 return m_.rows() * m_.cols(); in num_nonzeros()
149 m_.data(), in matrix()
151 ? m_.rows() - m_.cols() in matrix()
152 : m_.rows()), in matrix()
153 m_.cols(), in matrix()
154 Eigen::Stride<Eigen::Dynamic, 1>(m_.rows(), 1)); in matrix()
159 m_.data(), in mutable_matrix()
161 ? m_.rows() - m_.cols() in mutable_matrix()
162 : m_.rows()), in mutable_matrix()
163 m_.cols(), in mutable_matrix()
164 Eigen::Stride<Eigen::Dynamic, 1>(m_.rows(), 1)); in mutable_matrix()
172 ? (m_.rows() - m_.cols()) in ToTextFile()
173 : m_.rows(); in ToTextFile()
176 for (int c = 0; c < m_.cols(); ++c) { in ToTextFile()
177 fprintf(file, "% 10d % 10d %17f\n", r, c, m_(r, c)); in ToTextFile()