/// <summary> /// The constructor initializes the parameters of <see cref="Kpz" />, see: /// <see cref="GridWidth" />, <see cref="GridHeight" />, /// <see cref="_probabilityP" />, <see cref="_probabilityQ" />, /// <see cref="StateLogger" />. /// </summary> public Kpz ( int newGridWidth, int newGridHeight, double probabilityP, double probabilityQ, bool enableStateLogger, KpzTarget target ) { Grid = new KpzNode[newGridWidth, newGridHeight]; _probabilityP = probabilityP; _probabilityQ = probabilityQ; _enableStateLogger = enableStateLogger; if (_enableStateLogger) { StateLogger = new KpzStateLogger(); } _kpzTarget = target; }
public static bool HastlayerPlainAlgorithm(this KpzTarget target) => target == KpzTarget.Fpga || target == KpzTarget.FpgaSimulation;
public static bool HastlayerOnFpga(this KpzTarget target) => target == KpzTarget.Fpga || target == KpzTarget.FpgaParallelized || target == KpzTarget.PrngTest;
public static bool HastlayerParallelizedAlgorithm(this KpzTarget target) => target == KpzTarget.FpgaParallelized || target == KpzTarget.FpgaSimulationParallelized;
public static bool HastlayerSimulation(this KpzTarget target) => target == KpzTarget.FpgaSimulation || target == KpzTarget.FpgaSimulationParallelized;