search for: getel

Displaying 20 results from an estimated 49 matches for "getel".

Did you mean: gretel
2017 Nov 22
3
Fw: modified mankendal
Hello DearI used modifiedmk package for trend analyses.this is my script ?require(modifiedmk)X1<-read.table("c:/elham/first article/r/Spring_NDVI-1.txt",skip=2,header=FALSE)d=dim(X1) outMK<-matrix(-999,nrow=4,ncol=d[2])for (c in 1:d[2]){MK<-tfpwmk(X1[,c])outMK[1,c]<-getElement(MK,"S")outMK[2,c]<-getElement(MK,"Var(S)")outMK[3,c]<-getElement(MK,"Sen's Slope")outMK[4,c]<-getElement(MK,"P-value")}?unfortunetally I got this error: Error in if (S == 0) { : missing value where TRUE/FALSE needed would you please help me...
2013 Nov 02
4
[LLVMdev] get function local debug info?
...ollowing: NamedMDNode *M_Nodes = M.getNamedMetadata("llvm.dbg.cu"); for (unsigned i = 0, e = M_Nodes->getNumOperands(); i != e; ++i) { DIArray SPs = CU.getSubprograms(); for (unsigned i = 0, e = SPs.getNumElements(); i != e; ++ i) { DISubprogram SP(SPs.getElement(i)); DIArray Vars = SP.getVariables(); for (unsigned i2 = 0, e2 = Vars.getNumElements(); i2 != e2; ++i2) { DIVariable DV(Vars.getElement(i)); DV.print(errs()); errs() << " : "; DV.getType().dump(); } } } In addition,...
2007 Oct 03
1
Form getElementsByTagName("*") is empty
I''m having problems serializing a form. I''ve narrowed the problem down so that if I break in Prototype''s getElements function, and trace into the $A that makes an array of the return of $(form).getElementsByTagName("*"), the iterator doesn''t contain any elements. However, looking at the form variable in FireBug shows all the elements I''d expect to be there. I''m executin...
2017 Nov 24
0
Fw: modified mankendal
...mk package for trend analyses.this is my script >> require(modifiedmk)X1<-read.table("c:/elham/first >> article/r/Spring_NDVI-1.txt",skip=2,header=FALSE)d=dim(X1) >> outMK<-matrix(-999,nrow=4,ncol=d[2])for (c in >> 1:d[2]){MK<-tfpwmk(X1[,c])outMK[1,c]<-getElement(MK,"S")outMK[2,c]<-getElement(MK,"Var(S)")outMK[3,c]<-getElement(MK,"Sen's >> Slope")outMK[4,c]<-getElement(MK,"P-value")} unfortunetally I got this >> error: >> Error in if (S == 0) { : missing value where TRUE/FALSE neede...
2008 Sep 07
4
XML - get node by name
Hi there, I try to rewrite some Java-code with R. It deals with reading XML files. I started with the XML package. In Java, I had a very useful method which gave me a node by using: name of the node index of appearance start point: global (false) / local (true) So, I could do something like this. setCurrentChildNode("data", 0); getValueOfElement("val",1,true); -->
2008 Jun 06
0
[LLVMdev] Troubling promotion of return value to Integer ...
...igned char c; }; ; struct S f(); ; S s = f(); %s = call {i32, i32} known_bits({i32, i32} {i32 0xFFFFFFE, i32 0}) sign_bits({i8, i8} {i8 0, i8 25}) @f(); ; Easy to propagate known bits and sign bits from %s to %s.b and %s.c. %s.b = getelement {i32, i32} %s, 0 %s.c = getelement {i32, i32} %s, 1 — Gordon
2013 Nov 03
0
[LLVMdev] get function local debug info?
...NamedMDNode *M_Nodes = M.getNamedMetadata("llvm.dbg.cu"); > for (unsigned i = 0, e = M_Nodes->getNumOperands(); i != e; ++i) { > DIArray SPs = CU.getSubprograms(); > for (unsigned i = 0, e = SPs.getNumElements(); i != e; ++ i) { > DISubprogram SP(SPs.getElement(i)); > DIArray Vars = SP.getVariables(); > for (unsigned i2 = 0, e2 = Vars.getNumElements(); i2 != e2; ++i2) { > DIVariable DV(Vars.getElement(i)); > DV.print(errs()); errs() << " : "; DV.getType().dump(); > } >...
2013 Nov 03
0
[LLVMdev] get function local debug info?
...dMetadata("llvm.dbg.cu"); >>> for (unsigned i = 0, e = M_Nodes->getNumOperands(); i != e; ++i) { >>> DIArray SPs = CU.getSubprograms(); >>> for (unsigned i = 0, e = SPs.getNumElements(); i != e; ++ i) { >>> DISubprogram SP(SPs.getElement(i)); >>> DIArray Vars = SP.getVariables(); >>> for (unsigned i2 = 0, e2 = Vars.getNumElements(); i2 != e2; >>> ++i2) { >>> DIVariable DV(Vars.getElement(i)); >>> DV.print(errs()); errs() << " : ";...
2008 Jun 04
4
[LLVMdev] Troubling promotion of return value to Integer ...
On May 29, 2008, at 10:30 AM, Alireza.Moshtaghi at microchip.com wrote: > > > 4) There will be 4 new function attributes: > sign_ext_from_i8, sign_ext_from_i16 > zero_ext_from_i8, zero_ext_from_i16 > These attributes will be placed on the function CALL node by > front-end > to inform the backend about such promotions and enable optimization > of > return
2017 Aug 04
1
Restructuring Star Wars data from rwars package
...uble restructuring data from the rwars package into a dataframe. Can someone help me? Here's what I have... library("rwars") library("tidyverse") # These data are json, so they load into R as a list people <- get_all_people(parse_result = T) people <- get_all_people(getElement(people, "next"), parse_result = T) # Look at Anakin Skywalker's data people$results[[1]] people$results[[1]][1] # print his name # To use them in R, I need to restructure them to a dataframe like they are in dplyr data("starwars") glimpse(starwars) Thanks for the hel...
2005 May 10
0
Fwd: Extract just some fields from XML]
Duncan, you are a king! Thanks a lot for this cookie. It really helped me. Thanks for the code as well as detailed explanation at the end. >Hi Gregor. > >Here is a function that will collect all of the nodes in the >XML document whose names are in the vector elementNames > >getElements = >function(elementNames) >{ > els = list() > > startElement = function(node, ...) { > > if(xmlName(node) %in% elementNames) > els[[length(els) + 1]] <<- node > > node > } > > list(startElement = startElement, els = function() els) >} &g...
2011 Oct 28
3
[LLVMdev] DIBuilder - what's with the null compile units?
...o that we do not lose this mdnode. > > > AllSubprograms.push_back(Node); > > And follow AllSubprograms in DIBuilder::finalize() > > I traced through the code in DIBuilder::finalize(): *for* (*unsigned* i = 0, e = SPs.getNumElements(); i != e; ++i) { DISubprogram SP(SPs.getElement(i)); *if* (NamedMDNode *NMD = getFnSpecificMDNode(M, SP)) { SmallVector<Value *, 4> Variables; *for* (*unsigned* ii = 0, ee = NMD->getNumOperands(); ii != ee; ++ii) It looks as if getFnSpecificMDNode() is always returning NULL in my case - the body of the if stateme...
2009 Nov 05
0
[LLVMdev] Debug Information for LLVM 2.6 and TOT
...(CallLoc.isNull()) return InsnMD; + + DILocation OrigLocation = ILoc.getOrigLocation(); + MDNode *NewLoc = TheCallMD; + if (!OrigLocation.isNull()) + NewLoc = UpdateInlinedAtInfo(OrigLocation.getNode(), TheCallMD, Context); + + SmallVector<Value *, 4> MDVs; + MDVs.push_back(InsnMD->getElement(0)); // Line + MDVs.push_back(InsnMD->getElement(1)); // Col + MDVs.push_back(InsnMD->getElement(2)); // Scope + MDVs.push_back(NewLoc); + return MDNode::get(Context, MDVs.data(), MDVs.size()); +} + /// CloneAndPruneFunctionInto - This works exactly like CloneFunctionInto, /// exce...
2011 Jul 25
1
[LLVMdev] Rename GEP to...
...ComputeAddress ? The "GetElement" part confuse peeps because it kinda hints at dereferencing (which it doesn't.) Worth the hazzle, given all the other api breakage anyway (?)
2013 Nov 08
0
[LLVMdev] get source-level function signature?
...tReturnTypeName - Subprogram return types are encoded either as /// DIType or as DICompositeType. StringRef getReturnTypeName() const { DICompositeType DCT(getFieldAs<DICompositeType>(7)); if (DCT.Verify()) { DIArray A = DCT.getTypeArray(); DIType T(A.getElement(0)); return T.getName(); } DIType T(getFieldAs<DIType>(7)); return T.getName(); } I also tried to get the types of parameters by changing the index of A.getElement() and noticed the same issue, namely, the types seem to work only with primitive types...
2009 Nov 05
2
[LLVMdev] Debug Information for LLVM 2.6 and TOT
Devang Patel wrote: > Hi John, > > On Wed, Nov 4, 2009 at 12:04 PM, John Criswell <criswell at uiuc.edu> wrote: > >> Dear All, >> >> 1) I recall reading somewhere that a few optimizations in LLVM 2.6 strip >> away debug information when such information interferes with >> optimization. Is this correct, >> > > Yes. > >
2008 Jun 07
3
[LLVMdev] Troubling promotion of return value to Integer ...
...S f(); > ; S s = f(); > %s = call {i32, i32} known_bits({i32, i32} {i32 0xFFFFFFE, i32 0}) > sign_bits({i8, i8} {i8 0, i8 25}) > @f(); > > ; Easy to propagate known bits and sign bits from %s to %s.b and > %s.c. > %s.b = getelement {i32, i32} %s, 0 > %s.c = getelement {i32, i32} %s, 1 > > — Gordon > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
2012 Jul 01
0
[LLVMdev] ConstantExpr refactoring
...o things like "subtract" and that should be a target specific node, as I don't think all .o formats can actually implement that. One other request that isn't in the PR, I'd like whatever replaces GEP to not store "i32 0" vs. "i64 0". Right now "i8* getelementptr ([1 x i8]* @glbl), i32 0, i32 0" is different from "i8* getelement ([1 x i8]* @glbl), i33 0, i33 0", and there's an infinite number of these. We should canonicalize these harder and only produce one Value* here. Nick > > Bug 10368 [1] tells me that ConstantExpr...
2011 Oct 28
0
[LLVMdev] DIBuilder - what's with the null compile units?
...> AllSubprograms.push_back(Node); > > And follow AllSubprograms in DIBuilder::finalize() > > I traced through the code in DIBuilder::finalize(): > for (unsigned i = 0, e = SPs.getNumElements(); i != e; ++i) { > DISubprogram SP(SPs.getElement(i)); > if (NamedMDNode *NMD = getFnSpecificMDNode(M, SP)) { > SmallVector<Value *, 4> Variables; > for (unsigned ii = 0, ee = NMD->getNumOperands(); ii != ee; ++ii) > > It looks as if getFnSpecificMDNode() is always returning NULL in my case - the body...
2010 Oct 19
4
[LLVMdev] Structure memory layout
...rist, I have been implementing common type for struct type on bitcode at compilation time using llvm-gcc and then changing common type to target specific types at code generation time using llc (reconstruct StructLayout). Second, I have been adding two new intrinsic functions as following. 1. "getelement" intrinsic function to load from bitfield of struct type. 2. "setelement" intrinsic function to store to bitfied of struct type. I would like to how do LLVM developers think about above concept. (advices, problems, other solutions etc...) Thanks, Jin-Gu Kang -------------- ne...