<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: help me . in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/help-me/m-p/974215#M16959</link>
    <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Thank you for your questions.&lt;BR /&gt;In order to generate 500 Gaussian vectors it is enough to create random stream one time only. Random stream is initialized by identificator of a basic random number generator and seed (number or array of numbers). After initialization of the random stream you can generate as much random number vectors of required distribution as you want. Before termination of your program you need to free resources allocated for random stream.&lt;BR /&gt;For your convenience piece of code below demonstrates generation of 551 vectors of 1000 Gaussian random numbers.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;....&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt; int i;&lt;BR /&gt; float r[1000];&lt;BR /&gt; VSLStreamStatePtr stream;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt; /* Initialization of the stream */&lt;BR /&gt; vslNewStream( &amp;amp;stream, VSL_BRNG_MCG31, 7777777 );&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;/* Generation of 551 random vectors of 1000 normally distributed random numbers */&lt;BR /&gt; for ( i = 0; i &amp;lt; 551; i++ )&lt;BR /&gt; {&lt;BR /&gt; /* Generation of array of 1000 normally distributed random numbers */ &lt;BR /&gt; vsRngGaussian( 0, stream, 1000, r, 0.0f, 1.0f );&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt; / * Do other stuff */&lt;BR /&gt; }&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt; ....&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt; /* Deinitialization */&lt;BR /&gt; vslDeleteStream( &amp;amp;stream );&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;....&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;You can find detailed information about conception of random stream, its state and properties in vsl notes,&lt;/FONT&gt;&lt;A href="http://www.intel.com/software/products/mkl/docs/vslnotes.pdf" target="_blank"&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;A href="http://www.intel.com/software/products/mkl/docs/vslnotes.pdf" target="_blank"&gt;http://www.intel.com/software/products/mkl/docs/vslnotes.pdf&lt;/A&gt;&lt;FONT size="2"&gt;.&lt;BR /&gt;Description of various distribution generators, basic random number generators and methods of their application is also available there. &lt;/FONT&gt;&lt;FONT size="2"&gt;VSL performance data is contained at &lt;/FONT&gt;&lt;A href="http://www.intel.com/software/products/mkl/data/vsl/vsl_performance_data.htm" target="_blank"&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;A href="http://www.intel.com/software/products/mkl/data/vsl/vsl_performance_data.htm" target="_blank"&gt;http://www.intel.com/software/products/mkl/data/vsl/vsl_performance_data.htm&lt;/A&gt;&lt;FONT size="2"&gt;.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Thanks,&lt;BR /&gt;Andrey&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Sep 2005 15:43:14 GMT</pubDate>
    <dc:creator>Andrey_N_Intel</dc:creator>
    <dc:date>2005-09-23T15:43:14Z</dc:date>
    <item>
      <title>help me .</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/help-me/m-p/974214#M16958</link>
      <description>hi,everybody.&lt;BR /&gt;&lt;BR /&gt;My English writing is poor since I am not an American ( reading is good:).&lt;BR /&gt;&lt;BR /&gt;I want to do a simulation including 500 loops.that means I must generate random normal distribution vectors for 500 times.I know myself can generate them by calling vslnewstream subroutine for 500 times and giving 500 random seeds. But maybe this isn't what I want.&lt;BR /&gt;&lt;BR /&gt;I used VNI's imsl library before and only one random seed is needed in spite of how many distribution vectors I generate.if someone ask me : what is your program's random seed? ,I will tell him the number.&lt;BR /&gt;&lt;BR /&gt;It is wrong to tell him more than one random seed.can I get 500 distribution vectors from one vsl stream? and I want to know : what is " stream state" ?&lt;BR /&gt;&lt;BR /&gt;thanks.</description>
      <pubDate>Wed, 21 Sep 2005 22:58:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/help-me/m-p/974214#M16958</guid>
      <dc:creator>linux_l4</dc:creator>
      <dc:date>2005-09-21T22:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: help me .</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/help-me/m-p/974215#M16959</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Thank you for your questions.&lt;BR /&gt;In order to generate 500 Gaussian vectors it is enough to create random stream one time only. Random stream is initialized by identificator of a basic random number generator and seed (number or array of numbers). After initialization of the random stream you can generate as much random number vectors of required distribution as you want. Before termination of your program you need to free resources allocated for random stream.&lt;BR /&gt;For your convenience piece of code below demonstrates generation of 551 vectors of 1000 Gaussian random numbers.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;....&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt; int i;&lt;BR /&gt; float r[1000];&lt;BR /&gt; VSLStreamStatePtr stream;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt; /* Initialization of the stream */&lt;BR /&gt; vslNewStream( &amp;amp;stream, VSL_BRNG_MCG31, 7777777 );&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;/* Generation of 551 random vectors of 1000 normally distributed random numbers */&lt;BR /&gt; for ( i = 0; i &amp;lt; 551; i++ )&lt;BR /&gt; {&lt;BR /&gt; /* Generation of array of 1000 normally distributed random numbers */ &lt;BR /&gt; vsRngGaussian( 0, stream, 1000, r, 0.0f, 1.0f );&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt; / * Do other stuff */&lt;BR /&gt; }&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt; ....&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt; /* Deinitialization */&lt;BR /&gt; vslDeleteStream( &amp;amp;stream );&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;....&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;You can find detailed information about conception of random stream, its state and properties in vsl notes,&lt;/FONT&gt;&lt;A href="http://www.intel.com/software/products/mkl/docs/vslnotes.pdf" target="_blank"&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;A href="http://www.intel.com/software/products/mkl/docs/vslnotes.pdf" target="_blank"&gt;http://www.intel.com/software/products/mkl/docs/vslnotes.pdf&lt;/A&gt;&lt;FONT size="2"&gt;.&lt;BR /&gt;Description of various distribution generators, basic random number generators and methods of their application is also available there. &lt;/FONT&gt;&lt;FONT size="2"&gt;VSL performance data is contained at &lt;/FONT&gt;&lt;A href="http://www.intel.com/software/products/mkl/data/vsl/vsl_performance_data.htm" target="_blank"&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;A href="http://www.intel.com/software/products/mkl/data/vsl/vsl_performance_data.htm" target="_blank"&gt;http://www.intel.com/software/products/mkl/data/vsl/vsl_performance_data.htm&lt;/A&gt;&lt;FONT size="2"&gt;.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Thanks,&lt;BR /&gt;Andrey&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2005 15:43:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/help-me/m-p/974215#M16959</guid>
      <dc:creator>Andrey_N_Intel</dc:creator>
      <dc:date>2005-09-23T15:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: help me .</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/help-me/m-p/974216#M16960</link>
      <description>thank you Andrey!&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Jun 2008 05:24:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/help-me/m-p/974216#M16960</guid>
      <dc:creator>linux_l4</dc:creator>
      <dc:date>2008-06-10T05:24:52Z</dc:date>
    </item>
  </channel>
</rss>

