I am creating a new C# List (List). Is there a way, other than to do a loop over the list, to initialize all the starting values to 0?
List
One possibility is to use Enumerable.Range:
int capacity; var list = Enumerable.Range(0, capacity).Select(i => 0d).ToList();
Another is:
int capacity; var list = new List(new double[capacity]);