Source

NBody / NBody.DomainModel / Performance / ForwardEulerNativeVectorIntegratorPerformanceEstimator.cs

Full commit
// Copyright (c) Ade Miller.  All Rights Reserved.
// This code released under the terms of the
// Microsoft Public License (MS-PL, http://opensource.org/licenses/ms-pl.html.)

namespace NBody.DomainModel.Performance
{
	public class ForwardEulerNativeVectorIntegratorPerformanceEstimator : IEstimatePerformance
	{
		public double Estimate(int size)
		{
			return (size <= 0) ? 0.0 : (size * size * 20.0);
		}
	}
}