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
create a matrix 3 * 3 with value ranging from 0 to 8
Home
NumPy
create a matrix 3 * 3 with value ranging from 0 to 8
+1
vote
asked
Jul 8, 2021
in
NumPy
by
rajeshsharma
create a matrix 3 * 3 with value ranging from 0 to 8
numpy-matrix
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jul 8, 2021
by
rajeshsharma
arr = np.arange(0,9).reshape(3,3)
print(arr)
Your comment on this answer:
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Related questions
+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 matrix 2 * 2 with value ranging from 1 to 4
asked
Jul 8, 2021
in
NumPy
by
rajeshsharma
numpy-matrix
0
votes
Q: Consider the matrix A = \begin{pmatrix} 7 & 9 & -3 \\ 3 & -6 & 5 \\ 4 & 0 & 1 \end{pmatrix}⎝⎛7349−60−351⎠⎞. What is the value of minor M_{11}M11?
asked
Jan 23, 2020
in
Data Science
by
AdilsonLima
+1
vote
Q: What is 2d indexing? define one ex : num = np.array([1,2,3],[4,5,6],[7,8,9])
asked
Jul 4, 2021
in
NumPy
by
sharadyadav1986
2d-indexing
0
votes
Q: What is the determinant of the matrix A = \begin{pmatrix} 1 & 3 & 2 \\ 4 & 1 & 3 \\ 2 & 2 & 0 \end{pmatrix}⎝⎛142312230⎠⎞?
asked
Jan 23, 2020
in
Data Science
by
AdilsonLima
+1
vote
Q: Consider the matrix A = \begin{pmatrix} 7 & 9 & -3 \\ 3 & -6 & 5 \\ 4 & 0 & 1 \end{pmatrix}
asked
Jan 20, 2020
in
Mathematics
by
rahuljain1
#minor-value
Mathematics-questions-answers
+1
vote
Q: What kind of matrix is A? A = \begin{pmatrix} 1 & 2 & 3 \\ 0 & 5 & 7 \\ 0 & 0 & 9 \end{pmatrix}
asked
Jan 20, 2020
in
Mathematics
by
sharadyadav1986
#upper-triangle-matrix
Mathematics-questions-answers
0
votes
Q: What is the transpose of the given matrix? \begin{pmatrix} 7 & 9 & -3 \\ 3 & -6 & 5 \\ 4 & 0 & 1 \end{pmatrix}⎝⎛7349−60−351⎠⎞
asked
Jan 23, 2020
in
Data Science
by
AdilsonLima
+1
vote
Q: print value who divide by 2 and remain is 0.
asked
Jul 9, 2021
in
NumPy
by
rajeshsharma
convert-boolean
+1
vote
Q: create 4*4 and print 0 to 12
asked
Jul 8, 2021
in
NumPy
by
rajeshsharma
create-array
...