comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Efficient sub array extraction
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Efficient sub array extraction [message #82425] Tue, 11 December 2012 14:26
markjamie is currently offline  markjamie
Messages: 30
Registered: November 2012
Member
I'm using large 2D arrays e.g 30000 x 30000 and need to remove a 2D sub array for later processing e.g. Rows 30-700 and columns 100-10000.

Is there a more efficient way to do this than using subscript ranges?

For example?

Subarray = largearray[100:10000, 30:700]


The exact code I'm using is as follows:

A = [100,10000]
B = [30,700]

Subarray = largearray[A[0]:A[1],B[0]:B[1]]

Mark
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: italic greek?
Next Topic: increment an array subset based on another subset

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:31:55 PDT 2025

Total time taken to generate the page: 0.00468 seconds