python - how to access np array element according to its last element -


actually, doing sequence operation numpy array, therefore, want know how access a[i] quickly?

(because accessa[i-1] in last loop, therefore, in c++, may access a[i] adding 1 address of a[i-1],but don't know whether possible in numpy. thanks.

i don't think possible/a[i] fastest way.

python programming language easier learn (and use) c++, of course comes @ cost, 1 of these costs is, it's slower.

the references you're talking can "dangerous", hence python makes them not (easily) available people, protect them things not understand.

while references faster, can't use them in python (as anyway slower, difference in using references or not doesn't matter much)


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -