[Numpy-discussion] when did column_stack become C-contiguous?
josef.pktd at gmail.com
josef.pktd at gmail.com
Mon Oct 19 00:35:58 EDT 2015
>>> np.column_stack((np.ones(10), np.ones(10))).flags
C_CONTIGUOUS : True
F_CONTIGUOUS : False
>>> np.__version__
'1.9.2rc1'
on my notebook which has numpy 1.6.1 it is f_contiguous
I was just trying to optimize a loop over variable adjustment in
regression, and found out that we lost fortran contiguity.
I always thought column_stack is for fortran usage (linalg)
What's the alternative?
column_stack was one of my favorite commands, and I always assumed we have
in statsmodels the right memory layout to call the linalg libraries.
("assumed" means we don't have timing nor unit tests for it.)
Josef
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20151019/1cc3151c/attachment.html>
More information about the NumPy-Discussion
mailing list