O'Reilly logo

Microsoft® Visual Basic® .NET Programmer's Cookbook by Matthew MacDonald

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required