Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

mumtiply to matrices python

import numpy as np
# two dimensional arrays
m1 = np.array([[1,4,7],[2,5,8]])
m2 = np.array([[1,4],[2,5],[3,6]])
m3 = np.dot(m1,m2) 
print(m3) 

# three dimensional arrays
m1 = ([1, 6, 5],[3 ,4, 8],[2, 12, 3]) 
m2 = ([3, 4, 6],[5, 6, 7],[6,56, 7]) 
m3 = np.dot(m1,m2) 
print(m3) 
Comment

PREVIOUS NEXT
Code Example
Python :: How to get a mock image in django? 
Python :: matplotlib radial averaging 
Python :: plot line2d on axis 
Python :: pydub reproduce audiosegment 
Python :: python length checker/fill 
Python :: how to send more than one variables to python using xlwings 
Python :: python indexing 
Python :: mu python replicate array n times 
Python :: Create tiff stack in python 
Python :: how to reverse a dictionary in python 
Python :: Python Key Gen 
Python :: how to get a random number between 1 and 10 in python 
Python :: precondition error tensorflow predict 
Python :: python pycharm 
Python :: label default text value python 
Python :: how to convert a sentence into a list of words in python 
Python :: wx.SingleInstanceCheckerindexmodules 
Python :: how to print the text new line instead of n in jupyter notebook 
Python :: abrir notebooks jupyter administrador de archivos 
Python :: intersection of list of sets 
Python :: mp.solutions.findhands not in python 3.8 
Python :: ValueError: Could not load "" Reason: "broken data stream when reading image file" 
Python :: same quotes in a quotes 
Python :: initiate dask 
Python :: cosine similiarity OF A VECTOR WITH OTHER VECTORS IN A MATRIX 
Python :: Get the count of each categorical value (0 and 1) in labels 
Python :: where are spacy models stored 
Python :: url python 
Python :: python move 
Python :: python inspect class 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =