Quintiq file version 2.0 #parent: #root Method ConvertNegativeToZeroInMatrix ( structured[Real] newvalues, output structured[Real] convertedvalues_o ) id:Method_ApplicationLibMacroPlanner_ConvertNegativeToZeroInMatrix { #keys: '[112884.0.422676847]' Body: [* // Convert negative number to zero when editing matrix convertedvalues_o.Flush(); traverse( newvalues, Elements, e ) { value := e; if( value < 0 ) { value := 0.0; } convertedvalues_o.Add( value ); } *] }