search for: pt2

Displaying 19 results from an estimated 19 matches for "pt2".

Did you mean: pt
2009 Sep 13
1
[LLVMdev] Is it possible using anonymous namespace on template in header files.
for example /// getPointerUnionTypeNum - If the argument has type PT1* or PT2* return /// false or true respectively. template <typename PT1, typename PT2> static inline int getPointerUnionTypeNum(PT1 *P) { return 0; } template <typename PT1, typename PT2> static inline int getPointerUnionTypeNum(PT2 *P) { return 1; } template <typename PT1, typena...
2012 Jun 13
0
Plotted circle does not go through desired points - very long email with code
...]) ? # decide on 2 random points on the tangent line x1a <- -100 x1b <- 100 y1a <- m1*x1a + b1 y1b <- m1*x1b + b1 ? # Get the point dependency for "H" mati <- mat[i,][mat[i,] ==1] cmati <- names(mati) n1 <- length(cmati) ? # Get the first dependency: j=1 pt2 <- xy[cmati[j],] ? # Get coordinates of the middle of segment "H"-"B" xm <- min(xy$x[i], pt2$x) + abs((min(xy$x[i], pt2$x)-max(xy$x[i], pt2$x))/2) ym <- min(xy$y[i], pt2$y) + abs((min(xy$y[i], pt2$y)-max(xy$y[i], pt2$y))/2) ? # find the perpendicular line equation...
2002 Jan 22
4
splitting a data.frame
I have the following (simple!?) problem which I am unable to find a relatively trivial solution to. If I have a dataframe, A 1 A 7 B 4 B 5 C 3 D 3 D 2 E 5 F 5 F 6 I would like to create a new data.frame in the form ID pt1 pt2 A 1 7 B 4 5 C 3 NA D 3 2 E 5 NA F 5 6 so that for each identifier, in this example, A...F I have a column for each observation for each identifier... (with a maximum of 2 obs per identifier, if only 1 obs exist then the second obs pt2 is set to NA) T...
2007 Nov 15
1
Nested SEXP functions
...s, we'll call this: SEXP XtimesY(SEXP X,SEXP Y); // X*Y SEXP XminusY(SEXP X,SEXP Y); // X-Y SEXP tX(SEXP X); // X^T SEXP mycholinv(SEXP V); // Use cholesky decomposition for inverse Now, what I'm noticing is that if I call each routine individually such as: pt1=XtimesY(X,beta); // X*beta pt2=Xminus(Y,pt1); // Y-X*beta pt3=tX(pt2); // (Y-X*beta)^T pt4=mycholinv(V); //V^{-1} pt5=XtimesY(pt2,pt4); // (Y-X*beta)^T V^{-1} result=XtimesY(pt5,pt2); //(y-X*beta)^T V^{-1} (y-X*beta) Then the result is correct. But if instead I want to save some lines of code, and I use: result=XtimesY(Xtimes...
2015 Apr 21
2
[LLVMdev] Using an alias analysis pass
...> virtual AliasResult alias(const Location &LocA, const Location &LocB) override > { > const Value *V1 = LocA.Ptr; > const Value *V2 = LocB.Ptr; > > const PointerType *PT1 = dyn_cast<const PointerType>(V1->getType()); > const PointerType *PT2 = dyn_cast<const PointerType>(V2->getType()); > > // The logic here is very simple: pointers to two different address spaces > // cannot alias. > if (PT1 != nullptr && PT2 != nullptr) > { > if (PT1->getAddressSpace() != PT2->getAddressSpa...
2011 Dec 03
1
[LLVMdev] New strict-aliasing warning?
...const [with PointerTy = void*, unsigned int IntBits = 1u, IntType = bool, PtrTraits = llvm::PointerUnionUIntTraits<llvm::VNInfo*, llvm::SmallVector<llvm::VNInfo*, 4u>*>]’: /src/llvm-trunk-dev/include/llvm/ADT/PointerUnion.h:153: instantiated from ‘const PT1* llvm::PointerUnion<PT1, PT2>::getAddrOf() const [with T = llvm::VNInfo*, PT1 = llvm::VNInfo*, PT2 = llvm::SmallVector<llvm::VNInfo*, 4u>*]’ /src/llvm-trunk-dev/include/llvm/ADT/TinyPtrVector.h:63: instantiated from ‘const EltTy* llvm::TinyPtrVector<EltTy>::begin() const [with EltTy = llvm::VNInfo*]’ /src/llvm...
2013 Mar 13
0
[LLVMdev] PROPOSAL: struct-access-path aware TBAA
...they *must* point to the same memory. For this specific case, I actually tried both g++ and gcc last night, there is no difference. I'm wondering why the "dynamic type" would help to make TBAA 100% safe and also helpful. Suppose point-to set for the two mem-access are pt1 and pt2, dyn-type1 = union-of-all-type-of-the-element-in-pt1, dyn-type2 = union-of-all-type-of-all-element-in-ptr2. If dyn-type1 and dyn-type2 are disjointed, then pt1 and pt2 must be disjoint, which means the point-to analysis already prove these two memory access are not alias. We don't need TBAA...
2007 Jun 27
1
Another loop avoidance question.
...## Basic paramters k1=3 k2=2 n=10 m1 = matrix (1:(n*k1), nrow=n, ncol=k1) m2 = matrix (1:(n*k2), nrow=n, ncol=k2) ## Approach 1: loop on k1 output1 = matrix(0,nrow=n,ncol=k2) pt1 = proc.time(for (i in 1:k1) output1 = output1 + m1[,i]*m2) ## Approach 2: loop on k2 output2 = matrix(0,nrow=n,ncol=k2) pt2 = proc.time(for (i in 1:k2) output2[,i] = rowSums( m1*m2[,i] )) ## Same result sum(output1-output2) -- David Pleydell Laboratoire de Biologie Environnementale USC INRA-EA 3184 Universit? de Franche-Comt? Place Leclerc F 25030 Besan?on France (0033) 0381665763 dpleydel at univ-fcomte.fr
2013 Mar 13
3
[LLVMdev] PROPOSAL: struct-access-path aware TBAA
.... If I fabricate a caller by stealing some code from your previous example, see bellow. I think these code & your previous example (about placement new) share the same std. I'm wondering if gcc can give a correct result. foo_caller() { T1 t1; T1 *pt1; T2 *pt2 = new (pt1) T2; foo(pt1, pt2); }
2013 Mar 13
0
[LLVMdev] PROPOSAL: struct-access-path aware TBAA
On Tue, Mar 12, 2013 at 11:59 PM, Shuxin Yang <shuxin.llvm at gmail.com> wrote: > I personally believe that in the context of type-based AA, correctness is a > subjective term:-). > > If the user smell something fishy, it is up to user to disable such opt, > there is no other > way around. TBAA is just to find the a sweet spot between precision & > safeness. Sorry,
2013 Mar 13
2
[LLVMdev] PROPOSAL: struct-access-path aware TBAA
On Wed, Mar 13, 2013 at 11:37 AM, Arnold Schwaighofer <aschwaighofer at apple.com> wrote: > > On Mar 13, 2013, at 1:07 PM, Shuxin Yang <shuxin.llvm at gmail.com> wrote: > >>> >>> The program I gave was well typed :) >> >> Hi, Daniel: >> Thank you for sharing your insight. I didn't realized it is well-typed -- I'm basically a big
2011 Oct 13
3
nls: singular convergeance
...n-Cb)*exch) /(0+const1*A+exch)) if(is.na(Cmin.new)){ Cmin.new <- exp(-(trans*(0+const1*A+exch))/V)*(((Ci*0+const1*Cd*A+Cb*exch) *exp((trans*(0+const1*A+exch))/V))/ (0+const1*A+exch)+((Cmin-Ci)*0+(const1*Cmin-const1*Cd)*A+(Cmin-Cb)*exch) /(0+const1*A+exch)) } t.new <- t - trans pt2 <- exp(-(t.new*(R+const1*A+exch))/V)*(((Ci*R+const1*Cd*A+Cb*exch) *exp((t.new*(R+const1*A+exch))/V))/ (R+const1*A+exch)+((Cmin.new-Ci)*R+(const1*Cmin.new-const1*Cd)*A+(Cmin.n ew-Cb)*exch)/(R+const1*A+exch)) Cmin.new2 <- exp(-((trans2-trans)*(R+const1*A+exch))/V)*(((Ci*R+const1*C...
2013 Mar 13
2
[LLVMdev] PROPOSAL: struct-access-path aware TBAA
I personally believe that in the context of type-based AA, correctness is a subjective term:-). If the user smell something fishy, it is up to user to disable such opt, there is no other way around. TBAA is just to find the a sweet spot between precision & safeness. Unfortunately, in the context of TBAA, precision & safeness usually come at each other's expense... It would be
2007 Apr 10
0
TXTSETUP.OEM and CD-ROM?
...3xznYLehtTRFDh1vjZqwb9EeTbDh6bfqiGnUadr63 D36Ntvm2FR9On0iJRTeHHXw4W/vjyc08vr0qIjVjfeDDHNsKMH2X7UDCmGKY1ifeG6XuYGty +izFd9YNS/U+rpehV1DaR0l1v20+2p7z9JEPQdHFfezpYycSA8Ya1u0ueG9GUfsuxyYBP4HS ZyaHJsIia0+tfX5r7IRleE42+XD0rcd79ybgUB8xiX1Gp/T5rnPdDtbHJm/Pq/hOWivfuP0h Z1+C57QvITNPnc29+vgcH66PCxG8LTL6VHPbgt+pT2/0bZxbjOhj0g6Ky2zdgVxPH/2imdHH lczd+ois3bW3bTbHOX0G1+IpIvs/RJ/6nbRfn2B0Na6rT/FpB4XT5H8ox0Yothhl4YWKjfVp o9mKmdenk7KYeJ8+bqr4VVYN2aWP4GH6rGk1nSNnIn06o9dxZfBlYq8+/iAfztH6RCu8XRT9 hrK74w/Ib0y0W/0acUWmNBzpc3tCmw4qnVJMnvfpE9aH34vd+rRft+yLM6GPHr0N7G57EWlP 6HOsQIdP3q4gp0/TYx3koo31Gc8jn1r961AfmU6xh3qXPnF19P...
2013 Oct 28
5
FreeBSD PVH guest support
...t null: <null device, zero device> Falling back to <Software, Yarrow> random adaptor random: <Software, Yarrow> initialized nfslock: pseudo-device kbd0 at kbdmux0 module_register_init: MOD_LOAD (vesa, 0xffffffff80d21c60, 0) error 19 io: <I/O> VMBUS: load mem: <memory> hpt27xx: RocketRAID 27xx controller driver v1.1 hptrr: RocketRAID 17xx/2xxx SATA controller driver v1.2 hptnr: R750/DC7280 controller driver v1.0 ACPI BIOS Error (bug): A valid RSDP was not found (20130823/tbxfroot-223) ACPI: Table initialisation failed: AE_NOT_FOUND ACPI: Try disabling either ACPI or a...
2012 Aug 28
3
date in plot, can't add regression line
Hello all, I have been using R for about 3 weeks and I am frustrated by a problem. I have read R in a nutshell, scoured the internet for help but I either am not understanding examples or am missing something completely basic. Here is the problem: I want to plot data that contains dates on the x axis. Then I want to fit a line to the data. I have been unable to do it. This is an example of
2006 Aug 08
9
Handling userland char ** pointers
...* */ printf ("%d byte userland pointer = %a\n", sizeof (cp), cp); } pid$target::sub2:entry { str = copyinstr(cp); /* str is the actual string */ trace (str); } When I enter the command : "dtrace -s pt.d -c ./pt", I get: dtrace: script ''pt2.d'' matched 5 probes Size of pointer = 4 First 32 bit pointer = 108a8 abcdefghijk Second 32 bit pointer = ffbffdec abcdefghijk CPU ID FUNCTION:NAME 0 38670 sub1:entry abcdefghijk 0 38671 sub2:entry Userland pointer s...
2006 Mar 08
23
rubynuby == I''m a''scared to set it all up...
I''ve been mostly lurking here with an occasional nuby question for a few weeks now. It seems like Ruby and Rails and the many libraries and tools growing up around it are a remarkable toolset. Unfortunately I''m finding the whole enchilada a bit daunting. It seems that if one is to truly tap into the power of this thing and do a significant amount of developing, one needs
2014 Mar 10
122
[Bug 75985] New: HDMI audio device only visible after rescan
https://bugs.freedesktop.org/show_bug.cgi?id=75985 Priority: medium Bug ID: 75985 Assignee: nouveau at lists.freedesktop.org Summary: HDMI audio device only visible after rescan QA Contact: xorg-team at lists.x.org Severity: normal Classification: Unclassified OS: Linux (All) Reporter: jean-louis at