Movatterモバイル変換


[0]ホーム

URL:


SciPy

numpy.ndarray.dot

ndarray.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.ndarray.diagonal

Next topic

numpy.ndarray.dump

Quick search

  • © Copyright 2008-2018, The SciPy community.
  • Last updated on Jul 24, 2018.
  • Created usingSphinx 1.6.6.

[8]ページ先頭

©2009-2025 Movatter.jp