search for: b_val

Displaying 5 results from an estimated 5 matches for "b_val".

Did you mean: _val
2015 Mar 03
2
[LLVMdev] RFC: Better alternative to llvm.frameallocate for use in Windows EH
...that can be referenced from EH helpers. Here's what it would look like: define i32 @parent() { %a = alloca i32 %b = alloca i32 call void (...)* @llvm.frameescape(i32* %a, i32* %b) %fp = call i8* @llvm.frameaddress(i32 0) call void @helper_func(i8* %fp) %a_val = load i32, i32* %a %b_val = load i32, i32* %b %r = add i32 %a_val, %b_val ret i32 %r } define void @helper_func(i8* %fp) { %a.i8 = call i8* @llvm.framerecover(i8* bitcast (i32 ()* @parent to i8*), i8* %fp, i32 0) %b.i8 = call i8* @llvm.framerecover(i8* bitcast (i32 ()* @parent to i8*), i8* %fp, i32 1) %a = bitcas...
2010 Feb 11
0
Regarding a error while plotting R chart using qcc package.
...> > > Also I am attaching the dataset and the code which gave me error > while plotting R chart. > > R code is as follows: - > > SAMPLE_SIZE<-1000 > y<-read.csv("data.csv",sep=",",header=TRUE) > y<-subset(y, !is.null(y[,1]),) > unique_b_vals = unique(y[,2]) > final_set <- NULL > for(b_val in unique_b_vals) > { > temp1 = subset(y,week==b_val,) > temp1 = temp1[sample(dim(temp1)[1], SAMPLE_SIZE),] > if (is.null(final_set)) > final_set <<- temp1 > else > final_set <<- rbind(final_set,temp1) >...
2015 Mar 04
2
[LLVMdev] RFC: Better alternative to llvm.frameallocate for use in Windows EH
...; > define i32 @parent() { > > %a = alloca i32 > > %b = alloca i32 > > call void (...)* @llvm.frameescape(i32* %a, i32* %b) > > %fp = call i8* @llvm.frameaddress(i32 0) > > call void @helper_func(i8* %fp) > > %a_val = load i32, i32* %a > > %b_val = load i32, i32* %b > > %r = add i32 %a_val, %b_val > > ret i32 %r > > } > > > > define void @helper_func(i8* %fp) { > > %a.i8 = call i8* @llvm.framerecover(i8* bitcast (i32 ()* @parent to > i8*), i8* %fp, i32 0) > > %b.i8 = call i8* @llvm.framer...
2023 Mar 11
1
Multiple Assignment built into the R Interpreter?
...list of length > 1 *is a valid thing to return from an R function*. I think, like in Julia, you'd need to declare the set of things being returned, and perhaps map them to the variables you want assigned crazy_notworking_fun <- function() { return(a = 5, b = 65, c = 275) } [a_val = a, b_val = b] <- crazy_notworking_fun() Or even, [a_val <- a, b_val <-b] <- crazy_notworking_fun() In that case, however, it becomes somewhat unclear (to me at least) what only_val <- crazy_notworking_fun() would do. Throw an error because multivalued functions are fundamentally differe...
2023 Mar 11
3
Multiple Assignment built into the R Interpreter?
Thanks Duncan and Ivan for the careful thoughts. I'm not sure I can follow all aspects you raised, but to give my limited take on a few: > your proposal violates a very basic property of the language, i.e. that all statements are expressions and have a value. > What's the value of 1 + (A, C = init_matrices()). I'm not sure I see the point here. I evaluated 1 + (d =