Lecture 1 - NdArrays Intro Flashcards

1
Q

What is an ndarray?

A

This is a multidimensional numerical array

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is an image ?

A

A matrix of values, representing brightness points

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a sound?

A

A vector of values, representing pressure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a video ?

A

A 3D tensor of values, representing brightness points

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How are 3D graphics usually represented?

A

An ndarray of vertices (multiple rows of x,y,z points)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Are ndarrays efficient?

A

Yes , very , they’re also very compact.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is vectorisation?

A

The practice of writing code which acts on arrays of values simultaneously is called. This is the case with operations on ndarrays using numpy.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is vectorisation a case of ?

A

It is a special case of parallel computing, where we restrict
ourselves to numerical operations on fixed size arrays

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is SIMD (Single Instruction Multiple Data)

A
  • this is what vectorisation is
  • supported by modern CPUs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are GPUs?

A

GPUs are array processors. They have big groups of very simple processors, which are able to deal
very well with data in numerical arrays, but are very slow when working with other
data structures. Anything that can be written as an operation on numerical arrays can
be done at lightning speed on a GPU.
- GPUs are only efficient on arrays and ndarrays

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What essentially are ndarrays?

A

entire spreadsheets in a variable, on which we can perform all standard spreadsheet operations on

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a vector?

A

a simple array

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a matrix ?

A

2d array

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is a tensor?

A

Any rectangular array-like structure with more than 2 dimensions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What should we think of tensors as ?

A

arrays of matrices or vectors

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are axes?

A

a specific dimension in an array / ndarray. These are indexed 0 to n, where n is the number of dimensions

17
Q

Possible operations on ndarrays?

A
  • create
  • arithmetic
  • indexing
  • slicing
  • rearrangement
  • order operations e.g.sorting
  • aggregate functions
  • vector operations
  • matrix operations
  • signal processing operations
18
Q

What is the only thing ndarrays can hold?

A

numbers , either floats or ints

19
Q

What do ndarrays have?

A

shape and size

20
Q

Do ndarrays have to be rectangular?

A

YES

21
Q

Can ndarrays be changed in terms of size?

A

nah

22
Q

Are ndarrays mutable tho?

A

yes

23
Q

Are ndarrays dynamically typed?

A

no, statically

24
Q

Why are ndarrays statically typed?

A

Since the values in the ndarrays are not actually e.g.Python values, but raw blocks numbers from memory.