Displaying 20 results from an estimated 200 matches similar to: "RFC: alloca -- specify rounding factor for allocation (and more)"
2016 Apr 28
2
Combinaciones sin repetición...con restricciones
Hola, Carlos.
Primero, muchas gracias por el código. No es exactamente lo que quería,
porque la parte "Detección de presencia de "cual_1" y "cual_2"... no
excluye aquellas combinaciones en las que está presente también el objeto
c, pero me ha servido de base e inspiración para elaborar otro código.
He copiado la primera parte de tu función, para crear todas las
2015 Aug 31
2
alloca combining, not (yet) possible ?
Hello
since my broad RFC request didn't catch any responses, let me get a bit
more into the nitty-gritty:
I tried to get llvm (3.7) to optimize superflous allocas away, but so
far I haven't figured out how. Is there no optimizer for this ? Should I
adorn something with some attributes ? As far as I can tell no, but I am
no llvm expert...
For what I want to do, i will probably have a
2015 Aug 31
2
alloca combining, not (yet) possible ?
Caldarale, Charles R schrieb:
> You have not provided us with the declaration for f(). Unless its argument is marked with the nocapture attribute, the compilation of g() cannot assume that f() has not retained a pointer to the x struct and is using it in the second call.
>
thanks a lot for the input. Yes, I forgot to that. The C function
declaration would have been
void f( struct a_b
2017 Aug 04
2
Why is as.function() slower than eval(call("function"())?
(Apologies if this is better suited for R-help.)
On my system (macOS Sierra, late 2014 MacBook Pro; R 3.4.1, Homebrew build), I found that it is faster to construct a function using eval(call("function", ...)) than using as.function(list(...)). Example:
make_fn_1 <- function(a, b) eval(call("function", a, b), env = parent.frame())
make_fn_2 <- function(a, b)
2012 Feb 14
3
Wildcard for indexing?
Hi,
I'd like to know if it is possible to use wildcards * for indexing...
E.g. I have a vector of strings. Now I'd like to select all elements
which start with A_*? I'd also need to combine that with logical operators:
"Select all elements of a vector that start with A (A*) OR that start with B (B*)"
Probably that is quite easy. I looked into grep() which I think might
2012 Oct 14
4
listing the files in a directory using regular expressions
Hi Experts,
This might be silly question that I am asking, but no way as I am new to
R.
I want to list the files in a directory using regular expression like
A_B*_C*.csv etc.
How to make this possible in R ?
I tried like this list.files(dir=".", pattern="A_B*_C*.csv") but this gives
no output, whereas list.files(.... pattern="*.csv") giving all the .csv
files in
2006 May 17
2
Association data clobbering (foreign keys too?)
Can someone please confirm or correct the following statements?
If I have the following tables
create table as (id int, [...], b_id int);
create table bs (id int, [...], a_id int);
create table as_bs (a_id int, b_id int);
and the associations woould be defined like this
class A << ...
habtm :bs
belongs_to :b
end
so my Model A has a habtm collection of Bs *plus* a direct
2017 Apr 09
2
[Bug] FTS invalid address parsing
Hi,
i found another bug in FTS while parsing
quoted-printable/base64-encoded sender's name inside 'From' header
(again, i was figuring out why some of messages cannot be searched).
Header: From: =?UTF-8?Q?A=2CB?= <test at example.com>
Data send to Solr by Dovecot: <field name="from">A@, B
&lt;test at example.com&gt;</field>
Header:
2010 Oct 26
4
divide column in a dataframe based on a character
Hello,
If I have a dataframe:
example(data.frame)
zz<-c("aa_bb","bb_cc","cc_dd","dd_ee","ee_ff","ff_gg","gg_hh","ii_jj","jj_kk","kk_ll")
ddd <- cbind(dd, group = zz)
and I want to divide the column named group by the "_", how would I do this?
so instead of the first row being
x
2016 Apr 27
4
Combinaciones sin repetición...con restricciones
Hola, tengo que resolver un problema para el que normalmente utilizaría
excel, pero me gustaría intentar resolverlo con R. Se trata de lo siguiente:
Tengo tres elementos: a, b y c.
Dichos elementos están agrupados en siete objetos, producto de todas las
combinaciones sin repetición posibles:
Objeto 1: a
Objeto 2: b
Objeto 3: c
Objeto 4: a y b
Objeto 5: a y c
Objeto 6: b y c
Objeto 7: a, b y c
2006 Mar 15
1
push_with_attributes not inserting default values
I have a join table A_B with columns[a_id, b_id, c_data default 1,
d_data default 1].
If I do:
@aobj.bobjs.push_with_attributes(@bobj,{:c_data => 0})
I find that the row inserted, has d_data set to 0 and not the default
value specified in the database, which is 1. So I am having to
explicitly set it using :
@aobj.bobjs.push_with_attributes(@bobj,{:c_data => 0, :d_data => 1}).
Is this
2003 Oct 24
1
How to avoid converting "_" to "." ?
It is minor thing, but how can I avoid converting "_" to "." ?
e.g. I have a data set "test.csv"
A,A_B,A_C,C,D
X,11,0,13,14
Y,21,0,23,24
and when I read it all underscores are converted to dots (:<)
> d <- read.csv("test.csv")
> d
A A.B A.C C D
1 X 11 0 13 14
2 Y 21 0 23 24
Ryszard
[[alternative HTML version deleted]]
2010 Aug 19
1
Help with Vectors and conditional functions
Good morning,
I have something like this: names(coint_tests) <- apply(b,2,paste, collapse="_") which prints 15 names like: A_B, C_D, E_F, ...
AA,B,C,D.. Are time series. Then there is a vector called coint_tests of length 15 which yields "yes" or "no".
I need to add a function to plot the time series Ai_Bi if the coint_tests vectors gives me a "YES".
2006 Jul 29
1
creating and storing records in Ruby
I''ve read through my RoR books and I can''t seem to find the solution.
This is a pretty basic, easy, and practical application for RoR. If you
guys know of any resources on the net to answer these questions let me
know.
Question 1:
Basically, I have a many-to-many relationship that I want to add records
to. I use something like this to add records in the A_B table:
2009 Aug 28
1
problems with strsplit using a split of ' \\\ ' : a regex problem
I have a vector of gene symbols, some of which have multiple aliases. In the
case of an alias, they are separated by ' \\\ '.
Here is a real world example, which would represent one element of my
vector:
Eif4g2 /// Eif4g2-ps1 /// LOC678831
What I would like to do is input the vector into a function and output a
vector with just the first alias of each element (or, if there are no
aliases,
2006 Feb 16
0
SSQ decomposition and contrasts with ANOVA
Dear R list,
Please, could someone help me with SSQ decomposition and contrasts.
Below my data, graphic, ANOVAs and my doubt:
# Data
a = paste('a', gl(3, 8), sep='')
b = paste('b', gl(2, 4, 24), sep='')
tra = sort(paste('t', rep(1:6, 4), sep=''))
y = c(26.2, 26.0, 25.0, 25.4, 24.8, 24.6, 26.7, 25.2,
25.7, 26.3, 25.1, 26.4, 19.6,
2007 Feb 01
1
xtable and column headings
When I generate a LaTeX table using xtable I have been setting column names
to strings with LaTeX code in order to get features like subscripts in the
column headings. I recently had to reinstall xtable and discovered that all
my LaTeX column headings were printing out in LaTeX code rather than with
LaTeX formatting. For example, with the older xtable I could give my column
a name something like
2015 Jul 02
4
boot... round 2
On 02.07.2015 01:28, Gene Cumm wrote:
> On Wed, Jul 1, 2015 at 10:14 AM, poma <pomidorabelisima at gmail.com> wrote:
>> On 01.07.2015 12:10, Gene Cumm wrote:
>>> On Wed, Jul 1, 2015 at 4:35 AM, poma <pomidorabelisima at gmail.com> wrote:
>>>>
>>>> To remind you once again.
>>>> ISOLINUX >= 6.00 built with GCC >= 5.0.0 causes a
2015 Jul 02
0
boot... round 2
Hi,
poma wrote:
> - if (c <= ' ' || c == '\x7f') {
> + if (c <= ' ' && c == '\x7f') {
As Geert Stappers pointed out (and can be verified by a
simple test program), the reinstated term
(c <= ' ' && c == '\x7f')
evaluates always as false, because ('\x7f' <= ' ') is false.
So it is
2007 Jan 23
0
error in arules package
Hi,
we noticed there was a error in the "arules" package.
After reading the source code, we saw that the Dice similarity index was
"miscalculated" in "dissimilarity" function : an copy-paste from Jaccard
Index was not corrected (2* a_b_c, ie 2*(a+b+c) in the code instead of
2*a +b + c !!!).
After our mail to R-help (21/11/2006), we thought the authors could do