[Numpy-discussion] lstsq functionality
Wed Jul 21 18:36:44 CDT 2010
On Wed, Jul 21, 2010 at 7:25 PM, David Warde-Farley <firstname.lastname@example.org> wrote:
> On 2010-07-20, at 10:16 PM, Skipper Seabold wrote:
>> Out of curiosity, is there an explicit way to check if these share memory?
> You could do the exact calculations (I think) but this isn't actually implemented in NumPy, though np.may_share_memory is a conservative test for it that will err on the side of false positives.
Ah, that's good to know.
In : np.may_share_memory(b,c)
In : a = b.view()
In : np.may_share_memory(a,b)
In : np.may_share_memory(a,c)
More information about the NumPy-Discussion