00:00Hello everyone. In this video, we will talk about matrix operation part 1.
00:06So, we will talk about arrays, create, generate methods.
00:09All right, we will talk about how to access the elements.
00:12Indexing and slicing.
00:18First concept, we will talk about indexing.
00:21Indexing means accessing single element from an array.
00:33So, in an array, we will talk about indexing.
00:39Now, we will talk about 1-dimensional array, 2-dimensional array and 3-dimensional array.
00:44We will talk about indexing.
00:49So, first normal, 1-dimensional array elements extract.
00:53We will talk about indexing in the same list.
00:58Now, first array 1, we will print.
01:01So, in this case, we will extract 3.
01:05So, 3 indexing is 0, 1, 2, 3, 4, 5.
01:10This is positive indexing. Negative indexing will support.
01:13So, 1-dimensional array of indexing is the same.
01:18So, 1-dimensional array of indexing is the same.
01:20Array name of index.
01:21So, array 1 of 3 equals 10 extracts.
01:26extract are you? Correct? Next, you can do 15 extract. So, 15 index is 5.
01:40If you have 15, you can use negative index. So, negative index is 5.
01:52If you have a list in the list, it is the same concept.
01:56Array 1, 1-dimensional array.
01:58If you have 2-dimensional array, we will pass rows and columns.
02:02So, let's say, this is 0, 1, 2, 0, 1, 2.
02:10If you have 92 extract, array 2 of,
02:16row index is 1, column index is 1.
02:22So, 1, 1 is 92 extract.
02:25If you have 90, array of row index is 2, column index is 2.
02:32So, in this way, we will access.
02:352-dimensional array, we will pass the same shape.
02:38So, row and column.
02:41If we use row index and column index, we will extract specific elements.
02:46Now, we will support negative index.
02:50So, negative 3, come on, negative 1.
02:53Now, negative 3 is the actual positive indexing.
02:57If you have 0, 1, 2.
02:59If you have negative indexing, minus 1, minus 2, minus 3.
03:02So, 0, 1, 2, minus 1, minus 2, minus 3.
03:07If you have minus 3.
03:08If you have minus 3, row index is minus 3.
03:11In the particular row.
03:12Correct?
03:13Next.
03:14If you have column index, minus 1.
03:16So, in the part.
03:18So, in the part.
03:19That means, 90 extract.
03:21This is negative indexing.
03:24In case of 2-dimensional array.
03:26Next.
03:27If you have 3-dimensional array access to layers, rows and columns.
03:33So, first.
03:36Now, 5.
03:37Now, extract.
03:38This is layer.
03:390, 1.
03:41Row indexing.
03:420, 1.
03:440, 1.
03:45Column.
03:460, 1, 2.
03:49Now, 5.
03:50Extract.
03:51This is the layer.
03:530th layer.
03:54Then.
03:55What row.
03:571.
03:58Then.
03:59Column indexing.
04:00So, 0, 1, 1.
04:025 extract.
04:03This is the layer.
04:04Now, 8.
04:05Extract.
04:068.
04:07Extract.
04:08First.
04:09Layers.
04:100, 3.
04:11Then.
04:122.
04:13Column.
04:141.
04:15Index.
04:16So, in the part.
04:171 element.
04:18Access.
04:19Indexing.
04:20Concept.
04:21Next.
04:22Multiple elements.
04:23Access.
04:24Next.
04:25We have.
04:26Slizing.
04:27Slizing.
04:28Slizing.
04:29Slizing.
04:30Multiple elements.
04:31Access.
04:32Access.
04:33First.
04:341.
04:35Dimension.
04:36Array.
04:37Slizing.
04:38Same.
04:39Concept.
04:40Email.
04:412.
04:421,
04:432, 3.
04:442, 3.
04:45Now.
04:461, 2, 3.
04:47Extract.
04:481, 2, 3.
04:49Extract.
04:50Pass.
04:51Start.
04:52Stop.
04:53And.
04:54Step.
04:55Start Index.
04:56Include.
04:57Stop Index.
04:58Exclude.
04:59Step Index.
05:00Default.
05:011.
05:02Pass.
05:03And.
05:04Negative.
05:05step indexing we need to get the first start index 0,1,2,3,4,5
05:12what do we need to generate now? starting index 0 and 3 we need to get access to 3
05:19so we need to extract 1 and 2
05:22so we need to get index press 1
05:28so 0,3 we need to get access to 1,2,3
05:33so if we need to get all elements to get access to just colon to get the start index and stop index
05:39we need to get all of them to access all of them
05:42whole array
05:44array 1
05:48array 1 start the first index
05:51length of array
05:53length of array we need to return 6
05:55so 6 minus 1,5
05:57represent 1,5
05:59so 1 length we need to access the last before element
06:04starting index is 1
06:05so we need to add 2
06:072,3,10,20
06:10we need to exclude the stop index
06:14so we need to stop 2,3,10,20
06:18we need to get access to this
06:20this is the negative step index
06:22that is all elements
06:24we need to get access to this
06:25this is the negative 1
06:26we need to get reverse
06:27we need to access to this
06:2815,20,10,3,2,1
06:35this is the starting index
06:36starting index is 3
06:37so 10,20,15
06:39we need to access to this
06:40this is the negative step index
06:47we need to get negative step index
06:49step index
06:51we need to reverse
06:52now let's check negatives index
06:54we need to check negative index
06:55now let's call 10 and
06:57minus 3
06:59minus 1
07:01to minus 2
07:02to minus 2
07:03to minus 1
07:04so minus 3 to minus 1
07:05so you can get 10 and 20
07:06to access
07:07and 20 mahtu access aguma. Last,
07:09it is one thing, in case of negative indexing
07:12in case of start, it is stop.
07:15Stop one thing, we neglect
07:17so minus 1 position la rikura 15 na neglect
07:19pani rao. So minus 3, minus 2
07:22in the elements mahtu in the access pado. That is
07:2410 and 20. Normal
07:27list la slicing ebdi khanu maha same
07:30concept tha hainge.
07:31Next number 2 dimensional array
07:37ebdi elements access pado thun pakelaan.
07:40So 2 dimensional array
07:41basic shape ebdi irukkoum
07:43rows and columns
07:45are arukkoumaa. So
07:47ippon the role
07:48start, colon, stop, colon, step
07:52row kukku tani indexing
07:53padeanu, alitthu column kukku tani indexing
07:56padeanu. Start, colon, stop, colon, step
08:00this is one thing, two dimensional array
08:03so two dimensional array
08:05shape and row kukma column
08:06row kukku tani indexing
08:09then column kukku tani indexing
08:10nama padeanu, separate
08:11this is one thing, two dimensional array
08:14this is three cross three matrix
08:16arukkoum
08:16row kukku tani indexing
08:18this is one thing, two dimensional array
08:19this is one thing, two dimensional array
08:21elements
08:22elements
08:2323
08:2489
08:26and 90
08:27mahtu access pono
08:28apkou
08:29row
08:30row
08:31row index pono
08:320, 1, 2
08:33it is 0, 1, 2
08:350, 0
08:360, 0
08:370, 0
08:380, 0
08:390, 0
08:400, 0
08:410, 0
08:420, 0
08:430, 0
08:440, 0
08:450, 0
08:460, 0, 0, 0
08:47Because one row has access to one row.
08:49Then, in the column,
08:510, 1, 2.
08:53All columns and elements have access to all columns.
08:56So, that's why,
08:58Poland.
09:00Now, we have access to 23,
09:0289, 90.
09:05Now,
09:0714 and 90
09:11extract.
09:13What role is 14 and 90?
09:15Second row is 2.
09:17So, 2,
09:191 and second column
09:21will extract elements
09:2314 and 90.
09:25So, starting index 0
09:271 colon
09:29Start index of column
09:311 colon
09:33Add the end index
09:35So, second row
09:37First column element
09:3914 extract
09:41Then,
09:43End index
09:45End index
09:47Second column
09:49So, second row
09:50Second column value
09:5190.
09:52So, 14 and 90
09:53Extract.
09:54This row
09:55This row
09:56This row
09:57Column
09:58Check
10:00Next,
10:01This row
10:02Step index
10:03Provide
10:04Let's say
10:05First column
10:08And last column
10:09We can access
10:11First column
10:12And last column
10:13We can access
10:140, 1, 2
10:150, 1, 2
10:160, 1, 2
10:17Step size
10:18So, all rows
10:19Access
10:20So, row
10:21Int index
10:22Column
10:23Column
10:24Column
10:252
10:26Step size
10:272
10:28Step size
10:292
10:30Step size
10:312
10:32Step size
10:332
10:34Step size
10:352
10:36Step size
10:372
10:38Step size
10:392
10:40Step size
10:412
10:42Second column
10:43So, all rows
10:45Three rows
10:46Column
10:47Access
10:4823, 23, 23
10:49Then
10:50We can access
10:51Second column
10:52Second column
10:53So, second column
10:5419, 12, 90
10:55This is
10:572 dimensional array
10:58Slicing
10:59This is
11:002 dimensional array
11:05Next,
11:063 dimensional array
11:07Slicing
11:083 dimensional array
11:09We can shape
11:10Layers
11:11Rows
11:12Rows
11:13And columns
11:14So, layers
11:15Start, Stop
11:16End
11:17Then rows
11:18Start, Stop
11:19Step
11:20Then
11:21Column
11:22Start, Stop
11:23Step
11:24We can pass
11:25Now
11:26Let's say
11:275 and 6
11:28Access
11:29Layer 0
11:30Layer 1
11:31This is
11:320th index
11:33First index
11:35This is
11:360, 1, 2
11:385 and 6
11:39Access
11:40Is
11:411, 2
11:42This is
11:431, 2
11:441, 2
11:451, 3
11:461, 2
11:47So, 1
11:481, 2
11:491
11:511, 2
11:522
11:542
11:55So, this is 5 and 6 extracts.
11:59Let's say 2, 3, 8, 9.
12:08This is how we can access it.
12:110 and 1.
12:12There are two layers.
12:14So, all layers.
12:15This is the index layer.
12:17Next.
12:18We can access what row elements.
12:21The 0th row elements.
12:23So, 0.
12:24Then, what column elements are we can access?
12:271 and 2 are elements.
12:29So, 1 colon.
12:30We can access 2, 3, 8, 9.
12:34This is what we can access.
12:38This is 3D slicing.
12:42So, in this case, we can access the elements using indexing and slicing.
12:49This is the matrix operation part 1.
12:53This is the next video.
13:00This is the last thing.
13:02This is the deadline.
13:04This is a DOC to make the links for two titles.
13:10This is the grapple generously for 400,000 years ago.
13:12This is the margin for 120,000- mouths to 120,000 years ago.
13:15And, while constraining the stylishness of Mercedes-Benz interior,
13:16theuestas for 3, lift.
13:17This is theрон-level roasting setup.
13:21And this is what we can access.
Comments