• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Digital Signal Processors (DSP) » C6000 Multicore DSP » Keystone Multicore Forum (C66, 66A, AM5) » DSPlib - Matrix mul
Share
C6000 Multicore DSP
  • Forums
  • Announcements
Options
  • Subscribe via RSS
Resources
  • KeyStone Multicore DSP + ARM Product Folder
  • Keystone II MCSDK Download
  • Keystone II MCSDK User's Guide

  • KeyStone Multicore DSP Product Folder
  • Keystone I BIOS-MCSDK Download
  • Keystone I BIOS-MCSDK User's Guide

  • Keystone I & II Training

  • C6000 Multicore DSP Product Folder
  • C6000 Multicore Devices

  • DESKTOP-LINUX-SDK 01_00_00_07 Download
  • MCSDK-VIDEO 02_01_00_08 Download

  • C6472 and C6474 Online Training
  • Check out
    Multicore Mix blog
    • $core_v2_blog.Current.Name

      Wireless base stations – why monitor the backup battery?

      Posted 4 days ago
      by Raj Radjassamy
      2G, 3G and 4G LTE base stations use lead-acid batteries as the...
    • $core_v2_blog.Current.Name

      Innovation through smart integration – achieving lower power, high performing small cells

      Posted 5 days ago
      by Debbie Greenstreet
      Wireless small cell market activity is accelerating lately and...
    • $core_v2_blog.Current.Name

      Four for Friday: What’s up at the Small Cells World Summit?

      Posted 18 days ago
      by Debbie Greenstreet
      If you are a follower of the wireless technology, you have probably...

    Forums

    DSPlib - Matrix mul

    This question is not answered
    Jean-Baptiste Theou
    Posted by Jean-Baptiste Theou
    on Apr 05 2012 20:28 PM
    Intellectual270 points

    Hi,

     

    For my project, I have to make lot of matrix operation (mul, transpose, inverse). Concerning matrix mul, rather than develop my own function, I trying to use DSPlib function (DSPF_sp_mat_mul). But this function work only with : "All r1, c1, c2 are assumed to be multiple of 2 and >=2".

     

    I need to make some (4x3 * 3x1) or (3x3 * 3x3) matrix mul for exemple. Can I use some optimize functions from DSPlib ? Or I need to develop my own function ?

    I work on 6678 DSP.

    Thanking you in advance 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Ivan Krechetov
      Posted by Ivan Krechetov
      on Apr 06 2012 15:18 PM
      Prodigy210 points

      you need to modify original code of DSPF_sp_mat_mul (use it for example).

      1. make decomposition of matrix-multiply (3x3) A*B = a01*b01+a02*b02+a03*b03,........ , then look for elements of matrix A and B, which are being used at same time in different operands (main focus - one load from memory == few computations, due to limitations of block .D)

         for example: max. performance of complex dotp is about 1.03 cycles per 1 complex multiply

                                 max. performance of complex mat_mul is about 0.58 cycles per 1 complex multiply

      2. in the loop perform computations for your sub-matrix

      i suggest it gonna take (theory) about 3-4 dsp cycles per one matrix mul 3x3 x 3x3 (3*3*3=27 multiplications, 18 additions)

      DSP can perform 8 float mults and 8 float adds  => 27/8 = 3.375

      Ivan

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Jean-Baptiste Theou
      Posted by Jean-Baptiste Theou
      on Apr 08 2012 19:01 PM
      Intellectual270 points

      Ivan,

       

      Thank you for your answer.

       

      So I can't use some DSPlib, I must write my own code ?

       

      I am going to looking for DSPF_sp_mat_mul source code.

       

      Jean-Baptiste

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    TI E2E™ Community
    • Support Forums
    • Blogs
    • Videos
    • Groups
    • Site Support & Feedback
    • Settings
    TI E2E™ Community Groups
    • TI University Program
    • Make the Switch
    • Microcontroller Projects
    • Motor Drive & Control
    Other Communities
    • Deyisupport
    • Designsomething.org
    • beagleboard.org
    • TI on Element 14
    • TI on TechXchangeSM
    Other Technical & Support Resources
    • WEBENCH® Design Center
    • Product Information Centers
    • Technical Documents
    • TI Design Network
    • TI Technical Articles
    • TI Training

    All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

    Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

    Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
    TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

    TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
    embedded processors, along with software, tools and the industry’s largest sales/support staff.

    © Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
    Trademarks | Privacy Policy | Terms of Use