search for: testfor

Displaying 3 results from an estimated 3 matches for "testfor".

Did you mean: testfoo
2012 Nov 10
1
help with for loop to test for a condition in a vector
I want my for loop to test for the presence of a term in a vector and return a value to a new vector. I'm not writing it correctly though. Here's what I have... > testfor = letters[1:5] > x = c("a", "b", "e", "f", "g") > result = rep(NA, length(testfor)) > > for (i in testfor){ + v = any(x == testfor[i]) + result[i] = v + } > > result a b c d e NA NA NA NA NA NA NA NA NA N...
2010 Nov 22
0
[LLVMdev] Emitting LLVM IR for control flow
Hi I'm following the excellent Kaleidoscope tutorial to learn how to build an interpreter using LLVM. Apologize if this list is not the best place to post beginner's questions. In Kaleidoscope 2.7 when I run def binary : 1 (x y) y; def testfor (x) (for c = 1, c<2 in x = x +1 ) : x; testfor(1) unexpectadly get 3.000000 instead of 2.000000. This happens, I believe, because the instruction %faddtmp = fadd *double* %x1.0, 1.000000e+000 ; <*double*> [#uses=2] is being generated before %ltcmptmp = fcmp ult *double* %c.0, 2.000000e+...
2006 Jan 13
2
AEL2 -- The Future --
Call to Action! For those who have the courage/ability, go grab an SVN copy of the asterisk release, the HEAD version, and my latest patch, from: http://bugs.digium.com/view.php?id=6021 Right now, the latest version of the patch is 0.10. apply it to the SVN head version, and do a "make". Read the Wiki on AEL2: http://www.voip-info.org/wiki/view/Asterisk+AEL2 Look at the examples