Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
matrix of two arrays(array1,array2) and combine into third array ( result )
Home
NumPy
matrix of two arrays(array1,array2) and combine into third array ( result )
+1
vote
asked
Jul 9, 2021
in
NumPy
by
rajeshsharma
matrix of two arrays(array1,array2) and combine into third array ( result )
combine-array
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jul 9, 2021
by
rajeshsharma
array1=np.array([[1,2,3],[4,5,6],[7,8,9]],ndmin=3)
array2=np.array([[9,8,7],[6,5,4],[3,2,1]],ndmin=3)
result=np.multiply(array1,array2)
print(ā\n result \nā,result)
Related questions
+1
vote
Q: using ravel() we can combine arrays into single
asked
Jul 9, 2021
in
NumPy
by
rajeshsharma
numpy-print
0
votes
Q: In pandas I can combine two time series with different frequencies into a single time series
asked
Sep 19, 2022
in
Time Series Analysis
by
Robin
time-series
time-analysis
+1
vote
Q: Each point is a cluster in itself. We then combine the two nearest clusters into one. What type of clustering does this represent ?
asked
Feb 3, 2020
in
Clustering - The Data Ensemble
by
MBarbieri
datahandling-questions-answers
clustering-the-data-ensemble
clustering
clustering-algorithm
clustering-in-data-mining
clustering-machine-learning
types-of-clustering
hierarchical-clustering
clustering-supervised
clustering-unsupervised
clustering-mcq
+1
vote
Q: Print reshape devide into array like 2 array with 5 values
asked
Jul 9, 2021
in
NumPy
by
rajeshsharma
print-reshape
+1
vote
Q: create matrix 2 * 2 with value ranging from 1 to 4
asked
Jul 8, 2021
in
NumPy
by
rajeshsharma
numpy-matrix
+1
vote
Q: create matrix 2 * 2 with value ranging from 1 to 3
asked
Jul 8, 2021
in
NumPy
by
rajeshsharma
numpy-matrix
+1
vote
Q: create a matrix 3 * 3 with value ranging from 0 to 8
asked
Jul 8, 2021
in
NumPy
by
rajeshsharma
numpy-matrix
+2
votes
Q: How to use of diag() square matrix ?
asked
Jul 4, 2021
in
NumPy
by
sharadyadav1986
diag-square-matrix
0
votes
Q: Which of the following will not combine strings $s1 and $s2 into a single string?
asked
Mar 19, 2020
in
PHP
by
DavidAnderson
#php
+1
vote
Q: In multidimensional array mySubject, which of the following will allow assigning the value 100 in position 5 of the third mySubject array?
asked
Feb 6, 2020
in
JavaScript
by
rajeshsharma
#multidimensional
...