4 0 0 2 x n 2 v1 17 2 topic numpy 2 n x 2 NumPy v1 2 numpy ones 2 numpy identity 2 numpy eye 2 main diagonal 2 identity array 2 creation routines 2 array with 2 Array creation 2 17 Manual 2 1 0 2 0 1 1 with ones 1 with its 1 using Sphinx 1 updated on 1 type optional 1 type of 1 to one 1 to float 1 The SciPy 1 the output 1 the main 1 The identity 1 the identity 1 square array 1 Sphinx 1 1 source Return 1 set to 1 Search NumPy 1 search Copyright 1 search ____________________ 1 ____________________ search 1 SciPy Scipy 1 Scipy org 1 SciPy community 1 rows and 1 routines numpy 1 routines index 1 Routines Array 1 Return the 1 Returns out 1 Reference Routines 1 Quick search 1 Previous topic 1 previous numpy 1 Parameters n 1 output dtype 1 output Defaults 1 out ndarray 1 other elements 1 org Docs 1 optional Data 1 on the 1 on Jul 1 ones Quick 1 ones on 1 ones numpy 1 one and 1 of the 1 of rows 1 NumPy Reference 1 Number of 1 np identity 1 n output 1 None source 1 n int 1 Next topic 1 next previous 1 n dtype 1 ndarray n 1 n array 1 Manual NumPy 1 Manual Array 1 Last updated 1 Jul 26 1 its main 1 is a 1 int Number 1 in n 1 Index Search 1 index next 1 identity numpy 1 identity n 1 identity 3 1 float Returns 1 eye SciPy 1 eye Next 1 Examples np 1 elements 0 1 dtype None 1 dtype data 1 Docs NumPy 1 diagonal set 1 diagonal Parameters 1 Defaults to 1 Data type 1 data type 1 Created using 1 Copyright 2008 1 community Last 1 columns in 1 a square 1 array The 1 array is 1 array 1 1 and columns 1 and all 1 all other 1 8 5 1 5 1 3 array 1 26 2019 1 2019 The 1 2019 Created 1 2008 2019 1 1 Previous 1 1 8 1 0 Examples