User-defined orthonormal basis

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 2K views
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
thanks

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