public void MemberMultiplyNullMatrixMatrix() { ComplexDoubleMatrix a = new ComplexDoubleMatrix(2, 2.0); ComplexDoubleMatrix b = null; a.Multiply(b); }
public void MemberMultiplyMatrixNonConformMatrix() { ComplexDoubleMatrix a = new ComplexDoubleMatrix(2); ComplexDoubleMatrix b = new ComplexDoubleMatrix(3, 2, 2.0); a.Multiply(b); }
public void MemberMultiplyWideMatrixLongMatrix() { ComplexDoubleMatrix a = new ComplexDoubleMatrix(2, 3, 1); ComplexDoubleMatrix b = new ComplexDoubleMatrix(3, 2, 2); a.Multiply(b); Assert.AreEqual(a[0, 0], new Complex(6)); Assert.AreEqual(a[0, 1], new Complex(6)); Assert.AreEqual(a[1, 0], new Complex(6)); Assert.AreEqual(a[1, 1], new Complex(6)); }
public void MemberMultiplyMatrixMatrix() { ComplexDoubleMatrix a = new ComplexDoubleMatrix(2); a[0, 0] = new Complex(1); a[0, 1] = new Complex(2); a[1, 0] = new Complex(3); a[1, 1] = new Complex(4); ComplexDoubleMatrix b = new ComplexDoubleMatrix(2, 2, 2.0); a.Multiply(b); Assert.AreEqual(a[0, 0], new Complex(6)); Assert.AreEqual(a[0, 1], new Complex(6)); Assert.AreEqual(a[1, 0], new Complex(14)); Assert.AreEqual(a[1, 1], new Complex(14)); }
public void MemberMultiplyNullVector() { ComplexDoubleMatrix a = new ComplexDoubleMatrix(2); ComplexDoubleVector b = null; a.Multiply(b); }
public void MemberMultiplyMatrixNonConformVector() { ComplexDoubleMatrix a = new ComplexDoubleMatrix(2); ComplexDoubleVector b = new ComplexDoubleVector(3, 2.0); a.Multiply(b); }
public void MemberMultiplyVector() { ComplexDoubleMatrix a = new ComplexDoubleMatrix(2); a[0, 0] = new Complex(1); a[0, 1] = new Complex(2); a[1, 0] = new Complex(3); a[1, 1] = new Complex(4); ComplexDoubleVector b = new ComplexDoubleVector(2, 2.0); a.Multiply(b); Assert.AreEqual(a[0, 0], new Complex(6)); Assert.AreEqual(a[1, 0], new Complex(14)); Assert.AreEqual(a.ColumnLength, 1); Assert.AreEqual(a.RowLength, 2); }
public void MemberMultiplyComplexDouble() { ComplexDoubleMatrix a = new ComplexDoubleMatrix(2); a[0, 0] = new Complex(1); a[0, 1] = new Complex(2); a[1, 0] = new Complex(3); a[1, 1] = new Complex(4); a.Multiply(2.0); Assert.AreEqual(a[0, 0], new Complex(2)); Assert.AreEqual(a[0, 1], new Complex(4)); Assert.AreEqual(a[1, 0], new Complex(6)); Assert.AreEqual(a[1, 1], new Complex(8)); }