Карта сайта Kansoftware
НОВОСТИУСЛУГИРЕШЕНИЯКОНТАКТЫ
Разработка программного обеспечения

Class template threefry_engine

Boost , Chapter 1. Boost.Compute , Reference

Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext

Class template threefry_engine

boost::compute::threefry_engine — Threefry pseudorandom number generator.

Synopsis

// In header: <boost/compute/random/threefry_engine.hpp>
template<typename T = uint_> 
class threefry_engine {
public:
  // types
  typedef T result_type;
  // construct/copy/destruct
  explicit threefry_engine(command_queue &);
  threefry_engine(const threefry_engine< T > &);
  threefry_engine< T > & operator=(const threefry_engine< T > &);
  ~threefry_engine();
  // public member functions
  template<typename OutputIterator> 
    void generate(OutputIterator, OutputIterator, OutputIterator, 
                  OutputIterator, command_queue &);
  template<typename OutputIterator> 
    void generate(OutputIterator, OutputIterator, command_queue &);
  // public data members
  static const size_t threads;
};

Description

threefry_engine public construct/copy/destruct

  1. <
    explicitthreefry_engine(command_queue&queue);
    >Создает новое<threefry_engine>и сеет его с<value>.
  2. <
    threefry_engine(constthreefry_engine<T>&other);
    >Создает новый<threefry_engine>объект в виде копии<other>.
  3. <
    threefry_engine<T>&operator=(constthreefry_engine<T>&other);
    >Копии<other>к<*this>.
  4. <
    ~threefry_engine();
    >Уничтожает<threefry_engine>объект.

threefry_engine public member functions

  1. <
    template<typenameOutputIterator>
     voidgenerate(OutputIteratorfirst_ctr,OutputIteratorlast_ctr,
                   OutputIteratorfirst_key,OutputIteratorlast_key,
                   command_queue&queue);
    >

    Генерирует случайные числа Threefry, используя как счетчик, так и ключевые значения, а затем сохраняет их в диапазоне<first_ctr>,<last_ctr>.

  2. <
    template<typenameOutputIterator>
     voidgenerate(OutputIteratorfirst_ctr,OutputIteratorlast_ctr,
                   command_queue&queue);
    >

PrevUpHomeNext

Статья Class template threefry_engine раздела Chapter 1. Boost.Compute Reference может быть полезна для разработчиков на c++ и boost.




Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.



:: Главная :: Reference ::


реклама


©KANSoftWare (разработка программного обеспечения, создание программ, создание интерактивных сайтов), 2007
Top.Mail.Ru

Время компиляции файла: 2024-08-30 11:47:00
2025-05-20 01:09:37/0.0052189826965332/1