search for: extra2

Displaying 10 results from an estimated 10 matches for "extra2".

Did you mean: extra
2003 Oct 29
1
constrOptim doesn´t send arguments to optim!(?)
...a f(x,theta)-like function, everything goes ok. But using constrOptim with the same function leads to error... Proof: Make a small change in the 'Rosenbrock Banana function' (taken from the Examples section of those help pages) adding extra (useless) parameters: fr <- function(x,extra1,extra2) { ## Rosenbrock Banana function x1 <- x[1] x2 <- x[2] extra1*extra2*100 * (x2 - x1 * x1)^2 + (1 - x1)^2 } grr <- function(x,extra1,extra2) { ## Gradient of 'fr' x1 <- x[1] x2 <- x[2] extra1*extra2*c(-400 * x1 * (x2 - x1 * x1) - 2 * (1 - x1),...
2023 Aug 05
1
feature request: optim() iteration of functions that return multiple values
...nctions that return only the first element: returnFirst <- function(fun) function(...) do.call(fun,list(...))[[1]] Example: fr <- function(x) { ## Rosenbrock Banana function x1 <- x[1] x2 <- x[2] ans <- 100 * (x2 - x1 * x1)^2 + (1 - x1)^2 list(ans=ans, extra1 = 1:10, extra2 = letters) } fr2 <- returnFirst(fr) tmp <- optim(c(-1.2,1), fr2) fr(tmp$par) Am 03.08.23 um 22:21 schrieb Sami Tuomivaara: > Dear all, > > I have used optim a lot in contexts where it would useful to be able to iterate function myfun that, in addition to the primary objective to...
2005 Oct 06
8
accessing extra request parameters
hi all, how are other people passing and accessing ''get'' parameters from their apps? what is the best way to do it? ie: www.example.com/controller/action/id/extra/extra2/ ?? or www.example.com/controller/action/id/~extra/extra2/ or what ever.... are there built in methods for passing and accessing extra parameters? thanks for your suggestions -felix
2017 Nov 13
3
[PATCH RFC v3 4/6] Documentation: Add three sysctls for smart idle poll
...atic int sixteen = 16; +static int five_hundred_thousand = 500000; +#endif + /* this is needed for the proc_doulongvec_minmax of vm_dirty_bytes */ static unsigned long dirty_bytes_min = 2 * PAGE_SIZE; @@ -1226,6 +1231,35 @@ static int sysrq_sysctl_handler(struct ctl_table *table, int write, .extra2 = &one, }, #endif +#ifdef CONFIG_PARAVIRT + { + .procname = "paravirt_halt_poll_threshold", + .data = &paravirt_poll_threshold_ns, + .maxlen = sizeof(unsigned long), + .mode = 0644, + .proc_handler = proc_dointvec_minmax, + .extra1...
2017 Nov 13
3
[PATCH RFC v3 4/6] Documentation: Add three sysctls for smart idle poll
...atic int sixteen = 16; +static int five_hundred_thousand = 500000; +#endif + /* this is needed for the proc_doulongvec_minmax of vm_dirty_bytes */ static unsigned long dirty_bytes_min = 2 * PAGE_SIZE; @@ -1226,6 +1231,35 @@ static int sysrq_sysctl_handler(struct ctl_table *table, int write, .extra2 = &one, }, #endif +#ifdef CONFIG_PARAVIRT + { + .procname = "paravirt_halt_poll_threshold", + .data = &paravirt_poll_threshold_ns, + .maxlen = sizeof(unsigned long), + .mode = 0644, + .proc_handler = proc_dointvec_minmax, + .extra1...
2019 Apr 16
1
Fix: menu immediate for submenu
...previous level). Here's a patch over syslinux 6.03. Patch was tested on Debian. Regards Dany *Sample config* # hot keys: S,1,2 are immediate (screen flash), but not E MENU IMMEDIATE LABEL standard MENU LABEL ^Standard MENU BEGIN MENU LABEL ^Extra LABEL extra1 MENU LABEL ^1. One LABEL extra2 MENU LABEL ^2. Two MENU END # end-of-config *Code analysis* The 'menu_entry' associated with a label inherits the 'immediate' flag of the parent 'menu' [record()] unless overridden for the label. The sub 'menu' inherits the 'immediate' flag of the parent...
2019 Apr 17
1
Fix: hotkey uppercasing too wide
...ne digits as hotkeys, the action is also taken for the non-reserved CTRL-P to CTRL-Y (also affect ASCII prior to digits). Here's a quick patch, quickly tested for action on uppercase/lowercase and digit and inaction on "matching" CTRL key. Regards, Dany *Sample config section* LABEL extra2 MENU LABEL ^2. Two # pressing 2 activates this entry # pressing CTRL-R activates this entry (prior to fix below) LABEL extradollar MENU LABEL ^$. Dollar # pressing $ activates this entry # pressing CTRL-D activates this entry (prior to fix below) *Patch* # Sorry for the crypto one-line...
2023 Aug 08
0
[Bridge] [PATCH v2 11/14] networking: Update to register_net_sysctl_sz
...char *p_name; > > + size_t neigh_vars_size; > > t = kmemdup(&neigh_sysctl_template, sizeof(*t), GFP_KERNEL_ACCOUNT); > > if (!t) > > @@ -3790,11 +3791,13 @@ int neigh_sysctl_register(struct net_device *dev, struct neigh_parms *p, > > t->neigh_vars[i].extra2 = p; > > } > > + neigh_vars_size = ARRAY_SIZE(t->neigh_vars); > > if (dev) { > > dev_name_source = dev->name; > > /* Terminate the table early */ > > memset(&t->neigh_vars[NEIGH_VAR_GC_INTERVAL], 0, > > sizeof(t-&gt...
2023 Aug 03
3
feature request: optim() iteration of functions that return multiple values
Dear all, I have used optim a lot in contexts where it would useful to be able to iterate function myfun that, in addition to the primary objective to be minimized ('minimize.me'), could return other values such as alternative metrics of the minimization, informative intermediate values from the calculations, etc. myfun <- function() { ... return(list(minimize.me = minimize.me, R2 =
2012 Apr 30
5
[PATCH 0/4 v1] Remove gettextify, implement OCaml gettext.
Version 1 of the patch, for discussion, but not to be applied. It does work, but needs a lot more testing. This removes all the psychopathic gettextify cruft, and replaces it with a 99 line Makefile.am. A large win, I think. The third patch implements gettext support in the OCaml tools. The fourth patch is just for illustration. It shows the consequent changes to libguestfs.pot and the po