How to code an axpy operation?
Jeff Anderson Math
0:00 / 0:00
How to code an axpy operation?
436 просмотров · 4 г. назад
Jeff Anderson Math
2,11 тыс. подписчиков
436 просмотров · 4 г. назад
We develop an algorithm to do an axpy operation. Remember an axpy operation is scalar Alpha times X Plus Y. This is operation sets the foundation for calculating linear combinations using for loops.
00:00 -Introduction
00:17 -Math definition for the input variables for an axpy operations
00:33 -Math definition for the output of the axpy operation
01:00 -Pseudo-code for an axpy algorithm
01:32 -Create a script file to play with axpy algorithm
01:52 -Initialize input data: three vectors and one scalar
02:56 -Create desired output using MATLAB’s native operations
03:13 -Initialize output to be a vector of all zeros
03:37 -Sandbox code versus production-level code
03:54 -Write for loop to implement the axpy algorithm
04:29 -Verify output to the algorithm
05:34 -To learn deeply, encode ideas using multiple representations
06:12 -Visual representation of the axpy algorithm
07:50 -Strategic deep learning involves strategic thinking
08:14 -Improve the axpy algorithm with a memory-saving revision
10:38 -Overwrite each entry of vector y with desired output value
11:23 -Challenge 1: How can we adapt this algorithm to row vectors?
11:42 -Challenge 2: How can you visualize the algorithm with memory trick
12:18 -Conclusion