You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

8 lines
169 B

#!/usr/bin/env python
# _*_ coding:utf-8 _*_
import numpy
a=[[1,2,3],[3,2,1]]
b=[[1,1],[1,1],[1,1]]
a=numpy.asarray(a)
b=numpy.asarray(b)
print(numpy.matmul(a,b))