Displaying 13 results from an estimated 13 matches for "myval".
Did you mean:
byval
2010 Aug 02
2
[LLVMdev] indirectbr and phi instructions
...he following code:
L1:
br i1 %somevalue, label %L2, label %L3
L2:
%ret1 = i8* blockaddress(@myfunction, %L5)
br label %L4
L3:
%ret2 = i8* blockaddress(@myfunction, %L6)
br label %L4
L4:
%ret = phi i8* [%ret1, L2], [%ret2, L3]
indirectbr i8* %ret, [label %L5, label %L6]
L5:
%myval = phi i32 [0, %L2], [1, %L3] ; are both of these values required,
even though the only *real* possible predecessor block is L2?
ret i32 %myval
L6:
%myval = phi i32 [0, %L2], [1, %L3] ; likewise
ret i32 %myval
Boiled down, I think my question is, "how strict is the 'one value per...
2011 May 24
3
Beginner Question: List value without Levels
Hey folks,
I'm new to the R Project so I'm facing a great problem. I've read a file
into R:
>myVal
I V L F C M A G T W S Y P H Q D
N E K R
1 4,5 4,2 3,8 2,8 2,5 1,9 1,8 -0,4 -0,7 -0,9 -0,8 -1,3 -1,6 -3,2 -3,5 -3,5
-3,5 -3,5 -3,9 -4,5
> mode(myVal)
[1] list
Now I want to multiplicate each of this values with this one:
>data
A C...
2012 Jul 21
4
rhsape2 bug?
All,
I believe I am running the latest version of rshape2 (1.2.1). But this code:
library(reshape2)
tmp <- melt(smiths,
id.vars=1:2,
measure.vars=c("age","weight","height"),
variable.name="myvars",
value.name="myvals"
)
names(tmp)
Produces this output:
> names(tmp)
[1] "subject" "time" "variable" "value"
So you can see that these lines of code don't work:
variable.name="myvars",
value.name="myvals"
Is this a bug?
Dav...
2012 Mar 19
1
fitting a histogram to a Gaussian curve
Hello,
I am trying to fit my histogram to a smooth Gaussian curve(the data
closely resembles one except a few bars).
This is my code :
#!/usr/bin/Rscript
out_file = "irc_20M_opencl_test.png"
png(out_file)
scan("my.csv") -> myvals
hist(myvals, breaks = 50, main = "My Distribution",xlab = "My Values")
pdens <- density(myvals, na.rm=T)
plot(pdens, col="black", lwd=3, xlab="My values", main="Default KDE")
dev.off()
print(paste("Plot was saved in:", getwd()))
t...
2003 May 20
2
Using Arrays
hi,
can we have arrays in contexts?
i tried like this, but didn't work :-(
declaration
myarray[0]=192.168.3.4
myarray[1]=192.168.3.1
usage
myvalue = ${myarray[${myval}]}
pls tell a way to do this
Thanx a lot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20030521/f8b61c89/attachment.htm
2005 Jan 07
7
Channel Variable
Hi all,
Does anyone know how to get the channel ID on the other side of the
call?
For example: When SIP/50 calls SIP/21, and the call is answered by
SIP/21 I get:
SIP/21-6735 answered SIP/50-b456
${CHANNEL} will show me SIP/50-b456.
Is there a parameter or a workaround to get the SIP/21-6735 part?
Thanks.
Assaf Benharoosh
-------------- next part --------------
An HTML attachment was
2019 Feb 13
6
trouble removing + sign
I'm using BLACKLIST() to check numbers, which does not like leading +
signs. I want to test if there is a plus sign, and then remove it.
I tried:
; strip leading plus sign
same => n, Verbose( callerid 0:1 is ${CALLERID(num):0:1} )
same => n,ExecIf($["${CALLERID(num):0:1}" = "+"]?Set(CALLERID(num) =
${CALLERID(num):1})
2010 Dec 10
1
melt causes errors when characters and values are used
Hello,
I am finding that the melt function from the reshape library causes
errors when applied to a data.frame that contains numeric and character
columns. For example,
melt(id.vars="ID",data.frame(ID=1:3,date=c("a","b","c"),value=c(1,4,5)))
ID variable value
1 1 date a
2 2 date b
3 3 date c
4 1 value <NA>
5 2
2007 Apr 18
20
dependency and communication between defined classes
Hi,
i wanted to know how you handle case when classes or define need to
communicate between them. For exemple i got an ftpd define and a
apachevhost define. Both need to know the path where the vhost is set
and this path is defined by the ftpuser home''s directory. How can i ask
information from other define or other classes ? we allready seen that
tag are not reliable as they
2012 Nov 29
2
[LLVMdev] [cfe-dev] UB in TypeLoc casting
Moving to LLVM dev to discuss the possibility of extending the cast
infrastructure to handle this.
On Tue, Nov 20, 2012 at 5:51 PM, John McCall <rjmccall at apple.com> wrote:
> On Nov 18, 2012, at 5:05 PM, David Blaikie <dblaikie at gmail.com> wrote:
>> TypeLoc casting looks bogus.
>>
>> TypeLoc derived types return true from classof when the dynamic type
>>
2012 Nov 30
0
[LLVMdev] [cfe-dev] UB in TypeLoc casting
...---------- next part --------------
Index: include/llvm/Support/Casting.h
===================================================================
--- include/llvm/Support/Casting.h (revision 168949)
+++ include/llvm/Support/Casting.h (working copy)
@@ -203,13 +203,27 @@
//
// cast<Instruction>(myVal)->getParent()
//
-template <class X, class Y>
+template <class X, class Y, class S = typename std::enable_if<!std::is_same<Y, typename simplify_type<Y>::SimpleType>::value>::type>
inline typename cast_retty<X, Y>::ret_type cast(const Y &Val) {
assert(...
2005 Apr 22
6
[LLVMdev] isa and friends as an alternative to dynamic cast?
I see a bunch of definitions scattered throughout LLVM, and I could not
find good documentation on them. I don't understand why they exist when
LLVM is being compiled with RTTI enabled. It seems to me that:
isa<T>(x) is a substitute for (dynamic_cast<T>(x) != NULL)
and there are some other similar casting tools defined in Casting.h. Why
should I use these instead of C++'s
2010 Jul 12
13
ANNOUNCE: Puppet 2.6.0 - Release Candidate 2 available!
...: hashes.
Hashes are defined like Ruby Hashes:
{ key1 => val1, ... }
The Hash keys are strings but hash values can be any possible right
values admitted in Puppet DSL (i.e. a function call or a variable)
Currently it is possible:
* to assign hashes to a variable
$myhash = { key1 => "myval", key2 => $b }
* to access hash members (recursively) from a variable containing a hash
(works for array too):
$myhash = { key => { subkey => "b" }}
notice($myhash[key][subkey]]
* to use hash member access as resource title
* to use hash in default definition parameter o...