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

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
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
 
Upvote 0

Forum statistics

Threads
1,214,912
Messages
6,122,204
Members
449,072
Latest member
DW Draft

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
Back
Top