<?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 Question about VDRNGUNIFORM in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Question-about-VDRNGUNIFORM/m-p/997860#M18365</link>
    <description>&lt;P&gt;Hi, there,&lt;/P&gt;

&lt;P&gt;I am trying to generate 100 3-dimensional quasi-random vectors in the (2,3)^3 space by following the instruction on page 32 of "Intel Math Kernel Library Vector Statistical Library Notes." &lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;The illustrative example it provides looks like the following:&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;include &amp;lt;stdio.h&amp;gt;&amp;nbsp;&lt;BR /&gt;
	include “mkl.h”&amp;nbsp;&lt;BR /&gt;
	float mat[100][3]; /* buffer for quasi-random numbers */&amp;nbsp;&lt;BR /&gt;
	VSLStreamStatePtr stream;&amp;nbsp;&lt;BR /&gt;
	/* Initializing */&amp;nbsp;&lt;BR /&gt;
	vslNewStream( &amp;amp;stream, VSL_BRNG_SOBOL, 3 );&amp;nbsp;&lt;BR /&gt;
	/* Generating */&amp;nbsp;&lt;BR /&gt;
	vsRngUniform( VSL_METHOD_SUNIFORM_STD, stream, 100*3, (float*)mat, 2.0f, 3.0f );&amp;nbsp;&lt;BR /&gt;
	/* Deleting the streams */&amp;nbsp;&lt;BR /&gt;
	vslDeleteStream( &amp;amp;stream );&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;My question is: &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.0080003738403px; line-height: 15.609601020813px;"&gt;To my knowledge, the random number generator generates a series of numbers in sequential and puts them into the matrix in &lt;STRONG&gt;column-major order&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;Then, why we generate the 100 3-dimensional vectors by specifying it as mat[100][3] not the other way around like mat[3][100].&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;R.&lt;/P&gt;</description>
    <pubDate>Mon, 11 May 2015 22:25:41 GMT</pubDate>
    <dc:creator>li_r_</dc:creator>
    <dc:date>2015-05-11T22:25:41Z</dc:date>
    <item>
      <title>Question about VDRNGUNIFORM</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Question-about-VDRNGUNIFORM/m-p/997860#M18365</link>
      <description>&lt;P&gt;Hi, there,&lt;/P&gt;

&lt;P&gt;I am trying to generate 100 3-dimensional quasi-random vectors in the (2,3)^3 space by following the instruction on page 32 of "Intel Math Kernel Library Vector Statistical Library Notes." &lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;The illustrative example it provides looks like the following:&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;include &amp;lt;stdio.h&amp;gt;&amp;nbsp;&lt;BR /&gt;
	include “mkl.h”&amp;nbsp;&lt;BR /&gt;
	float mat[100][3]; /* buffer for quasi-random numbers */&amp;nbsp;&lt;BR /&gt;
	VSLStreamStatePtr stream;&amp;nbsp;&lt;BR /&gt;
	/* Initializing */&amp;nbsp;&lt;BR /&gt;
	vslNewStream( &amp;amp;stream, VSL_BRNG_SOBOL, 3 );&amp;nbsp;&lt;BR /&gt;
	/* Generating */&amp;nbsp;&lt;BR /&gt;
	vsRngUniform( VSL_METHOD_SUNIFORM_STD, stream, 100*3, (float*)mat, 2.0f, 3.0f );&amp;nbsp;&lt;BR /&gt;
	/* Deleting the streams */&amp;nbsp;&lt;BR /&gt;
	vslDeleteStream( &amp;amp;stream );&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;My question is: &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.0080003738403px; line-height: 15.609601020813px;"&gt;To my knowledge, the random number generator generates a series of numbers in sequential and puts them into the matrix in &lt;STRONG&gt;column-major order&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;Then, why we generate the 100 3-dimensional vectors by specifying it as mat[100][3] not the other way around like mat[3][100].&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;R.&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2015 22:25:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Question-about-VDRNGUNIFORM/m-p/997860#M18365</guid>
      <dc:creator>li_r_</dc:creator>
      <dc:date>2015-05-11T22:25:41Z</dc:date>
    </item>
    <item>
      <title>Hello,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Question-about-VDRNGUNIFORM/m-p/997861#M18366</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;The present version of Intel MKL Sobol Quasi-Random Number Generator returns the numbers in the order you describe above: the first 3-dim vector comes first, then the second 3-dim vector comes etc. This order is defined, in particular,&amp;nbsp;by performance aspects of the generator.&lt;/P&gt;

&lt;P&gt;Do I correctly understand that you prefer to have a different way of packing the random numbers, that is the first coordinate of the 3 dim vector comes first (for all 100 vectors), the second coordinate&amp;nbsp;comes second, etc? If my understanding is correct, can you please help me better understand reasons for which you need this order?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Andrey&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2015 09:59:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Question-about-VDRNGUNIFORM/m-p/997861#M18366</guid>
      <dc:creator>Andrey_N_Intel</dc:creator>
      <dc:date>2015-05-12T09:59:57Z</dc:date>
    </item>
  </channel>
</rss>

