HW1 for CS 6210
You may (and probably should) talk about problems with the each other, with the TA, and with me, providing attribution for any good ideas you might get. Your final write-up should be your own.
1. All about you
How do you prefer to be called?
Why are you taking the class?
Are there things you particularly hope to learn?
Do you have any concerns (about background, schedule, etc)?
Is there anything else I should know about your situation?
2. A little differentiation
Differentiate $\|Ax\|^2$ with respect to $x$ and $A$, and write the result in the form
$$\delta[ \|Ax\|^2 ] = g^T \delta x + \langle G, \delta A \rangle_F$$
You may use the following tester as a sanity check.
check_p2 (generic function with 2 methods)
3: Norm!
For $A = xy^T$, verify the following
$$\|A\|_1 = \|x\|_1 \|y\|_\infty$$
$$\|A\|_\infty = \|x\|_\infty \|y\|_1$$
$$\|A\|_F = \|x\|_2 \|y\|_2$$
$$\|A\|_2 = \|x\|_2 \|y\|_2$$
4: Seeking structure
Suppose $A = I + uv^T$ for $u, v \in \mathbb{R}^n$. Rewrite each of the computations in the following code to take $O(n)$ time:
1242.0657597962686