public void CoordinationalMatrix_TestLMult() { var resultTrueDiag = coordinationalMatrix.LMult(vector, true); Vector resultActualTrueDiag = new Vector(new double[] { 1, 8, 11 }); var resultFalseDiag = coordinationalMatrix.LMult(vector, false); Vector resultActualFalseDiag = new Vector(new double[] { 1, 7, 9 }); for (int i = 0; i < resultTrueDiag.Size; i++) { Assert.Equal(resultTrueDiag[i], resultActualTrueDiag[i], 8); Assert.Equal(resultFalseDiag[i], resultActualFalseDiag[i], 8); } }
public IVector LMult(IVector x) { return(FactorizedMatrix.LMult(x, true)); }
public IVector LMult(IVector x) { return(FA.LMult(x, false, DiagonalElement.One)); }
public IVector LMult(IVector x) { return(FA.LMult(x, true)); }