Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

Thread Subject:
memory blowout in sparse matrices

Subject: memory blowout in sparse matrices

From: Rich

Date: 12 Feb, 2009 16:03:02

Message: 1 of 1

Hi all,
I'm working with some sparse matrices, and am getting large memory usage depending on the row ordering of the matrix.

I'm aware that matlab has memory differences depending on whether it a sparse matrix is transposed or not, but this is a different matter.

I'm simply getting about a n factor increase in memory usage when i flip upside down (flipud) a sparse matrix, where n is the number of rows in the sparse matrix.

eg>from 'whos'
  Name Size Bytes Class Attributes

  tmp 1000x22842 123628 double sparse
  tmp1 1000x22842 157485856 double sparse

where tmp1=flipud(tmp)

Is there a reason for this? If I understand the reason, it might help cicurmvent the issue arising again.


Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us