Example #1
0
        private static void ComplexLinAlg()
        {
            ComplexMatrix c = new ComplexMatrix(3, 3)
            {
                Indices = new [, ] {
                    { 1 + i, 1 + i, 1 + i, 1 + i },
                    { i, 2 * i, 2 * i + 3, 2 - 4 * i },
                    { 1 + i, 1 - 2 * i, 2 + i, 3 + 5 * i },
                    { 1 + 3 * i, 2 - 2 * i, 3 + 5 * i, 4 }
                }
            };

            Console.WriteLine(c.ToDeterminant(3, true, 3));
            Console.WriteLine();
            Console.WriteLine(c.Inverse().ToTable(3, 3, true));
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="PhaseShiftInverse"/> class.
 /// </summary>
 /// <param name="phase">The phase.</param>
 public PhaseShiftInverse(double phase) : base(phase)
 {
     Matrix = ComplexMatrix.Inverse(Matrix);
     Name   = "Ri";
 }