/external/eigen/test/eigen2/ |
eigen2_nomalloc.cpp | 31 int cols = m.cols(); local 33 MatrixType m1 = MatrixType::Random(rows, cols), 34 m2 = MatrixType::Random(rows, cols), 35 m3(rows, cols), 36 mzero = MatrixType::Zero(rows, cols), 48 c = ei_random<int>(0, cols-1); 52 VERIFY_IS_APPROX(m1.cwise() * m1.block(0,0,rows,cols), m1.cwise() * m1);
|
eigen2_inverse.cpp | 20 int cols = m.cols(); local 26 MatrixType m1 = MatrixType::Random(rows, cols), 27 m2(rows, cols), 28 mzero = MatrixType::Zero(rows, cols), 33 m1 = MatrixType::Random(rows, cols);
|
eigen2_lu.cpp | 17 for(int a = 0; a < 3*(m.rows()+m.cols()); a++) 27 i = Eigen::ei_random<int>(0,m.cols()-1); // i is a random column number 29 j = Eigen::ei_random<int>(0,m.cols()-1); 41 int rows = ei_random<int>(20,200), cols = ei_random<int>(20,200), cols2 = ei_random<int>(20,200); local 42 int rank = ei_random<int>(1, std::min(rows, cols)-1); 44 MatrixType m1(rows, cols), m2(cols, cols2), m3(rows, cols2), k(1,1); 45 m1 = MatrixType::Random(rows,cols); 46 if(rows <= cols) 49 for(int i = rank; i < cols; i++) m1.col(i).setZero() [all...] |
eigen2_array.cpp | 24 int cols = m.cols(); local 26 MatrixType m1 = MatrixType::Random(rows, cols), 27 m2 = MatrixType::Random(rows, cols), 28 m3(rows, cols); 35 VERIFY_IS_APPROX(m1.cwise() + s1, MatrixType::Constant(rows,cols,s1) + m1); 36 VERIFY_IS_APPROX((m1*Scalar(2)).cwise() - s2, (m1+m1) - MatrixType::Constant(rows,cols,s2) ); 59 int cols = m.cols(); local 62 c = ei_random<int>(0, cols-1) [all...] |
eigen2_sparse_solvers.cpp | 17 Matrix<Scalar,Dynamic,Dynamic> aux(refMat.rows(),refMat.cols()); 26 for (int j=0 ; j<sparseMat.cols(); ++j) 33 template<typename Scalar> void sparse_solvers(int rows, int cols) 35 double density = std::max(8./(rows*cols), 0.01); 48 SparseMatrix<Scalar> m2(rows, cols); 49 DenseMatrix refMat2 = DenseMatrix::Zero(rows, cols); 75 SparseMatrix<Scalar> m2(rows, cols); 76 DenseMatrix refMat2(rows, cols); 78 DenseVector b = DenseVector::Random(cols); 79 DenseVector refX(cols), x(cols) [all...] |
eigen2_miscmatrices.cpp | 22 int cols = m.cols(); local 24 int r = ei_random<int>(0, rows-1), r2 = ei_random<int>(0, rows-1), c = ei_random<int>(0, cols-1); 25 VERIFY_IS_APPROX(MatrixType::Ones(rows,cols)(r,c), static_cast<Scalar>(1)); 26 MatrixType m1 = MatrixType::Ones(rows,cols);
|
/external/eigen/test/ |
upperbidiagonalization.cpp | 16 const typename MatrixType::Index cols = m.cols(); local 21 MatrixType a = MatrixType::Random(rows,cols); 23 RealMatrixType b(rows, cols); 25 b.block(0,0,cols,cols) = ubd.bidiagonal();
|
mapstaticmethods.cpp | 72 int rows = m.rows(), cols = m.cols(); local 76 PlainObjectType::Map(ptr, rows, cols).setZero(); 77 PlainObjectType::MapAligned(ptr, rows, cols).setZero(); 78 PlainObjectType::Map(const_ptr, rows, cols).sum(); 79 PlainObjectType::MapAligned(const_ptr, rows, cols).sum(); 81 PlainObjectType::Map(ptr, rows, cols, InnerStride<>(i)).setZero(); 82 PlainObjectType::MapAligned(ptr, rows, cols, InnerStride<>(i)).setZero(); 83 PlainObjectType::Map(const_ptr, rows, cols, InnerStride<>(i)).sum(); 84 PlainObjectType::MapAligned(const_ptr, rows, cols, InnerStride<>(i)).sum() [all...] |
array.cpp | 20 Index cols = m.cols(); local 22 ArrayType m1 = ArrayType::Random(rows, cols), 23 m2 = ArrayType::Random(rows, cols), 24 m3(rows, cols); 27 RowVectorType rv1 = RowVectorType::Random(cols); 34 VERIFY_IS_APPROX(m1 + s1, ArrayType::Constant(rows,cols,s1) + m1); 36 VERIFY_IS_APPROX(m1 - s1, m1 - ArrayType::Constant(rows,cols,s1)); 37 VERIFY_IS_APPROX(s1 - m1, ArrayType::Constant(rows,cols,s1) - m1); 38 VERIFY_IS_APPROX((m1*Scalar(2)) - s2, (m1+m1) - ArrayType::Constant(rows,cols,s2) ) 94 Index cols = m.cols(); local 161 Index cols = m.cols(); local 223 Index cols = m.cols(); local 242 Index cols = m.cols(); local [all...] |
special_numbers.cpp | 16 int cols = internal::random<int>(1,300); local 22 MatType m1 = MatType::Random(rows,cols), 23 mnan = MatType::Random(rows,cols), 24 minf = MatType::Random(rows,cols), 25 mboth = MatType::Random(rows,cols); 30 mnan(internal::random<int>(0,rows-1), internal::random<int>(0,cols-1)) = nan; 31 minf(internal::random<int>(0,rows-1), internal::random<int>(0,cols-1)) = inf;
|
array_for_matrix.cpp | 20 Index cols = m.cols(); local 22 MatrixType m1 = MatrixType::Random(rows, cols), 23 m2 = MatrixType::Random(rows, cols), 24 m3(rows, cols); 27 RowVectorType rv1 = RowVectorType::Random(cols); 34 VERIFY_IS_APPROX((m1.array() + s1).matrix(), MatrixType::Constant(rows,cols,s1) + m1); 35 VERIFY_IS_APPROX(((m1*Scalar(2)).array() - s2).matrix(), (m1+m1) - MatrixType::Constant(rows,cols,s2) ); 61 VERIFY_IS_APPROX(m1.block(0,0,0,cols).colwise().sum(), RowVectorType::Zero(cols)); 81 Index cols = m.cols(); local 150 Index cols = m.cols(); local 192 Index rows = t.rows(), cols = t.cols(); local [all...] |
sparseqr.cpp | 18 int cols = internal::random<int>(1,maxCols); local 19 double density = (std::max)(8./(rows*cols), 0.01); 21 A.resize(rows,cols); 22 dA.resize(rows,cols); 25 int nop = internal::random<int>(0, internal::random<double>(0,1) > 0.5 ? cols/2 : 0); 28 int j0 = internal::random<int>(0,cols-1); 29 int j1 = internal::random<int>(0,cols-1); 35 // if(rows<cols) { 36 // A.conservativeResize(cols,cols); [all...] |
lu.cpp | 21 Index rows, cols, cols2; local 32 cols = internal::random<Index>(2,EIGEN_TEST_MAX_SIZE); 37 cols2 = cols = MatrixType::ColsAtCompileTime; 51 Index rank = internal::random<Index>(1, (std::min)(rows, cols)-1); 54 VERIFY((MatrixType::Zero(rows,cols).fullPivLu().image(MatrixType::Zero(rows,cols)).cols() == 1)); 56 MatrixType m1(rows, cols), m3(rows, cols2); 57 CMatrixType m2(cols, cols2); 58 createRandomPIMatrixOfRank(rank, rows, cols, m1) 134 Index cols = rows; local [all...] |
miscmatrices.cpp | 21 Index cols = m.cols(); local 23 Index r = internal::random<Index>(0, rows-1), r2 = internal::random<Index>(0, rows-1), c = internal::random<Index>(0, cols-1); 24 VERIFY_IS_APPROX(MatrixType::Ones(rows,cols)(r,c), static_cast<Scalar>(1)); 25 MatrixType m1 = MatrixType::Ones(rows,cols);
|
corners.cpp | 20 Index cols = m.cols(); local 23 Index c = internal::random<Index>(1,cols); 25 MatrixType matrix = MatrixType::Random(rows,cols); 26 const MatrixType const_matrix = MatrixType::Random(rows,cols); 29 COMPARE_CORNER(topRightCorner(r,c), block(0,cols-c,r,c)); 31 COMPARE_CORNER(bottomRightCorner(r,c), block(rows-r,cols-c,r,c)); 35 Index sc = internal::random<Index>(1,cols) - 1; 36 Index nc = internal::random<Index>(1,cols-sc); 38 COMPARE_CORNER(topRows(r), block(0,0,r,cols)); 53 cols = MatrixType::ColsAtCompileTime, enumerator in enum:__anon592 [all...] |
product.h | 35 Index cols = m.cols(); local 39 MatrixType m1 = MatrixType::Random(rows, cols), 40 m2 = MatrixType::Random(rows, cols), 41 m3(rows, cols); 47 square2 = ColSquareMatrixType::Random(cols, cols), 48 res2 = ColSquareMatrixType::Random(cols, cols); 50 ColVectorType vc2 = ColVectorType::Random(cols), vcres(cols) [all...] |
/external/eigen/Eigen/src/Core/products/ |
Parallelizer.h | 86 void parallelize_gemm(const Functor& func, Index rows, Index cols, bool transpose) 96 func(0,rows, 0,cols); 108 return func(0,rows, 0,cols); 110 Index size = transpose ? cols : rows; 120 return func(0,rows, 0,cols); 126 std::swap(rows,cols); 128 Index blockCols = (cols / threads) & ~Index(0x3); 140 Index actualBlockCols = (i+1==threads) ? cols-c0 : blockCols; 146 func(0, cols, r0, actualBlockRows, info); 148 func(r0, actualBlockRows, 0,cols, info) [all...] |
/external/eigen/Eigen/src/QR/ |
HouseholderQR.h | 76 HouseholderQR(Index rows, Index cols) 77 : m_qr(rows, cols), 78 m_hCoeffs((std::min)(rows,cols)), 79 m_temp(cols), 88 * HouseholderQR<MatrixType> qr(matrix.rows(), matrix.cols()); 95 : m_qr(matrix.rows(), matrix.cols()), 96 m_hCoeffs((std::min)(matrix.rows(),matrix.cols())), 97 m_temp(matrix.cols()), 183 inline Index cols() const { return m_qr.cols(); } function in class:Eigen::HouseholderQR 225 Index cols = mat.cols(); local 264 Index cols = mat.cols(); local 313 const Index rows = dec().rows(), cols = dec().cols(); local 347 Index cols = matrix.cols(); local [all...] |
FullPivHouseholderQR.h | 94 FullPivHouseholderQR(Index rows, Index cols) 95 : m_qr(rows, cols), 96 m_hCoeffs((std::min)(rows,cols)), 97 m_rows_transpositions((std::min)(rows,cols)), 98 m_cols_transpositions((std::min)(rows,cols)), 99 m_cols_permutation(cols), 100 m_temp(cols), 110 * FullPivHouseholderQR<MatrixType> qr(matrix.rows(), matrix.cols()); 117 : m_qr(matrix.rows(), matrix.cols()), 118 m_hCoeffs((std::min)(matrix.rows(), matrix.cols())), 293 inline Index cols() const { return m_qr.cols(); } function in class:Eigen::FullPivHouseholderQR 412 Index cols = matrix.cols(); local 498 const Index rows = dec().rows(), cols = dec().cols(); local 571 const Index cols = m_qr.cols(); local 584 Index cols() const { return m_qr.rows(); } function in struct:Eigen::internal::FullPivHouseholderQRMatrixQReturnType [all...] |
ColPivHouseholderQR.h | 88 ColPivHouseholderQR(Index rows, Index cols) 89 : m_qr(rows, cols), 90 m_hCoeffs((std::min)(rows,cols)), 91 m_colsPermutation(PermIndexType(cols)), 92 m_colsTranspositions(cols), 93 m_temp(cols), 94 m_colSqNorms(cols), 104 * ColPivHouseholderQR<MatrixType> qr(matrix.rows(), matrix.cols()); 111 : m_qr(matrix.rows(), matrix.cols()), 112 m_hCoeffs((std::min)(matrix.rows(),matrix.cols())), 297 inline Index cols() const { return m_qr.cols(); } function in class:Eigen::ColPivHouseholderQR 427 Index cols = matrix.cols(); local 529 const Index cols = dec().cols(), local [all...] |
/external/eigen/bench/ |
sparse_product.cpp | 53 // mkl_scscmm(&n, lhs.rows(), rhs.cols(), lhs.cols(), &alpha, matdescra, 56 // // mkl_somatcopy('C', 'T', lhs.rows(), lhs.cols(), 1, 101 int cols = SIZE; local 104 EigenSparseMatrix sm1(rows,cols), sm2(rows,cols), sm3(rows,cols), sm4(rows,cols); 111 fillMatrix2(nnzPerCol, rows, cols, sm1); 112 fillMatrix2(nnzPerCol, rows, cols, sm2) [all...] |
/external/chromium_org/third_party/libvpx/source/libvpx/vp8/common/ |
debugmodes.c | 16 void vp8_print_modes_and_motion_vectors(MODE_INFO *mi, int rows, int cols, int frame) 30 for (mb_col = 0; mb_col < cols; mb_col++) 49 for (mb_col = 0; mb_col < cols; mb_col++) 69 for (mb_col = 0; mb_col < cols; mb_col++) 94 for (b_col = 0; b_col < 4 * cols; b_col++) 96 mb_index = (b_row >> 2) * (cols + 1) + (b_col >> 2); 117 for (mb_col = 0; mb_col < cols; mb_col++) 142 for (b_col = 0; b_col < 4 * cols; b_col++) 144 mb_index = (b_row >> 2) * (cols + 1) + (b_col >> 2);
|
/external/libvpx/libvpx/vp8/common/ |
debugmodes.c | 16 void vp8_print_modes_and_motion_vectors(MODE_INFO *mi, int rows, int cols, int frame) 30 for (mb_col = 0; mb_col < cols; mb_col++) 49 for (mb_col = 0; mb_col < cols; mb_col++) 69 for (mb_col = 0; mb_col < cols; mb_col++) 94 for (b_col = 0; b_col < 4 * cols; b_col++) 96 mb_index = (b_row >> 2) * (cols + 1) + (b_col >> 2); 117 for (mb_col = 0; mb_col < cols; mb_col++) 142 for (b_col = 0; b_col < 4 * cols; b_col++) 144 mb_index = (b_row >> 2) * (cols + 1) + (b_col >> 2);
|
/external/eigen/Eigen/src/misc/ |
Kernel.h | 27 // is the number of cols of the original matrix 47 m_cols(m_rank==dec.cols() ? 1 : dec.cols() - m_rank) 50 inline Index rows() const { return m_dec.cols(); } 51 inline Index cols() const { return m_cols; } function in struct:Eigen::internal::kernel_retval_base 76 using Base::cols; \
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/ |
u_linear.h | 62 unsigned cols; member in struct:pipe_tile_info 94 if (t->tile.size != t->block.size * t->cols * t->rows) 97 if (t->stride != t->block.size * t->cols * t->tiles_x)
|