27. Two-Dimensional Arrays
[Pages:90]27. Two-Dimensional Arrays
Topics Motivation The numpy Module Subscripting functions and 2d Arrays
Visualizing
12 17 49 61 38 18 82 77 83 53 12 10
Can have a 2d array of strings or objects.
But we will just deal with 2d arrays of numbers.
A 2D array has rows and columns. This one has 3 rows and 4 columns. We say it is a "3-by-4" array (a.k.a matrix)
Rows and Columns
12 17 49 61 38 18 82 77 83 53 12 10
This is row 1.
Rows and Columns
12 17 49 61 38 18 82 77 83 53 12 10
This is column 2.
Entries
12 17 49 61 38 18 82 77 83 53 12 10
This is the (1,2) entry.
Where Do They Come From?
Entry (i,j) is the distance from city i to city j
Where Do they Come From?
Entry (i,j) is 1 if node i is connected to node j and is 0 otherwise
Captures the connectivity in a network
Nodes 4 and 6 Are connected
Where Do They Come From
An m-by-n array of pixels.
Each pixel encodes 3 numbers: a red value, a green value, a blue value
So all the information can be encoded in three 2D arrays
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- two dimensional arrays western michigan university
- matplotlib 2d and 3d plotting in python peter beerli
- solving a 2d maze university of alaska system
- python lab 3 2d arrays and plotting university of york
- python for data science cheat sheet lists also see numpy arrays
- week 4 university of california berkeley
- python for probability stanford university
- programming principles in python csci 503 490
- chapter 7 multidimensional arrays southeastern louisiana university
- computer orange template
Related searches
- initialize two dimensional array java
- two dimensional array java
- java two dimensional array initialization
- two dimensional array in powershell
- two dimensional arraylist java
- c two dimensional arraylist
- javascript two dimensional array example
- two dimensional array example
- two dimensional arrays in javascript
- javascript two dimensional array
- javascript sort two dimensional array
- javascript two dimensional array push