8000 dstack(tup) not equivalent to concatenate(tup, axis=2) · Issue #4598 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content
dstack(tup) not equivalent to concatenate(tup, axis=2) #4598
Closed
@bshanks

Description

@bshanks

The documentation for 'dstack' says

Notes
-----
Equivalent to ``np.concatenate(tup, axis=2)``.

However, in Numpy 1.6.1, i get:

In [1501]: dstack([[1, 2], [3, 4]])
Out[1501]: 
array([[[1, 3],
        [2, 4]]])

In [1502]: concatenate([[1, 2], [3, 4]], axis=2)
Out[1502]: array([1, 2, 3, 4])

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0