Work with Matrixes

Problem

You want to use matrix calculations (matrix multiplications, additions, normalizations, and so on).

Solution

Download a free component, such as Lutz Roeder’s Mapack.

Discussion

The .NET Framework does not include any built-in support for matrix manipulation, aside from a Matrix class in the System.Drawing.Drawing2D namespace, which is intended for graphical operations and only supports a 3-by-3 matrix. Writing your own matrix code from scratch would be quite a chore, but fortunately there are prebuilt matrix components available for free, like Mapack. (See http://www.aisto.com/roeder or the Web site for this book.) Mapack is a fully featured library for matrix manipulation, with complete C# source code. You can use it to ...

Get Microsoft® Visual Basic® .NET Programmer's Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.