F# Math - Using matrices for graph algorithms(tomasp.net)

submitted by tomasptomasp(299) 6 months, 17 days ago

This article introduces the matrix type available in F# PowerPack. It discusses how to create matrices, manipulate matrices using indexing and slices and how to use built-in functions for working with them. As a running example, we use matrix to represent a graph using an adjacency matrix.

2 comments |category: |Views: 36

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by dpetersondpeterson(4397) 6 months, 17 days ago 0

Very powerful stuff, where was this in math class? ;-)

Reply

posted by NoldorinNoldorin(829) replied to dpetersondpeterson(4397), 6 months, 15 days ago 0

It's generally only considered useful for the mathematicians per se. ;-) I did some work involving adjacency matrices and specifically spectral graph theory in my degree, but it was quite unusual even in a physics degree. It can get pretty darn tricky, I'll tell you that much!

Good article anyway, I agree. The F# PowerPack is hugely useful.

Reply

information Login or create an account to comment on this story