Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6216261
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:12:14+00:00 2026-05-24T07:12:14+00:00

How can I improve the efficiency of standard matrix multiplication algorithm? The main operation

  • 0

How can I improve the efficiency of standard matrix multiplication algorithm?

The main operation involved in this approach is: C[i][j]+=A[i][p]*B[p][j]

What can be done to improve the efficiency of the algorithm?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T07:12:16+00:00Added an answer on May 24, 2026 at 7:12 am

    You might want to have a look at using a BLAS (Basic Linear Algebra Subroutine) library, specifically Intel offer their MKL here, AMD have their ACML here and there’s also the (opensource) Goto BLAS here.

    The (dense) matrix-matrix multiply kernel will be a ?GEMM call, where the ? indicates the floating point type. For example DGEMM will call the double routine.

    Unless you’re extremely confident you know what you’re doing with low-level optimisations, these libraries will probably offer better performance than something you can code by hand.

    If you do want to have a go at coding this yourself then you may want to consider the following:

    1. Use “vector” instructions. SSE, SSE2..4 instructions are widely supported, some newer CPU‘s will also support AVX instructions.
    2. Nested loop unrolling to maximise the ratio of floating point operations to load/store operations.
    3. Block-wise algorithms to ensure effective cache use.
    4. Multi-threading.

    This reference might give you an idea of the current state of things:

    High-performance implementation of the level-3 BLAS – K Goto.

    Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I improve this username/password checking? [AcceptVerbs(HttpVerbs.Post)] public ActionResult Login(FormCollection collection) { var
How can I improve this code? What has made this long winded is the
In java, one can make use of the generic LinkedList to improve the efficiency
I read on MSDN that to improve scripting efficiency, you can use self to
I am interested in seeing if I can improve the way we use NUnit
I have an idea of how I can improve the performance with dynamic code
I'm looking for any way that I can improve the selector performance of a
How can I improve the look and feel of my Linux desktop to suit
I wonder if anyone can help improve my understanding of JOINs in SQL. [If
What are some things I can do to improve query performance of an oracle

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.