Skip to content

Implementation of a Thorus (donut) in Numpy. What this means is that arrays are wrapped around.

License

Notifications You must be signed in to change notification settings

szokejokepu/np_thorus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

np_thorus

Implementation of a Thorus (donut) in Numpy.

The idea is that the arrays wrap around, for an array that is a=[1,2,3] which normally has values between a[0:3] == [1,2,3] you can take the values:

  • that wrap around in the negative values a[-2:2] = [2,3,1,2]
  • and can wrap around forward a[1:4] = [2,3,1]

It also works for 2D arrays, I haven't tried with more dimensions, because I didn't need that, but it should.

About

Implementation of a Thorus (donut) in Numpy. What this means is that arrays are wrapped around.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages