WEBVTT

00:00.360 --> 00:04.740
OK so let's go on to the shape of an IRA.

00:05.220 --> 00:08.820
And that's what we're going to learn.

00:08.820 --> 00:12.290
And the shape basically consists of.

00:12.600 --> 00:21.040
You know when you have to basically deal with how many elements how many roads how many columns.

00:21.090 --> 00:22.960
That's when you deal with the shape of an average.

00:22.980 --> 00:31.170
So you know so basically the shape is returned to you when a couple of integers and these numbers denote

00:31.170 --> 00:33.830
the lengths of the corresponding dimension.

00:33.840 --> 00:39.510
So basically you can have a look at a you know the it's the number of elements for axes so let's have

00:39.510 --> 00:46.470
a look at one of the examples that we can take let's define an X or a sequel to end without adding and

00:46.860 --> 00:53.700
let's say that's going to be you know let's say it's going to be 60.

00:53.880 --> 01:01.440
Let's just define it as you know one other area out here and then I'm going to say we're here.

01:01.460 --> 01:09.780
It's going to be 67 come twill come on 15 to find another in our list.

01:10.070 --> 01:15.310
And let me say that's going to be 77 and so on.

01:15.500 --> 01:17.330
And let me say that's going to be

01:21.460 --> 01:24.510
called karma.

01:25.560 --> 01:29.320
Come on Twelfth come on 15.

01:29.640 --> 01:35.240
And you know just just random values.

01:36.360 --> 01:44.520
Random values which we're just going to insert them one or the other and let me just show if I print

01:45.150 --> 01:51.840
there is an empty dot there is something called There's a metal color sheet or a function call a shape

01:51.900 --> 01:54.130
in which I need to pass the object.

01:54.150 --> 02:01.680
OK shape can also be caused by by seeing the object named dot shape.

02:02.220 --> 02:05.070
You can do in both ways printed up.

02:05.220 --> 02:07.430
What is the shape the shape is nothing but a couple.

02:07.650 --> 02:15.690
Which shows you the number of the elements so a number of number of rows with number of columns so it's

02:15.690 --> 02:17.810
five come a three right.

02:17.820 --> 02:27.020
So with that we have we have something which is about the shape of the now.

02:27.120 --> 02:33.810
So that's about I guess we have now five Countryfile increase one more all I can of course obviously

02:34.560 --> 02:37.330
you can see the shape which is going to be a little different.

02:37.350 --> 02:43.780
So you know 45 50 was going to be the shape it's going to be coming out.

02:43.960 --> 02:45.170
How can I cheat.

02:45.180 --> 02:47.390
Can I change the shape of an artery.

02:47.430 --> 02:48.420
Is it possible.

02:48.730 --> 02:50.560
Yeah it is.

02:50.580 --> 02:51.790
It is very much possible.

02:51.810 --> 03:00.900
If we would do something like let's say I would say X dark shape or we hear Ixtoc shape is equal to

03:02.220 --> 03:07.290
you know in sort of six commentaries these are twenty four six rows three columns six reads twenty four

03:07.400 --> 03:17.700
twenty four some multiple of 24 can be and he 18 I'm sorry and some multiple of 18 18 can we also.

03:17.910 --> 03:19.530
Let's make it three commas six.

03:19.530 --> 03:23.110
Can I make a three commas X let's strike three cut six.

03:23.160 --> 03:24.430
Right.

03:24.630 --> 03:25.620
I change the shape.

03:25.620 --> 03:31.480
And now let me just print X and check if this works right.

03:31.590 --> 03:32.090
Oh yeah.

03:32.100 --> 03:32.870
So now what.

03:32.890 --> 03:34.680
What is the shape of x.

03:34.710 --> 03:39.590
I change the shape from 3Com 6.

03:39.610 --> 03:42.780
I made it from 6 commentary that means six rows three columns.

03:42.790 --> 03:48.640
I made it to three columns three three rows six columns.

03:48.640 --> 03:53.620
So this is about changing the shape of an area and that's about the shape.

03:53.650 --> 03:54.250
OK.

03:54.250 --> 04:01.300
So this is something which show we need to understand when we tell when we do this particular thing

04:01.300 --> 04:04.970
and many times we might have to do that especially from a crisis can we.

04:04.990 --> 04:10.120
Of course we can also change the shape if you remember instead of making mistakes I can also make it

04:11.450 --> 04:15.010
something like let me say nine.

04:15.040 --> 04:15.760
Come on.

04:15.860 --> 04:19.000
Can I make my income or two because my income is also 18.

04:19.070 --> 04:20.980
So let's say something like this.

04:20.990 --> 04:21.380
Yeah.

