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 8606247
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T03:02:37+00:00 2026-06-12T03:02:37+00:00

If I use scipy.linalg.solve (which I believe calls LAPACK’s gesv function) on a ~12000

  • 0

If I use scipy.linalg.solve (which I believe calls LAPACK’s gesv function) on a ~12000 unknown problem (with a ~12000-square, dense, non-symmetrical matrix) on my workstation, I get a good answer in 10-15 minutes.

Just to probe the limits of what’s possible (note I don’t say “useful”), I doubled the resolution of my underlying problem, which leads to needing to solve for ~50000 unknowns. While this would technically run on my workstation once I’d added some more 10s of GBytes of swap, it seemed more prudent to use some HW with adequate RAM, and so I kicked it off on an AWS EC2 High-Memory Quadruple Extra Large… where it has been grinding away for the last 14 hours (hey, spot instances are cheap) and it’s impossible to tell how far through it is.

Unfortunately, I’ve no idea what the time complexity of the solvers involved is (my google-fu failed me on this one). If it’s O(N^2) then I’d have expected it to be done after around 4 hours; if it’s O(N^3) then maybe it’ll be done in 16 hours. Of course that’s interpreting N as the number of unknowns – which has quadrupled – the number of elements in the matrix has increased by a factor of 16!

And advice which will help me determine whether this has any chance of completing in my (project’s) lifetime or not gratefully received!

Other info:

Sparse matrices aren’t of interest here (my matrix is dense, and in any case scipy’s don’t work with more than 2**31 non-zero elements even on 64-bit).

I’m using Debian/Squeeze’s scipy on the workstation, Ubuntu 12.04 on EC2. Both 64-bit obviously.

  • 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-06-12T03:02:37+00:00Added an answer on June 12, 2026 at 3:02 am

    The time complexity of DGESV for an NxN matrix is O(N^3). See Table 3.13 here:
    http://www.netlib.org/lapack/lug/node71.html

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

Sidebar

Related Questions

Trying to use scipy's linalg.eig to solve a generalized eigenvalue problem. I then check
I am trying to use SciPy to solve a very simple equation (Kepler's equation)
I want to use the newton function loaded as from scipy.optimize import newton in
I'm trying to use scikit.learn which needs numpy/scipy arrays for input. The featureset generated
All - I am trying to use SciPy's signal.lfilter function to filter a vector
I use logistic regression with scipy.optimize.fmin_bfgs for minimizing the cost function. The cost function
I'm trying to use scipy.leastsq() as a method of finding a best fit point
So basically, I use the Python module scipy-cluster to plot a lot of data
Use Case Show a photo uploaded by the user in a square box with
I am trying to use scipy and numpy to perform matrix addition and multiplication.

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.