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

  • Home
  • SEARCH
  • 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 8564761
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:16:17+00:00 2026-06-11T17:16:17+00:00

I am looking for a library for dealing with sparse matrices in fortran 90/95.

  • 0

I am looking for a library for dealing with sparse matrices in fortran 90/95. I only need very basic operations like matrix-vector multiplication. What do you suggest I use?

I have searched around and an extension(?) to BLAS called “sparse blas”, documented in chapter 3 of the blast technical forum specification:

http://www.netlib.org/blas/blast-forum/,

seems ideal. According to that document, there should be a fortran 95 interface to the library. However, I haven’t been able to find an actual implementation of this specification anywhere that I was able to download. I am kind of getting the impression that the fortran 95 sparse blas specification isn’t really implemented anywhere? Not as open source anyway.

I also found a library called sparsekit:

http://people.sc.fsu.edu/~jburkardt/f_src/sparsekit/sparsekit.html

Anyone got any experience with either one of these two, or any other sparse matrix library for fortran 90/95? I would like advice on which one to use, and also where to get it (in the case of sparsekit the source code is available through the above link). Is there anything like a “standard” for sparse matrices, like BLAS is for dense ones?

Cheers,

Arne

  • 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-06-11T17:16:18+00:00Added an answer on June 11, 2026 at 5:16 pm

    OK, I’ll partially answer my own questions:

    Where to find a full f95 implementation of Sparse BLAS was provided by @alexurba above:

    http://www.netlib.org/toms/818

    That was it! This script creates all the source code in the folder that you run it (I have never seen software provided in this manner before).

    To make the INSTALL script work I needed to do some changes: The install instructions tell you to edit the INSTALL script and choose the appropriate “arch”. Your choices are: AIX, ALPHA, CRAY, HP, NAG, SGI and SUN. Neither of these seemed appropriate to me, as I am using linux and the only fortran compiler I have on this computer is gfortran. I didn’t quite understand the purpose of this option, but what I did that worked was the following:

    1) In INSTALL, make up a new “arch” I called GNU by setting the variable SB_ARCH=’GNU’. 2) In SOFTWARE/Makefile change FC = f90 to FC = gfortran, 3) In TESTER/ copy the file Makefile.NAG to Makefile.GNU, change FC = f90 to FC = gfortran, and change all instances of the the word ‘NAG’ to ‘GNU’. (You’ll probably also want to change the FFLAGS option in the Makefiles.)

    After this I ran INSTALL, and then TESTER/test_all, and the tests spit out “0.000…” as errors, which I assume to mean everything is working.

    I must say I found finding this source code unusually difficult. Luckily this thread comes up quite high on google when searching “fortran 90 sparse matrix library” now.

    My final solution: Ironically, after finally finding a full implementation of Sparse BLAS I have decided that for my problem it is better to use a more direct approach, since all I’ll probably need is matrix-vector multiplication: Figure out what sparse matrix representation to use (Compressed Sparse Row (CSR) seems to be appropriate for my problem), dig out the corresponding matrix-vector multiplication routine from the Sparse BLAS source code, see how it wants it input, and just use that directly in my code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking for a library that work exactly like socket.io(node.js) but I need it
I'm looking for a .NET (much preferably open source in C#) library for dealing
Looking for a library or a fairly cross platform method to get CPU utilization,
I was looking for some library that make easier the manage of the box
I'm looking for a library/framework to generate/parse TXT files from/into Java objects. I'm thinking
I am looking for a library that allows me to read an Excel document
I am looking for a library or database that can provide guesses about whether
I'm looking for a library that will disassemble x86 code into some sort of
I'm looking for a library that could be used to manipulate audio files. Essentially
I'm looking for a library that will do some pre-validation functions on my input

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.