public void CoordinationalMatrix_TestUMult() { var resultTrueDiag = coordinationalMatrix.UMult(vector, true); Vector resultActualTrueDiag = new Vector(new double[] { 10, 2, 3 }); var resultFalseDiag = coordinationalMatrix.UMult(vector, false); Vector resultActualFalseDiag = new Vector(new double[] { 10, 1, 1 }); for (int i = 0; i < resultTrueDiag.Size; i++) { Assert.Equal(resultTrueDiag[i], resultActualTrueDiag[i], 8); Assert.Equal(resultFalseDiag[i], resultActualFalseDiag[i], 8); } }
public IVector UMult(IVector x) { return(FactorizedMatrix.UMult(x, true)); }
public IVector UMult(IVector x) { return(FA.UMult(x, true)); }