User-defined orthonormal basis

markuz
Messages
5
Reaction score
0
Does anybody know how to create a orthonormal basis, i.e. a matrix containing orthogonal vectors of norm 1, out of a given direction (normalised vector or versor) in a space with dimension N>3?
With "out of a given direction", I mean that the resulting basis would have the first vector equal to the provided versor.
 
Physics news on Phys.org
In principle, all you need is to find N - 1 more linearly independent vectors, and then you can apply the Gram-Schmidt process. That preserves the first vector, so if you put your given vector first in the list it will remain unaltered.
 
thanks

Thanks it works! Not sure about the numerical stability but will keep an eye on it.
Thanks again
Cheers!
 
Back
Top