470,616 Members | 2,138 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,616 developers. It's quick & easy.

ALGLIB Levenberg-Marquardt algorithm for multivariate optimization

Has anyone used this? I'm trying to convert the C# version to VB.net and i'm kinda clueless on how code this section:

This members must be defined by you:
static void funcvecjac(ref double[] x,
ref double[] fvec,
ref double[,] fjac,
ref int iflag)
Functions in vb.net return a value to a variable. There is no return field on the declaration line and it's used as a sub in the following code. I'm not sure what i'm supposed to do with this part of the code.

Feb 3 '09 #1
2 6887
11,448 Expert 8TB
Your question is not about the Levenberg-Marquardt algorithm but about passing parameters either by value or by reference. A void method in C# or Java is equivalent to ignoring any return value in vb.net. If I remember well vb has the ByRef and ByVal modifiers for parameters. Check your manual.

kind regards,

Feb 4 '09 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

By using this site, you agree to our Privacy Policy and Terms of Use.