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

Function template copy_n

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

Function template copy_n

boost::compute::copy_n

Synopsis

// In header: <boost/compute/algorithm/copy_n.hpp>

template<typename InputIterator, typename Size, typename OutputIterator> 
  OutputIterator 
  copy_n(InputIterator first, Size count, OutputIterator result, 
         command_queue & queue = system::default_queue());

Description

Копии count элементов от first до результат.

Например, скопировать четыре значения от хоста к устройству:

// values on the host and vector on the device
float values[4] = { 1.f, 2.f, 3.f, 4.f };
boost::compute::vector<float> vec(4, context);
// copy from the host to the device
boost::compute::copy_n(values, 4, vec.begin(), queue);

См. также:

копия()


PrevUpHomeNext

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




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



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


реклама


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

Время компиляции файла: 2024-08-30 11:47:00
2025-05-19 20:21:16/0.0060892105102539/0