Skip to content
murmot

Results for “python numpy array example program code early 2 site:mail.python.org update”

  • mail.python.org

    [Numpy-discussion] fortran array storage question

    if in that example I also change the strides: int s = tmp->strides[1]; tmp->strides[0] = s; tmp->strides[1] = s * dim0[0]; Then I get in python the fortran-style array in right order. However, I don't know if this is the usual way or if it has a performance overhead ... Thanks, LG Georg.

  • mail.python.org

    [Numpy-discussion] ValueError: objects are not aligned

    Previous message (by thread): [Numpy-discussion] ValueError: objects are not aligned.examples are in docstring for np.cov >. as for "stacking rf1 rf1 into a single array first" how would I do this? >>> np.column_stack([np.arange(3)[:,None], np.arange(3)[:,None]]) array([[0, 0]

  • mail.python.org

    [AstroPy] Data Analysis and Programming in Python

    My earlier suggestion regarding writing separate functions to return numpy arrays comes from reviewing Megan's example and from your interest in working with multiple image formats. Each function could take as input the name of the image and return a list of numpy arrays...