Skip to content

idamax.ndarray does not support negative strides #2792

Closed

Description

Description

Encountered an error when adding negative stride tests for lapack/base/dlacn2

Related Issues

Required for PR: #2790.

Questions

No.

Demo

No response

Reproduction

var idamax = require('@stdlib/blas/base/idamax');
var Float64Array = require( '@stdlib/array/float64' );
var X = new Float64Array( [ 4.0, 999.9, 999.9, 3.0, 999.9, 999.9, 2.0, 999.9, 999.9, 1.0 ] );
console.log( "idamax( N, X, strideX, offsetX ): ", idamax.ndarray( 4, X, -3, 9 ) );

Expected Results

% node a.js 
idamax( N, X, strideX, offsetX ):  3

Actual Results

% node a.js 
idamax( N, X, strideX, offsetX ):  -1

Version

latest main

Environments

Node.js

Browser Version

No response

Node.js / npm Version

v20.9.0

Platform

mac

Checklist

  • Read and understood the Code of Conduct.
  • Searched for existing issues and pull requests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions