/dports/misc/py-xgboost/xgboost-1.5.1/tests/cpp/common/ |
H A D | test_column_matrix.cc | 17 GHistIndexMatrix gmat(dmat.get(), max_num_bin); in TEST() local 19 column_matrix.Init(gmat, 0.2); in TEST() 51 ASSERT_EQ(col.Size(), gmat.index.Size()); in CheckSparseColumn() 53 ASSERT_EQ(gmat.index[gmat.row_ptr[col.GetRowIdx(i)]], in CheckSparseColumn() 66 column_matrix.Init(gmat, 0.5); in TEST() 70 CheckSparseColumn(*col.get(), gmat); in TEST() 75 CheckSparseColumn(*col.get(), gmat); in TEST() 80 CheckSparseColumn(*col.get(), gmat); in TEST() 93 EXPECT_EQ(gmat.index[gmat.row_ptr[i]], in CheckColumWithMissingValue() 106 column_matrix.Init(gmat, 0.2); in TEST() [all …]
|
/dports/misc/xgboost/xgboost-1.5.1/tests/cpp/common/ |
H A D | test_column_matrix.cc | 17 GHistIndexMatrix gmat(dmat.get(), max_num_bin); in TEST() local 19 column_matrix.Init(gmat, 0.2); in TEST() 51 ASSERT_EQ(col.Size(), gmat.index.Size()); in CheckSparseColumn() 53 ASSERT_EQ(gmat.index[gmat.row_ptr[col.GetRowIdx(i)]], in CheckSparseColumn() 66 column_matrix.Init(gmat, 0.5); in TEST() 70 CheckSparseColumn(*col.get(), gmat); in TEST() 75 CheckSparseColumn(*col.get(), gmat); in TEST() 80 CheckSparseColumn(*col.get(), gmat); in TEST() 93 EXPECT_EQ(gmat.index[gmat.row_ptr[i]], in CheckColumWithMissingValue() 106 column_matrix.Init(gmat, 0.2); in TEST() [all …]
|
/dports/misc/py-xgboost/xgboost-1.5.1/tests/cpp/tree/ |
H A D | test_quantile_hist.cc | 34 void TestInitData(const GHistIndexMatrix& gmat, in TestInitData() 38 RealImpl::InitData(gmat, *p_fmat, tree, gpair); in TestInitData() 53 const size_t ibegin = gmat.cut.Ptrs()[fid]; in TestInitData() 60 ASSERT_LT(gmat.cut.Values()[i], gmat.cut.Values()[i + 1]) in TestInitData() 67 ASSERT_EQ(gmat.row_ptr.size(), num_row + 1); in TestInitData() 68 ASSERT_LT(*std::max_element(gmat.index.begin(), gmat.index.end()), in TestInitData() 69 gmat.cut.Ptrs().back()); in TestInitData() 78 ASSERT_EQ(gmat.row_ptr[rid] + inst.size(), gmat.row_ptr[rid + 1]); in TestInitData() 89 if (bin_id > gmat.cut.Ptrs()[fid]) { in TestInitData() 169 cm.Init(gmat, 0.0); in TestApplySplit() [all …]
|
/dports/misc/xgboost/xgboost-1.5.1/tests/cpp/tree/ |
H A D | test_quantile_hist.cc | 34 void TestInitData(const GHistIndexMatrix& gmat, in TestInitData() 38 RealImpl::InitData(gmat, *p_fmat, tree, gpair); in TestInitData() 53 const size_t ibegin = gmat.cut.Ptrs()[fid]; in TestInitData() 60 ASSERT_LT(gmat.cut.Values()[i], gmat.cut.Values()[i + 1]) in TestInitData() 67 ASSERT_EQ(gmat.row_ptr.size(), num_row + 1); in TestInitData() 68 ASSERT_LT(*std::max_element(gmat.index.begin(), gmat.index.end()), in TestInitData() 69 gmat.cut.Ptrs().back()); in TestInitData() 78 ASSERT_EQ(gmat.row_ptr[rid] + inst.size(), gmat.row_ptr[rid + 1]); in TestInitData() 89 if (bin_id > gmat.cut.Ptrs()[fid]) { in TestInitData() 169 cm.Init(gmat, 0.0); in TestApplySplit() [all …]
|
/dports/graphics/opencv/opencv-4.5.3/contrib/modules/cudev/test/ |
H A D | test_nd.cu | 73 GpuMatND gmat; in doTest1() local 76 gmat.upload(gold); in doTest1() 77 gmat.download(dst); in doTest1() 88 GpuMatND gmat; in doTest2() local 96 gmat.upload(gold); in doTest2() 97 gmat = gmat(ranges); in doTest2() 111 GpuMatND gmat; in doTest3() local 117 gmat.upload(gold); in doTest3() 150 GpuMatND gmat; in doTest4() local 154 …const GpuMatND external(gmat.size, gmat.type(), gmat.getDevicePtr(), {gmat.step.begin(), gmat.step… in doTest4() [all …]
|
/dports/misc/py-xgboost/xgboost-1.5.1/src/common/ |
H A D | column_matrix.h | 149 inline void Init(const GHistIndexMatrix& gmat, in Init() argument 159 CHECK_LE(gmat.cut.Ptrs()[fid + 1] - gmat.cut.Ptrs()[fid], max_val); in Init() 161 bool all_dense = gmat.IsDense(); in Init() 162 gmat.GetFeatureCounts(&feature_counts_[0]); in Init() 188 SetTypeSize(gmat.max_num_bins); in Init() 211 SetIndexAllDense(gmat.index.data<uint8_t>(), gmat, nrow, nfeature, noMissingValues); in Init() 213 SetIndexAllDense(gmat.index.data<uint16_t>(), gmat, nrow, nfeature, noMissingValues); in Init() 216 SetIndexAllDense(gmat.index.data<uint32_t>(), gmat, nrow, nfeature, noMissingValues); in Init() 222 SetIndex<uint8_t>(gmat.index.data<uint32_t>(), gmat, nfeature); in Init() 224 SetIndex<uint16_t>(gmat.index.data<uint32_t>(), gmat, nfeature); in Init() [all …]
|
H A D | hist_util.cc | 140 const GHistIndexMatrix& gmat, in BuildHistKernel() argument 145 const BinIdxType* gradient_index = gmat.index.data<BinIdxType>(); in BuildHistKernel() 146 const size_t* row_ptr = gmat.row_ptr.data(); in BuildHistKernel() 147 const uint32_t* offsets = gmat.index.Offset(); in BuildHistKernel() 188 const GHistIndexMatrix& gmat, GHistRow<FPType> hist) { in BuildHistDispatch() argument 189 switch (gmat.index.GetBinTypeSize()) { in BuildHistDispatch() 212 const GHistIndexMatrix &gmat, in BuildHist() argument 235 const GHistIndexMatrix &gmat, 240 const GHistIndexMatrix &gmat, 245 const GHistIndexMatrix &gmat, [all …]
|
/dports/misc/xgboost/xgboost-1.5.1/src/common/ |
H A D | column_matrix.h | 149 inline void Init(const GHistIndexMatrix& gmat, in Init() argument 159 CHECK_LE(gmat.cut.Ptrs()[fid + 1] - gmat.cut.Ptrs()[fid], max_val); in Init() 161 bool all_dense = gmat.IsDense(); in Init() 162 gmat.GetFeatureCounts(&feature_counts_[0]); in Init() 188 SetTypeSize(gmat.max_num_bins); in Init() 211 SetIndexAllDense(gmat.index.data<uint8_t>(), gmat, nrow, nfeature, noMissingValues); in Init() 213 SetIndexAllDense(gmat.index.data<uint16_t>(), gmat, nrow, nfeature, noMissingValues); in Init() 216 SetIndexAllDense(gmat.index.data<uint32_t>(), gmat, nrow, nfeature, noMissingValues); in Init() 222 SetIndex<uint8_t>(gmat.index.data<uint32_t>(), gmat, nfeature); in Init() 224 SetIndex<uint16_t>(gmat.index.data<uint32_t>(), gmat, nfeature); in Init() [all …]
|
H A D | hist_util.cc | 140 const GHistIndexMatrix& gmat, in BuildHistKernel() argument 145 const BinIdxType* gradient_index = gmat.index.data<BinIdxType>(); in BuildHistKernel() 146 const size_t* row_ptr = gmat.row_ptr.data(); in BuildHistKernel() 147 const uint32_t* offsets = gmat.index.Offset(); in BuildHistKernel() 188 const GHistIndexMatrix& gmat, GHistRow<FPType> hist) { in BuildHistDispatch() argument 189 switch (gmat.index.GetBinTypeSize()) { in BuildHistDispatch() 212 const GHistIndexMatrix &gmat, in BuildHist() argument 235 const GHistIndexMatrix &gmat, 240 const GHistIndexMatrix &gmat, 245 const GHistIndexMatrix &gmat, [all …]
|
/dports/science/mpqc/mpqc-2.3.1/src/lib/chemistry/qc/dft/ |
H A D | clkstmpl.h | 6 double * const gmat; 12 gmat(g), pmat(p), a0(a) {} in LocalCLKSContribution() 18 gmat[ij] += val*pmat[kl]; in cont1() 19 gmat[kl] += val*pmat[ij]; in cont1() 24 gmat[ij] += val*pmat[kl]; in cont2() 25 gmat[kl] += val*pmat[ij]; in cont2() 30 gmat[ij] += val*pmat[kl]; in cont3() 31 gmat[kl] += val*pmat[ij]; in cont3() 36 gmat[ij] += val*pmat[kl]; in cont4() 37 gmat[kl] += val*pmat[ij]; in cont4() [all …]
|
H A D | hsoskstmpl.h | 6 double * const gmat; 21 gmat[ij] += val*pmat[kl]; in cont1() 22 gmat[kl] += val*pmat[ij]; in cont1() 27 gmat[ij] -= val*pmat[kl]; in cont2() 28 gmat[kl] -= val*pmat[ij]; in cont2() 36 gmat[ij] -= val*pmat[kl]; in cont3() 37 gmat[kl] -= val*pmat[ij]; in cont3() 44 gmat[ij] += (1.0 - 0.25*a0)*val*pmat[kl]; in cont4() 45 gmat[kl] += (1.0 - 0.25*a0)*val*pmat[ij]; in cont4() 52 gmat[ij] += (1.0 - 0.5*a0)*val*pmat[kl]; in cont5() [all …]
|
/dports/science/py-OpenFermion/OpenFermion-1.3.0/src/openfermion/circuits/primitives/ |
H A D | optimal_givens_decomposition_test.py | 65 givens_rotate(unitary, gmat, 1, 2, which='row') 70 givens_rotate(unitary, gmat, 0, 1, which='row') 88 gmat = numpy.eye(dim, dtype=complex) 89 gmat[i, i] = givens_mat[0, 0] 90 gmat[i, j] = givens_mat[0, 1] 91 gmat[j, i] = givens_mat[1, 0] 92 gmat[j, j] = givens_mat[1, 1] 93 return gmat 114 fullgmat = create_givens(gmat, 0, 1, 3) 117 givens_rotate(unitary, gmat, 0, 1) [all …]
|
H A D | optimal_givens_decomposition.py | 63 gmat = givens_matrix_elements(unitary[N - j - 1, i - j - 1], 66 right_rotations.append((gmat.T, (i - j - 1, i - j))) 68 gmat.conj(), 81 left_rotations.append((gmat, (N + j - i - 2, N + j - i - 1))) 83 gmat, 112 for (gmat, (i, j)) in list(reversed(new_left_rotations)) + list( 114 ordered_rotations.append((gmat, (i, j))) 118 if not numpy.isclose(gmat[0, 0].imag, 0.0): 122 if not numpy.isclose(gmat[1, 0].imag, 0.0): 128 theta = numpy.arcsin(numpy.real(gmat[1, 0])) [all …]
|
/dports/math/R-cran-bdsmatrix/bdsmatrix/tests/ |
H A D | gtest2.R | 13 gmat <- gchol(tmat) globalVar 14 g2 <- as.matrix(gmat) %*% diag(sqrt(diag(gmat))) 17 aeq(1:13 %*% g2, 1:13 %*% gmat) #vectors first 18 aeq(g2 %*% 1:13, gmat %*% 1:13) 21 aeq(temp %*% g2, temp %*% gmat) 22 aeq(g2 %*% t(temp), gmat %*% t(temp))
|
H A D | corner2.R | 51 gmat <- gchol(tmat) globalVar 52 g2 <- as.matrix(gmat) %*% diag(sqrt(diag(gmat))) 53 aeq(1:13 %*% g2, 1:13 %*% gmat) #vectors first 54 aeq(g2 %*% 1:13, gmat %*% 1:13) 56 aeq(temp %*% g2, temp %*% gmat) 57 aeq(g2 %*% t(temp), gmat %*% t(temp))
|
H A D | gtest2.Rout.save | 37 > gmat <- gchol(tmat) 38 > g2 <- as.matrix(gmat) %*% diag(sqrt(diag(gmat))) 41 > aeq(1:13 %*% g2, 1:13 %*% gmat) #vectors first 43 > aeq(g2 %*% 1:13, gmat %*% 1:13) 47 > aeq(temp %*% g2, temp %*% gmat) 49 > aeq(g2 %*% t(temp), gmat %*% t(temp))
|
/dports/science/mpqc/mpqc-2.3.1/src/lib/chemistry/qc/scf/ |
H A D | hsoshftmpl.h | 4 double * const gmat; 17 gmat[ij] += val*pmat[kl]; in cont1() 18 gmat[kl] += val*pmat[ij]; in cont1() 23 gmat[ij] -= val*pmat[kl]; in cont2() 24 gmat[kl] -= val*pmat[ij]; in cont2() 32 gmat[ij] -= val*pmat[kl]; in cont3() 33 gmat[kl] -= val*pmat[ij]; in cont3() 40 gmat[ij] += 0.75*val*pmat[kl]; in cont4() 41 gmat[kl] += 0.75*val*pmat[ij]; in cont4() 49 gmat[ij] += val*pmat[kl]; in cont5() [all …]
|
H A D | clhftmpl.h | 17 double * const restrictxx gmat; 24 LocalCLHFContribution(double *g, double *p) : gmat(g), pmat(p) {} in LocalCLHFContribution() 52 gmat[ij] += val*pmat[kl]; CHECK(val,pmat[kl],ij,kl,"cont1a"); in cont1() 53 gmat[kl] += val*pmat[ij]; CHECK(val,pmat[ij],ij,kl,"cont1b"); in cont1() 58 gmat[ij] += val*pmat[kl]; CHECK(4*val,0.25*pmat[kl],ij,kl,"cont2a"); in cont2() 59 gmat[kl] += val*pmat[ij]; CHECK(4*val,0.25*pmat[ij],ij,kl,"cont2b"); in cont2() 64 gmat[ij] += val*pmat[kl]; CHECK(2*val,0.5*pmat[kl],ij,kl,"cont3a"); in cont3() 65 gmat[kl] += val*pmat[ij]; CHECK(2*val,0.5*pmat[ij],ij,kl,"cont3b"); in cont3() 70 gmat[ij] += val*pmat[kl]; CHECK(4./3.*val,0.75*pmat[kl],ij,kl,"cont4a"); in cont4() 76 gmat[ij] += val*pmat[kl]; CHECK(2*val,0.5*pmat[kl],ij,kl,"cont5a"); in cont5() [all …]
|
H A D | osshftmpl.h | 6 double * const gmat; 22 gmat[ij] += val*pmat[kl]; in cont1() 23 gmat[kl] += val*pmat[ij]; in cont1() 28 gmat[ij] -= val*pmat[kl]; in cont2() 29 gmat[kl] -= val*pmat[ij]; in cont2() 47 gmat[ij] -= val*pmat[kl]; in cont3() 48 gmat[kl] -= val*pmat[ij]; in cont3() 65 gmat[ij] += 0.75*val*pmat[kl]; in cont4() 66 gmat[kl] += 0.75*val*pmat[ij]; in cont4() 83 gmat[ij] += val*pmat[kl]; in cont5() [all …]
|
/dports/science/nwchem-data/nwchem-7.0.2-release/src/geom/ |
H A D | geom_2d.F | 78 double precision cdist(3),cang(3),gmat(3,3),amat(3,3),vol 100 gmat(i,i)=cdist(i)**2 102 gmat(1,2)=cdist(1)*cdist(2)*cos(cang(3)) 103 gmat(2,1)=gmat(1,2) 104 gmat(1,3)=0.0d+00 105 gmat(2,3)=0.0d+00 106 gmat(3,1)=0.0d+00 107 gmat(3,2)=0.0d+00 108 gmat(3,3)=0.0d+00 112 metric_matrix(i,j,geom)=gmat(i,j)
|
/dports/science/nwchem/nwchem-7b21660b82ebd85ef659f6fba7e1e73433b0bd0a/src/geom/ |
H A D | geom_2d.F | 78 double precision cdist(3),cang(3),gmat(3,3),amat(3,3),vol 100 gmat(i,i)=cdist(i)**2 102 gmat(1,2)=cdist(1)*cdist(2)*cos(cang(3)) 103 gmat(2,1)=gmat(1,2) 104 gmat(1,3)=0.0d+00 105 gmat(2,3)=0.0d+00 106 gmat(3,1)=0.0d+00 107 gmat(3,2)=0.0d+00 108 gmat(3,3)=0.0d+00 112 metric_matrix(i,j,geom)=gmat(i,j)
|
/dports/science/afni/afni-AFNI_21.3.16/src/ |
H A D | graph_compon.c | 29 void GRAPH_find_components( int npt, int ** gmat, int * ncom, int *** cmat ) in GRAPH_find_components() argument 39 if( npt <= 0 || gmat == NULL || cmat == NULL ) return ; /* error */ in GRAPH_find_components() 53 if( gmat[ijk] != NULL && gmat[ijk][0] > 0 && !used[ijk] ) break ; in GRAPH_find_components() 62 ncon = gmat[ijk][0] ; in GRAPH_find_components() 81 nkk = (gmat[pkk] == NULL) ? 0 /* # pts attached to it */ in GRAPH_find_components() 82 : gmat[pkk][0] ; in GRAPH_find_components() 85 pii = gmat[pkk][ii] ; /* ii-th point attached to pkk */ in GRAPH_find_components()
|
H A D | 3duuu2.c | 314 int ** gmat , ** cmat ; in main() local 339 gmat = (int **) malloc( sizeof(int *) * UC_nvec ) ; in main() 353 gmat[kk] = (int *) malloc( sizeof(int) * (uval+1) ) ; in main() 354 gmat[kk][0] = uval ; in main() 355 for( jj=0 ; jj < uval ; jj++ ) gmat[kk][jj+1] = UC_ihi[jj] ; in main() 373 if( gmat[ii][aa] == kk ) break ; in main() 375 if( aa > gmat[ii][0] ){ /* wasn't in list */ in main() 379 gmat[ii] = (int *) realloc( sizeof(int)*(gmat[ii][0]+2) ) ; in main() 380 gmat[ii][++(gmat[ii][0])] = kk ; in main() 384 gmat[kk][jj+1] = -1 ; /* flag as a bad connection */ in main() [all …]
|
/dports/math/reduce/Reduce-svn5758-src/packages/cde/examples/ |
H A D | wdvv_biham1.red | 58 procedure chr1(gmat,i,j,k,vars)$ 60 (1/2)*(df(gmat(i,j),part(vars,k))+df(gmat(i,k),part(vars,j)) 61 -df(gmat(j,k),part(vars,i)))$ 63 procedure mk_chr1(gmat,i,j,k,vars)$ 67 procedure generate_all_chr1(gmat,vars)$ 77 set(mk_chr1(gmat,i,j,k,vars),chr1(gmat,i,j,k,vars))$ 82 procedure chr2(gmat,i,j,k,inv_gmat,vars)$ 88 inv_gmat(i,s)*mk_chr1(gmat,s,j,k,vars) 91 procedure mk_chr2(gmat,i,j,k,vars)$ 95 procedure generate_all_chr2(gmat,inv_gmat,vars)$ [all …]
|
/dports/misc/py-xgboost/xgboost-1.5.1/tests/cpp/tree/hist/ |
H A D | test_evaluate_splits.cc | 35 GHistIndexMatrix gmat(dmat.get(), kMaxBins); in TestEvaluateSplits() local 42 auto hist_builder = GHistBuilder<GradientSumT>(n_threads, gmat.cut.Ptrs().back()); in TestEvaluateSplits() 43 hist.Init(gmat.cut.Ptrs().back()); in TestEvaluateSplits() 47 gmat, hist[0]); in TestEvaluateSplits() 61 evaluator.EvaluateSplits(hist, gmat, tree, &entries); in TestEvaluateSplits() 72 for (size_t i = 1; i < gmat.cut.Ptrs().size(); ++i) { in TestEvaluateSplits() 74 for (size_t j = gmat.cut.Ptrs()[i-1]; j < gmat.cut.Ptrs()[i]; ++j) { in TestEvaluateSplits()
|