Home
last modified time | relevance | path

Searched refs:q_vec (Results 1 – 19 of 19) sorted by relevance

/dports/science/py-nibabel/nibabel-3.2.1/nibabel/nicom/tests/
H A Dtest_dwiparams.py48 q_vec = np.zeros((3,))
49 q_vec[pos] = 10.
50 np_assert_equal(q2bg(q_vec), (10, q_vec / 10.))
52 q_vec = [0, 1e-6, 0]
53 np_assert_equal(q2bg(q_vec), (0, 0))
54 q_vec = [0, 1e-4, 0]
55 b, g = q2bg(q_vec)
58 np_assert_equal(q2bg(q_vec, tol=5e-4), (0, 0))
H A Dtest_dicomwrappers.py220 q_vec = np.zeros((3,))
221 q_vec[pos] = 10.
224 dw.q_vector = q_vec
225 assert_array_equal(dw.q_vector, q_vec)
227 assert_array_equal(dw.b_vector, q_vec / 10.)
/dports/biology/ncbi-cxx-toolkit/ncbi_cxx--25_2_0/src/algo/blast/proteinkmer/demo/
H A Dkblastthr.cpp73 CRef<CBlastQueryVector> q_vec(new CBlastQueryVector()); in s_GetBlastQueryVector() local
78 q_vec->AddQuery(blast_q); in s_GetBlastQueryVector()
80 return q_vec; in s_GetBlastQueryVector()
151 CRef<CBlastQueryVector> q_vec = s_GetBlastQueryVector(query_vector); in Main() local
152 results_v.push_back(SFormatResultValues(q_vec, blast_results, formatter)); in Main()
/dports/biology/ncbi-blast+/ncbi-blast-2.12.0+-src/c++/src/algo/blast/unit_tests/blast_format/
H A Dblast_format_unit_test.cpp101 CRef<CBlastQueryVector> q_vec(new CBlastQueryVector); in BOOST_AUTO_TEST_CASE() local
102 q_vec->push_back(query); in BOOST_AUTO_TEST_CASE()
113 formatter.PrintOneResultSet((*blast_results)[0], q_vec); in BOOST_AUTO_TEST_CASE()
149 CRef<CBlastQueryVector> q_vec(new CBlastQueryVector); in BOOST_AUTO_TEST_CASE() local
150 q_vec->push_back(query); in BOOST_AUTO_TEST_CASE()
162 results_v.push_back(SFormatResultValues(q_vec, blast_results, formatter)); in BOOST_AUTO_TEST_CASE()
/dports/biology/ncbi-cxx-toolkit/ncbi_cxx--25_2_0/src/algo/blast/unit_tests/blast_format/
H A Dblast_format_unit_test.cpp101 CRef<CBlastQueryVector> q_vec(new CBlastQueryVector); in BOOST_AUTO_TEST_CASE() local
102 q_vec->push_back(query); in BOOST_AUTO_TEST_CASE()
113 formatter.PrintOneResultSet((*blast_results)[0], q_vec); in BOOST_AUTO_TEST_CASE()
149 CRef<CBlastQueryVector> q_vec(new CBlastQueryVector); in BOOST_AUTO_TEST_CASE() local
150 q_vec->push_back(query); in BOOST_AUTO_TEST_CASE()
162 results_v.push_back(SFormatResultValues(q_vec, blast_results, formatter)); in BOOST_AUTO_TEST_CASE()
/dports/science/py-nibabel/nibabel-3.2.1/nibabel/nicom/
H A Ddwiparams.py155 q_vec = np.asarray(q_vector)
156 norm = np.sqrt(np.sum(q_vec * q_vec))
159 return norm, q_vec / norm
H A Ddicomwrappers.py407 q_vec = self.q_vector
408 if q_vec is None:
410 return q2bg(q_vec)[0]
416 q_vec = self.q_vector
417 if q_vec is None:
419 return q2bg(q_vec)[1]
/dports/science/py-OpenFermion/OpenFermion-1.3.0/src/openfermion/transforms/opconversions/
H A Dbinary_code_transform.py170 for index, q_vec in enumerate(changed_qubit_vector):
171 if q_vec:
/dports/biology/hhsuite/hh-suite-3.3.0/src/
H A Dhhblits.h155 …void perform_realign(HMMSimd& q_vec, const char input_format, std::vector<HHEntry*>& hits_to_reali…
164 void RescoreWithViterbiKeepAlignment(HMMSimd& q_vec, Hash<Hit>* previous_hits);
H A Dhhblits.cpp911 void HHblits::RescoreWithViterbiKeepAlignment(HMMSimd& q_vec, in RescoreWithViterbiKeepAlignment() argument
930 std::vector<Hit> hits_to_add = viterbirunner.alignment(par, &q_vec, in RescoreWithViterbiKeepAlignment()
973 void HHblits::perform_realign(HMMSimd& q_vec, const char input_format, in perform_realign() argument
1078 HMMSimd q_vec(par.maxres); in run() local
1136 q_vec.MapOneHMM(q_rescore); in run()
1216 std::vector<Hit> hits_to_add = viterbirunner.alignment(par, &q_vec, in run()
1259 RescoreWithViterbiKeepAlignment(q_vec, previous_hits); in run()
1467 HMMSimd q_vec(par.maxres); in run() local
1529 q_vec.MapOneHMM(q_rescore); in run()
1613 std::vector<Hit> hits_to_add = viterbirunner.alignment(par, &q_vec, in run()
[all …]
H A Dhhalign.cpp605 HMMSimd q_vec(par.maxres); in run() local
615 q_vec.MapOneHMM(q); in run()
634 …std::vector<Hit> hits_to_add = viterbirunner.alignment(par, &q_vec, new_entries, par.qsc_db, pb, S… in run()
644 perform_realign(q_vec, input_format, new_entries, 1); in run()
/dports/biology/gemma/GEMMA-0.98.3/src/
H A Dvc.h83 void WriteFile_qs(const gsl_vector *s_vec, const gsl_vector *q_vec,
93 const gsl_matrix *Svar_mat, const gsl_vector *q_vec,
H A Dvc.cpp130 for (size_t i = 0; i < q_vec->size; i++) { in WriteFile_qs()
131 outfile_q << gsl_vector_get(q_vec, i) << endl; in WriteFile_qs()
818 for (size_t i = 0; i < q_vec->size; i++) { in ReadFile_beta()
985 for (size_t i = 0; i < q_vec->size; i++) { in ReadFile_beta()
986 gsl_vector_set(q_vec, i, vec_q[i]); in ReadFile_beta()
1523 gsl_vector *q_vec = gsl_vector_alloc(n_vc); in CalcVChe() local
1564 gsl_vector_set(q_vec, i, d); in CalcVChe()
1715 gsl_vector_free(q_vec); in CalcVChe()
1998 gsl_vector_set(q_vec, i, d - y2_sum); in CalcVCacl()
2056 gsl_blas_ddot(q_vec, pve, &d); in CalcVCacl()
[all …]
H A Dgemma_io.h173 void ReadFile_study(const string &file_study, gsl_matrix *Vq, gsl_vector *q_vec,
178 gsl_vector *q_vec, gsl_vector *s_vec, size_t &ni);
H A Dgemma_io.cpp3946 gsl_vector *q_vec, gsl_vector *s_vec, size_t &ni) { in ReadFile_study() argument
3956 ReadFile_vector(qfile, q_vec); in ReadFile_study()
3996 gsl_vector *q_vec, gsl_vector *s_vec, size_t &ni) { in ReadFile_mstudy() argument
3999 gsl_vector_set_zero(q_vec); in ReadFile_mstudy()
4004 gsl_vector *q_sub = gsl_vector_safe_alloc(q_vec->size); in ReadFile_mstudy()
4033 d = gsl_vector_get(q_vec, i) + gsl_vector_get(q_sub, i) * d1; in ReadFile_mstudy()
4034 gsl_vector_set(q_vec, i, d); in ReadFile_mstudy()
4061 d = gsl_vector_get(q_vec, i); in ReadFile_mstudy()
4062 gsl_vector_set(q_vec, i, d / d1); in ReadFile_mstudy()
/dports/science/liggghts/LIGGGHTS-PUBLIC-3.8.0-26-g6e873439/lib/colvars/
H A Dcolvartypes.h988 cvm::rvector const q_vec = q.get_vector(); in spin_angle() local
989 cvm::real alpha = (180.0/PI) * 2.0 * std::atan2 (axis * q_vec, q.q0); in spin_angle()
999 cvm::rvector const q_vec = q.get_vector(); in dspin_angle_dq() local
1000 cvm::real const iprod = axis * q_vec; in dspin_angle_dq()
1025 cvm::rvector const q_vec = q.get_vector(); in cos_theta() local
1027 (180.0/PI) * 2.0 * std::atan2 (axis * q_vec, q.q0); in cos_theta()
1040 cvm::rvector const q_vec = q.get_vector(); in dcos_theta_dq() local
1041 cvm::real const iprod = axis * q_vec; in dcos_theta_dq()
/dports/science/lammps/lammps-stable_29Sep2021/lib/colvars/
H A Dcolvartypes.h1425 cvm::rvector const q_vec = q.get_vector(); in spin_angle() local
1426 cvm::real alpha = (180.0/PI) * 2.0 * cvm::atan2(axis * q_vec, q.q0); in spin_angle()
1436 cvm::rvector const q_vec = q.get_vector(); in dspin_angle_dq() local
1437 cvm::real const iprod = axis * q_vec; in dspin_angle_dq()
1460 cvm::rvector const q_vec = q.get_vector(); in cos_theta() local
1462 (180.0/PI) * 2.0 * cvm::atan2(axis * q_vec, q.q0); in cos_theta()
1475 cvm::rvector const q_vec = q.get_vector(); in dcos_theta_dq() local
1476 cvm::real const iprod = axis * q_vec; in dcos_theta_dq()
/dports/math/geogram/geogram-1.7.7/src/lib/geogram/third_party/HLBFGS/
H A DHLBFGS.cpp295 std::vector<double> q_vec(N), g_vec(N), alpha_vec(M <= 0 ? 0 : M), rho_vec( in HLBFGS() local
298 double *q = &q_vec[0]; in HLBFGS()
/dports/math/cvc4/CVC4-1.7/src/theory/arith/
H A Dnormal_form.cpp569 std::vector<Monomial> q_vec, r_vec; in computeQR() local
581 q_vec.push_back(Monomial::mkMonomial(q, vl)); in computeQR()
588 Polynomial p_q = Polynomial::mkPolynomial(q_vec); in computeQR()