Example #1
0
 TypicalComplexMatrixComplexScalarDivision() :
     base(
         expected: new ComplexMatrixState(
             asColumnMajorDenseArray: new Complex[6] { 0, .5, 1, 1.5, 2, 2.5 },
             numberOfRows: 2,
             numberOfColumns: 3),
         left: TestableComplexMatrix16.Get(),
         right: new Complex(2, 2)
         )
 {
 }
Example #2
0
 TypicalDoubleScalarComplexMatrixDivision() :
     base(
         expected: new ComplexMatrixState(
             asColumnMajorDenseArray: GetAsColumnMajorDenseArray(),
             numberOfRows: 2,
             numberOfColumns: 3),
         left: 10,
         right: TestableComplexMatrix16.Get()
         )
 {
 }
Example #3
0
 RightIsNeutralComplexMatrixComplexScalarDivision() :
     base(
         expected: new ComplexMatrixState(
             asColumnMajorDenseArray: GetAsColumnMajorDenseArray(),
             numberOfRows: 2,
             numberOfColumns: 3),
         left: TestableComplexMatrix16.Get(),
         right: 1.0
         )
 {
 }
 TypicalComplexScalarComplexMatrixDivision() :
     base(
         expected: new ComplexMatrixState(
             asColumnMajorDenseArray: new Complex[6]
             { Complex.NaN, 10, 5, 3.3333333, 2.5, 2 },
             numberOfRows: 2,
             numberOfColumns: 3),
         left: new Complex(10, 10),
         right: TestableComplexMatrix16.Get()
         )
 {
 }
Example #5
0
 RightWrongColsComplexMatrixComplexMatrixAddition() :
     base(
         expected: new ArgumentException(
             message: (string)Reflector.ExecuteStaticMember(
                 typeof(ImplementationServices),
                 "GetResourceString",
                 new string[] { "STR_EXCEPT_MAT_ADD_ALL_DIMS_MUST_MATCH" }),
             paramName: "right"),
         left: TestableComplexMatrix16.Get(),
         right: TestableComplexMatrix09.Get()
         )
 {
 }
 TypicalComplexMatrixDoubleMatrixMultiplication() :
     base(
         expected: new ComplexMatrixState(
             asColumnMajorDenseArray: new Complex[2]
 {
     new Complex(-20, -20),
     new Complex(-32, -32)
 },
             numberOfRows: 2,
             numberOfColumns: 1),
         left: TestableComplexMatrix16.Get(),
         right: TestableDoubleMatrix20.Get()
         )
 {
 }
 RightIsScalarComplexMatrixDoubleMatrixDivision() :
     base(
         expected: new ComplexMatrixState(
             asColumnMajorDenseArray: new Complex[6] {
     0,
     new Complex(.5, .5),
     new Complex(1, 1),
     new Complex(1.5, 1.5),
     new Complex(2, 2),
     new Complex(2.5, 2.5)
 },
             numberOfRows: 2,
             numberOfColumns: 3),
         left: TestableComplexMatrix16.Get(),
         right: TestableDoubleMatrix19.Get()
         )
 {
 }
 RightIsNeutralComplexMatrixComplexScalarMultiplication() :
     base(
         expected: new ComplexMatrixState(
             asColumnMajorDenseArray: new Complex[6]
 {
     0,
     new Complex(1, 1),
     new Complex(2, 2),
     new Complex(3, 3),
     new Complex(4, 4),
     new Complex(5, 5)
 }, numberOfRows: 2,
             numberOfColumns: 3),
         left: TestableComplexMatrix16.Get(),
         right: 1.0
         )
 {
 }
Example #9
0
 LeftIsNeutralDoubleScalarComplexMatrixAddition() :
     base(
         expected: new ComplexMatrixState(
             asColumnMajorDenseArray: new Complex[6]
 {
     0,
     new Complex(1, 1),
     new Complex(2, 2),
     new Complex(3, 3),
     new Complex(4, 4),
     new Complex(5, 5)
 },
             numberOfRows: 2,
             numberOfColumns: 3),
         left: 0.0,
         right: TestableComplexMatrix16.Get()
         )
 {
 }
Example #10
0
 TypicalComplexMatrixDoubleMatrixSubtraction() :
     base(
         expected: new ComplexMatrixState(
             asColumnMajorDenseArray: new Complex[6]
 {
     new Complex(5, 0),
     new Complex(5, 1),
     new Complex(5, 2),
     new Complex(5, 3),
     new Complex(5, 4),
     new Complex(5, 5)
 },
             numberOfRows: 2,
             numberOfColumns: 3),
         left: TestableComplexMatrix16.Get(),
         right: TestableDoubleMatrix18.Get()
         )
 {
 }
