@@ -65732,7 +65732,7 @@ module stdlib_linalg_lapack_c
65732
65732
call stdlib_cgeqrf( m, n, a, lda, work( itau ), work( nwork ),lwork-nwork+1, &
65733
65733
ierr )
65734
65734
! zero out below r
65735
- call stdlib_claset( 'L', n-1, n-1, czero, czero, a( 2, 1 ),lda )
65735
+ if (n>1) call stdlib_claset( 'L', n-1, n-1, czero, czero, a( 2, 1 ),lda )
65736
65736
ie = 1
65737
65737
itauq = 1
65738
65738
itaup = itauq + n
@@ -65918,7 +65918,7 @@ module stdlib_linalg_lapack_c
65918
65918
call stdlib_cungqr( m, m, n, u, ldu, work( itau ),work( nwork ), lwork-nwork+&
65919
65919
1, ierr )
65920
65920
! produce r in a, zeroing out below it
65921
- call stdlib_claset( 'L', n-1, n-1, czero, czero, a( 2, 1 ),lda )
65921
+ if (n>1) call stdlib_claset( 'L', n-1, n-1, czero, czero, a( 2, 1 ),lda )
65922
65922
ie = 1
65923
65923
itauq = itau
65924
65924
itaup = itauq + n
@@ -66294,7 +66294,7 @@ module stdlib_linalg_lapack_c
66294
66294
call stdlib_cgelqf( m, n, a, lda, work( itau ), work( nwork ),lwork-nwork+1, &
66295
66295
ierr )
66296
66296
! zero out above l
66297
- call stdlib_claset( 'U', m-1, m-1, czero, czero, a( 1, 2 ),lda )
66297
+ if (m>1) call stdlib_claset( 'U', m-1, m-1, czero, czero, a( 1, 2 ),lda )
66298
66298
ie = 1
66299
66299
itauq = 1
66300
66300
itaup = itauq + m
@@ -66485,7 +66485,7 @@ module stdlib_linalg_lapack_c
66485
66485
call stdlib_cunglq( n, n, m, vt, ldvt, work( itau ),work( nwork ), lwork-&
66486
66486
nwork+1, ierr )
66487
66487
! produce l in a, zeroing out above it
66488
- call stdlib_claset( 'U', m-1, m-1, czero, czero, a( 1, 2 ),lda )
66488
+ if (m>1) call stdlib_claset( 'U', m-1, m-1, czero, czero, a( 1, 2 ),lda )
66489
66489
ie = 1
66490
66490
itauq = itau
66491
66491
itaup = itauq + m
0 commit comments