Get Help

Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Community
- :
- PTC Mathcad
- :
- PTC Mathcad
- :
- Re: MathCAD Function to create Positive Definite M...

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

08-31-2017
12:16 AM

08-31-2017
12:16 AM

Does MathCAD offer a function that creates Real, Positive Definite Matrices of a specified size? For example, say I'd like a square matrix of size 10 x 10 that is positive definite. Is there a function that does this?

Alternately, if that is not available, perhaps I could use a work-around: create the Lower Triangular (L), or Upper Triangular (U), portion of a symmetric matrix, multiply it myself to create the full symmetric matrix. Hopefully, the result would be a positive definite matrix. Does MathCAD offer a function that outputs L or U?

Solved! Go to Solution.

Labels:

1 ACCEPTED SOLUTION

Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

08-31-2017
05:49 AM

08-31-2017
05:49 AM

Positive Definite Matrices of any size like 10 cannot be answered as their are thoudands of matrices that will fit this bill, so there is no function.

You can take eigenvals(M) of a matrix M to prove it is positive definite.

The simplest to produce is a square matrix size(n,n) that has the two positive eigenvalues 1 and n+1

The code enclosed has created such a function that will create a positive definite matrix of any size n x n.

2 REPLIES 2

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

08-31-2017
05:49 AM

08-31-2017
05:49 AM

Positive Definite Matrices of any size like 10 cannot be answered as their are thoudands of matrices that will fit this bill, so there is no function.

You can take eigenvals(M) of a matrix M to prove it is positive definite.

The simplest to produce is a square matrix size(n,n) that has the two positive eigenvalues 1 and n+1

The code enclosed has created such a function that will create a positive definite matrix of any size n x n.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

08-31-2017
05:50 AM

08-31-2017
05:50 AM

Re: MathCAD Function to create Positive Definite Matrices?

Sorry forgot the file