search for: a_b

Displaying 20 results from an estimated 20 matches for "a_b".

Did you mean: a&b
2015 Aug 31
2
alloca combining, not (yet) possible ?
...? 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 few dozen combinable allocas in my produced code each function. So it would be worthwhile to reduce stack space needs. Ciao Nat! --- %struct.a_b = type { i32, i32 } ; Function Attrs: nounwind ssp uwtable define void @g() #0 { entry: %x = alloca %struct.a_b, align 4 %y = alloca %struct.a_b, align 4 %a = getelementptr inbounds %struct.a_b, %struct.a_b* %x, i32 0, i32 0 store i32 1, i32* %a, align 4 %b = getelementptr inbounds...
2015 Aug 31
2
alloca combining, not (yet) possible ?
...ess 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 *p); which compiled into declare void @f(%struct.a_b*) #2 with attributes #2 = { "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-m...
2012 Feb 14
3
Wildcard for indexing?
...t 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 perform such tasks, but probably there is a more straigth forward solution. a <- c("A_A","A_B","C_A","BB","A_Asd") a[a=="A_A"| a=="A_B"] # here I'd like an index but with wildcard /johannes --
2017 Aug 04
2
Why is as.function() slower than eval(call("function"())?
...3400 3.906 4.1055 23.153 100 b At first I thought the gap was due to the overhead of calling c(a, list(b)). But this turns out not to be the case: make_fn_weird <- function(a, b) as.function(c(a, b), env = parent.frame()) b_wrapped <- list(b) make_fn_weirder <- function(a_b) as.function(a_b, env = parent.frame()) a_b <- c(a, b_wrapped) microbenchmark(make_fn_1(a, b), make_fn_2(a, b), make_fn_weird(a, b_wrapped), make_fn_weirder(a_b)) # Unit: microseconds # expr min lq mean median uq max ne...
2015 Aug 28
2
RFC: alloca -- specify rounding factor for allocation (and more)
...# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # Makefile # types.h # a_b.c # a_b_c.c # main.c # echo x - Makefile sed 's/^X//' >Makefile << 'END-of-Makefile' XCFLAGS=-g -O3 -DNDEBUG X X Xall: reuse noreuse X Xa_b1.o: a_b.c X $(CC) $(CFLAGS) -c -o $@ -DREUSE=0 $+ X Xa_b2.o: a_b.c X $(CC) $(CFLAGS) -c -o $@ -DREUSE=1 $+ X Xnoreuse: a_b1.o a_b_c.o...
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 the output, which I do not want. Thanks Sidda -- View thi...
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 inste...
2006 May 17
2
Association data clobbering (foreign keys too?)
...elongs_to :b end so my Model A has a habtm collection of Bs *plus* a direct belongs_to link to one B (and vice versa). So a = A.find(:first) b = a.bs.first a2 = b.a might not give me back a, because b''s direct belongs_to a reference is clobbered with the reference from the join table a_b (because the foreign keys have the same name)? Or does this only apply to non foreign key attributes? There are no such problems if I''d make a_b a join model and have no habtm, but a has_many :through instead? What other options to circumvent this problem do I have (besides renaming...
2017 Apr 09
2
[Bug] FTS invalid address parsing
...9; 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 &amp;lt;test at example.com&amp;gt;</field> Header: From: =?UTF-8?Q?A_B=2CC?= <test at example.com> Data send to Solr by Dovecot: <field name="from">A@</field> Header: From: =?UTF-8?B?QSBCLEMK?= <test at example.com> Data send to Solr by Dovecot: <field name="from">A@</field> Dovecot 2.2.27. azur
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.bo...
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]]
2006 Feb 16
0
SSQ decomposition and contrasts with ANOVA
...As av0 = aov(y ~ tra, data=dF) summary(av0) av1 = aov(y ~ a*b, data=dF) summary(av1) av2 = aov(y ~ a/b, data=dF) b_a = summary(av2, split = list('a:b' = list( 'b1 vs b2/a1' = 1, 'b1 vs b2/a2' = 2, 'b1 vs b2/a3' = 3))) b_a av3 = aov(y ~ b/a, data=dF) a_b = summary(av3, split = list('b:a' = list( 'a/b1' = c(1,3), 'a/b2' = c(2,4)))) a_b # My doubts a) How to make the SSQ decomposition to complete the ANOVA below? -------------------------------------------------------- Df Sum Sq Mean Sq F v...
2007 Feb 01
1
xtable and column headings
...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 "$A_b$" to get printed column heading of "A" with the subscript "b." Now my printed column heading is "$A_b$" and the LaTeX code in the .tex file generated by Sweave is "\$A\_b\$". It seems that the newest version of print.xtable takes all my LaTeX special cha...
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". I tried: for (i in 1:(length(coint_te...
2006 Jul 29
1
creating and storing records in Ruby
...lution. 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: c.clubs<<Club.find_all_by_name(params[:clubs]) This takes the ones that already exist and establishes a relationship between A and B. What if I want to take ones that don''t exist in params[:clubs] and have those added to Club table? Is there any shortcut operator for doin...
2009 Aug 28
1
problems with strsplit using a split of ' \\\ ' : a regex problem
...bol). So I wrote a simple little function to do this: get.first.id.func <- function(vec, splitter){ vec.lst <- strsplit(vec, splitter) first.func <- function(vec1){vec1[1]} vec.out <- sapply(vec.lst, first.func) vec.out } For a trivial example, this works: > a <- c("a_b", "c_d") > get.first.id.func(a, "_") [1] "a" "c" I am running into problems, however, with the real world split of ' \\\ ' I'm not even able to construct a sample vector of my own! Here is what I get: > a <- c('a \\\ b', ...
2016 Apr 28
2
Combinaciones sin repetición...con restricciones
..._detect(all_comb, cu_al)] > return(res_out) > } > #----------------------- > > Ejemplo: > > > set_examp <- c('a','b','c','d') > > my_choice(set_examp, 'a', 'b') > [1] "a" "b" "a_b" "a_c" "a_d" "b_c" "b_d" > "a_b_c" > [9] "a_b_d" "a_c_d" "b_c_d" "a_b_c_d" > > La función calcula todas las combinaciones sin repetición posibles y > extrae los eleme...
2017 Apr 09
0
[Bug] FTS invalid address parsing
...g 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 &amp;lt;test at example.com&amp;gt;</field> > > > Header: From: =?UTF-8?Q?A_B=2CC?= <test at example.com> > Data send to Solr by Dovecot: <field name="from">A@</field> > > > Header: From: =?UTF-8?B?QSBCLEMK?= <test at example.com> > Data send to Solr by Dovecot: <field name="from">A@</field> > >...
2006 Jul 31
2
updating records in a many-to-many relationship
Im trying to establish relationships in a many to many table. When I create a user, I do this to insert the different relationships between the user and sports: c.sports<<Sport.find_all_by_name(params[:sports]) where c is the user. The problem is, when I edit this user, and lets say he adds a sport, I can''t use this because I get an error saying that some records already
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