Displaying 3 results from an estimated 3 matches for "numpoints".
Did you mean:
num_points
2008 Aug 09
1
Converting nested "for" loops to an "apply" function(s)
...code is:
distances=c(51,65,175,196,197,125,10,56) #distances of 8 houses from the town centre in m
bearings=c(10,8,210,25,74,128,235,335) #bearings of the houses in degrees
xpos=distances*sin(bearings*pi/180) #in sin and cos the argument MUST be in radians
ypos=distances*cos(bearings*pi/180)
numpoints=length(distances)
nnd=rep(sqrt(2*400*400),times=numpoints) #start with the maximum possible distance
for (i in 1:numpoints) {
for (j in 1:numpoints) {
if (i!=j) {
diffx=abs(xpos[i]-xpos[j])
diffy=abs(ypos[i]-ypos[j])
nd=sqrt((diffx^2)+(diffy^2))
if (nd
2020 Jul 26
2
[LAA] RtCheck on pointers of different address spaces.
Hello,
I Have a question related to the RT check on pointers during Loop Access Analysis pass.
There is a testcase with loop code that consist of 4 different memory operations referring two global objects of different address spaces.
One from global constant (address space 4, addr_size = 64) and the other from local, LDS (address space 3, addr_size= 32).
(Details of various address spaces
2020 Jul 26
2
[LAA] RtCheck on pointers of different address spaces.
Hi Stefanos,
Attached the testcase. I tried to reduce it further, but the problem goes away when I remove the instructions further.
There is a nested loop and the fault occurs while processing the inner loop (for.body)
To reproduce the crash:
opt -O3 testcase.ll -o out.ll
> `groupChecks()` will only try to group pointers that are on the same alias set.
If that’s true, the RT check