This commit is contained in:
2020-08-01 14:15:16 +03:00
parent 918270d930
commit 6ede5c533e
2 changed files with 6 additions and 10 deletions

View File

@@ -491,7 +491,7 @@ namespace MatrixExtensions
MatrixL<TNumber> matrixL = Utilites.TMatrixToMatrixL(tmp1); MatrixL<TNumber> matrixL = Utilites.TMatrixToMatrixL(tmp1);
matrixL.InsertRow(tmp2.ToInt32()-1); matrixL.InsertRow(tmp2.ToInt32()-1);
TMatrix m = Utilites.MatrixLToTMatrix(matrixL); TMatrix m = Utilites.MatrixLToTMatrix(matrixL);
//MatrixL<TNumber> vectorL = Utilites.TMatrixToMatrixL(tmp2);
result = Entry.Create(m.ToTerms()); result = Entry.Create(m.ToTerms());
return true; return true;
} }
@@ -510,7 +510,7 @@ namespace MatrixExtensions
List<TNumber> vectorL = Utilites.TMatrixToMatrixL(tmp3).ToList(); List<TNumber> vectorL = Utilites.TMatrixToMatrixL(tmp3).ToList();
matrixL.InsertRow(tmp2.ToInt32() - 1, vectorL); matrixL.InsertRow(tmp2.ToInt32() - 1, vectorL);
TMatrix m = Utilites.MatrixLToTMatrix(matrixL); TMatrix m = Utilites.MatrixLToTMatrix(matrixL);
//MatrixL<TNumber> vectorL = Utilites.TMatrixToMatrixL(tmp2);
result = Entry.Create(m.ToTerms()); result = Entry.Create(m.ToTerms());
return true; return true;
} }
@@ -526,7 +526,7 @@ namespace MatrixExtensions
MatrixL<TNumber> matrixL = Utilites.TMatrixToMatrixL(tmp1); MatrixL<TNumber> matrixL = Utilites.TMatrixToMatrixL(tmp1);
matrixL.InsertCol(tmp2.ToInt32()-1); matrixL.InsertCol(tmp2.ToInt32()-1);
TMatrix m = Utilites.MatrixLToTMatrix(matrixL); TMatrix m = Utilites.MatrixLToTMatrix(matrixL);
//MatrixL<TNumber> vectorL = Utilites.TMatrixToMatrixL(tmp2);
result = Entry.Create(m.ToTerms()); result = Entry.Create(m.ToTerms());
return true; return true;
} }
@@ -545,7 +545,7 @@ namespace MatrixExtensions
List<TNumber> vectorL = Utilites.TMatrixToMatrixL(tmp3).ToList(); List<TNumber> vectorL = Utilites.TMatrixToMatrixL(tmp3).ToList();
matrixL.InsertCol(tmp2.ToInt32() - 1, vectorL); matrixL.InsertCol(tmp2.ToInt32() - 1, vectorL);
TMatrix m = Utilites.MatrixLToTMatrix(matrixL); TMatrix m = Utilites.MatrixLToTMatrix(matrixL);
//MatrixL<TNumber> vectorL = Utilites.TMatrixToMatrixL(tmp2);
result = Entry.Create(m.ToTerms()); result = Entry.Create(m.ToTerms());
return true; return true;
} }

View File

@@ -166,12 +166,8 @@ namespace MatrixExtensions
for (int j = 0; j < r; j++) for (int j = 0; j < r; j++)
{ {
//src[j].Insert(idxC, col[i]); //src[j].Insert(idxC, col[i]);
src[j][idxC] = col[i]; if (j >= n) continue;
if (col.Count < r) src[j][idxC] = col[i];
{
//src[j].Insert(idxC, init);
src[j][idxC] = col[i];
}
} }
} }
} }