ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   matrix arithmetic using arrays in vba (https://www.excelbanter.com/excel-programming/338496-matrix-arithmetic-using-arrays-vba.html)

Loane Sharp[_2_]

matrix arithmetic using arrays in vba
 
Hi there

Is it possible to do simple matrix arithmetic without looping through all
the individual items in an array?

I'd prefer not to use Excel's built-in functions, but this may not be
possible. If this is the only way to do it, I heard from someone that there
is a way to use Excel's built-in MMULT function to do matrix addition and
subtraction. How would I do this?

Best regards
Loane



Alan Beban[_2_]

matrix arithmetic using arrays in vba
 
Loane Sharp wrote:
Hi there

Is it possible to do simple matrix arithmetic without looping through all
the individual items in an array?

I'd prefer not to use Excel's built-in functions, but this may not be
possible. If this is the only way to do it, I heard from someone that there
is a way to use Excel's built-in MMULT function to do matrix addition and
subtraction. How would I do this?

Best regards
Loane


Do you mean VBA arrays or arrays of values in ranges on the worksheet?

Alan Beban


All times are GMT +1. The time now is 11:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com