Searched refs:rows (Results 1 - 25 of 716) sorted by relevance

1234567891011>>

/external/eigen/doc/snippets/
H A DTutorial_commainit_02.cpp1 int rows=5, cols=5; variable
2 MatrixXf m(rows,cols);
5 MatrixXf::Zero(rows-3,3),
6 MatrixXf::Identity(rows-3,cols-3);
H A DMatrix_resize_int.cpp5 cout << "v: " << v.rows() << " rows, " << v.cols() << " cols" << endl;
6 cout << "w: " << w.rows() << " rows, " << w.cols() << " cols" << endl;
H A DMatrix_resize_NoChange_int.cpp3 cout << "m: " << m.rows() << " rows, " << m.cols() << " cols" << endl;
H A DMatrix_resize_int_NoChange.cpp3 cout << "m: " << m.rows() << " rows, " << m.cols() << " cols" << endl;
H A Dtut_matrix_assignment_resizing.cpp2 std::cout << "a is of size " << a.rows() << "x" << a.cols() << std::endl;
5 std::cout << "a is now of size " << a.rows() << "x" << a.cols() << std::endl;
/external/eigen/test/
H A Dresize.cpp12 template<DenseIndex rows, DenseIndex cols>
15 MatrixXf A(rows, cols);
17 Matrix<double, rows, cols> C;
20 VERIFY(B.rows() == rows && B.cols() == cols);
22 VectorXf x(rows);
25 VERIFY(y.rows() == 1 && y.cols() == rows);
29 VERIFY(x.rows() == cols && x.cols() == 1);
H A Dmiscmatrices.cpp20 Index rows = m.rows(); 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);
27 VectorType v1 = VectorType::Random(rows);
33 square = MatrixType::Zero(rows, rows);
34 square.diagonal() = VectorType::Ones(rows);
[all...]
H A Darray_replicate.cpp23 Index rows = m.rows(); local
26 MatrixType m1 = MatrixType::Random(rows, cols),
27 m2 = MatrixType::Random(rows, cols);
29 VectorType v1 = VectorType::Random(rows);
37 x1.resize(rows*f1,cols*f2);
40 x1.block(i*rows,j*cols,rows,cols) = m1;
43 x2.resize(2*rows,3*cols);
48 x2.resize(rows,f
[all...]
H A Dspqr_support.cpp17 int rows = internal::random<int>(1,maxRows); local
18 int cols = internal::random<int>(1,rows);
19 double density = (std::max)(8./(rows*cols), 0.01);
21 A.resize(rows,rows);
22 dA.resize(rows,rows);
25 return rows;
38 int m = A.rows();
H A Darray_reverse.cpp22 Index rows = m.rows(); local
27 MatrixType m1 = MatrixType::Random(rows, cols);
28 VectorType v1 = VectorType::Random(rows);
32 for ( int i = 0; i < rows; i++ ) {
34 VERIFY_IS_APPROX(m1_r(i, j), m1(rows - 1 - i, cols - 1 - j));
40 for ( int i = 0; i < rows; i++ ) {
42 VERIFY_IS_APPROX(m1_rd(i, j), m1(rows - 1 - i, cols - 1 - j));
48 for ( int i = 0; i < rows; i++ ) {
50 VERIFY_IS_APPROX(m1_rb(i, j), m1(rows
[all...]
H A Dinverse.cpp21 Index rows = m.rows(); local
26 MatrixType m1(rows, cols),
27 m2(rows, cols),
28 identity = MatrixType::Identity(rows, rows);
29 createRandomPIMatrixOfRank(rows,rows,rows,m1);
64 VectorType v3 = VectorType::Random(rows);
[all...]
H A Dsparse_basic.cpp19 const Index rows = ref.rows(); local
24 double density = (std::max)(8./(rows*cols), 0.01);
31 SparseMatrixType m(rows, cols);
32 DenseMatrix refMat = DenseMatrix::Zero(rows, cols);
33 DenseVector vec1 = DenseVector::Random(rows);
60 int i = internal::random<int>(0,rows-1);
62 int h = internal::random<int>(1,rows-i-1);
89 for(int r=0; r<rows; r++)
103 DenseMatrix m1(rows,col
[all...]
/external/eigen/failtest/
H A Dmap_nonconst_ctor_on_const_ptr_2.cpp11 void foo(CV_QUALIFIER float *ptr, DenseIndex rows, DenseIndex cols){ argument
12 Map<MatrixXf> m(ptr, rows, cols);
H A Dmap_nonconst_ctor_on_const_ptr_3.cpp11 void foo(CV_QUALIFIER float *ptr, DenseIndex rows, DenseIndex cols){ argument
12 Map<MatrixXf, Aligned, InnerStride<2> > m(ptr, rows, cols, InnerStride<2>());
H A Dmap_nonconst_ctor_on_const_ptr_4.cpp11 void foo(const float *ptr, DenseIndex rows, DenseIndex cols){ argument
12 Map<CV_QUALIFIER MatrixXf, Unaligned, OuterStride<> > m(ptr, rows, cols, OuterStride<>(2));
/external/eigen/test/eigen2/
H A Deigen2_miscmatrices.cpp21 int rows = m.rows(); 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);
28 VectorType v1 = VectorType::Random(rows);
34 square = MatrixType::Zero(rows, rows);
35 square.diagonal() = VectorType::Ones(rows);
[all...]
H A Deigen2_sparse_product.cpp14 const int rows = ref.rows(); local
19 double density = std::max(8./(rows*cols), 0.01);
25 DenseMatrix refMat2 = DenseMatrix::Zero(rows, rows);
26 DenseMatrix refMat3 = DenseMatrix::Zero(rows, rows);
27 DenseMatrix refMat4 = DenseMatrix::Zero(rows, rows);
28 DenseMatrix dm4 = DenseMatrix::Zero(rows, row
[all...]
H A Deigen2_sparse_basic.cpp48 const int rows = ref.rows(); local
53 double density = std::max(8./(rows*cols), 0.01);
58 SparseMatrixType m(rows, cols);
59 DenseMatrix refMat = DenseMatrix::Zero(rows, cols);
60 DenseVector vec1 = DenseVector::Random(rows);
88 int i = ei_random<int>(0,rows-1);
90 int h = ei_random<int>(1,rows-i-1);
117 for(int r=0; r<rows; r++)
167 DenseMatrix m1(rows,col
[all...]
H A Deigen2_svd.cpp18 int rows = m.rows(); local
23 MatrixType a = MatrixType::Random(rows,cols);
25 Matrix<Scalar, MatrixType::RowsAtCompileTime, 1>::Random(rows,1);
34 MatrixType sigma = MatrixType::Zero(rows,cols);
35 MatrixType matU = MatrixType::Zero(rows,rows);
37 matU.block(0,0,rows,cols) = svd.matrixU();
42 if (rows==cols)
46 MatrixType a1 = MatrixType::Random(rows,col
[all...]
H A Deigen2_inverse.cpp19 int rows = m.rows(); local
26 MatrixType m1 = MatrixType::Random(rows, cols),
27 m2(rows, cols),
28 identity = MatrixType::Identity(rows, rows);
30 while(ei_abs(m1.determinant()) < RealScalar(0.1) && rows <= 8)
32 m1 = MatrixType::Random(rows, cols);
/external/eigen/doc/examples/
H A Dclass_Block.cpp8 topLeftCorner(MatrixBase<Derived>& m, int rows, int cols) argument
10 return Eigen::Block<Derived>(m.derived(), 0, 0, rows, cols);
15 topLeftCorner(const MatrixBase<Derived>& m, int rows, int cols) argument
17 return Eigen::Block<const Derived>(m.derived(), 0, 0, rows, cols);
/external/apache-commons-math/src/main/java/org/apache/commons/math/linear/
H A DNonSquareMatrixException.java35 * @param rows number of rows of the faulty matrix
38 public NonSquareMatrixException(final int rows, final int columns) { argument
39 super(LocalizedFormats.NON_SQUARE_MATRIX, rows, columns);
/external/skia/src/utils/
H A DSkMeshUtils.cpp21 int texW, int texH, int rows, int cols) {
22 if (rows < 2 || cols < 2) {
34 fTexCount = rows * cols;
35 rows -= 1;
37 fIndexCount = rows * cols * 6;
54 for (int x = 0; x < rows; x++) {
56 *idx++ = index + rows + 1;
60 *idx++ = index + rows + 1;
61 *idx++ = index + rows + 2;
72 const SkScalar dx = SkIntToScalar(texW) / rows;
20 init(SkPoint tex[], uint16_t indices[], int texW, int texH, int rows, int cols) argument
88 Draw(SkCanvas* canvas, const SkBitmap& bitmap, int rows, int cols, const SkPoint verts[], const SkColor colors[], const SkPaint& paint) argument
[all...]
/external/ceres-solver/internal/ceres/
H A Dnormal_prior.cc44 CHECK_GT(b_.rows(), 0);
45 CHECK_GT(A_.rows(), 0);
46 CHECK_EQ(b_.rows(), A.cols());
47 set_num_residuals(A_.rows());
48 mutable_parameter_block_sizes()->push_back(b_.rows());
/external/libvpx/libvpx/third_party/libyuv/source/
H A Dconvert_jpeg.cc37 int rows) {
45 dest->w, rows);
46 dest->y += rows * dest->y_stride;
47 dest->u += ((rows + 1) >> 1) * dest->u_stride;
48 dest->v += ((rows + 1) >> 1) * dest->v_stride;
49 dest->h -= rows;
55 int rows) {
63 dest->w, rows);
64 dest->y += rows * dest->y_stride;
65 dest->u += ((rows
34 JpegCopyI420(void* opaque, const uint8* const* data, const int* strides, int rows) argument
52 JpegI422ToI420(void* opaque, const uint8* const* data, const int* strides, int rows) argument
70 JpegI444ToI420(void* opaque, const uint8* const* data, const int* strides, int rows) argument
88 JpegI411ToI420(void* opaque, const uint8* const* data, const int* strides, int rows) argument
106 JpegI400ToI420(void* opaque, const uint8* const* data, const int* strides, int rows) argument
232 JpegI420ToARGB(void* opaque, const uint8* const* data, const int* strides, int rows) argument
246 JpegI422ToARGB(void* opaque, const uint8* const* data, const int* strides, int rows) argument
260 JpegI444ToARGB(void* opaque, const uint8* const* data, const int* strides, int rows) argument
274 JpegI411ToARGB(void* opaque, const uint8* const* data, const int* strides, int rows) argument
288 JpegI400ToARGB(void* opaque, const uint8* const* data, const int* strides, int rows) argument
[all...]

Completed in 2780 milliseconds

1234567891011>>