Home
last modified time | relevance | path

Searched refs:nbars (Results 1 – 25 of 59) sorted by relevance

123

/dports/devel/py-qutip/qutip-4.6.2/qutip/tests/
H A Dtest_enr_state_operator.py115 def _reference_dm(dimensions, n_excitations, nbars): argument
120 if np.isscalar(nbars):
121 nbars = [nbars] * len(dimensions)
123 for dimension, nbar in zip(dimensions, nbars)])
136 nbars = 0.1 * n_excitations / len(dimensions)
138 nbars = np.random.rand(len(dimensions))
139 nbars = (0.1 * n_excitations) / np.sum(nbars)
140 test_dm = qutip.enr_thermal_dm(dimensions, n_excitations, nbars)
141 expect_dm = _reference_dm(dimensions, n_excitations, nbars)
/dports/misc/vxl/vxl-3.3.2/contrib/brl/bbas/bgui/
H A Dbgui_bargraph_clipon_tableau.cxx64 unsigned int nbars = bars.size(); in update() local
65 bars_.resize(nbars); in update()
66 if (!nbars) in update()
74 for (unsigned int i=1; i<nbars; ++i) in update()
77 for (unsigned int i=0; i<nbars; ++i) in update()
81 for (unsigned int i=0; i<nbars; ++i) in update()
85 float bar_width = graph_width_/nbars; in update()
95 for (unsigned int i = 0; i<nbars; i++) in update()
100 if (color_index_.size()>=nbars) in update()
/dports/textproc/cast2gif/cast2gif-0.1.0/cargo-crates/pbr-1.0.2/src/
H A Dmulti.rs13 nbars: usize, field
83 nbars: 0, in on()
155 self.nbars += 1; in create_bar()
198 let mut nbars = self.nbars; in listen() localVariable
199 while nbars > 0 { in listen()
203 nbars -= 1; in listen()
/dports/print/texlive-base/texlive-20150521-source/utils/pmx/pmx-2.7.0/
H A DPATCH-pmx270.for-146 ! subroutine getmidi(noinst,lineq,iccount,ibarcnt,ibaroff,nbars,
48 c subroutine getmidi(nv,lineq,iccount,ibarcnt,ibaroff,nbars,lenbar,
54 ! subroutine getmidi(noinstarg,lineq,iccount,ibarcnt,ibaroff,nbars,
56 c subroutine getmidi(nv,lineq,iccount,ibarcnt,ibaroff,nbars,lenbar,
100 call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
108 call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
117 call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
125 call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
H A Dpmxab.c12352 a1ll_2.nbars + 1; in g1etnote_()
12419 a1ll_2.nbars + 1; in g1etnote_()
12433 a1ll_2.nbars + 1; in g1etnote_()
12444 a1ll_2.nbars + 1; in g1etnote_()
12564 a1ll_2.nbars + 1; in g1etnote_()
12586 a1ll_2.nbars + 1; in g1etnote_()
12620 a1ll_2.nbars + 1; in g1etnote_()
12629 a1ll_2.nbars + 1; in g1etnote_()
12635 a1ll_2.nbars + 1; in g1etnote_()
15490 a1ll_2.nbars = 0; in g1etnote_()
[all …]
/dports/www/ffsend/ffsend-ccd489ce2e75b91c0f17fbf13dbd91fe84f5ad98/cargo-crates/pbr-1.0.4/src/
H A Dmulti.rs12 nbars: AtomicUsize, field
89 nbars: AtomicUsize::new(0), in on()
163 self.nbars.fetch_add(1, Ordering::SeqCst); in create_bar()
210 while self.nbars.load(Ordering::SeqCst) > 0 { in listen()
214 self.nbars.fetch_sub(1, Ordering::SeqCst); in listen()
/dports/graphics/gifski/gifski-1.5.0/cargo-crates/pbr-1.0.4/src/
H A Dmulti.rs12 nbars: AtomicUsize, field
89 nbars: AtomicUsize::new(0), in on()
163 self.nbars.fetch_add(1, Ordering::SeqCst); in create_bar()
210 while self.nbars.load(Ordering::SeqCst) > 0 { in listen()
214 self.nbars.fetch_sub(1, Ordering::SeqCst); in listen()
/dports/math/octave/octave-6.4.0/scripts/plot/draw/private/
H A D__bar__.m135 nbars = columns (y); variable
140 if (nbars == 1)
145 elseif (nbars == 1)
164 gdelta = cutoff * gwidth / nbars;
177 offset = 2*cdelta * [-(nbars - 1) / 2 : (nbars - 1) / 2];
192 yb = zeros (4*ngrp, nbars);
198 xb = reshape (xb, [4, ngrp, nbars]);
252 nbars = columns (y); variable
256 for i = 1:nbars
263 if (nbars == 1)
[all …]
/dports/audio/zplugins-lv2/ZPlugins-0.2.4/ext/Soundpipe/modules/
H A Dprogress.c18 p->nbars = 40; in sp_progress_init()
29 SPFLOAT slope = 1.0 / p->nbars; in sp_progress_compute()
33 for(n = 0; n < p->nbars; n++) { in sp_progress_compute()
/dports/x11/yad/yad-7.3/src/
H A Dprogress.c30 static guint nbars = 0; variable
98 if (num < 0 || num > nbars - 1) in handle_stdin()
184 … if (options.progress_data.watch_bar > 0 && options.progress_data.watch_bar <= nbars) in handle_stdin()
195 for (i = 0; i < nbars; i++) in handle_stdin()
242 nbars = g_slist_length (options.progress_data.bars); in progress_create_widget()
243 if (nbars < 1) in progress_create_widget()
261 nbars = 1; in progress_create_widget()
/dports/devel/R-cran-plyr/plyr/R/
H A Dprogress-time.r46 nbars <- trunc(i / n * width) functionVar
48 cat_line("|", str_rep("=", nbars), str_rep(" ", width - nbars), "|",
/dports/math/ploticus-nox11/pl240src/src/
H A Dproc_getdata.c286 int ntabs, nbars, ncommas; in PLP_getdata() local
289 for( j = 0, nbars = 0; row[j] != '\0'; j++ ) if( row[j] == '|' ) nbars++; in PLP_getdata()
292 if( ntabs > 2 && ntabs > nbars && ntabs > ncommas ) { delim = TAB; dword = "tab"; } in PLP_getdata()
293 else if( nbars > 2 && nbars > ntabs && nbars > ncommas ) { delim = BAR; dword = "bar"; } in PLP_getdata()
294 else if( ncommas > 2 && ncommas > ntabs && ncommas > nbars ) { delim = CSV; dword = "csv"; } in PLP_getdata()
/dports/math/ploticus/pl240src/src/
H A Dproc_getdata.c286 int ntabs, nbars, ncommas; in PLP_getdata() local
289 for( j = 0, nbars = 0; row[j] != '\0'; j++ ) if( row[j] == '|' ) nbars++; in PLP_getdata()
292 if( ntabs > 2 && ntabs > nbars && ntabs > ncommas ) { delim = TAB; dword = "tab"; } in PLP_getdata()
293 else if( nbars > 2 && nbars > ntabs && nbars > ncommas ) { delim = BAR; dword = "bar"; } in PLP_getdata()
294 else if( ncommas > 2 && ncommas > ntabs && ncommas > nbars ) { delim = CSV; dword = "csv"; } in PLP_getdata()
/dports/graphics/py-scikit-image/scikit-image-0.19.0/skimage/io/_plugins/
H A Dq_histogram.py56 nbars = len(self.counts)
61 remainder = width % nbars
62 bar_width = [int(width / nbars)] * nbars
/dports/graphics/libvisual04-plugins/libvisual-plugins-0.4.0/plugins/actor/lv_analyzer/
H A Dactor_lv_analyzer.c41 static void draw_bar (VisVideo *video, int index, int nbars, float amplitude);
204 static void draw_bar (VisVideo *video, int index, int nbars, float amplitude) in draw_bar() argument
206 int startx = (video->width / nbars) * index; in draw_bar()
207 int endx = ((video->width / nbars) * (index + 1)); in draw_bar()
/dports/math/R-cran-dplyr/dplyr/R/
H A Dprogress.R129 nbars <- trunc(self$i / self$n * self$width()) functionVar
132 "|", str_rep("=", nbars), str_rep(" ", self$width() - nbars), "|",
/dports/print/texlive-base/texlive-20150521-source/utils/m-tx/mtx-0.60d/
H A Danalyze.pas34 nbars:=0; pickup:=0; nleft:=0; if top>bottom then exit;
50 if (nbar>nbars) or (nbar=nbars) and (extra>nleft) then
51 begin nbars:=nbar; nleft:=extra; leader:=voice; end;
H A Danalyze.c84 nbars = 0; in testParagraph()
110 if (nbar > nbars || nbar == nbars && extra > nleft) { in testParagraph()
111 nbars = nbar; in testParagraph()
H A Dprepmx.pas293 last_bar := (bar_of_line=nbars) and final_paragraph;
363 if nleft > 0 then inc(nbars);
364 if (nbars=0) and multi_bar_rest then nbars:=1;
365 for bar_of_line:=1 to nbars do
H A Dmtxline.pas50 procedure barForward(voice: voice_index; nbars: integer);
208 procedure barForward(voice: voice_index; nbars: integer);
211 if (nbar+nbars<0) then error3(voice, 'Next voice before bar is full');
212 inc(nbar,nbars);
214 if nbars>0 then bar_bound[nbar]:=here;
/dports/textproc/R-cran-readr/readr/src/
H A DProgress.h72 int nbars = prop * barSize; in show() local
74 std::string bars(nbars, '='), spaces(nspaces, ' '); in show()
/dports/misc/xosd/xosd-2.2.14/src/libxosd/
H A Dxosd.c111 for (i = 0; i < nbars; i++, rs[0].x = rs[1].x += p->width) { in _draw_bar()
122 int is_slider = l->type == LINE_slider, nbars, on; in draw_bar() local
134 nbars = (osd->screen_width * SLIDER_SCALE) / p.width; in draw_bar()
145 nbars = osd->bar_length; in draw_bar()
148 p.x = (osd->screen_width - (nbars * p.width)) / 2; in draw_bar()
151 p.x = osd->screen_width - (nbars * p.width) - p.x; in draw_bar()
156 on = ((nbars - is_slider) * l->value) / 100; in draw_bar()
158 DEBUG(Dvalue, "percent=%d, nbars=%d, on=%d", l->value, nbars, on); in draw_bar()
165 _draw_bar(osd, nbars, on, &p, &m, is_slider); in draw_bar()
172 _draw_bar(osd, nbars, on, &p, &m, is_slider); in draw_bar()
[all …]
/dports/graphics/gocr/gocr-0.52/src/
H A Dbarcode.c1044 int nbars; in detect_barcode() local
1047 bx0,by0,bx1-bx0+1,by1-by0+1,nbars,j); in detect_barcode()
1048 if (j!=nbars) in detect_barcode()
1136 for (j2=0; j2<nbars; j2++) { in detect_barcode()
1137 int t = box2->x0+j2*bdx/(nbars); in detect_barcode()
1142 } if (j2!=nbars) continue; in detect_barcode()
1143 if (nbars> bx1) { bx1=nbars; by0=j; } // search most upper in detect_barcode()
1147 for (j2=0; j2<nbars; j2++) { in detect_barcode()
1148 int t = box2->y0+j2*bdy/(nbars); in detect_barcode()
1153 } if (j2!=nbars) continue; in detect_barcode()
[all …]
/dports/audio/zplugins-lv2/ZPlugins-0.2.4/ext/Soundpipe/h/
H A Dprogress.h2 int nbars, skip; member
/dports/math/gretl/gretl-2021d/lib/src/
H A Dplotspec.c115 spec->nbars = 0; in plotspec_new()
1478 if (spec->nbars > 0) { in plotspec_print()
1524 if (spec->bars != NULL && spec->nbars > 0) { in plotspec_print()
1538 if (spec->nbars > 0) { in plotspec_print()
1652 if (spec->bars != NULL && spec->nbars > 0) { in plotspec_print()
2224 for (i=0; i<spec->nbars; i++) { in print_bars_header()
2230 for (i=0; i<spec->nbars; i++) { in print_bars_header()
2295 spec->nbars = 0; in plotspec_add_bars_info()
2312 spec->nbars = n; in plotspec_add_bars_info()
2330 spec->bars = plotbars_new(spec->nbars); in plotspec_allocate_bars()
[all …]

123