Movatterモバイル変換


[0]ホーム

URL:


SciPy

numpy.matrix.A1

matrix.A1

Returnself as a flattenedndarray.

Equivalent tonp.asarray(x).ravel()

Parameters:

None

Returns:

ret : ndarray

self, 1-D, as anndarray

Examples

>>>x=np.matrix(np.arange(12).reshape((3,4)));xmatrix([[ 0,  1,  2,  3],        [ 4,  5,  6,  7],        [ 8,  9, 10, 11]])>>>x.getA1()array([ 0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 10, 11])

Previous topic

numpy.matrix

Next topic

numpy.matrix.base

  • © Copyright 2008-2009, The Scipy community.
  • Last updated on Jun 10, 2017.
  • Created usingSphinx 1.5.3.

[8]ページ先頭

©2009-2025 Movatter.jp