|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r83729 - in sandbox/generate/libs/generate: benchmark/mkl example example/acml example/mkl example/omp fibonacci example/omp stride initializer test
From: boeschf_at_[hidden]
Date: 2013-04-02 18:51:48
Author: boeschf
Date: 2013-04-02 18:51:48 EDT (Tue, 02 Apr 2013)
New Revision: 83729
URL: http://svn.boost.org/trac/boost/changeset/83729
Log:
Deleted some unnecessary binaries
Removed:
sandbox/generate/libs/generate/benchmark/mkl/mkl_benchmark
sandbox/generate/libs/generate/example/a.out
sandbox/generate/libs/generate/example/acml/acml_example
sandbox/generate/libs/generate/example/mkl/mkl_example
sandbox/generate/libs/generate/example/omp fibonacci/fibonacci
sandbox/generate/libs/generate/example/omp stride initializer/initializer
sandbox/generate/libs/generate/example/std_mkl_generate.cpp
sandbox/generate/libs/generate/example/std_mkl_generate_desired.cpp
sandbox/generate/libs/generate/test/a.out
Deleted: sandbox/generate/libs/generate/benchmark/mkl/mkl_benchmark
==============================================================================
Binary file. No diff available.
Deleted: sandbox/generate/libs/generate/example/a.out
==============================================================================
Binary file. No diff available.
Deleted: sandbox/generate/libs/generate/example/acml/acml_example
==============================================================================
Binary file. No diff available.
Deleted: sandbox/generate/libs/generate/example/mkl/mkl_example
==============================================================================
Binary file. No diff available.
Deleted: sandbox/generate/libs/generate/example/omp fibonacci/fibonacci
==============================================================================
Binary file. No diff available.
Deleted: sandbox/generate/libs/generate/example/omp stride initializer/initializer
==============================================================================
Binary file. No diff available.
Deleted: sandbox/generate/libs/generate/example/std_mkl_generate.cpp
==============================================================================
--- sandbox/generate/libs/generate/example/std_mkl_generate.cpp 2013-04-02 18:51:48 EDT (Tue, 02 Apr 2013)
+++ (empty file)
@@ -1,48 +0,0 @@
-// Copyright Fabian Bösch 2012
-//
-// Use, modification and distribution are subject to the
-// Boost Software License, Version 1.0.
-// (See accompanying file LICENSE_1_0.txt
-// or copy at http://www.boost.org/LICENSE_1_0.txt)
-
-#include <vector>
-#include <algorithm>
-#include <mkl.h>
-
-//[ vsl_generator
-struct vsl_generator
-{
- vsl_generator(VSLStreamStatePtr stream_) : stream(stream_) {}
-
- int operator()()
- {
- int r; // result
- // call MKL function for discrete uniform distribution: viRngUniform( const int method, VSLStreamStatePtr stream, const int n, int* r, const int a, const int b );
- // generates random numbers uniformly distributed over the interval [a, b), where a, b are the left and right bounds of the interval respectively,
- // n is the number of random values to be generated and r denotes the output vector of n random numbers.
- viRngUniform(VSL_RNG_METHOD_UNIFORM_STD, stream, 1, &r, 0, 10);
- return r;
- }
-
- VSLStreamStatePtr stream; // random stream
-};
-//]
-
-int main()
-{
-//[ main_code
- std::vector<int> variates(10,0);
-
- VSLStreamStatePtr stream; // random stream
- int seed(42); // seed value
- vslNewStream(&stream, VSL_BRNG_MT19937, seed); // initialize random stream
- vsl_generator gen(stream); // create generator
-
- std::generate(variates.begin(), variates.end(), gen); // generate 10 uniformly distributed integers in interval [0, 9]
-
- vslDeleteStream(&stream); // free resources
-//]
-
- return 0;
-}
-
Deleted: sandbox/generate/libs/generate/example/std_mkl_generate_desired.cpp
==============================================================================
--- sandbox/generate/libs/generate/example/std_mkl_generate_desired.cpp 2013-04-02 18:51:48 EDT (Tue, 02 Apr 2013)
+++ (empty file)
@@ -1,46 +0,0 @@
-// Copyright Fabian Bösch 2012
-//
-// Use, modification and distribution are subject to the
-// Boost Software License, Version 1.0.
-// (See accompanying file LICENSE_1_0.txt
-// or copy at http://www.boost.org/LICENSE_1_0.txt)
-
-#include <vector>
-#include <algorithm>
-#include <mkl.h>
-
-//[ vsl_generator2
-struct vsl_generator
-{
- vsl_generator(VSLStreamStatePtr stream_) : stream(stream_) {}
-
- template <class Iterator>
- void operator()(Iterator begin, Iterator end)
- {
- viRngUniform(VSL_RNG_METHOD_UNIFORM_STD, stream, end-begin, &(*begin), 0, 10);
- }
-
- VSLStreamStatePtr stream; // random stream
-};
-//]
-
-int main()
-{
-
-
- VSLStreamStatePtr stream; // random stream
- int seed(42); // seed value
- vslNewStream(&stream, VSL_BRNG_MT19937, seed); // initialize random stream
- vsl_generator gen(stream); // create generator
-
- //[ std_generate
- // generate 10 uniformly distributed integers
- std::vector<int> variates(10,0);
- std::generate(variates.begin(), variates.end(), gen);
- //]
-
- vslDeleteStream(&stream); // free resources
-
- return 0;
-}
-
Deleted: sandbox/generate/libs/generate/test/a.out
==============================================================================
Binary file. No diff available.
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk