8000 BUG: fixed a bug in eig for complex numbers. Eigenvector results are … · numpy/numpy@7e3176f · GitHub
[go: up one dir, main page]

Skip to content

Commit 7e3176f

Browse files
ovillellaspv
authored andcommitted
BUG: fixed a bug in eig for complex numbers. Eigenvector results are computed properly now.
1 parent 8e8f247 commit 7e3176f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

numpy/core/src/umath/umath_linalg.c.src

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2349,8 +2349,8 @@ init_@lapack_func@(GEEV_PARAMS_t* params,
23492349
npy_uint8 *a, *w, *vl, *vr, *work, *rwork;
23502350
size_t a_size = n*n*sizeof(@ftyp@);
23512351
size_t w_size = n*sizeof(@ftyp@);
2352-
size_t vl_size = jobvl=='V'? n*sizeof(@ftyp@) : 0;
2353-
size_t vr_size = jobvr=='V'? n*sizeof(@ftyp@) : 0;
2352+
size_t vl_size = jobvl=='V'? n*n*sizeof(@ftyp@) : 0;
2353+
size_t vr_size = jobvr=='V'? n*n*sizeof(@ftyp@) : 0;
23542354
size_t rwork_size = 2*n*sizeof(@realtyp@);
23552355
size_t work_count = 0;
23562356
@typ@ work_size_query;

0 commit comments

Comments
 (0)
0