Skip to content

Incorrect call to SLASET in schkst2stg.f #425

Description

@serguei-patchkovskii

This appears to be related to #318 https://github.com/Reference-LAPACK/lapack/issues/318. The problem is not in SLASET but in the calling routine.

TESTING/EIG/schkst2stg.f contains the following code fragment (both in 3.9.0 and in the repo):

1000 * using the 1-stage.
1001 *
1002 CALL SLASET( 'Full', N, 1, ZERO, ZERO, SD, 1 )
1003 CALL SLASET( 'Full', N, 1, ZERO, ZERO, SE, 1 )
1004 CALL SLACPY( "U", N, N, A, LDA, V, LDU )
1005 LH = MAX(1, 4*N)
1006 LW = LWORK - LH

This code is incorrect, and causes a bounds violation in SLASET. The correct code is:

1002 CALL SLASET( 'Full', N, 1, ZERO, ZERO, SD, N )
1003 CALL SLASET( 'Full', N, 1, ZERO, ZERO, SE, N )

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions