RUVIDEO
Поделитесь видео 🙏

How to code a scalar vector multiplication algorithm?

We develop an algorithm to multiply a column vector by a scalar

00:00 -Introduction
00:04 -Two representations of a scalar-vector product
00:15 -Mathematical definition of scalar-column-vector multiplication
01:02 -We multiply coefficient i by scalar alpha
01:11 -For loop intuition: run an operation a fixed number of times
01:37 -Pseudo-code version of scalar-column-vector multiplication
02:10 -Create script file to play with scalar-column-vector multiplication
02:30 -Initialize size and input vectors
03:10 -Create for loop version of scalar-column-vector multiplication
03:55 -Use MATLAB * symbol to verify our work
04:22 -Run our draft code to check work
04:43 -Visual model for how this code works
05:27 -What happens in initialization
06:16 -What happens in the first iteration
06:45 -What happens in the second iteration
07:17 -What happens in the remaining iterations
07:42 -What is the output vector we produce
08:12 -One difference between mathematics and coding: memory
08:58 -Adapt our algorithm to save memory
09:46 -Change our implementation to cut memory use nearly in half
10:05 -Create a vector to store our expected output
10:42 -Run our modified code
10:56 -Visual mode for how our memory saving technique works
11:15 -The assignment operator is a coding construct not a math construct
11:31 -Initialize before our for loop
11:37 -What happens in the iterations of our loop
11:53 -What is the output vector we produce
12:01 -Challenge 1: How can we adapt this to handle row vectors?
12:15 -Challenge 2: Why is our trick save memory
12:26 -Theme: math is different than how we write code
12:47 -Conclusion

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «How to code a scalar vector multiplication algorithm?», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.