Lines Matching refs:cols
79 if (svd.rows() != m_qr.rows() || svd.cols() != m_qr.cols())
81 m_qr = FullPivHouseholderQR<MatrixType>(svd.rows(), svd.cols());
88 if(matrix.rows() > matrix.cols())
91 svd.m_workMatrix = m_qr.matrixQR().block(0,0,matrix.cols(),matrix.cols()).template triangularView<Upper>();
122 if (svd.cols() != m_qr.rows() || svd.rows() != m_qr.cols())
124 m_qr = FullPivHouseholderQR<TransposeTypeWithSameStorageOrder>(svd.cols(), svd.rows());
126 m_adjoint.resize(svd.cols(), svd.rows());
127 if (svd.m_computeFullV) m_workspace.resize(svd.cols());
132 if(matrix.cols() > matrix.rows())
159 if (svd.rows() != m_qr.rows() || svd.cols() != m_qr.cols())
161 m_qr = ColPivHouseholderQR<MatrixType>(svd.rows(), svd.cols());
164 else if (svd.m_computeThinU) m_workspace.resize(svd.cols());
169 if(matrix.rows() > matrix.cols())
172 svd.m_workMatrix = m_qr.matrixQR().block(0,0,matrix.cols(),matrix.cols()).template triangularView<Upper>();
176 svd.m_matrixU.setIdentity(matrix.rows(), matrix.cols());
210 if (svd.cols() != m_qr.rows() || svd.rows() != m_qr.cols())
212 m_qr = ColPivHouseholderQR<TransposeTypeWithSameStorageOrder>(svd.cols(), svd.rows());
214 if (svd.m_computeFullV) m_workspace.resize(svd.cols());
216 m_adjoint.resize(svd.cols(), svd.rows());
221 if(matrix.cols() > matrix.rows())
230 svd.m_matrixV.setIdentity(matrix.cols(), matrix.rows());
255 if (svd.rows() != m_qr.rows() || svd.cols() != m_qr.cols())
257 m_qr = HouseholderQR<MatrixType>(svd.rows(), svd.cols());
260 else if (svd.m_computeThinU) m_workspace.resize(svd.cols());
265 if(matrix.rows() > matrix.cols())
268 svd.m_workMatrix = m_qr.matrixQR().block(0,0,matrix.cols(),matrix.cols()).template triangularView<Upper>();
272 svd.m_matrixU.setIdentity(matrix.rows(), matrix.cols());
275 if(svd.computeV()) svd.m_matrixV.setIdentity(matrix.cols(), matrix.cols());
305 if (svd.cols() != m_qr.rows() || svd.rows() != m_qr.cols())
307 m_qr = HouseholderQR<TransposeTypeWithSameStorageOrder>(svd.cols(), svd.rows());
309 if (svd.m_computeFullV) m_workspace.resize(svd.cols());
311 m_adjoint.resize(svd.cols(), svd.rows());
316 if(matrix.cols() > matrix.rows())
325 svd.m_matrixV.setIdentity(matrix.cols(), matrix.rows());
528 JacobiSVD(Index rows, Index cols, unsigned int computationOptions = 0)
534 allocate(rows, cols, computationOptions);
653 inline Index cols() const { return m_cols; }
656 void allocate(Index rows, Index cols, unsigned int computationOptions);
679 void JacobiSVD<MatrixType, QRPreconditioner>::allocate(Index rows, Index cols, unsigned int computationOptions)
681 eigen_assert(rows >= 0 && cols >= 0);
685 cols == m_cols &&
692 m_cols = cols;
728 allocate(matrix.rows(), matrix.cols(), computationOptions);
836 Index diagSize = (std::min)(dec().rows(), dec().cols());