Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

Python NumPy block Function Example by using np.eye function

# welcome to softhunt.net
# import numpy as np
import numpy as np   
A = np.eye(2) * 2
B = np.eye(3) * 3
C = np.block([[A, np.zeros((2, 3))],[np.ones((3, 2)), B ]])
print(C)
Comment

PREVIOUS NEXT
Code Example
Python :: Python NumPy vstack Function Example with 2d array 
Python :: Python NumPy dstack Function Syntax 
Python :: Python NumPy row_stack Function Example with 2d array 
Python :: how to kill python program 
Python :: vocal remover source code python 
Python :: Python NumPy insert Function Example Using insertion at different points 
Python :: pymel layout 
Python :: (ax=self.canv.axes ,style="ro--") 
Python :: pass dictionary to random forest regressor 
Python :: __ne__ 
Python :: NumPy rot90 Example Rotating Once 
Python :: del mutiple indexes at once 
Python :: saving specific column with pd 
Python :: WAP to input 3 no.s and print their sum. 
Python :: http://172.18.0.128:8114/ 
Python :: instance variables python 
Python :: config.ini list not string 
Python :: print python age input 
Python :: torch view vs unsqueeze 
Python :: List change after copy Python 
Python :: ternary operator in list comprehension python 
Python :: python if corto 
Python :: AJAX/FLASK/JS: How to POST existing array into endpoint 
Python :: jupyter lab move tabs 
Python :: ax pie rounding 
Python :: ring Date and Time Clock 
Python :: how to deploy django app on heroku with mongodb 
Python :: All objects and constants needed to use the ldap3 library can be imported from the ldap3 namespace 
Python :: python sort array custom comparator 
Python :: limiting a for each loop python 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =