예제 #1
0
        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);
            }
        }
예제 #2
0
 public IVector LMult(IVector x)
 {
     return(FactorizedMatrix.LMult(x, true));
 }
예제 #3
0
 public IVector LMult(IVector x)
 {
     return(FA.LMult(x, false, DiagonalElement.One));
 }
예제 #4
0
 public IVector LMult(IVector x)
 {
     return(FA.LMult(x, true));
 }