public void addEquation(LinearEquation e) { if (this.listOfEquations.Count == 0) { this.width = e.Array.Length; } if (e.Array.Length != this.width) { throw new Exception("Invalid equation added, wrong dimensions!"); } this.listOfEquations.Add(e); }
public LinearEquation setEquation(int index, LinearEquation e) { return(listOfEquations[index] = e); }
public void removeEquation(LinearEquation e) { this.listOfEquations.Remove(e); }