Home
last modified time | relevance | path

Searched refs:condlist (Results 1 – 25 of 40) sorted by relevance

12

/dports/devel/py-pythran/pythran-0.11.0/pythran/pythonic/numpy/
H A Dselect.hpp60 for (long i = 0; i < condlist.size() && size != 0; i++) in select()
69 select_helper(C const &condlist, L const &choicelist, T _default) in select_helper() argument
74 for (long j = 0; j < (long)condlist.size(); ++j) in select_helper()
75 if (condlist[j].buffer[i]) { in select_helper()
86 select(types::list<types::ndarray<U, UpS>> const &condlist, in select() argument
89 return select_helper(condlist, choicelist, _default); in select()
95 select(types::static_list<types::ndarray<U, UpS>, M> const &condlist, in select() argument
99 return select_helper(condlist, choicelist, _default); in select()
108 return select_helper(condlist, choicelist, _default); in select()
114 select(types::list<types::ndarray<U, UpS>> const &condlist, in select() argument
[all …]
/dports/science/berkeleygw/BGW-2.0.0/Sigma/
H A Dqp_shifts.py44 condlist=[] variable
72 condlist.append(addition)
83 condlist.sort()
90 for i in condlist:
/dports/devel/py-pythran/pythran-0.11.0/pythran/pythonic/include/numpy/
H A Dselect.hpp14 select(C const &condlist, L const &choicelist,
21 select(types::list<types::ndarray<U, UpS>> const &condlist,
28 select(types::static_list<types::ndarray<U, UpS>, M> const &condlist,
36 select(types::static_list<types::ndarray<U, UpS>, M> const &condlist,
43 select(types::list<types::ndarray<U, UpS>> const &condlist,
/dports/astro/py-astropy/astropy-5.0/astropy/utils/masked/
H A Dfunction_helpers.py706 def select(condlist, choicelist, default=0): argument
716 for c in condlist]
725 def piecewise(x, condlist, funclist, *args, **kw): argument
736 if np.isscalar(condlist) or (
739 condlist = [condlist]
741 condlist = np.array(condlist, dtype=bool)
742 n = len(condlist)
746 condlist = np.concatenate([condlist, condelse], axis=0)
760 where.append(condlist[k])
763 vals = x[condlist[k]]
[all …]
/dports/math/py-numpy/numpy-1.20.3/numpy/lib/
H A Dfunction_base.py496 if np.iterable(condlist):
497 yield from condlist
592 if isscalar(condlist) or (
594 condlist = [condlist]
596 condlist = array(condlist, dtype=bool)
597 n = len(condlist)
601 condlist = np.concatenate([condlist, condelse], axis=0)
622 yield from condlist
670 if len(condlist) == 0:
683 condlist = np.broadcast_arrays(*condlist)
[all …]
/dports/astro/py-astropy/astropy-5.0/astropy/units/quantity_helper/
H A Dfunction_helpers.py406 def select(condlist, choicelist, default=0): argument
414 def piecewise(x, condlist, funclist, *args, **kw): argument
421 if np.isscalar(condlist) or (
423 condlist = [condlist]
425 if any(isinstance(c, Quantity) for c in condlist):
428 condlist = np.array(condlist, dtype=bool)
429 n = len(condlist)
433 condlist = np.concatenate([condlist, condelse], axis=0)
446 where.append(condlist[k])
449 vals = x[condlist[k]]
[all …]
/dports/graphics/klatexformula/klatexformula-4.0.0/src/
H A Dklflib.cpp1042 QList<KLFLib::EntryMatchCondition> condlist; in testEntryMatchConditionImpl() local
1054 condlist = condition.conditionList(); // only first item is used in testEntryMatchConditionImpl()
1055 if (condlist.isEmpty()) { in testEntryMatchConditionImpl()
1061 condlist = condition.conditionList(); in testEntryMatchConditionImpl()
1062 if (condlist.isEmpty()) in testEntryMatchConditionImpl()
1064 for (k = 0; k < condlist.size(); ++k) { in testEntryMatchConditionImpl()
1065 if (testEntryMatchConditionImpl(condlist[k], libentry)) // recurse in testEntryMatchConditionImpl()
1070 condlist = condition.conditionList(); in testEntryMatchConditionImpl()
1071 if (condlist.isEmpty()) in testEntryMatchConditionImpl()
1073 for (k = 0; k < condlist.size(); ++k) { in testEntryMatchConditionImpl()
[all …]
/dports/math/gap/gap-4.11.0/pkg/atlasrep/gap/
H A Dtypes.gi371 local func, detect, condlist, pos, val;
375 condlist:= arg[2];
378 condlist:= arg[3];
380 pos:= Position( condlist, func );
384 Unbind( condlist[ pos ] );
386 if pos = Length( condlist ) then
387 # Keep `condlist' unchanged.
391 val:= condlist[ pos+1 ];
395 Unbind( condlist[ pos ] );
396 Unbind( condlist[ pos+1 ] );
[all …]
/dports/math/curv/curv-0.5/ideas/language/array/
H A DBool_Array109 select(condlist, choicelist, default)
111 where the m-th element of the corresponding array in condlist is True.
113 >>> condlist = [x<3, x>5]
115 >>> np.select(condlist, choicelist, 0)
/dports/devel/py-testoob/testoob-1.15/tests/
H A Dmock.py390 def AND(*condlist): argument
392 for cond in condlist:
398 def OR(*condlist): argument
400 for cond in condlist:
/dports/net-im/gajim/gajim-gajim-1.3.3/test/lib/
H A Dmock.py394 def AND(*condlist): argument
396 for cond in condlist:
402 def OR(*condlist): argument
404 for cond in condlist:
/dports/math/py-autograd/autograd-1.3/autograd/numpy/
H A Dnumpy_wrapper.py79 def select(condlist, choicelist, default=0): argument
80 raw_array = _np.select(list(condlist), list(choicelist), default=default)
/dports/science/py-scipy/scipy-1.7.1/scipy/_lib/
H A D_util.py77 def _lazyselect(condlist, choicelist, arrays, default=0): argument
107 for index in range(len(condlist)):
108 func, cond = choicelist[index], condlist[index]
/dports/comms/qico/qico-15673bf/src/
H A Dconfig.c33 static slist_t *condlist = NULL, *curcond; variable
448 cc=slist_add(&condlist,t); in parseconfig()
464 cc=slist_add(&condlist,s); in parseconfig()
564 slist_kill(&condlist); in killconfig()
/dports/emulators/qemu5/qemu-5.2.0/docs/sphinx/
H A Dqapidoc.py118 condlist = intersperse([nodes.literal('', c) for c in ifcond],
121 return condlist
124 nodelist.extend(condlist)
/dports/emulators/qemu60/qemu-6.0.0/docs/sphinx/
H A Dqapidoc.py118 condlist = intersperse([nodes.literal('', c) for c in ifcond],
121 return condlist
124 nodelist.extend(condlist)
/dports/devel/py-dask/dask-2021.11.2/dask/array/
H A Droutines.py2114 def _int_piecewise(x, *condlist, **kwargs): argument
2116 x, list(condlist), kwargs["funclist"], *kwargs["func_args"], **kwargs["func_kw"]
2121 def piecewise(x, condlist, funclist, *args, **kw): argument
2125 *condlist,
2140 condlist = args[:split_at]
2142 return np.select(condlist, choicelist, **kwargs)
2146 def select(condlist, choicelist, default=0): argument
2149 if len(condlist) != len(choicelist):
2152 if len(condlist) == 0:
2165 condargs = [arg for elem in condlist for arg in (elem, blockwise_shape)]
/dports/science/py-scipy/scipy-1.7.1/scipy/signal/
H A Dbsplines.py188 condlist = [func(ax) for func in condfuncs]
189 return piecewise(ax, condlist, funclist)
/dports/math/fricas/fricas-1.3.7/src/interp/
H A Dbr-op2.boot536 condlist := modemap2SigConds conds
537 [origin, vlist, flist] := getDcForm(dc, condlist) or return nil
538 subcondlist := SUBLISLIS(flist, vlist, condlist)
566 getDcForm(dc, condlist) ==
571 candidates := [x for x in condlist | x is [k,=dc,:.]
/dports/devel/py-numba/numba-0.51.2/numba/np/
H A Darraymath.py4100 def np_select(condlist, choicelist, default=0): argument
4103 if len(condlist) != len(choicelist):
4108 for i in range(len(condlist) - 1, -1, -1):
4109 cond = condlist[i]
4126 if not isinstance(condlist[0], types.Array):
4132 if isinstance(condlist[0], types.Array):
4135 if isinstance(condlist[0], types.UniTuple):
4136 if not (isinstance(condlist[0], types.UniTuple)
4140 if (isinstance(condlist[0], types.Array) and
4141 condlist[0].ndim != choicelist[0].ndim):
[all …]
/dports/devel/py-numba/numba-0.51.2/numba/tests/
H A Dtest_np_functions.py280 def np_select(condlist, choicelist, default=0): argument
281 return np.select(condlist, choicelist, default=default)
284 def np_select_defaults(condlist, choicelist): argument
285 return np.select(condlist, choicelist)
3379 for condlist, choicelist, default in test_cases:
3380 self.assertPreciseEqual(np_pyfunc(condlist, choicelist, default),
3381 np_nbfunc(condlist, choicelist, default))
3386 self.assertPreciseEqual(np_pyfunc_defaults(condlist, choicelist),
3387 np_nbfunc_defaults(condlist, choicelist))
3393 for condlist, choicelist, default, expected_error, expected_text in [
[all …]
/dports/astro/py-astropy/astropy-5.0/astropy/utils/masked/tests/
H A Dtest_function_helpers.py1006 condlist = [self.a < 1, self.a >= 1]
1007 out = np.piecewise(self.ma, condlist, [Masked(-1, mask=True), 1.])
1008 expected = np.piecewise(self.a, condlist, [-1, 1.])
1009 expected_mask = np.piecewise(self.mask_a, condlist, [True, False])
/dports/mail/mailutils/mailutils-3.13/imap4d/
H A Dsearch.c149 struct cond condlist[] = variable
615 for (condp = condlist; condp->name && mu_c_strcasecmp (condp->name, pb->token); in parse_simple_key()
/dports/math/reduce/Reduce-svn5758-src/packages/redlog/ofsf/
H A Dofsfhqe.red1255 procedure ofsf_mkconj(condlist);
1256 % Make conjunction. [condlist] is a list of conditions. Returns a formula.
1257 if null condlist or condlist eq 'true then
1259 else if null cdr condlist then
1260 car condlist
1262 rl_smkn('and,condlist);
/dports/math/py-jax/jax-0.2.9/jax/_src/numpy/
H A Dlax_numpy.py1605 def select(condlist, choicelist, default=0): argument
1606 if len(condlist) != len(choicelist):
1608 raise ValueError(msg.format(len(condlist), len(choicelist)))
1609 if len(condlist) == 0:
1614 for cond, choice in zip(condlist[::-1], choicelist[::-1]):
4976 def piecewise(x, condlist, funclist, *args, **kw): argument
4978 condlist = array(condlist, dtype=bool_)
4979 nc, nf = len(condlist), len(funclist)
4986 indices = argmax(cumsum(vstack([zeros_like(condlist[:1]), condlist]), 0), 0)

12