<?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: vector-scalar and vectror-vector subtraction in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vector-scalar-and-vectror-vector-subtraction/m-p/1659816#M36864</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;For vector-scalar and vector-vector subtraction in MKL, use the vdSub function. This function handles element-wise subtraction for double precision vectors. For vector-scalar subtraction, subtract the scalar from each element of the vector. For vector-vector subtraction, subtract corresponding elements of the two vectors. Similar functions like vdAdd, vdMul, and vdDiv are available for addition, multiplication, and division. If you need more details, feel free to ask.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jan 2025 06:43:35 GMT</pubDate>
    <dc:creator>Avis682Holmes</dc:creator>
    <dc:date>2025-01-23T06:43:35Z</dc:date>
    <item>
      <title>vector-scalar and vectror-vector subtraction</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vector-scalar-and-vectror-vector-subtraction/m-p/1659798#M36863</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm looking for functions in MKL or other libraries that does vector-scalar and vector-vector subtraction efficiently. Elements are doubles.&lt;/P&gt;&lt;P&gt;vector-scalar:&lt;BR /&gt;[a1, a2, a3,...an] - b = [(a1 - b), (a2 - b), (a3 - b),...(an - b)]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;scalar-vector:&lt;BR /&gt;b - [a1, a2, a3,...an] = [(b - a1), (b - a2), (b - a3),...(b - an)]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;vector-vector 1:&lt;BR /&gt;[a1, a2, a3,...an] - [b1, b2, b3,...bm] = [(a1 - b1), (a1 - b2), (a1 - b3),...(a1 - bm),&lt;/P&gt;&lt;P class="lia-indent-padding-left-270px"&gt;(a2 - b1), (a2 - b2), (a2 - b3),...(a2 - bm),&lt;BR /&gt;...,&lt;BR /&gt;(an - b1), (an - b2), (an - b3),...(an - bm)]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;vector-vector 2:&lt;BR /&gt;[a1, a2, a3,...an] - [b1, b2, b3,...bm] = [(a1 - b1), (a2 - b1), (a3 - b1),...(an - b1),&lt;/P&gt;&lt;P class="lia-indent-padding-left-270px"&gt;(a1 - b2), (a2 - b2), (a3 - b2),...(an - b2),&lt;BR /&gt;...,&lt;BR /&gt;(a1 - bm), (a2 - bm), (a3 - bm),...(an - bm)]&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I am new to MKL and a bit lost in the documentation, can someone help?&lt;/P&gt;&lt;P&gt;I have also need for addition, multiplication and division, but I think if subtraction is figured out, I should know how to do the rest.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 06:01:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vector-scalar-and-vectror-vector-subtraction/m-p/1659798#M36863</guid>
      <dc:creator>MilesF</dc:creator>
      <dc:date>2025-01-23T06:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: vector-scalar and vectror-vector subtraction</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vector-scalar-and-vectror-vector-subtraction/m-p/1659816#M36864</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;For vector-scalar and vector-vector subtraction in MKL, use the vdSub function. This function handles element-wise subtraction for double precision vectors. For vector-scalar subtraction, subtract the scalar from each element of the vector. For vector-vector subtraction, subtract corresponding elements of the two vectors. Similar functions like vdAdd, vdMul, and vdDiv are available for addition, multiplication, and division. If you need more details, feel free to ask.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 06:43:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vector-scalar-and-vectror-vector-subtraction/m-p/1659816#M36864</guid>
      <dc:creator>Avis682Holmes</dc:creator>
      <dc:date>2025-01-23T06:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: vector-scalar and vectror-vector subtraction</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vector-scalar-and-vectror-vector-subtraction/m-p/1660916#M36877</link>
      <description>Hi, thanks for the answer. I am on holiday and don't have the development computer in hand. I will test and come back to you afterwards.&lt;BR /&gt;&lt;BR /&gt;BR,&lt;BR /&gt;Miles</description>
      <pubDate>Mon, 27 Jan 2025 16:09:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vector-scalar-and-vectror-vector-subtraction/m-p/1660916#M36877</guid>
      <dc:creator>MilesF</dc:creator>
      <dc:date>2025-01-27T16:09:06Z</dc:date>
    </item>
  </channel>
</rss>