Example #11
0
 TypicalComplexMatrixDoubleMatrixElementWiseMultiplication() :
     base(
         expected: new ComplexMatrixState(
             asColumnMajorDenseArray: new Complex[6]
 {
     0,
     new Complex(-4, -4),
     new Complex(-6, -6),
     new Complex(-6, -6),
     new Complex(-4, -4),
     0
 },
             numberOfRows: 2,
             numberOfColumns: 3),
         left: TestableComplexMatrix16.Get(),
         right: TestableDoubleMatrix18.Get()
         )
 {
 }
 TypicalComplexMatrixDoubleScalarAddition() :
     base(
         expected: new ComplexMatrixState(
             asColumnMajorDenseArray: new Complex[6]
 {
     new Complex(-1, 0),
     new Complex(0, 1),
     new Complex(1, 2),
     new Complex(2, 3),
     new Complex(3, 4),
     new Complex(4, 5)
 },
             numberOfRows: 2,
             numberOfColumns: 3),
         left: TestableComplexMatrix16.Get(),
         right: -1
         )
 {
 }
 LeftIsScalarComplexMatrixComplexMatrixSubtraction() :
     base(
         expected: new ComplexMatrixState(
             asColumnMajorDenseArray: new Complex[6]
 {
     new Complex(-1, -1),
     new Complex(-2, -2),
     new Complex(-3, -3),
     new Complex(-4, -4),
     new Complex(-5, -5),
     new Complex(-6, -6)
 },
             numberOfRows: 2,
             numberOfColumns: 3),
         left: TestableComplexMatrix17.Get(),
         right: TestableComplexMatrix16.Get()
         )
 {
 }
 TypicalDoubleScalarComplexMatrixMultiplication() :
     base(
         expected: new ComplexMatrixState(
             asColumnMajorDenseArray: new Complex[6]
 {
     0,
     new Complex(2, 2),
     new Complex(4, 4),
     new Complex(6, 6),
     new Complex(8, 8),
     new Complex(10, 10)
 },
             numberOfRows: 2,
             numberOfColumns: 3),
         left: 2,
         right: TestableComplexMatrix16.Get()
         )
 {
 }
Example #15
0
 TypicalComplexMatrixComplexMatrixAddition() :
     base(
         expected: new ComplexMatrixState(
             asColumnMajorDenseArray: new Complex[6]
 {
     new Complex(-5, -5),
     new Complex(-3, -3),
     new Complex(-1, -1),
     new Complex(1, 1),
     new Complex(3, 3),
     new Complex(5, 5)
 },
             numberOfRows: 2,
             numberOfColumns: 3),
         left: TestableComplexMatrix16.Get(),
         right: TestableComplexMatrix18.Get()
         )
 {
 }
Example #16
0
 LeftIsScalarComplexMatrixComplexMatrixAddition() :
     base(
         expected: new ComplexMatrixState(
             asColumnMajorDenseArray: new Complex[6]
 {
     new Complex(-1, -1),
     new Complex(0, 0),
     new Complex(1, 1),
     new Complex(2, 2),
     new Complex(3, 3),
     new Complex(4, 4),
 },
             numberOfRows: 2,
             numberOfColumns: 3),
         left: TestableComplexMatrix17.Get(),
         right: TestableComplexMatrix16.Get()
         )
 {
 }
Example #17
0
 LeftIsScalarComplexMatrixComplexMatrixMultiplication() :
     base(
         expected: new ComplexMatrixState(
             asColumnMajorDenseArray: new Complex[6]
 {
     0,
     new Complex(0, 4),
     new Complex(0, 8),
     new Complex(0, 12),
     new Complex(0, 16),
     new Complex(0, 20)
 },
             numberOfRows: 2,
             numberOfColumns: 3),
         left: TestableComplexMatrix19.Get(),
         right: TestableComplexMatrix16.Get()
         )
 {
 }
 RightIsScalarComplexMatrixComplexMatrixSubtraction() :
     base(
         expected: new ComplexMatrixState(
             asColumnMajorDenseArray: new Complex[6]
 {
     new Complex(1, 1),
     new Complex(2, 2),
     new Complex(3, 3),
     new Complex(4, 4),
     new Complex(5, 5),
     new Complex(6, 6)
 },
             numberOfRows: 2,
             numberOfColumns: 3),
         left: TestableComplexMatrix16.Get(),
         right: TestableComplexMatrix17.Get()
         )
 {
 }