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