04:21.380 --> 04:24.260
So nine rows and two columns.

04:24.260 --> 04:24.690
All right.

04:24.690 --> 04:28.210
Let's let's not experiment too much.

04:28.210 --> 04:36.530
For now let's make it X-Com or treat itself so that I have a good looking at it or what we can do is

04:36.530 --> 04:39.440
we can just add one more element into each of these.

04:39.710 --> 04:47.750
So that I can I can use for some application which is quite different which we are going to deal with

04:47.750 --> 04:50.220
in the next session.

04:50.570 --> 04:52.790
So let's say this is folding.

04:52.910 --> 05:00.880
So I run this seat so it cannot be shibari of size 24 in the shape 5:57 treat that so that's in that's

05:00.890 --> 05:04.430
inherent limitation you cannot make if there a twenty four.

05:04.430 --> 05:12.320
So there's no audio of say 24 you can't make it into shape 6 come on that's that's some rule.

05:12.320 --> 05:18.700
It must be somewhere which is a multiple of 24 cometary noways multiple of 24.

05:18.770 --> 05:23.240
I can make it instead of 6 from a four I can make it four come on six.

05:23.270 --> 05:25.530
Yup can do that.

05:26.110 --> 05:26.480
Right.

05:26.480 --> 05:28.620
So that's about that's about X.

05:28.640 --> 05:29.110
OK.

05:29.240 --> 05:36.620
Now let's go on for another application out here or let's go for another concept which comes down with

05:36.620 --> 05:40.960
an umpire and that's called less indexing and slicing.

05:41.000 --> 05:43.160
OK so how do we index each element.

05:43.160 --> 05:46.560
How do we get each element and how to weigh next them.

05:46.580 --> 05:48.520
How do I slice them and stuff like that.

05:48.830 --> 05:49.430
Right.

05:49.430 --> 05:57.800
So all we're going to cover that in detail right away and as we do that we can understand how how we

05:57.800 --> 06:01.770
can index how we can slice and stuff like that.

06:02.080 --> 06:02.630
OK.

06:02.810 --> 06:16.870
And with this let's say for example we have out here indexing and slicing with this.

06:16.950 --> 06:18.970
Oh I'll just put up something out here.

06:19.040 --> 06:23.050
Let's say how to Y-axis each element in this particular product.

06:23.060 --> 06:27.520
So let's say this is 67 12 15 12 77.

06:27.530 --> 06:35.330
How do I access this 45 here or let me say how to access a 78 78 how to access it.

06:35.330 --> 06:38.630
OK so this is a roll OK.

06:38.910 --> 06:44.400
Let's say first of all how to access a roll and then I'll go to help you access a particular column

06:44.400 --> 06:44.980
in the row.

06:45.120 --> 06:48.530
So let's say this is rule number zero does rule number 1.

06:48.540 --> 06:49.170
Wrote the.

06:49.170 --> 06:49.820
Run them three.

06:49.840 --> 06:50.960
Number four on the five.

06:50.970 --> 06:57.050
So even though the shape is six six rows but it starts from zero and goes up to five.

06:57.120 --> 06:58.670
So.

06:58.670 --> 07:05.610
So let's say I'm going to say what is the 8 x off.

07:05.610 --> 07:08.610
Let me say X of two camper and up up.

07:08.610 --> 07:14.350
So it tells me X or 2 is 45 45 12:53.

07:14.370 --> 07:15.370
Oh sorry sorry.

07:15.370 --> 07:21.460
We have changed the shape so it's like this one for this 1845 78 45.

07:21.510 --> 07:23.260
No sorry not this one.

07:23.560 --> 07:31.580
Qualified 12 15 18 78 98 because as I told you about ready to go.

07:31.950 --> 07:32.450
Yeah.

07:32.670 --> 07:36.060
So as I told you this is zero.

07:36.090 --> 07:36.930
This is one.

07:36.960 --> 07:39.810
And this is so Xserve 2 is this.

07:39.810 --> 07:46.580
Now how to access the column that I can access the column by saying X of two.

07:46.830 --> 07:51.520
And then I say two and then I go.

07:51.840 --> 07:52.910
So this is an ID.

07:53.040 --> 07:54.040
This is a number.

07:54.130 --> 07:58.320
Now how to access this except two things and number three.

07:58.340 --> 08:02.640
And from the numpad I want to access an element that say I want to access the 50.

08:02.640 --> 08:03.980
How do I access the 50.

08:04.110 --> 08:07.080
I have to say it is the again 0 1 2.

08:07.110 --> 08:08.520
There's the second element.

08:08.520 --> 08:12.240
So 0 1 that's 50 right.
