Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A big for in for Loop!
#3
(Sep-03-2020, 06:10 AM)buran Wrote: what object is used to represent a point - tuple/named tuple, custom class?
this line if x(i)=x(j) and y(i)=y(j) and z(i)=z(j) and p(i)=p(j) suggest you have separate collections for each attribute, but using () to access elements would not work. unless this is pseudo-code.

Hello

i have x,y,z and P in separated columns,,,i have one list for x, one for y , ...
i am looking for a new programming logic or simplify my for in for loop, because for 10000 points it should compare 10000 x 10000 states and it rakes a lot of time with no answer at the end!
Reply


Messages In This Thread
A big for in for Loop! - by faryad13 - Sep-03-2020, 05:58 AM
RE: A big for in for Loop! - by buran - Sep-03-2020, 06:10 AM
RE: A big for in for Loop! - by faryad13 - Sep-03-2020, 06:13 AM
RE: A big for in for Loop! - by buran - Sep-03-2020, 06:20 AM
RE: A big for in for Loop! - by bowlofred - Sep-03-2020, 06:30 AM
RE: A big for in for Loop! - by faryad13 - Sep-03-2020, 08:09 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020