Displaying 6 results from an estimated 6 matches for "vfun".
Did you mean:
fun
2009 Aug 08
1
frequency of numbers in a list
Hi,
I have two vectors, mag and i, and I want to generate a of vector where each element is the frequency of mag which is greater than i.
i produced the following code. However I get the following error:
mag<-rnorm(40,5,3)
i<-seq(floor(min(mag)),max(mag), 0.5)
freq<-sum(mag>=i)
Warning message:
In mag >= i :
longer object length is not a multiple of shorter object length
2018 Mar 19
4
RFC: Devirtualization v2
...g a fat pointer from integer, we need to use launder:void
foo(Base *base) { uintptr_t base_int = (uintptr_t)base; /* base_int =
ptrtoint (strip base) */ Base *base_int_ptr = (Base*)base_int; /*
base_int_ptr = inttoptr base_int = inttoptr (ptrtoint (strip base)) = strip
base */ base_int_ptr->vfun(); ... Derived *derived = std::launder(base);
uintptr_t derived_int = (uintptr_t)derived; /* derived_int = ptrtoint
(strip derived) */ /* Note: base_int == derived_int */ .... Base
*derived_int_ptr = (Base*)derived_int; /* derived_int_ptr = inttoptr
(ptrtoint (strip derived)) */ /* Note: b...
2018 Mar 28
0
[cfe-dev] RFC: Devirtualization v2
...se launder:
>
> void foo(Base *base) {
> uintptr_t base_int = (uintptr_t)base;
> /* base_int = ptrtoint (strip base) */
> Base *base_int_ptr = (Base*)base_int;
> /* base_int_ptr = inttoptr base_int = inttoptr (ptrtoint (strip base)) = strip base */
> base_int_ptr->vfun();
> ...
> Derived *derived = std::launder(base);
> uintptr_t derived_int = (uintptr_t)derived;
> /* derived_int = ptrtoint (strip derived) */
> /* Note: base_int == derived_int */
> ....
> Base *derived_int_ptr = (Base*)derived_int;
> /* derived_int_ptr = in...
2010 Aug 26
0
anova for plm objects
...anova(depFE.plm, depLDFE.plm)
Errore in UseMethod("anova") :
no applicable method for 'anova' applied to an object of class "c('plm', 'panelmodel')"
waldtest
> waldtest(depFE.plm, depLDFE.plm)
Errore in modelCompare(objects[[i - 1]], objects[[i]], vfun = vcov.) :
models are not nested
Did anyone code a plm method for anova?
OR
Does anyone know why according to waldtest my models are not nested?
Thanks
Roberto
********************
Roberto Patuelli, Ph.D.
Istituto Ricerche Economiche (IRE) (Institute for Economic Research)
Università della Sv...
2014 Feb 11
1
Order of istream and ostream chains
...;
input = *stream;
*stream = scrambler_istream_create(input);
i_stream_unref(&input);
return mmail->super.istream_opened(_mail, stream);
}
static void scrambler_mail_allocated(struct mail *_mail) {
struct mail_private *mail = (struct mail_private *)_mail;
struct mail_vfuncs *v = mail->vlast;
union mail_module_context *mmail;
mmail = p_new(mail->pool, union mail_module_context, 1);
mmail->super = *v;
mail->vlast = &mmail->super;
v->istream_opened = scrambler_istream_opened;
MODULE_CONTEXT_SET_SELF(mail, scrambler_mail_module, mmail);
}...
2018 Mar 29
2
[cfe-dev] RFC: Devirtualization v2
...integer, we need to use launder:void
> foo(Base *base) { uintptr_t base_int = (uintptr_t)base; /* base_int =
> ptrtoint (strip base) */ Base *base_int_ptr = (Base*)base_int; /*
> base_int_ptr = inttoptr base_int = inttoptr (ptrtoint (strip base)) = strip
> base */ base_int_ptr->vfun(); ... Derived *derived = std::launder(base);
> uintptr_t derived_int = (uintptr_t)derived; /* derived_int = ptrtoint
> (strip derived) */ /* Note: base_int == derived_int */ .... Base
> *derived_int_ptr = (Base*)derived_int; /* derived_int_ptr = inttoptr
> (ptrtoint (strip deri...