Matrix Multiplication Function

Category:
Office/VBA
Type:
Snippets
Difficulty:
Intermediate
Author:
Anonymous

Version Compatibility: Visual Basic.NET

More information:
Function accepts n arrays (matrices) for multiplication. It cycles through the parameter array multiplying each matrix, checks that the matrices are conformable and then redimensions the product matrix before running through the multiplication routine.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: