Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python NumPy asmatrix Function Example

# welcome to softhunt.net
# Python Programming illustrating
# numpy.asmatrix

import numpy as np

# array-like input
b = np.matrix([[1, 2, 3], [4, 5]])
print("Via array-like input : 
", b, "
")

c = np.asmatrix(b)
b[0, 1] = 15
print("c matrix : 
", c)
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Python #NumPy #asmatrix #Function #Example
ADD COMMENT
Topic
Name
6+3 =