Geometric algebra: Difference between revisions
Content added Content deleted
Line 438: | Line 438: | ||
Note that sparse arrays display as <code>indices | value</code> for elements which are not the default element (0). |
Note that sparse arrays display as <code>indices | value</code> for elements which are not the default element (0). |
||
So, for example in the part where we check for orthogonality, we are forming a 5 by 5 by 9223372036854775807 array. The first two dimensions correspond to arguments to <code>e</code> and the final dimension is the multivector dimension. A <code>0</code> in the multivector dimension means that that's the "real" or "scalar" part of the multivector. And, since the pair of dimensions for the <code>e</code> arguments are identical, we know we have an [[wp:Identity_matrix|identity matrix]]. |
So, for example in the part where we check for orthogonality, we are forming a 5 by 5 by 9223372036854775807 array. The first two dimensions correspond to arguments to <code>e</code> and the final dimension is the multivector dimension. A <code>0</code> in the multivector dimension means that that's the "real" or "scalar" part of the multivector. And, since the pair of dimensions for the <code>e</code> arguments whose "dot" product are <code>1</code> are identical, we know we have an [[wp:Identity_matrix|identity matrix]]. |
||
=={{header|javascript}}== |
=={{header|javascript}}== |