Hi -
I have two ranges in Excel that contain vectors of numbers. While the two ranges/ vectors are the same length, there are multiple sets of such vectors of varying lengths. I'd like to develop a formula where I can use an identity matrix as part of the computation with dimensions equal to the length of the input vectors.
For instance, suppose I have a vector of numbers in Excel range A1:A4 and another in Excel range B1:B4. Currently, I have to manually enter the identity matrix, as in the following CSE formula:
{=A1:A4/TRANSPOSE(B1:B4)*{1,0,0,0;0,1,0,0;0,0,1,0;0,0,0,1}}
Please let me know if anyone has a solution. I am limited in that I cannot use VBA in the current operating environment. I would also like to avoid having to alter the spreadsheet to include metadata (i.e. creating an identity matrix in a new range and using the OFFSET() function) as well as using the MINVERSE() function as not all matrices are invertible and there appear to be some precision issues in Excel with its use (i.e. using `A1:A4*MINVERSE(A1:A4)` to create the identity matrix).
Thanks!
I have two ranges in Excel that contain vectors of numbers. While the two ranges/ vectors are the same length, there are multiple sets of such vectors of varying lengths. I'd like to develop a formula where I can use an identity matrix as part of the computation with dimensions equal to the length of the input vectors.
For instance, suppose I have a vector of numbers in Excel range A1:A4 and another in Excel range B1:B4. Currently, I have to manually enter the identity matrix, as in the following CSE formula:
{=A1:A4/TRANSPOSE(B1:B4)*{1,0,0,0;0,1,0,0;0,0,1,0;0,0,0,1}}
Please let me know if anyone has a solution. I am limited in that I cannot use VBA in the current operating environment. I would also like to avoid having to alter the spreadsheet to include metadata (i.e. creating an identity matrix in a new range and using the OFFSET() function) as well as using the MINVERSE() function as not all matrices are invertible and there appear to be some precision issues in Excel with its use (i.e. using `A1:A4*MINVERSE(A1:A4)` to create the identity matrix).
Thanks!