/dports/math/armadillo/armadillo-10.7.1/tests2/ |
H A D | fn_eigs_gen.cpp | 34 m.sprandu(n_rows, n_rows, 0.3); 93 m.sprandu(n_rows, n_rows, 0.3); 155 m.sprandu(n_rows, n_rows, 0.3); 219 m.sprandu(n_rows, n_rows, 0.3); 283 m.sprandu(n_rows, n_rows, 0.3); 347 m.sprandu(n_rows, n_rows, 0.3); 411 m.sprandu(n_rows, n_rows, 0.3); 474 m.sprandu(n_rows, n_rows, 0.3); 537 m.sprandu(n_rows, n_rows, 0.3); 601 m.sprandu(n_rows, n_rows, 0.3); [all …]
|
H A D | instantiation.cpp | 27 const uword n_rows = 5; variable 30 mat A(n_rows,n_cols); 31 fmat B(n_rows,n_cols); 32 umat C(n_rows,n_cols); 33 imat D(n_rows,n_cols); 35 cx_mat E(n_rows,n_cols); 36 cx_fmat F(n_rows,n_cols); 48 const uword n_rows = 5; variable 52 cube A(n_rows,n_cols,n_slices); 53 fcube B(n_rows,n_cols,n_slices); [all …]
|
H A D | fn_var.cpp | 31 REQUIRE( result.n_rows == 1 ); 40 REQUIRE( result.n_rows == 1 ); 49 REQUIRE( result.n_rows == 1 ); 58 REQUIRE( result.n_rows == 1 ); 159 REQUIRE( rr.n_rows == 1 ); 168 REQUIRE( rr.n_rows == 1 ); 178 REQUIRE( rr.n_rows == 1 ); 209 REQUIRE( rr.n_rows == 1 ); 219 REQUIRE( rr.n_rows == 1 ); 250 REQUIRE( rr.n_rows == 1 ); [all …]
|
/dports/math/mlpack/mlpack-3.4.2/src/mlpack/tests/ |
H A D | fastmks_test.cpp | 245 BOOST_REQUIRE_EQUAL(indices.n_rows, indices2.n_rows); in BOOST_AUTO_TEST_CASE() 246 BOOST_REQUIRE_EQUAL(products.n_rows, products2.n_rows); in BOOST_AUTO_TEST_CASE() 279 BOOST_REQUIRE_EQUAL(indices.n_rows, indices2.n_rows); in BOOST_AUTO_TEST_CASE() 280 BOOST_REQUIRE_EQUAL(products.n_rows, products2.n_rows); in BOOST_AUTO_TEST_CASE() 394 BOOST_REQUIRE_EQUAL(indices.n_rows, mIndices.n_rows); in BOOST_AUTO_TEST_CASE() 402 BOOST_REQUIRE_EQUAL(kernels.n_rows, mKernels.n_rows); in BOOST_AUTO_TEST_CASE() 438 BOOST_REQUIRE_EQUAL(indices.n_rows, mIndices.n_rows); in BOOST_AUTO_TEST_CASE() 446 BOOST_REQUIRE_EQUAL(kernels.n_rows, mKernels.n_rows); in BOOST_AUTO_TEST_CASE() 503 BOOST_REQUIRE_EQUAL(indices.n_rows, mIndices.n_rows); in BOOST_AUTO_TEST_CASE() 511 BOOST_REQUIRE_EQUAL(kernels.n_rows, mKernels.n_rows); in BOOST_AUTO_TEST_CASE() [all …]
|
/dports/math/armadillo/armadillo-10.7.1/include/armadillo_bits/ |
H A D | SizeMat_meat.hpp | 26 : n_rows(in_n_rows) in SizeMat() 38 if(dim == 0) { return n_rows; } in operator []() 50 if(dim == 0) { return n_rows; } in operator ()() 64 if(n_rows != s.n_rows) { return false; } in operator ==() 77 if(n_rows != s.n_rows) { return true; } in operator !=() 90 return SizeMat( (n_rows + s.n_rows), (n_cols + s.n_cols) ); in operator +() 99 const uword out_n_rows = (n_rows > s.n_rows) ? (n_rows - s.n_rows) : uword(0); in operator -() 111 return SizeMat( (n_rows + val), (n_cols + val) ); in operator +() 120 const uword out_n_rows = (n_rows > val) ? (n_rows - val) : uword(0); in operator -() 132 return SizeMat( (n_rows * val), (n_cols * val) ); in operator *() [all …]
|
H A D | SizeCube_meat.hpp | 26 : n_rows (in_n_rows ) in SizeCube() 39 if(dim == 0) { return n_rows; } in operator []() 52 if(dim == 0) { return n_rows; } in operator ()() 67 if(n_rows != s.n_rows ) { return false; } in operator ==() 82 if(n_rows != s.n_rows ) { return true; } in operator !=() 97 return SizeCube( (n_rows + s.n_rows), (n_cols + s.n_cols), (n_slices + s.n_slices) ); in operator +() 106 const uword out_n_rows = (n_rows > s.n_rows ) ? (n_rows - s.n_rows ) : uword(0); in operator -() 119 return SizeCube( (n_rows + val), (n_cols + val), (n_slices + val) ); in operator +() 128 const uword out_n_rows = (n_rows > val) ? (n_rows - val) : uword(0); in operator -() 141 return SizeCube( (n_rows * val), (n_cols * val), (n_slices * val) ); in operator *() [all …]
|
H A D | glue_join_meat.hpp | 54 out.submat(A_n_rows, 0, out.n_rows-1, out.n_cols-1) = B.Q; in apply_noalias() 105 const uword out_n_rows = A.n_rows + B.n_rows + C.n_rows; in apply() 149 const uword out_n_rows = A.n_rows + B.n_rows + C.n_rows + D.n_rows; in apply() 262 const uword out_n_rows = (std::max)((std::max)(A.n_rows, B.n_rows), C.n_rows); in apply() 265 …arma_debug_check( ((A.n_rows != out_n_rows) && ((A.n_rows > 0) || (A.n_cols > 0))), "join_rows() /… in apply() 266 …arma_debug_check( ((B.n_rows != out_n_rows) && ((B.n_rows > 0) || (B.n_cols > 0))), "join_rows() /… in apply() 267 …arma_debug_check( ((C.n_rows != out_n_rows) && ((C.n_rows > 0) || (C.n_cols > 0))), "join_rows() /… in apply() 306 …st uword out_n_rows = (std::max)(((std::max)((std::max)(A.n_rows, B.n_rows), C.n_rows)), D.n_rows); in apply() 309 …arma_debug_check( ((A.n_rows != out_n_rows) && ((A.n_rows > 0) || (A.n_cols > 0))), "join_rows() /… in apply() 310 …arma_debug_check( ((B.n_rows != out_n_rows) && ((B.n_rows > 0) || (B.n_cols > 0))), "join_rows() /… in apply() [all …]
|
H A D | fn_hess.hpp | 42 if(H.n_rows > 2) in hess() 44 for(uword i=0; i < H.n_rows-2; ++i) in hess() 81 if(H.n_rows > 2) in hess() 83 for(uword i=0; i < H.n_rows-2; ++i) in hess() 122 if(H.n_rows == 0) in hess() 127 if(H.n_rows == 1) in hess() 132 if(H.n_rows == 2) in hess() 147 v.ones(H.n_rows-i-1); in hess() 149 v(span(1, H.n_rows-i-2)) = H(span(i+2, H.n_rows-1), i); in hess() 151 … U(span::all, span(i+1, H.n_rows-1)) -= tao(i) * (U(span::all, span(i+1, H.n_rows-1)) * v * v.t()); in hess() [all …]
|
H A D | op_princomp_meat.hpp | 51 const uword n_rows = in.n_rows; in direct_princomp() local 54 if(n_rows > 1) // more than one sample in direct_princomp() 68 s /= std::sqrt( double(n_rows - 1) ); in direct_princomp() 79 s_tmp.rows(0,n_rows-2) = s.rows(0,n_rows-2); in direct_princomp() 83 s_tmp.rows(0,n_rows-2) = T(1) / s_tmp.rows(0,n_rows-2); in direct_princomp() 109 tsquared_out.set_size(n_rows); in direct_princomp() 143 const uword n_rows = in.n_rows; in direct_princomp() local 146 if(n_rows > 1) // more than one sample in direct_princomp() 171 s_tmp.rows(0,n_rows-2) = s.rows(0,n_rows-2); in direct_princomp() 217 const uword n_rows = in.n_rows; in direct_princomp() local [all …]
|
H A D | subview_field_meat.hpp | 46 , n_rows(in_n_rows) in subview_field() 72 , n_rows(in_n_rows) in subview_field() 96 for(uword row=0; row < t.n_rows; ++row) in operator =() 138 for(uword row=0; row < t.n_rows; ++row) in operator =() 161 const uword n_elem_slice = n_rows*n_cols; in operator []() 167 const uword in_col = j / n_rows; in operator []() 168 const uword in_row = j % n_rows; in operator []() 188 const uword in_col = j / n_rows; in operator []() 189 const uword in_row = j % n_rows; in operator []() 522 const uword n_rows = in.n_rows; in extract() local [all …]
|
H A D | fn_trimat_ind.hpp | 30 const uword n_rows = s.n_rows; in trimatu_ind() local 38 const uword N = (std::min)(n_rows - row_offset, n_cols - col_offset); in trimatu_ind() 52 const uword index_offset = (n_rows * col); in trimatu_ind() 64 const uword index_offset = (n_rows * col); in trimatu_ind() 66 for(uword row=0; row < n_rows; ++row) in trimatu_ind() 91 const uword n_rows = s.n_rows; in trimatl_ind() local 99 const uword N = (std::min)(n_rows - row_offset, n_cols - col_offset); in trimatl_ind() 107 const uword index_offset = (n_rows * col); in trimatl_ind() 109 for(uword row=0; row < n_rows; ++row) in trimatl_ind() 121 const uword index_offset = (n_rows * col); in trimatl_ind() [all …]
|
H A D | injector_meat.hpp | 77 , n_rows(1) in mat_injector() 105 , n_rows(1) in mat_injector() 140 if(n_rows > 0) in ~mat_injector() 154 const uword max_n_rows = ((*(A[n_rows-1])).n_cols == 0) ? n_rows-1 : n_rows; in ~mat_injector() 263 for(uword row=n_rows; row<(n_rows+1); ++row) in end_of_row() 270 n_rows += 1; in end_of_row() 420 , n_rows(1) in field_injector() 448 , n_rows(1) in field_injector() 497 const uword max_n_rows = ((*(A[n_rows-1])).n_cols == 0) ? n_rows-1 : n_rows; in ~field_injector() 568 for(uword row=n_rows; row<(n_rows+1); ++row) in end_of_row() [all …]
|
H A D | auxlib_meat.hpp | 397 blas_int n_rows = blas_int(A.n_rows); in det() local 493 blas_int n_rows = blas_int(A.n_rows); in log_det() local 706 P.eye(L.n_rows, L.n_rows); in lu() 3280 U.eye(A.n_rows, A.n_rows); in svd() 3288 U.set_size(A.n_rows, A.n_rows); in svd() 3361 U.eye(A.n_rows, A.n_rows); in svd() 3369 U.set_size(A.n_rows, A.n_rows); in svd() 3813 U.eye(A.n_rows, A.n_rows); in svd_dc() 3821 U.set_size(A.n_rows, A.n_rows); in svd_dc() 3897 U.eye(A.n_rows, A.n_rows); in svd_dc() [all …]
|
/dports/math/R-cran-RcppArmadillo/RcppArmadillo/inst/include/armadillo_bits/ |
H A D | SizeMat_meat.hpp | 26 : n_rows(in_n_rows) in SizeMat() 38 if(dim == 0) { return n_rows; } in operator []() 50 if(dim == 0) { return n_rows; } in operator ()() 64 if(n_rows != s.n_rows) { return false; } in operator ==() 77 if(n_rows != s.n_rows) { return true; } in operator !=() 90 return SizeMat( (n_rows + s.n_rows), (n_cols + s.n_cols) ); in operator +() 99 const uword out_n_rows = (n_rows > s.n_rows) ? (n_rows - s.n_rows) : uword(0); in operator -() 111 return SizeMat( (n_rows + val), (n_cols + val) ); in operator +() 120 const uword out_n_rows = (n_rows > val) ? (n_rows - val) : uword(0); in operator -() 132 return SizeMat( (n_rows * val), (n_cols * val) ); in operator *() [all …]
|
H A D | SizeCube_meat.hpp | 26 : n_rows (in_n_rows ) in SizeCube() 39 if(dim == 0) { return n_rows; } in operator []() 52 if(dim == 0) { return n_rows; } in operator ()() 67 if(n_rows != s.n_rows ) { return false; } in operator ==() 82 if(n_rows != s.n_rows ) { return true; } in operator !=() 97 return SizeCube( (n_rows + s.n_rows), (n_cols + s.n_cols), (n_slices + s.n_slices) ); in operator +() 106 const uword out_n_rows = (n_rows > s.n_rows ) ? (n_rows - s.n_rows ) : uword(0); in operator -() 119 return SizeCube( (n_rows + val), (n_cols + val), (n_slices + val) ); in operator +() 128 const uword out_n_rows = (n_rows > val) ? (n_rows - val) : uword(0); in operator -() 141 return SizeCube( (n_rows * val), (n_cols * val), (n_slices * val) ); in operator *() [all …]
|
H A D | glue_join_meat.hpp | 54 out.submat(A_n_rows, 0, out.n_rows-1, out.n_cols-1) = B.Q; in apply_noalias() 105 const uword out_n_rows = A.n_rows + B.n_rows + C.n_rows; in apply() 149 const uword out_n_rows = A.n_rows + B.n_rows + C.n_rows + D.n_rows; in apply() 262 const uword out_n_rows = (std::max)((std::max)(A.n_rows, B.n_rows), C.n_rows); in apply() 265 …arma_debug_check( ((A.n_rows != out_n_rows) && ((A.n_rows > 0) || (A.n_cols > 0))), "join_rows() /… in apply() 266 …arma_debug_check( ((B.n_rows != out_n_rows) && ((B.n_rows > 0) || (B.n_cols > 0))), "join_rows() /… in apply() 267 …arma_debug_check( ((C.n_rows != out_n_rows) && ((C.n_rows > 0) || (C.n_cols > 0))), "join_rows() /… in apply() 306 …st uword out_n_rows = (std::max)(((std::max)((std::max)(A.n_rows, B.n_rows), C.n_rows)), D.n_rows); in apply() 309 …arma_debug_check( ((A.n_rows != out_n_rows) && ((A.n_rows > 0) || (A.n_cols > 0))), "join_rows() /… in apply() 310 …arma_debug_check( ((B.n_rows != out_n_rows) && ((B.n_rows > 0) || (B.n_cols > 0))), "join_rows() /… in apply() [all …]
|
H A D | fn_hess.hpp | 42 if(H.n_rows > 2) in hess() 44 for(uword i=0; i < H.n_rows-2; ++i) in hess() 81 if(H.n_rows > 2) in hess() 83 for(uword i=0; i < H.n_rows-2; ++i) in hess() 122 if(H.n_rows == 0) in hess() 127 if(H.n_rows == 1) in hess() 132 if(H.n_rows == 2) in hess() 147 v.ones(H.n_rows-i-1); in hess() 149 v(span(1, H.n_rows-i-2)) = H(span(i+2, H.n_rows-1), i); in hess() 151 … U(span::all, span(i+1, H.n_rows-1)) -= tao(i) * (U(span::all, span(i+1, H.n_rows-1)) * v * v.t()); in hess() [all …]
|
H A D | op_princomp_meat.hpp | 51 const uword n_rows = in.n_rows; in direct_princomp() local 54 if(n_rows > 1) // more than one sample in direct_princomp() 68 s /= std::sqrt( double(n_rows - 1) ); in direct_princomp() 79 s_tmp.rows(0,n_rows-2) = s.rows(0,n_rows-2); in direct_princomp() 83 s_tmp.rows(0,n_rows-2) = T(1) / s_tmp.rows(0,n_rows-2); in direct_princomp() 109 tsquared_out.set_size(n_rows); in direct_princomp() 143 const uword n_rows = in.n_rows; in direct_princomp() local 146 if(n_rows > 1) // more than one sample in direct_princomp() 171 s_tmp.rows(0,n_rows-2) = s.rows(0,n_rows-2); in direct_princomp() 217 const uword n_rows = in.n_rows; in direct_princomp() local [all …]
|
H A D | subview_field_meat.hpp | 46 , n_rows(in_n_rows) in subview_field() 72 , n_rows(in_n_rows) in subview_field() 96 for(uword row=0; row < t.n_rows; ++row) in operator =() 138 for(uword row=0; row < t.n_rows; ++row) in operator =() 161 const uword n_elem_slice = n_rows*n_cols; in operator []() 167 const uword in_col = j / n_rows; in operator []() 168 const uword in_row = j % n_rows; in operator []() 188 const uword in_col = j / n_rows; in operator []() 189 const uword in_row = j % n_rows; in operator []() 522 const uword n_rows = in.n_rows; in extract() local [all …]
|
H A D | fn_trimat_ind.hpp | 30 const uword n_rows = s.n_rows; in trimatu_ind() local 38 const uword N = (std::min)(n_rows - row_offset, n_cols - col_offset); in trimatu_ind() 52 const uword index_offset = (n_rows * col); in trimatu_ind() 64 const uword index_offset = (n_rows * col); in trimatu_ind() 66 for(uword row=0; row < n_rows; ++row) in trimatu_ind() 91 const uword n_rows = s.n_rows; in trimatl_ind() local 99 const uword N = (std::min)(n_rows - row_offset, n_cols - col_offset); in trimatl_ind() 107 const uword index_offset = (n_rows * col); in trimatl_ind() 109 for(uword row=0; row < n_rows; ++row) in trimatl_ind() 121 const uword index_offset = (n_rows * col); in trimatl_ind() [all …]
|
H A D | injector_meat.hpp | 77 , n_rows(1) in mat_injector() 105 , n_rows(1) in mat_injector() 140 if(n_rows > 0) in ~mat_injector() 154 const uword max_n_rows = ((*(A[n_rows-1])).n_cols == 0) ? n_rows-1 : n_rows; in ~mat_injector() 263 for(uword row=n_rows; row<(n_rows+1); ++row) in end_of_row() 270 n_rows += 1; in end_of_row() 420 , n_rows(1) in field_injector() 448 , n_rows(1) in field_injector() 497 const uword max_n_rows = ((*(A[n_rows-1])).n_cols == 0) ? n_rows-1 : n_rows; in ~field_injector() 568 for(uword row=n_rows; row<(n_rows+1); ++row) in end_of_row() [all …]
|
/dports/graphics/py-scikit-image/scikit-image-0.19.0/skimage/util/tests/ |
H A D | test_montage.py | 10 n_images, n_rows, n_cols = 3, 2, 3 12 arr_in = arr_in.reshape(n_images, n_rows, n_cols) 25 n_images, n_rows, n_cols, n_channels = 2, 2, 2, 2 27 n_images * n_rows * n_cols * n_channels, 57 n_images, n_rows, n_cols, n_channels = 2, 2, 2, 2 94 n_images, n_rows, n_cols = 3, 2, 3 109 n_images, n_rows, n_cols = 15, 11, 7 119 n_images, n_rows, n_cols = 6, 2, 2 136 n_images, n_rows, n_cols = 4, 3, 3 155 n_images, n_rows, n_cols = 2, 2, 2 [all …]
|
/dports/science/code_saturne/code_saturne-7.1.0/src/alge/ |
H A D | cs_sles_mumps.c | 289 dmumps->nnz = (MUMPS_INT8)(n_rows + a_row_idx[n_rows]); in _msr_dmumps() 373 dmumps->nnz_loc = (MUMPS_INT8)(n_rows + a_row_idx[n_rows]); in _parall_msr_dmumps() 633 dmumps->nnz = n_rows + a_row_idx[n_rows]; in _msr_sym_dmumps() 635 dmumps->nnz = n_rows + a_row_idx[n_rows]/2; in _msr_sym_dmumps() 746 dmumps->nnz_loc = n_rows + a_row_idx[n_rows]; in _parall_msr_sym_dmumps() 748 dmumps->nnz_loc = n_rows + a_row_idx[n_rows]/2; in _parall_msr_sym_dmumps() 1017 smumps->nnz = (MUMPS_INT8)(n_rows + a_row_idx[n_rows]); in _msr_smumps() 1101 smumps->nnz_loc = (MUMPS_INT8)(n_rows + a_row_idx[n_rows]); in _parall_msr_smumps() 1265 smumps->nnz = (MUMPS_INT8)(n_rows + a_row_idx[n_rows]); in _msr_sym_smumps() 1358 smumps->nnz_loc = (MUMPS_INT8)(n_rows + a_row_idx[n_rows]); in _parall_msr_sym_smumps() [all …]
|
/dports/science/code_saturne/code_saturne-7.1.0/src/cdo/ |
H A D | cs_cdo_anderson.h | 154 int n_rows = R->n_rows; in qrdelete() local 159 assert(R->n_cols == R->n_rows); in qrdelete() 160 …const double temp = sqrt(R->val[i*n_rows+i+1]*R->val[i*n_rows+i+1]+R->val[(i+1)*n_rows+i+1]*R->val… in qrdelete() 162 const double c = R->val[i*n_rows+i+1]/temp; in qrdelete() 165 R->val[i*n_rows+i+1] = temp; in qrdelete() 166 R->val[(i+1)*n_rows+i+1]=0.0; in qrdelete() 171 const double temp0 = c*R->val[i*n_rows+j]+s*R->val[(i+1)*n_rows+j]; in qrdelete() 172 R->val[(i+1)*n_rows+j] = -s*R->val[i*n_rows+j]+c*R->val[(i+1)*n_rows+j]; in qrdelete() 173 R->val[i*n_rows+j] = temp0; in qrdelete() 186 cs_sdm_square_init(R->n_rows, temp2); in qrdelete() [all …]
|
/dports/math/pspp/pspp-1.4.1/tests/data/ |
H A D | datasheet-test.c | 129 n_rows); in check_datasheet_casereader() 191 assert (n_rows < MAX_ROWS); in check_datasheet() 302 if (n_rows != 0) in check_datasheet() 313 if (n_rows == 0) in check_datasheet() 333 assert (n_rows < MAX_ROWS); in extract_data() 335 for (row = 0; row < n_rows; row++) in extract_data() 356 assert (n_rows < MAX_ROWS); in clone_data() 358 for (row = 0; row < n_rows; row++) in clone_data() 376 assert (n_rows < MAX_ROWS); in release_data() 660 cnt, pos, n_rows, n_rows + cnt); in datasheet_mc_mutate() [all …]
|