-
-
Notifications
You must be signed in to change notification settings - Fork 814
feat: add lapack/base/dlacn2
#2790
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor comments related to lint error.
- **N**: order of matrix `A`. | ||
- **V** [`Float64Array`][mdn-float64array], on final return `V=A*W`, where `W` is not returned. | ||
- **X** input [`Float64Array`][mdn-float64array]. | ||
- **ISGN** [`Int32Array`][mdn-int32array] of signs. | ||
- **EST** [`Float64Array`][mdn-float64array] containing estimate of lower bound of 1-norm of `A`. | ||
- **KASE** [`Int32Array`][mdn-int32array] containing value KASE to control overwritting of `X`. | ||
- **ISAVE** [`Int32Array`][mdn-int32array] for internal storage. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure about these descriptions.
Signed-off-by: Pranav <85227306+Pranavchiku@users.noreply.github.com>
I'll add more tests once decision over #2792 is made. Now, working to support negative strides for |
|
||
# dlacn2 | ||
|
||
> Estimate the 1-norm of a square, real matrix `A`, reverse communication is used for evaluating matrix-vector products. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This description is hard to read, as "reverse communication..." is a separate clause. This should be improved.
} | ||
EST[ offsetEST ] = dasum( N, X, strideX, offsetX ); | ||
for ( i = 0; i < N; i++ ) { | ||
if ( X[ offsetX + ( i * strideX ) ] >= 0.0 ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment as in other PRs. Use a tmp variable: ix = offsetX
and then ix += strideX
. Your implementations consistently have unnecessary flops.
Towards #2464.
Description
This pull request adds JS implementation for
lapack/base/dlacn2
.Related Issues
NA
Questions
No.
Other
No.
Checklist
@stdlib-js/reviewers