/// <summary>
 /// Build an instance with all values and derivatives set to 0.
 /// </summary>
 /// <param name="compiler">compiler to use for computation</param>
 private DerivativeStructure(DSCompiler compiler)
 {
     this.compiler = compiler;
     this.data     = new double[compiler.getSize()];
 }