Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

imshow documentation has confusing matrix dimensions #10323

Closed
@ImportanceOfBeingErnest

Description

This Stackoverflow question brings the confusing matrix dimensions used in theimshow documentation to our attention.

image

According to the docstring one may use arrays of shapes(n, m) etc. which are then namedMxN.

However, according towikipedia

A matrix with m rows and n columns is called an m × n matrix or m-by-n matrix.

This is also the convention used by numpy, e.g. thearrays.ndarray.html speaks about

A 2-dimensional array of size 2 x 3, composed of 4-byte integer elements:
x = np.array([[1, 2, 3], [4, 5, 6]], np.int32)

The documentation should therefore either speak of

  • shape(n, m), orn x m array (nxm looks strange)
  • shape(N, M) orNxM array
  • shape(m, n) orm x n array
  • shape(M, N) orM x N array

Now, which is better? All capitalized or not,n orm being rows?

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp