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

  • Home
  • SEARCH
  • 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 6588179
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:00:53+00:00 2026-05-25T17:00:53+00:00

I am doing several matrix computations on OpenCV and I cannot understand why it

  • 0

I am doing several matrix computations on OpenCV and I cannot understand why it takes the time it takes

Operation 1 is : multiplication of a 320×1 column vector by a 390×320 matrix, then multiplication by a 72000×390 matrix. Time : ~35 ms.
Operation 1b is : 10 times the multiplication of a 32×1 column vector by a 390×32 matrix, then multiplication by a 7200×390 matrix. Time : ~35 ms

Operation 2 is: multiplication of a 320×1 column vector by a 72000×320 matrix. Time : ~30 ms.
Operation 2b is : 10 times the multiplication of a 32×1 column vector by a 7200×32 matrix. Time : ~10 ms

Basically in Operations 1 I am always using an intermediate column vector of size 390, while I skip this in Operations 2. Yet I cannot explain why the operation 2b is much faster than 2, when 1b and 1 are the same speed.

Any ideas? Thanks

  • 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-25T17:00:55+00:00Added an answer on May 25, 2026 at 5:00 pm

    Looking at the number of multiplications to be performed by each operation, I see:

    Operation 1: 390 * 320 = 124,800
    Operation 1b: 10 *390 * 32 = 124,800
    Operation 2: 72000 * 320 = 23,040,000
    Operation 2b: 10 * 7200 * 32 = 2,304,000
    

    Operation 1 and 1b require the same amount of multiplication, but Operation 2 requires 10X the multiplication of Operation 2b.

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

Sidebar

Related Questions

One of the things I'm doing includes several links on the show view. For
I have been doing active development in C# for several years now. I primarily
I've done several flash projects working as the ActionScripter with a designer doing all
I'm doing an app that will have to connect to several hosts. Originally I
For a project I'm working on, I need to be doing several simultaneous plist
I am doing several insert commands before doing SaveChanges. Is there a way to
I've recently seen several people doing things like this here on Stackoverflow: class A:
I've recently seen several people doing things like this here on Stackoverflow: class A:
I'm doing some benchmark on several string dictionaries, because I wanted to find out
I'm starting to code in openGL ES 2 after several months of doing it

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.