/external/eigen/doc/examples/ |
function_taking_eigenbase.cpp | 8 std::cout << "size (rows, cols): " << b.size() << " (" << b.rows() 9 << ", " << b.cols() << ")" << std::endl;
|
/external/eigen/test/ |
diagonalmatrices.cpp | 17 enum { Rows = MatrixType::RowsAtCompileTime, Cols = MatrixType::ColsAtCompileTime }; 19 typedef Matrix<Scalar, 1, Cols> RowVectorType; 22 typedef DiagonalMatrix<Scalar, Cols> RightDiagonalMatrix; 23 typedef Matrix<Scalar, Rows==Dynamic?Dynamic:2*Rows, Cols==Dynamic?Dynamic:2*Cols> BigMatrix; 25 Index cols = m.cols(); local 27 MatrixType m1 = MatrixType::Random(rows, cols), 28 m2 = MatrixType::Random(rows, cols); 31 RowVectorType rv1 = RowVectorType::Random(cols), [all...] |
selfadjoint.cpp | 22 Index cols = m.cols(); local 24 MatrixType m1 = MatrixType::Random(rows, cols), 25 m3(rows, cols);
|
sizeoverflow.cpp | 24 void triggerMatrixBadAlloc(Index rows, Index cols) 26 VERIFY_THROWS_BADALLOC( MatrixType m(rows, cols) ); 27 VERIFY_THROWS_BADALLOC( MatrixType m; m.resize(rows, cols) ); 28 VERIFY_THROWS_BADALLOC( MatrixType m; m.conservativeResize(rows, cols) ); 41 // there are 2 levels of overflow checking. first in PlainObjectBase.h we check for overflow in rows*cols computations.
|
linearstructure.cpp | 21 Index cols = m.cols(); local 25 MatrixType m1 = MatrixType::Random(rows, cols), 26 m2 = MatrixType::Random(rows, cols), 27 m3(rows, cols); 33 c = internal::random<Index>(0, cols-1); 64 VERIFY_IS_APPROX(m1+m1.block(0,0,rows,cols), m1+m1); 65 VERIFY_IS_APPROX(m1.cwiseProduct(m1.block(0,0,rows,cols)), m1.cwiseProduct(m1)); 66 VERIFY_IS_APPROX(m1 - m1.block(0,0,rows,cols), m1 - m1); 67 VERIFY_IS_APPROX(m1.block(0,0,rows,cols) * s1, m1 * s1) [all...] |
miscmatrices.cpp | 22 Index cols = m.cols(); local 24 Index r = internal::random<Index>(0, rows-1), r2 = internal::random<Index>(0, rows-1), c = internal::random<Index>(0, cols-1); 25 VERIFY_IS_APPROX(MatrixType::Ones(rows,cols)(r,c), static_cast<Scalar>(1)); 26 MatrixType m1 = MatrixType::Ones(rows,cols);
|
conservative_resize.cpp | 41 const Index cols = internal::random<Index>(1,50); local 43 m.conservativeResize(rows,cols); 44 VERIFY_IS_APPROX(m, n.block(0,0,rows,cols)); 51 const Index cols = internal::random<Index>(50,75); local 53 m.conservativeResizeLike(MatrixType::Zero(rows,cols)); 54 VERIFY_IS_APPROX(m.block(0,0,n.rows(),n.cols()), n); 55 VERIFY( rows<=50 || m.block(50,0,rows-50,cols).sum() == Scalar(0) ); 56 VERIFY( cols<=50 || m.block(0,50,rows,cols-50).sum() == Scalar(0) );
|
product_selfadjoint.cpp | 23 Index cols = m.cols(); local 25 MatrixType m1 = MatrixType::Random(rows, cols), 26 m2 = MatrixType::Random(rows, cols), 57 m2.block(1,1,rows-1,cols-1).template selfadjointView<Lower>().rankUpdate(v1.tail(rows-1),v2.head(cols-1)); 59 m3.block(1,1,rows-1,cols-1) += v1.tail(rows-1) * v2.head(cols-1).adjoint()+ v2.head(cols-1) * v1.tail(rows-1).adjoint();
|
vectorwiseop.cpp | 23 Index cols = m.cols(); local 25 c = internal::random<Index>(0, cols-1); 27 ArrayType m1 = ArrayType::Random(rows, cols), 28 m2(rows, cols), 29 m3(rows, cols); 32 RowVectorType rowvec = RowVectorType::Random(cols); 116 Index cols = m.cols(); local 118 c = internal::random<Index>(0, cols-1) [all...] |
eigen2support.cpp | 20 Index cols = m.cols(); local 22 MatrixType m1 = MatrixType::Random(rows, cols), 23 m3(rows, cols); 30 VERIFY_IS_APPROX(m1.cwise() + s1, MatrixType::Constant(rows,cols,s1) + m1); 31 VERIFY_IS_APPROX((m1*Scalar(2)).cwise() - s2, (m1+m1) - MatrixType::Constant(rows,cols,s2) );
|
/external/eigen/test/eigen2/ |
eigen2_submatrices.cpp | 22 int cols = m1.cols(); local 25 VERIFY_IS_APPROX(mi, m1.block(1,1,rows-1,cols-1)); 49 int cols = m.cols(); local 51 MatrixType m1 = MatrixType::Random(rows, cols), 52 m2 = MatrixType::Random(rows, cols), 53 m3(rows, cols), 54 mzero = MatrixType::Zero(rows, cols), 55 ones = MatrixType::Ones(rows, cols), [all...] |
eigen2_sum.cpp | 17 int cols = m.cols(); local 19 MatrixType m1 = MatrixType::Random(rows, cols); 21 VERIFY_IS_MUCH_SMALLER_THAN(MatrixType::Zero(rows, cols).sum(), Scalar(1)); 22 VERIFY_IS_APPROX(MatrixType::Ones(rows, cols).sum(), Scalar(float(rows*cols))); // the float() here to shut up excessive MSVC warning about int->complex conversion being lossy 24 for(int i = 0; i < rows; i++) for(int j = 0; j < cols; j++) x += m1(i,j);
|
/external/opencv/cvaux/src/ |
cvvideo.cpp | 64 if( frame->cols != even->cols || frame->cols != odd->cols ||
|
/external/ceres-solver/internal/ceres/ |
incomplete_lq_factorization_test.cc | 52 EXPECT_EQ(expected.cols()[i], actual.cols()[i]); 85 int* cols = matrix.mutable_cols(); local 94 cols[idx] = j; 141 EXPECT_EQ(matrix.cols()[0], 0); 149 EXPECT_EQ(matrix.cols()[idx], idx - matrix.rows()[1]); 159 EXPECT_EQ(matrix.cols()[matrix.rows()[2]], 0); 160 EXPECT_EQ(matrix.cols()[matrix.rows()[2] + 1], 3); 161 EXPECT_EQ(matrix.cols()[matrix.rows()[2] + 2], 5); 173 EXPECT_EQ(matrix.cols()[matrix.rows()[3]], 0) [all...] |
triplet_sparse_matrix_test.cc | 81 EXPECT_EQ(m.cols()[0], 1); 82 EXPECT_EQ(m.cols()[1], 4); 122 EXPECT_EQ(cpy.cols()[0], 1); 123 EXPECT_EQ(cpy.cols()[1], 4); 168 EXPECT_EQ(cpy.cols()[0], 1); 169 EXPECT_EQ(cpy.cols()[1], 4); 221 EXPECT_EQ(m.cols()[0], 1); 222 EXPECT_EQ(m.cols()[1], 4); 223 EXPECT_EQ(m.cols()[2], 1); 224 EXPECT_EQ(m.cols()[3], 4) [all...] |
block_sparse_matrix.cc | 57 for (int i = 0; i < block_structure_->cols.size(); ++i) { 58 num_cols_ += block_structure_->cols[i].size; 70 int col_block_size = block_structure_->cols[col_block_id].size; 98 int col_block_size = block_structure_->cols[col_block_id].size; 99 int col_block_pos = block_structure_->cols[col_block_id].position; 118 int col_block_size = block_structure_->cols[col_block_id].size; 119 int col_block_pos = block_structure_->cols[col_block_id].position; 136 int col_block_size = block_structure_->cols[col_block_id].size; 137 int col_block_pos = block_structure_->cols[col_block_id].position; 153 int col_block_size = block_structure_->cols[col_block_id].size [all...] |
/external/eigen/Eigen/src/QR/ |
FullPivHouseholderQR.h | 93 FullPivHouseholderQR(Index rows, Index cols) 94 : m_qr(rows, cols), 95 m_hCoeffs((std::min)(rows,cols)), 97 m_cols_transpositions(cols), 98 m_cols_permutation(cols), 99 m_temp((std::min)(rows,cols)), 104 : m_qr(matrix.rows(), matrix.cols()), 105 m_hCoeffs((std::min)(matrix.rows(), matrix.cols())), 107 m_cols_transpositions(matrix.cols()), 108 m_cols_permutation(matrix.cols()), 276 inline Index cols() const { return m_qr.cols(); } function in class:Eigen::FullPivHouseholderQR 382 Index cols = matrix.cols(); local 468 const Index rows = dec().rows(), cols = dec().cols(); local 551 const Index cols = m_qr.cols(); local 564 Index cols() const { return m_qr.rows(); } function in struct:Eigen::internal::FullPivHouseholderQRMatrixQReturnType [all...] |
ColPivHouseholderQR_MKL.h | 54 Index cols = matrix.cols();\ 60 m_colsTranspositions.resize(cols);\ 65 m_colsPermutation.resize(cols); \ 70 LAPACKE_##MKLPREFIX##geqp3( matrix_order, rows, cols, (MKLTYPE*)m_qr.data(), lda, (lapack_int*)m_colsPermutation.indices().data(), (MKLTYPE*)m_hCoeffs.data()); \ 79 for(i=0;i<cols;i++) perm[i]--;\
|
/external/eigen/Eigen/src/Core/products/ |
GeneralMatrixVector_MKL.h | 57 Index rows, Index cols, \ 64 rows, cols, lhs, lhsStride, rhs, rhsIncr, res, resIncr, alpha); \ 67 rows, cols, lhs, lhsStride, rhs, rhsIncr, res, resIncr, alpha); \ 74 Index rows, Index cols, \ 80 rows, cols, lhs, lhsStride, rhs, rhsIncr, res, resIncr, alpha); \ 96 Index rows, Index cols, \ 101 MKL_INT m=rows, n=cols, lda=lhsStride, incx=rhsIncr, incy=resIncr; \ 106 m=cols; \ 113 Map<const GEMVVector, 0, InnerStride<> > map_x(rhs,cols,1,InnerStride<>(incx)); \
|
/external/eigen/Eigen/src/SVD/ |
UpperBidiagonalization.h | 56 : m_householder(matrix.rows(), matrix.cols()), 57 m_bidiagonal(matrix.cols(), matrix.cols()), 78 .setLength(m_householder.cols()-1) 92 Index cols = matrix.cols(); local 94 eigen_assert(rows >= cols && "UpperBidiagonalization is only for matrices satisfying rows>=cols."); 100 for (Index k = 0; /* breaks at k==cols-1 below */ ; ++k) 103 Index remainingCols = cols - k - 1 [all...] |
JacobiSVD.h | 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()) 653 inline Index cols() const { return m_cols; } function in class:Eigen::JacobiSVD [all...] |
/external/eigen/bench/ |
sparse_cholesky.cpp | 44 void fillSpdMatrix(float density, int rows, int cols, EigenSparseSelfAdjointMatrix& dst) 46 dst.startFill(rows*cols*density); 47 for(int j = 0; j < cols; j++) 80 int cols = SIZE; local 84 VectorXf b = VectorXf::Random(cols); 85 VectorXf x = VectorXf::Random(cols); 92 EigenSparseSelfAdjointMatrix sm1(rows, cols); 94 fillSpdMatrix(density, rows, cols, sm1); 103 DenseMatrix m1(rows,cols); 117 for (int j=0; j<cols; ++j [all...] |
sparse_lu.cpp | 75 int cols = SIZE; local 79 VectorX b = VectorX::Random(cols); 80 VectorX x = VectorX::Random(cols); 87 EigenSparseMatrix sm1(rows, cols); 88 fillMatrix(density, rows, cols, sm1); 96 DenseMatrix m1(rows,cols);
|
/external/eigen/Eigen/src/plugins/ |
BlockMethods.h | 80 return Block<Derived>(derived(), 0, cols() - cCols, cRows, cCols); 86 return Block<const Derived>(derived(), 0, cols() - cCols, cRows, cCols); 101 return Block<Derived, CRows, CCols>(derived(), 0, cols() - CCols); 108 return Block<const Derived, CRows, CCols>(derived(), 0, cols() - CCols); 171 return Block<Derived>(derived(), rows() - cRows, cols() - cCols, cRows, cCols); 177 return Block<const Derived>(derived(), rows() - cRows, cols() - cCols, cRows, cCols); 192 return Block<Derived, CRows, CCols>(derived(), rows() - CRows, cols() - CCols); 199 return Block<const Derived, CRows, CCols>(derived(), rows() - CRows, cols() - CCols); 260 return RowsBlockXpr(derived(), 0, 0, n, cols()); 266 return ConstRowsBlockXpr(derived(), 0, 0, n, cols()); [all...] |
/external/chromium_org/third_party/pexpect/ |
screen.py | 69 self.cols = c 76 self.w = [ [SPACE] * self.cols for c in range(self.rows)] 98 top_bot = '+' + '-'*self.cols + '+\n' 103 self.fill_region (1,1,self.rows,self.cols, ch) 109 cs = constrain (cs, 1, self.cols) 110 ce = constrain (ce, 1, self.cols) 158 c = constrain (c, 1, self.cols) 177 c = constrain (c, 1, self.cols) 178 for ci in range (self.cols, c, -1): 189 c = constrain (c, 1, self.cols) [all...] |