Skip to content

Conversation

aman-095
Copy link
Member

Description

What is the purpose of this pull request?

This pull request adds support for stacks for blas/scopy.

Related Issues

Does this pull request have any related issues?

None.

Questions

Any questions for reviewers of this pull request?

No.

Other

Any other information relevant to this pull request? This may include screenshots, references, and/or implementation notes.

No.

Checklist

Please ensure the following tasks are completed before submitting this pull request.


@stdlib-js/reviewers

@stdlib-bot stdlib-bot added the BLAS Issue or pull request related to Basic Linear Algebra Subprograms (BLAS). label Nov 11, 2024
@aman-095 aman-095 added the Feature Issue or pull request for adding a new feature. label Nov 11, 2024
@aman-095 aman-095 marked this pull request as draft November 11, 2024 06:49
@aman-095 aman-095 marked this pull request as ready for review November 11, 2024 07:33
// MODULES //

var base = require( '@stdlib/blas/base/scopy' ).ndarray;
var factory = require( '@stdlib/blas/tools/swap-factory' );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aman-095 I understand why you are attempting to reuse swap-factory; however, I'd advise not doing that, as the behavior is not guaranteed to be the same, as mentioned in the test file below.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to actually create tools/copy-factory.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can open as a separate PR.

@stdlib-bot
Copy link
Contributor

stdlib-bot commented Nov 17, 2024

Coverage Report

Package Statements Branches Functions Lines
blas/scopy $\color{green}110/110$
$\color{green}+100.00\%$
$\color{green}2/2$
$\color{green}+100.00\%$
$\color{green}0/0$
$\color{green}+100.00\%$
$\color{green}110/110$
$\color{green}+100.00\%$

The above coverage report was generated for the changes in this PR.

}
});

tape( 'the function throws an error if provided a first argument which is a read-only ndarray', function test( t ) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aman-095 This is incorrect. The first argument is not mutated, so it can be read-only. This test passes because you chose to use swap-factory, but that tool is designed for different behavior.

@kgryte kgryte added the Needs Changes Pull request which needs changes before being merged. label Nov 17, 2024
@kgryte
Copy link
Member

kgryte commented Nov 25, 2024

/stdlib update-copyright-years

@stdlib-bot stdlib-bot added the bot: In Progress Pull request is currently awaiting automation. label Nov 25, 2024
@stdlib-bot stdlib-bot removed the bot: In Progress Pull request is currently awaiting automation. label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BLAS Issue or pull request related to Basic Linear Algebra Subprograms (BLAS). Feature Issue or pull request for adding a new feature. Needs Changes Pull request which needs changes before being merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants