I am trying to understand how I can write an algorithm to solve the formula written at the end of this answer, that is:
$$ 0=\sum_{i=0}^m \vec c - \vec a_i - \vec d_i \frac {(\vec c-\vec a_i)\cdot\vec d_i}{\|\vec d_i\|^2} $$
I know simple equations systems may be solved through matrices when you have $$Ax=b$$ you can solve with $$x = A^{-1}b$$ but this is a little more complicated for me
I think I should come to a form such as: $$A\vec c = b$$ but I don't have idea how to deal with $\sum$ and dot products