필터 지우기
필터 지우기

How to efficiently use sparse function for assembling huge matrices

조회 수: 1 (최근 30일)
Ahmad Gad
Ahmad Gad 2017년 11월 19일
편집: Stephen23 2017년 11월 20일
Hello, I am having a trouble obtaining the stiffness matrix for a mechanical system I am solving using Mesh-Free method. The global stiffness matrix has a size of about (N x N = 100000 x 100000). I am assembling it using a sparse() function such that:
K = sparse(I,J,k,N,N)
where K is the global matrix, I,J,k are very long vectors (about 7.4943e+9 x 1). I am always getting the error message
Out of memory. Type HELP MEMORY for your options.
When I reduce the size of the problem, it works but takes very long time. Is there a more efficient and faster way to use the sparse function or to perform its work?
  댓글 수: 1
Walter Roberson
Walter Roberson 2017년 11월 19일
How much memory do you have? Those arrays appear to be a bit over 8 Gigabytes each.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Sparse Matrices에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by