Loading files
using System.Threading.Tasks;
using Hast.Layer;
using Hast.Samples.SampleAssembly;
namespace Hast.Samples.Consumer.SampleRunners
{
internal static class MonteCarloAlgorithmSampleRunner
{
public static void Configure(HardwareGenerationConfiguration configuration)
{
configuration.HardwareEntryPointMemberNamePrefixes.Add("Hast.Samples.SampleAssembly.MonteCarloAlgorithm");
}
public static async Task Run(IHastlayer hastlayer, IHardwareRepresentation hardwareRepresentation)
{
var monteCarloAlgorithm = await hastlayer
.GenerateProxy(hardwareRepresentation, new MonteCarloAlgorithm());
var monteCarloResult = monteCarloAlgorithm.CalculateTorusSectionValues(5000000);
}
}
}
f921c9011This file is pinned to the selected release. Download the original to open it in your design tool.