error : Matrix not positive definite

error G0121 : Matrix not positive definite

this is program line 94 make error

SD_fnl = sqrt(diag(invpd(_opfhess)));

what make error?

1 Answer

0

The function invpd returns the inverse of a positive definite matrix. If the input to invpd is not positive definite, then you will get the error:

error G0121 : Matrix not positive definite

You need to look at the matrix _opfhess before it is passed into the function invpd. You can do this with by using the debugger or a print statement.

If the contents of _opfhess are missing values or a scalar error code, they will print out like this:

.

If you see this, you will need to trace back in the program and see what caused this.


You must login to post answers.

Have a Specific Question?

Get a real answer from a real person

Need Support?

Get help from our friendly experts.

FREE REQUEST A QUOTE NOW

Thank you for your interest in the GAUSS family of products.

© Aptech Systems, Inc. All rights reserved.

Privacy Policy | Sitemap