WEBVTT

00:00.360 --> 00:06.120
One good thing about creating art is let's say for example there is already an attic which is a sequel

00:06.120 --> 00:08.130
to that.

00:08.220 --> 00:10.080
You know there's all the attic.

00:10.380 --> 00:14.030
Let me see there's an attic called us to come our five.

00:14.060 --> 00:18.870
Come on Etim comma or something like this.

00:18.920 --> 00:19.270
Right.

00:19.330 --> 00:20.660
So there is an audio already.

00:20.730 --> 00:23.250
Now I can create non-threat.

00:23.310 --> 00:34.560
Let me call it a sculptor Why are kept leks this this is going to be let me say creating a new saying

00:34.620 --> 00:36.800
and P-doc.

00:37.140 --> 00:43.490
I'm using the function or the meticulous ones like and am passing the small X..

00:43.920 --> 00:48.120
Can you just print this capital X and just check what happens.

00:48.120 --> 00:57.210
So what happens is X capitalist's is nothing but an oddity with ones the shape of that it is similar

00:57.240 --> 00:59.800
to the addy that you passed in.

00:59.820 --> 01:09.060
So ones like create a new array and fill it with ones with a shape like a smaller x.

01:09.300 --> 01:10.530
That's what you do.

01:10.540 --> 01:11.130
Right.

01:11.190 --> 01:12.700
So.

01:12.900 --> 01:23.230
And just like you have ones like you also have zeroes like say if I say Y is equal to and P-doc zeroes

01:23.230 --> 01:26.610
like an x.

01:26.750 --> 01:31.220
Sorry I need to print up and let say print.

01:31.280 --> 01:33.340
Capital Y.

01:33.350 --> 01:33.750
Right.

01:33.830 --> 01:34.730
There you go.

01:34.730 --> 01:41.430
So this is about about you know ones like this is about creating creating addy's again.

01:41.640 --> 01:47.420
Now what if you would want to you know copy addy's from one addy to another.

01:47.570 --> 01:51.740
You can use a function call as you can use a method call as copy.

01:51.740 --> 01:59.240
So if I say I can just put it up here let's say for now as a markdown I'm just going to put it up let's

01:59.240 --> 01:59.480
say

02:02.720 --> 02:06.190
copy it's so.

02:06.380 --> 02:12.920
So what do I do in copying areas I just need to say you know important umpires and B and then copy them

02:12.920 --> 02:13.030
up.

02:13.040 --> 02:25.370
So let's say in part number by as MP and X's equal to any DOT adding which is Libbey baby of course

02:25.430 --> 02:28.320
I already have an X right by the way.

02:28.700 --> 02:31.190
So if I just print is X is already here.

02:31.250 --> 02:33.400
This one small X is already there.

02:33.410 --> 02:34.070
OK.

02:34.640 --> 02:41.360
What I do is I want to create a Y which is going to be an X docked copy correct.

02:41.480 --> 02:44.370
And if I print y.

02:44.990 --> 02:46.210
What does it say.

02:46.430 --> 02:46.940
DOT.

02:47.030 --> 02:50.920
India Arie object has no attribute x copy.

02:53.630 --> 02:58.010
Alright so there there's a copyright.

02:58.210 --> 02:59.580
Ok cool.

02:59.760 --> 03:00.420
That's it.

03:00.460 --> 03:08.540
Create a copy of X and that's there anyway so you can create copies like that and and do.

03:08.620 --> 03:08.920
All right.

03:08.930 --> 03:14.250
There's another one where you want to create sometimes you might want to create an identity adding Do

03:14.530 --> 03:15.790
you remember the identity.

03:15.940 --> 03:16.210
Right.

03:16.210 --> 03:19.720
So let me just put this up as a markdown I'll tell.

03:19.780 --> 03:24.920
And let's say this is an identity.

03:26.140 --> 03:29.810
If you remember in the crisis we see that all diagonal elements or 1.

03:29.830 --> 03:32.310
So how do you create an identity array.

03:32.620 --> 03:42.400
Let's say I couldn't and Alibhai just say N.P. dot identity and I-PASS let's say four or five or whatever

03:42.790 --> 03:45.730
number of number of rows or number of columns.

03:45.730 --> 03:46.130
Right.

03:46.210 --> 03:55.530
So you can put them in X let's say and print x all once correct.

03:55.560 --> 03:58.330
You want that type as in.

03:58.440 --> 04:00.560
You need to put it like this right.

04:00.840 --> 04:04.730
They go all ones rest all GITTOES diagonal elements once.

04:04.770 --> 04:07.070
That's about identity.

04:09.810 --> 04:13.880
You also have an identity or it can be also created with an eye function.

04:13.980 --> 04:19.830
Let's say by saying and be thought I know what does I do.

04:19.830 --> 04:26.670
Let's see I can have optional you know you can have optional number of rows and number of columns.

04:26.700 --> 04:28.810
Let's say five common nine.

04:28.930 --> 04:36.900
And and and all in all I need to do is let's say just this rant is up what do you get.

04:36.900 --> 04:45.480
So you get an atty with all ones in the diagnose but it starts from here right and and you that's it.

04:45.480 --> 04:46.500
All of this would be zero.

04:46.500 --> 04:49.590
So you can have optional number of rows and columns.

04:49.640 --> 04:52.170
Last year the rows and columns are fixed.

04:52.170 --> 04:59.120
Here we have option number of rows and columns and also if you want the type you can put it as comedy

04:59.130 --> 05:00.960
type be called to integer.

05:01.140 --> 05:08.250
So that's also something which can be done but there is also another variable called asking if I could

05:08.250 --> 05:14.840
key as Fyffe or kiss limberness one for now.

05:15.030 --> 05:22.400
Can you see the ones which is the diagonal started one step later so that one step later comes up to

05:22.400 --> 05:22.730
you.

05:22.880 --> 05:27.470
So that's about that's about how you get an idea out here right.

05:27.560 --> 05:28.450
With an eye.

05:28.690 --> 05:31.680
If I put minus one you know what'll happen.

05:31.910 --> 05:35.150
It will start from one step actually behind.

05:35.150 --> 05:36.330
So it starts like this.

05:36.380 --> 05:36.670
Right.

05:36.670 --> 05:38.900
So it goes up it goes pipo one step.

05:38.900 --> 05:44.060
So you put minus two you can yourself can understand how things go.

05:44.060 --> 05:45.180
It starts from here.

05:45.470 --> 05:50.120
So if I put two you know will begin from right here.

05:50.300 --> 05:55.290
So it's plus and minus two is somewhere behind that's about the eye.

05:55.820 --> 06:01.970
The eye function and of course there can be multiple questions which you know which can always be done

06:02.450 --> 06:05.010
and you can.

06:05.100 --> 06:12.020
Something else which show we need to know and that is about the pie arithmetic which we will go further

06:12.020 --> 06:15.180
in further in detail in the next section called.
