Home
last modified time | relevance | path

Searched refs:n_use (Results 1 – 17 of 17) sorted by relevance

/dports/science/py-ase/ase-3.22.0/ase/ga/
H A Dstandardmutations.py303 n_use = []
309 n_use.append(num[i])
320 n_use.extend(n_use)
329 for i in range(int(len(n_use) / 2), len(n_use)):
330 if n_use[i] == n:
332 del n_use[i]
338 for i in range(len(n_use)):
339 if num[i] == n_use[i]:
343 tn = n_use[i]
345 n_use[i] = n_use[j]
[all …]
/dports/graphics/gmt/gmt-6.3.0/src/spotter/
H A Drotsmoother.c440 n_use = last - first; /* Number of rotations in the interval */ in GMT_rotsmoother()
441 …GMT_Report (API, GMT_MSG_INFORMATION, "Found %d rots for the time interval %g <= t < %g\n", n_use,… in GMT_rotsmoother()
442 if (n_use < n_minimum) continue; /* Need at least 1 or 2 poles to do anything useful */ in GMT_rotsmoother()
464 …sum_rot_age2 - sum_rot_age * sum_rot_age) / (sum_weights * sum_weights * ((n_use - 1.0) / n_use))); in GMT_rotsmoother()
467 …t_angle2 - sum_rot_angle * sum_rot_angle) / (sum_weights * sum_weights * ((n_use - 1.0) / n_use))); in GMT_rotsmoother()
501 n_total_use += n_use; in GMT_rotsmoother()
518 for (k = 0; k < 3; k++) H[k] = gmt_M_memory (GMT, NULL, n_use, double); in GMT_rotsmoother()
537 for (k = 0; k < 3; k++) mean_H[k] /= n_use; /* The mean pseudo-vector */ in GMT_rotsmoother()
538 for (p = 0; p < n_use; p++) { /* Calculate the covariance matrix */ in GMT_rotsmoother()
544 for (k = 0; k < 9; k++) C[k] /= (n_use - 1.0); /* Normalize to get final var-covar matrix, C */ in GMT_rotsmoother()
[all …]
/dports/graphics/gmt/gmt-6.3.0/src/
H A Dgmt_shore.c1539 unsigned int k, np_new, n, n_use; in gmt_prep_shore_polygons() local
1569 … close = (n_use > 2 && gmt_polygon_is_open (GMT, GMT->current.plot.x, GMT->current.plot.y, n_use)); in gmt_prep_shore_polygons()
1570 n_alloc = (close) ? n_use + 1 : n_use; in gmt_prep_shore_polygons()
1576 p[k].lon[n_use] = p[k].lon[0]; in gmt_prep_shore_polygons()
1577 p[k].lat[n_use] = p[k].lat[0]; in gmt_prep_shore_polygons()
1586 … close = (n_use > 2 && gmt_polygon_is_open (GMT, GMT->current.plot.x, GMT->current.plot.y, n_use)); in gmt_prep_shore_polygons()
1587 n_alloc = (close) ? n_use + 1 : n_use; in gmt_prep_shore_polygons()
1611 close = (n_use > 2 && gmt_polygon_is_open (GMT, xtmp, ytmp, n_use)); in gmt_prep_shore_polygons()
1612 n_alloc = (close) ? n_use + 1 : n_use; in gmt_prep_shore_polygons()
1618 p[k].lon[n_use] = p[k].lon[0]; in gmt_prep_shore_polygons()
[all …]
H A Dgrdedit.c267 uint64_t ij, n_data, n_use; in GMT_grdedit() local
407 n_data = n_use = 0; in GMT_grdedit()
434 n_use++; in GMT_grdedit()
437 …t_M_ijp (G->header, row, G->header->n_columns-1); G->data[ij] = (gmt_grdfloat)in[GMT_Z]; n_use++; } in GMT_grdedit()
438 …_columns-1)) {ij = gmt_M_ijp (G->header, row, 0); G->data[ij] = (gmt_grdfloat)in[GMT_Z]; n_use++; } in GMT_grdedit()
449 …I, GMT_MSG_INFORMATION, "Read %" PRIu64 " new data points, updated %" PRIu64 ".\n", n_data, n_use); in GMT_grdedit()
H A Dgmt_stat.c2163 uint64_t i, n_use; in gmt_corrcoeff() local
2168 for (i = n_use = 0; i < n; i++) { in gmt_corrcoeff()
2172 n_use++; in gmt_corrcoeff()
2175 xmean /= (double)n_use; in gmt_corrcoeff()
2176 ymean /= (double)n_use; in gmt_corrcoeff()
2180 for (i = n_use = 0; i < n; i++) { in gmt_corrcoeff()
2198 uint64_t i, n_use; in gmt_corrcoeff_f() local
2207 n_use++; in gmt_corrcoeff_f()
2210 xmean /= (double)n_use; in gmt_corrcoeff_f()
2211 ymean /= (double)n_use; in gmt_corrcoeff_f()
[all …]
H A Dpsmask.c945 uint64_t start, n_use, np, plot_n; in GMT_psmask() local
968n_use = gmt_compact_line (GMT, GMT->current.plot.x, GMT->current.plot.y, GMT->current.plot.n, fals… in GMT_psmask()
969 PSL_plotpolygon (PSL, GMT->current.plot.x, GMT->current.plot.y, (int)n_use); in GMT_psmask()
974n_use = gmt_compact_line (GMT, GMT->current.plot.x, GMT->current.plot.y, GMT->current.plot.n, fals… in GMT_psmask()
975 PSL_plotpolygon (PSL, GMT->current.plot.x, GMT->current.plot.y, (int)n_use); in GMT_psmask()
H A Dgmt_vector.c1114 int i, j, n_use = 0, n = (int)nu; /* Because OpenMP cannot handle unsigned loop variables */ in gmt_solve_svd() local
1161 n_use++; in gmt_solve_svd()
1173 n_use++; in gmt_solve_svd()
1179 percent = 100.0 * (double)n_use / (double)n; in gmt_solve_svd()
1182 … "gmt_solve_svd: Ratio limit %g retained %d singular values (%.1lf%%\n", cutoff, n_use, percent); in gmt_solve_svd()
1185 "gmt_solve_svd: Selected the largest %d singular values (%.1lf%%)\n", n_use, percent); in gmt_solve_svd()
1223 return (n_use); in gmt_solve_svd()
H A Dgreenspline.c1550 int error = GMT_NOERROR, out_ID, way, n_columns, n_use; in GMT_greenspline() local
2332n_use = gmt_solve_svd (GMT, A, (unsigned int)nm, (unsigned int)nm, v, s, b, 1U, obs, Ctrl->C.value… in GMT_greenspline()
2333 if (n_use == -1) Return (GMT_RUNTIME_ERROR); in GMT_greenspline()
2334 GMT_Report (API, GMT_MSG_INFORMATION, "[%d of %" PRIu64 " eigen-values used]\n", n_use, nm); in GMT_greenspline()
2544 …unsigned int width = urint (floor (log10 ((double)n_use))) + 1; /* Width of maximum integer needed… in GMT_greenspline()
2559 uint64_t e_dim[GMT_DIM_SIZE] = {1, 1, n_use, 4+Ctrl->W.active}; in GMT_greenspline()
2568 S->n_rows = n_use; in GMT_greenspline()
2571 for (e = 0; e < n_use; e++) { /* Only loop over the first n_use eigenvalues (if restricted) */ in GMT_greenspline()
H A Dgmt_io.c279 static inline void gmtio_update_prev_rec (struct GMT_CTRL *GMT, uint64_t n_use) { in gmtio_update_prev_rec() argument
3161 uint64_t n_use, n_read; in gmtio_bin_input() local
3165 n_use = gmtio_n_cols_needed_for_gaps (GMT, *n); in gmtio_bin_input()
3166 gmtio_update_prev_rec (GMT, n_use); in gmtio_bin_input()
3172 status = gmtlib_process_binary_input (GMT, n_use); in gmtio_bin_input()
3475 uint64_t pos, col_no = 0, col_pos, n_convert, n_ok = 0, kind, add, n_use = 0; in gmtio_ascii_input() local
3644 gmtio_update_prev_rec (GMT, n_use); in gmtio_ascii_input()
3645 if (GMT->current.io.variable_in_columns && n_cols_this_record < n_use) n_use = n_cols_this_record; in gmtio_ascii_input()
3705 if (add_aspatial_to_expected) *n += add, n_use += add; /* Only do this once */ in gmtio_ascii_input()
3919 uint64_t n_use = 0, col; in gmtio_nc_input() local
[all …]
H A Dgmt_api.c597 GMT_LOCAL inline void gmtapi_update_prev_rec (struct GMT_CTRL *GMT, uint64_t n_use) { in gmtapi_update_prev_rec() argument
1355 GMT_LOCAL int gmtapi_bin_input_memory (struct GMT_CTRL *GMT, uint64_t n, uint64_t n_use) { in gmtapi_bin_input_memory() argument
1363 status = gmtlib_process_binary_input (GMT, n_use); /* Check for segment headers */ in gmtapi_bin_input_memory()
3874 n_use = gmtapi_n_cols_needed_for_gaps (GMT, V_obj->n_columns); in gmtapi_import_dataset()
3875 gmtapi_update_prev_rec (GMT, n_use); in gmtapi_import_dataset()
9836 unsigned int col, n_use, col_pos_out, col_pos_in; in api_get_record_matrix() local
9840 n_use = gmtapi_n_cols_needed_for_gaps (GMT, S->n_columns); in api_get_record_matrix()
9841 gmtapi_update_prev_rec (GMT, n_use); in api_get_record_matrix()
9895 unsigned int n_use, col_pos_out, col_pos_in; in api_get_record_vector() local
9898 n_use = gmtapi_n_cols_needed_for_gaps (GMT, S->n_columns); in api_get_record_vector()
[all …]
H A Dgmt_plot.c4838 unsigned int n_use, *pin = NULL; /* Copy of the pen moves */ in gmtplot_plot_vector_head() local
4870n_use = (unsigned int)gmt_compact_line (GMT, GMT->current.plot.x, GMT->current.plot.y, GMT->curren… in gmtplot_plot_vector_head()
4871 …PSL_beginclipping (GMT->PSL, GMT->current.plot.x, GMT->current.plot.y, (int)n_use, GMT->session.no… in gmtplot_plot_vector_head()
4872 PSL_plotpolygon (GMT->PSL, GMT->current.plot.x, GMT->current.plot.y, (int)n_use); in gmtplot_plot_vector_head()
4877n_use = (unsigned int)gmt_compact_line (GMT, GMT->current.plot.x, GMT->current.plot.y, GMT->curren… in gmtplot_plot_vector_head()
4878 …PSL_beginclipping (GMT->PSL, GMT->current.plot.x, GMT->current.plot.y, (int)n_use, GMT->session.no… in gmtplot_plot_vector_head()
4879 PSL_plotpolygon (GMT->PSL, GMT->current.plot.x, GMT->current.plot.y, (int)n_use); in gmtplot_plot_vector_head()
/dports/math/cvc4/CVC4-1.7/src/theory/quantifiers/
H A Dterm_database.cpp965 Node n_use; in reset() local
968 n_use = n; in reset()
976 n_use = itp->second; in reset()
979 Trace("quant-ho") << " - process " << n_use << ", from " << n in reset()
981 if (!n_use.isNull() && d_op_map.find(n_use) != d_op_map.end()) in reset()
985 first = n_use; in reset()
986 d_ho_op_rep[n_use] = n_use; in reset()
990 Trace("quant-ho") << " have : " << n_use << " == " << first in reset()
991 << ", type = " << n_use.getType() << std::endl; in reset()
992 d_ho_op_rep[n_use] = first; in reset()
[all …]
/dports/cad/ngspice_rework/ngspice-35/src/frontend/
H A Dtypesdef.c227 int n_use = 0; in com_dftype() local
239 n_use++; in com_dftype()
245 if (n_use == 1) { in com_dftype()
/dports/math/octave-forge-splines/splines-1.3.4/inst/
H A Dcsape.m84 n_use = min(n, 4); variable
86 valc(1, i) = polyval(polyder(polyfit(x(1:n_use), a(1:n_use, i), n_use-1)), x(1));
87 …valc(2, i) = polyval(polyder(polyfit(x(end-n_use+1:end), a(end-n_use+1:end, i), n_use-1)), x(end));
/dports/graphics/gmt/gmt-6.3.0/src/x2sys/
H A Dx2sys_report.c257 uint64_t i, k, n, n_use, n_tracks; in GMT_x2sys_report() local
364 for (k = n_use = 0, sum_w = 0.0; k < n_tracks; k++) { /* Calculate normalized weights */ in GMT_x2sys_report()
369 n_use++; in GMT_x2sys_report()
374 scale = (n_use && sum_w > 0.0) ? n_use / sum_w : 1.0; in GMT_x2sys_report()
415 sprintf (record, "track%sN%smean%sstdev%srms%sweight[%" PRIu64 "]", c, c, c, c, c, n_use); in GMT_x2sys_report()
/dports/graphics/gmt/gmt-6.3.0/src/geodesy/
H A Dgpsgridder.c605 int n_use, error, out_ID; in GMT_gpsgridder() local
1026n_use = gmt_solve_svd (GMT, A, (unsigned int)n_params, (unsigned int)n_params, V, s, b, 1U, obs, C… in GMT_gpsgridder()
1027 if (n_use == -1) { /* Something failed in SVD */ in GMT_gpsgridder()
1031 GMT_Report (API, GMT_MSG_INFORMATION, "[%d of %" PRIu64 " eigen-values used]\n", n_use, n_params); in GMT_gpsgridder()
1224 …unsigned int width = urint (floor (log10 ((double)n_use))) + 1; /* Width of maximum integer needed… in GMT_gpsgridder()
1245 uint64_t e_dim[GMT_DIM_SIZE] = {1, 1, n_use, 6+3*Ctrl->W.active}; in GMT_gpsgridder()
1254 S->n_rows = n_use; in GMT_gpsgridder()
1257 for (e = 0; e < (int64_t)n_use; e++) { /* For each eigenvalue selected */ in GMT_gpsgridder()
/dports/science/clipper/clipper-2.1/clipper/contrib/
H A Dsfweight.cpp404 int n_use = flag.num_obs(); in num_params() local
406 npar = Util::max( n_use / nreflns, 2 ); in num_params()
411 ftype np2 = ftype(n_use) / ftype(nreflns); in num_params()