From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <3667cc2e2696002@u8455.bs.ptb.de> Date: Fri, 4 Dec 1998 12:42:42 +1 From: Thomas Bruns Subject: Optimizing CRS-Matrix routines Hi, recently I modified the code of a FEM-Application due to the information on loop otimization from Mr. Goto, and it was a real improvement. But those optimization base on fixed loop-boundaries. How can I optimize code as it is used in sparse matrix applications where the index of the non-zero-elements is a an array of it`s own like: --------------------------- double vector[MatrixDimension]; double vector[MatrixDimension]; double matrix[NumberOfNonZeroElements]; /* only nze of matrix */ int matrix_idx[NumberOfNonZeroElements]; /* col_idxt */ int matrix_ptr[MatrixDimension+1]; /* start of row */ for (row=0; row