SlideServe
Menu
Préférences
© SlideServe · v2026

Sparse Matrix Optimization Steps & SupNorm Computation Comparison

reginaldw avatar
12 diapositives · 199 Views · Jan 05, 2020

The process involves modifying matrix dimensions in Fortran to obtain solution vectors, loading files into Matlab for data retrieval, constructing sparse matrices and computing SupNorm values for comparison. The study demonstrates the impact of dimension changes on accuracy. The methodology and results are detailed, highlighting key steps and findings for implementing sparse matrices effectively across different dimensions in Fortran and Matlab.

Sparse Matrix Optimization Steps & SupNorm Computation Comparison - slide 1
01 / 12Sparse Matrix Optimization Steps & SupNorm Computation Comparison
1 / 17

Télécharger la présentation

Sparse Matrix Optimization Steps & SupNorm Computation Comparison
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  1. Sparse matrix

  2. fort.97 <NOTE> fort.97 record the RHS row index RHS <NOTE> fort.96 record the solution vector row index Solution vector

  3. Take dimension by 9 fort.98 There are 3 nonzero element in row1There are 4 nonzero element in row2 There are 3 nonzero element in row3 … … … There are 3 nonzero element in row10 10 exceed the dimension => end of matrix row index The first nonzero element’s index <NOTE> fort.98 help us to know how many nonzero element in each row

  4. The row index The column index The entity of corresponding index <NOTE> fort.99 actually record the matrix

  5. procedure • Step I : Modify parameter n to change the dimension of matrix A • Step II : Execute the programming in fortran to get the solution vector • Step III : Load fort.96, fort.97, fort.99 into matlab to get data we need • Step IV : Construct a sparse matrix then get solution vector • Step V : Compute the SupNorm of solution vector in fortran and in matlab

  6. Step I : set the dimension of sparse matrix lupara.nml In this experiment We use n =128, 256, 512, 1024 consecutively dimension (n-1)^2 <NOTE> we use lipara.nml to change the dimension of our matrix

  7. Step II : make project and execute In execution , showing some information to us

  8. Step III : load the file into matlab [1] Load fort.96 and fort.97, then get the RHS and solution vector Solution vector RHS <NOTE> we ignore the first column, because it is index

  9. Step III : load the file into matlab [2] Load fort.99, then get the parameter I, J, S

  10. Step IV : Construct a sparse matrix then get solution vector Construct sparse A Do solute

  11. Step IV : Compute the SupNorm of solution vector in fortran and in matlab Compute the SupNorm

  12. N = 128 SupNorm = 8.049116928532385e-16 N = 256 SupNorm = 6.383782391594650e-15 N = 512 SupNorm = 1.434963259328015e-14 N = 1024 SupNorm = 1.975294927625271e-13 When n increase 2 times, dimension increase 4 times roughly. ConclusionWhen n become double , we lose one point accuracy