Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 176801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T13:56:31+00:00 2026-05-11T13:56:31+00:00

I am getting a wrong eigen-vector (also checked by running multiple times to be

  • 0

I am getting a wrong eigen-vector (also checked by running multiple times to be sure) when i am using matrix.eig(). The matrix is:

1.2290 1.2168 2.8760 2.6370 2.2949 2.6402 1.2168 0.9476 2.5179 2.1737 1.9795 2.2828 2.8760 2.5179 8.8114 8.6530 7.3910 8.1058 2.6370 2.1737 8.6530 7.6366 6.9503 7.6743 2.2949 1.9795 7.3910 6.9503 6.2722 7.3441  2.6402 2.2828 8.1058 7.6743 7.3441 7.6870 

The function returns the eigen vectors:

-0.1698  0.6764  0.1442 -0.6929 -0.1069  0.0365 -0.1460  0.6478  0.1926  0.6898  0.0483 -0.2094 -0.5239  0.0780 -0.5236  0.1621 -0.2244  0.6072 -0.4906 -0.0758 -0.4573 -0.1279  0.2842 -0.6688 -0.4428 -0.2770  0.4307  0.0226 -0.6959 -0.2383 -0.4884 -0.1852  0.5228 -0.0312  0.6089  0.2865 

Matlab gives the following eigen-vector for the same input:

0.1698 -0.6762 -0.1439  0.6931  0.1069  0.0365 0.1460 -0.6481 -0.1926 -0.6895 -0.0483 -0.2094 0.5237 -0.0780  0.5233 -0.1622  0.2238  0.6077 0.4907  0.0758  0.4577  0.1278 -0.2840 -0.6686 0.4425  0.2766 -0.4298 -0.0227  0.6968 -0.2384 0.4888  0.1854 -0.5236  0.0313 -0.6082  0.2857 

The eigen-values for matlab and jama are matching but eigen-vectors the first 5 columns are reversed in sign and only the last column is accurate.

Is there any issue on the kind of input that Jama.Matrix.EigenvalueDecomposition.eig() accepts or any other problem with the same? Please tell me how i can fix the error. Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T13:56:32+00:00Added an answer on May 11, 2026 at 1:56 pm

    There is no error here, both results are correct – as is any other scalar times the eigen vectors.

    There are an infinite number of eigen vectors that work – its just convention that most software programs report the vectors that have length of one. That Jama reports eigen vectors equal to -1 times those of Matlab is probably just an artifact of the algorithm they used.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 151k
  • Answers 151k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer There is a WindowFromPoint() function. May 12, 2026 at 9:56 am
  • Editorial Team
    Editorial Team added an answer Yes, We use Akamai, which keeps a cached copy of… May 12, 2026 at 9:56 am
  • Editorial Team
    Editorial Team added an answer The flag is part of the image header, so you… May 12, 2026 at 9:56 am

Related Questions

I am getting a runtime error 13 at the end of the following code:
I am getting a compilation error when trying to build a C++ project which
I am getting a EXC_BAD_ACCESS (SIGBUS) on this line in my iPhone project: if
I am getting a CA1305 Warning. Microsoft.Globalization : Because the behavior of 'int.Parse(string)' could

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.