private static CudaParticle CreateParticle(StateProxy proxy)
        {
            var particle = new CudaParticle(proxy);

            particle.Init();
            return(particle);
        }
 private static CudaParticle CreateParticle(StateProxy proxy)
 {
     var particle = new CudaParticle(proxy);
     particle.Init();
     return particle;
 }
 private List<IParticle> PrepareParticles(PsoParameters psoParameters, IParticle[] proxyParticleServices, CudaParticle cudaParticle)
 {
     var particles = CreateParticles(psoParameters,_function);
     if (proxyParticleServices != null)
     {
         particles.AddRange(proxyParticleServices);
     }
     if(cudaParticle != null)
     {
         particles.Add(cudaParticle);
     }
     return particles;
 }