K^2 said:
You see how Cramer's rule (cofactor method) has a huge jump fro 3x3 to 4x4? Exploit that. It takes 27 flops to go from 4x4 to 3x3, giving you 80 flop computation for a 4x4 matrix. It's not an efficient general algorithm, but it is the most efficient way to do 4x4 case.
You want to start with a complex 4x4 matrix:
And calculate a reduced 3x3 matrix like this:
I see that each element of the reduced matrix requires 1 complex multiplication, 1 complex division and 1 complex subtraction. I think this would require 15 real flops. And to do the 9 repetitions will require a total of 135 real flops.
Next, calculating the inverse of the 3x3 reduced matrix will require an additional 54 complex flops. I haven't determined the mix of multiplications, additions and divisions for this, but taking 3.5 real flops per complex flop, we would need 189 more real flops for a total of 324 real flops. If a full hour is allocated to this massive computation, one flop will have to be calculated every 11.1 seconds, no stopping, and this includes writing down intermediate results, and keeping them straight, and making no mistakes.
I don't think the OP would be able to do this using a calculator that can only do real arithmetic.
And, even if he has a calculator that can do complex arithmetic, he still must write down all those complex intermediate results and keep them straight, which takes longer that the calculations.. One of the very great advantages of a calculator that can do matrix arithmetic is not having to keep track of all those intermediate results.
His original problem was to calculate the inverse of a 4x4 complex matrix. Having calculated the inverse of the reduced 3x3 matrix, how much more computation is needed to get the inverse of the original 4x4 matrix? Just how does he do that?
K^2 said:
I can do 80 complex operations on a slide rule in half an hour. A calculator with built in complexes should get you done in less than 20 if you have a system.
If that's one problem out of a set of 10, this is entirely reasonable
What kind of operations? Multiplications, additions, divisions? As you know, you can't do addition on a slide rule. The additions will have to be done some other way.
If we assume a mix of operations similar to the OP's problems of 3.5 real flops per complex flop, you would be doing 280 real flops in a half hour--that's 6.4 seconds per real flop, and the matrix reduction would also require writing down and keeping track of the intermediate results.
I'm skeptical.
With a calculator, keying in an operand (and fairly often, keying in two) and then writing down the result will dominate each calculation. Any calculator can do +,-,/,and * in a small fraction of a second.
If I were the OP, I'd get myself a calculator that can do complex arithmetic, including matrix operations. He'll need it if he continues in an EE curriculum.