Matrix operations

hbukac

New Member
Joined
Oct 25, 2002
Messages
1
I have a VBA code that does (in the loop) matrix addition, matrix multiplication, matrix inversion and the matrix eigenvalue problem. All matrices change in every step.
I do these operations in the Excel spreadsheet. This requires matrices to be written in and read repeatably. Even if I use two dimensional array as a range object, the calculation is very slow. Is there any way how to do matrix opertations in VBA without writing and reding them in and from the spreadsheet?
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

zacemmel

Well-known Member
Joined
Apr 29, 2002
Messages
636
I haven't written any matrix code, but just by thinking about it, I don't know why it would be slow unless your matrices are extremely huge.

Can we see some sample code?

Oh, and FYI, MMULT is a built-in matrix function, check it out.
This message was edited by zacemmel on 2002-10-26 15:39
 

Forum statistics

Threads
1,144,282
Messages
5,723,474
Members
422,499
Latest member
think say

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top