Movatterモバイル変換


[0]ホーム

URL:


SciPy

numpy.matrix.dot

matrix.dot(b,out=None)

Dot product of two arrays.

Refer tonumpy.dot for full documentation.

See also

numpy.dot
equivalent function

Examples

>>>a=np.eye(2)>>>b=np.ones((2,2))*2>>>a.dot(b)array([[ 2.,  2.],       [ 2.,  2.]])

This array method can be conveniently chained:

>>>a.dot(b).dot(b)array([[ 8.,  8.],       [ 8.,  8.]])

Previous topic

numpy.matrix.diagonal

Next topic

numpy.matrix.dump

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

[8]ページ先頭

©2009-2025 Movatter.jp