The above example has \mathbf{x}_{k} \in \mathbb{R}^{2} and \mathbf{y}_{k} \in \mathbb{R}^{3} , but the general strategy for rewriting the similarity relations into homogeneous linear equations can be generalized to arbitrary dimensions for both \mathbf{x}_{k} and \mathbf{y}_{k}. If \mathbf{x}_{k} \in \mathbb{R}^{2} and \mathbf{y}_{k} \in \mathbb{R}^{q} the previous expressions can still lead to an equation : 0 = \mathbf{x}_{k}^{T} \, \mathbf{H} \, \mathbf{A} \, \mathbf{y}_{k} for \, k = 1, \ldots, N where \mathbf{A} now is 2 \times q. Each
k provides one equation in the 2q unknown elements of \mathbf{A} and together these equations can be written \mathbf{B} \, \mathbf{a} = \mathbf{0} for the known N \times 2 \, q matrix \mathbf{B} and unknown
2q-dimensional vector \mathbf{a}. This vector can be found in a similar way as before. In the most general case \mathbf{x}_{k} \in \mathbb{R}^{p} and \mathbf{y}_{k} \in \mathbb{R}^{q} . The main difference compared to previously is that the matrix \mathbf{H} now is p \times p and anti-symmetric. When p > 2 the space of such matrices is no longer one-dimensional, it is of dimension : M = \frac{p\,(p-1)}{2}. This means that each value of
k provides
M homogeneous equations of the type : 0 = \mathbf{x}_{k}^{T} \, \mathbf{H}_{m} \, \mathbf{A} \, \mathbf{y}_{k} for \, m = 1, \ldots, M and for \, k = 1, \ldots, N where \mathbf{H}_{m} is a
M-dimensional basis of the space of p \times p anti-symmetric matrices. === Example
p = 3 === In the case that
p = 3 the following three matrices \mathbf{H}_{m} can be chosen : \mathbf{H}_{1} = \begin{pmatrix} 0 & 0 & 0 \\ 0 & 0 & -1 \\ 0 & 1 & 0 \end{pmatrix} , \mathbf{H}_{2} = \begin{pmatrix} 0 & 0 & 1 \\ 0 & 0 & 0 \\ -1 & 0 & 0 \end{pmatrix} , \mathbf{H}_{3} = \begin{pmatrix} 0 & -1 & 0 \\ 1 & 0 & 0 \\ 0 & 0 & 0 \end{pmatrix} . In this particular case, the homogeneous linear equations can be written as : \mathbf{0} = [\mathbf{x}_{k}]_{\times} \, \mathbf{A} \, \mathbf{y}_{k} for \, k = 1, \ldots, N where [\mathbf{x}_{k}]_{\times} is the
matrix representation of the vector cross product. Notice that this last equation is vector valued; the left hand side is the zero element in \mathbb{R}^{3} . Each value of
k provides three homogeneous linear equations in the unknown elements of \mathbf{A} . However, since [\mathbf{x}_{k}]_{\times} has rank = 2, at most two equations are linearly independent. In practice, therefore, it is common to only use two of the three matrices \mathbf{H}_{m} , for example, for
m=1, 2. However, the linear dependency between the equations is dependent on \mathbf{x}_{k} , which means that in unlucky cases it would have been better to choose, for example,
m=2,3. As a consequence, if the number of equations is not a concern, it may be better to use all three equations when the matrix \mathbf{B} is constructed. The linear dependence between the resulting homogeneous linear equations is a general concern for the case
p > 2 and has to be dealt with either by reducing the set of anti-symmetric matrices \mathbf{H}_{m} or by allowing \mathbf{B} to become larger than necessary for determining \mathbf{a}. == References ==