This example demonstrates computing the dot product of two vectors.
See Dot_product for more information.
The example computes a dot product (std::transform_reduce
) of a couple of vectors filled randomly by floating numbers (std::generate
).
The output of the example is the dot product of the couple of vectors.
For the most up-to-date system requirements, see the release notes.
Read Getting Started with Parallel STL for general instructions on setting up and using Parallel STL.
Use the Makefile to build the example on the command line.
Use the msvs/dot_product.sln project file to build the example in the Microsoft* Visual Studio* IDE (Windows* systems only).
Intel and the Intel logo are trademarks of Intel Corporation in the U.S. and/or other countries.
* Other names and brands may be claimed as the property of others.
© 2017-2019, Intel Corporation