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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:08:16+00:00 2026-05-23T00:08:16+00:00

There is a large matrix that is used in Ax=b type problem. A is

  • 0

There is a large matrix that is used in Ax=b type problem. A is symmetric. Is there any algorithm to let us save only half of the matrix and do operation like x=A\b on it?

  • 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-23T00:08:17+00:00Added an answer on May 23, 2026 at 12:08 am

    You’ll only save half the memory, but you can do this by creating a flat version of the matrix, saving that, then unflattening it. The extra time required probably doesn’t make the saving worthwhile, mind:

    % pretend this is symettric...
    A = rand(10, 10);
    
    % store it as a flat list
    flatA = [];
    for k = 1:size(A,1)
        flatA = [flatA; A([1:k],k)];
    end
    
    save('flatA.mat', 'flatA');
    
    % undo
    N = (-1 + (1+4*2*length(flatA))^0.5)/2;
    newA = NaN(N,N); 
    cur = 1;
    for k = 1:N
        len = k;
        newA(1:len, k) = flatA(cur:cur+len-1);
        cur = cur + len;
    end
    % real A cannot have NaNs or this trick fails
    newA(isnan(newA)) = newA(isnan(newA'))';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In a large Application is there any way to distinguish user-defined classes with built-in
I'm writing code that uses a large matrix where the elements are a user
I have a large table (x) to covert to matrix (y). I used two
In my project there are large no. of FIXME / TODO which are to
Since there is a large pool of passionate developers in this community, I would
Swing newbie question... I have a system where there is a large number of
Is there a way to make sure a (large, 300K) background picture is always
Is there a faster way to rotate a large bitmap by 90 or 270
Is there an easy way to import a large .sql file of my database
Is there anything I should know before converting a large C++ program from VS2005

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.