I'm pleased to finally announce mlabwrap-1.0:
Project website
---
http://mlabwrap.sourceforge.net/
Description
---
Mlabwrap-1.0 is a high-level python to matlab(tm) bridge that makes calling
matlab functions from python almost as convenient as using a normal python
library.
Is there any way to detect whether one array is a view into another
array? I'd like something like:
arr = N.arange(5)
subarr = arr[1:3]
sharesdata(arr, subarr)
True
-- Matt
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
On Wednesday 11 April 2007 18:12:16 Matthew Koichi Grimes wrote:
Is there any way to detect whether one array is a view into another
array? I'd like something like:
arr = N.arange(5)
subarr = arr[1:3]
sharesdata(arr, subarr)
Mmh, would arr.flags['OWNDATA'] would do the trick ?
p.
On Wed, Apr 11, 2007 at 06:12:16PM -0400, Matthew Koichi Grimes wrote:
Is there any way to detect whether one array is a view into another
array? I'd like something like:
arr = N.arange(5)
subarr = arr[1:3]
sharesdata(arr, subarr)
True
Your best bet is probably
It's better than nothing. I basically want some sanity-check assert code
that can assert that some arrays are in fact sub-arrays of another
array. Your OWNDATA suggestion meets me halfway by allowing me to check
that these sub-arrays are at least sub-arrays of *someone*.
Thanks,
-- Matt
On 4/12/07, Matthew Koichi Grimes [EMAIL PROTECTED] wrote:
It's better than nothing. I basically want some sanity-check assert code
that can assert that some arrays are in fact sub-arrays of another
array. Your OWNDATA suggestion meets me halfway by allowing me to check
that these sub-arrays
On 11/04/07, Bill Baxter [EMAIL PROTECTED] wrote:
Must be pretty recent. I'm using 1.0.2.dev3520 (enthought egg) and
the function's not there.
It is.
I've never been quite happy with it, though; I realize it's not very
feasible to write one that efficiently checks all possible overlaps,
but