Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This might be 3 different ways for the Dot product if one is passing a
vertical array. Function Test(myVector) As Variant With Application.WorksheetFunction ' If you want the Dot Product, one can use Test = .Transpose(myVector) Test = .MMult(Test, .Transpose(Test))(1) ' or... (Reverse the order) Test = .MMult(.Transpose(myVector), myVector)(1) ' or... Test = .SumProduct(myVector, myVector) ' 3*3 Array Test = .MMult(myVector, .Transpose(myVector)) End With End Function Sub TestIt() Dim Answer [A1] = 7 [A2] = 8 [A3] = 9 Answer = Test([A1:A3].Value) End Sub -- Dana DeLouis = = = = = = = = = = = = = = = = = <snip |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Reuse Application.WorksheetFunction | Excel Discussion (Misc queries) | |||
Application.WorksheetFunction error | Excel Discussion (Misc queries) | |||
Need help with Application.WorksheetFunction | Excel Discussion (Misc queries) | |||
application.worksheetfunction.mmult help | Excel Programming | |||
Using Application.WorksheetFunction.Ln(...) in VBA | Excel Programming |