I doubt if I am asking this question correctly but for what it’s worth I have a set of orthogonal vectors for which I would like to pick from another set the closest orthogonal vector from it to my initial set, more like arranging vectors in order of how closely orthogonal they are to each another. here’s what I mean say we have the first set of vectors as
$A = \{ [1,0,0,0,0] , [0,1,0,0,0]\}$
and the set for which the closest orthogonal vector to the first set has to be picked as
$B = \{ [0,0,0,0,1], [0,0,1,0,0] , [0,0,0,1,0]\}$
What vector magic can one hope to perform on $B$ such that only the vector that’s closest to the ones in $A$ is isolated. Merely looking at $B$ one can tell that $[0,0,0,0,1]$ is 2 axes farther away from (the resultant of) $A$ and $[0,0,0,1,0]$ is 1 axis farther away from (the resultant of) $A$ unlike $[0,0,1,0,0]$ which is the closest. Is there a way one can compare orthogonal vectors this way such that “closeness” is a function of how many extra axes (orthogonal-vectors) that can exist between a vector from $B$ and all in $A$
N.B. each vector in $B$ is perpendicular to all in $A$, vectors in $A$ are also orthogonal to each other, I am just generally interested in comparing orthogonal vectors in this manner
UPDATE: This question is asking how to select $[0,0,1,0,0]$ from $B$ as the orthogonal vector closest to (the resultant of) $A$.
Or if for example:
$A = \{ [0,1,0,0,0] \}$ and
$B = \{ [0,0,0,0,1], [0,0,1,0,0], [1,0,0,0,0], [0,0,0,1,0]\}$
how to select $[1,0,0,0,0]$ and $[0,0,1,0,0]$ from $B$ as the orthogonal vectors closest to $A$
Or if for example:
$A = \{ [1,0,0,0,0] \}$ and
$B = \{ [0,0,0,0,1], [0,0,1,0,0], [0,1,0,0,0], [0,0,0,1,0]\}$
how to select $[0,1,0,0,0]$ from $B$ as the orthogonal vector closest to $A$