public void SimpeValue2() { var vactor = new string[] {"1 + 2.0 - 0.3"}; var expr = new LoadsVector(vactor); var result = expr.ToVector(); Assert.AreEqual(2.7d, result[0]); }
private LoadsVector CreateLoadsVector() { var vector = new LoadsVector(matrix.SelectMany(x => x).ToArray()); return vector; }
private void SetGridLoadsVectorValues(LoadsVector vector, int colCount) { for (int i = 0; i < colCount; i++) { dataGridView1.Rows[0].Cells[i].Value = vector.Vector == null ? "0" : string.IsNullOrEmpty(vector.Vector[i]) ? "0" : vector.Vector[i]; } }