8000 feat: add `lapack/base/dlanv2` by aayush0325 · Pull Request #7492 · stdlib-js/stdlib · GitHub
[go: up one dir, main page]

Skip to content

feat: add lapack/base/dlanv2 #7492

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

Open
wants to merge 15 commits into
base: develop
Choose a base branch
from
Open
Prev Previous commit
Next Next commit
docs: update description
---
type: pre_commit_static_analysis_report
description: Results of running static analysis checks when committing changes.
report:
  - task: lint_filenames
    status: passed
  - task: lint_editorconfig
    status: passed
  - task: lint_markdown
    status: na
  - task: lint_package_json
    status: na
  - task: lint_repl_help
    status: na
  - task: lint_javascript_src
    status: passed
  - task: lint_javascript_cli
    status: na
  - task: lint_javascript_examples
    status: na
  - task: lint_javascript_tests
    status: na
  - task: lint_javascript_benchmarks
    status: na
  - task: lint_python
    status: na
  - task: lint_r
    status: na
  - task: lint_c_src
    status: na
  - task: lint_c_examples
    status: na
  - task: lint_c_benchmarks
    status: na
  - task: lint_c_tests_fixtures
    status: na
  - task: lint_shell
    status: na
  - task: lint_typescript_declarations
    status: passed
  - task: lint_typescript_tests
    status: na
  - task: lint_license_headers
    status: passed
---
  • Loading branch information
aayush0325 committed Jun 29, 2025
commit 47b35fd32df36c086cfa43d43146c0021e4e0f42
21 changes: 18 additions & 3 deletions lib/node_modules/@stdlib/lapack/base/dlanv2/docs/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,15 @@ interface Routine {
* ```tex
* \begin{bmatrix}
* \text{AA} & \text{BB} \\
* 0 & \text{DD}
* \text{CC} & \text{DD}
* \end{bmatrix}
* ```
*
* where either:
*
* - `CC` = 0, `AA` and `DD` are the real eigenvalues of the matrix.
* - `AA` = `DD` and `BB * CC` < 0, `AA + sqrt( BB * CC )` and `AA - sqrt( BB * CC )` are the complex conjugate eigenvalues.
*
* @param A - array containing the element A(1,1)
* @param B - array containing the element A(1,2)
* @param C - array containing the element A(2,1)
Expand Down Expand Up @@ -117,10 +122,15 @@ interface Routine {
* ```tex
* \begin{bmatrix}
* \text{AA} & \text{BB} \\
* 0 & \text{DD}
* \text{CC} & \text{DD}
* \end{bmatrix}
* ```
*
* where either:
*
* - `CC` = 0, `AA` and `DD` are the real eigenvalues of the matrix.
* - `AA` = `DD` and `BB * CC` < 0, `AA + sqrt( BB * CC )` and `AA - sqrt( BB * CC )` are the complex conjugate eigenvalues.
*
* @param A - array containing the element A(1,1)
* @param offsetA - index in `A` of the element A(1,1)
* @param B - array containing the element A(1,2)
Expand Down Expand Up @@ -197,10 +207,15 @@ interface Routine {
* ```tex
* \begin{bmatrix}
* \text{AA} & \text{BB} \\
* 0 & \text{DD}
* \text{CC} & \text{DD}
* \end{bmatrix}
* ```
*
* where either:
*
* - `CC` = 0, `AA` and `DD` are the real eigenvalues of the matrix.
* - `AA` = `DD` and `BB * CC` < 0, `AA + sqrt( BB * CC )` and `AA - sqrt( BB * CC )` are the complex conjugate eigenvalues.
*
* @param A - array containing the element A(1,1)
* @param B - array containing the element A(1,2)
* @param C - array containing the element A(2,1)
Expand Down
7 changes: 6 additions & 1 deletion lib/node_modules/@stdlib/lapack/base/dlanv2/lib/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,15 @@ var multpl = 4.0;
* ```tex
* \begin{bmatrix}
* \text{AA} & \text{BB} \\
* 0 & \text{DD}
* \text{CC} & \text{DD}
* \end{bmatrix}
* ```
*
* where either:
*
* - `CC` = 0, `AA` and `DD` are the real eigenvalues of the matrix.
* - `AA` = `DD` and `BB * CC` < 0, `AA + sqrt( BB * CC )` and `AA - sqrt( BB * CC )` are the complex conjugate eigenvalues.
*
* @private
* @param {Float64Array} A - array containing the element A(1,1)
* @param {NonNegativeInteger} offsetA - index in `A` of the element A(1,1)
Expand Down
7 changes: 6 additions & 1 deletion lib/node_modules/@stdlib/lapack/base/dlanv2/lib/dlanv2.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,15 @@ var base = require( './base.js' );
* ```tex
* \begin{bmatrix}
* \text{AA} & \text{BB} \\
* 0 & \text{DD}
* \text{CC} & \text{DD}
* \end{bmatrix}
* ```
*
* where either:
*
* - `CC` = 0, `AA` and `DD` are the real eigenvalues of the matrix.
* - `AA` = `DD` and `BB * CC` < 0, `AA + sqrt( BB * CC )` and `AA - sqrt( BB * CC )` are the complex conjugate eigenvalues.
*
* @param {Float64Array} A - array containing the element A(1,1)
* @param {Float64Array} B - array containing the element A(1,2)
* @param {Float64Array} C - array containing the element A(2,1)
Expand Down
32 changes: 32 additions & 0 deletions lib/node_modules/@stdlib/lapack/base/dlanv2/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,38 @@
/**
* LAPACK routine to compute the Schur factorization of a real 2-by-2 nonsymmetric matrix `A` in standard form.
*
* Given a real 2×2 matrix:
*
* ```tex
* \begin{bmatrix}
* A & B \\
* C & D
* \end{bmatrix}
* ```
*
* this routine computes an orthogonal matrix:
*
* ```tex
* \begin{bmatrix}
* \text{CS} & \text{SN} \\
* -\text{SN} & \text{CS}
* \end{bmatrix}
* ```
*
* such that the matrix is reduced to Schur (quasi-triangular) form:
*
* ```tex
* \begin{bmatrix}
* \text{AA} & \text{BB} \\
* \text{CC} & \text{DD}
* \end{bmatrix}
* ```
*
* where either:
*
* - `CC` = 0, `AA` and `DD` are the real eigenvalues of the matrix.
* - `AA` = `DD` and `BB * CC` < 0, `AA + sqrt( BB * CC )` and `AA - sqrt( BB * CC )` are the complex conjugate eigenvalues.
*
* @module @stdlib/lapack/base/dlanv2
*
* @example
Expand Down
7 changes: 6 additions & 1 deletion lib/node_modules/@stdlib/lapack/base/dlanv2/lib/ndarray.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,15 @@ var base = require( './base.js' );
* ```tex
* \begin{bmatrix}
* \text{AA} & \text{BB} \\
* 0 & \text{DD}
* \text{CC} & \text{DD}
* \end{bmatrix}
* ```
*
* where either:
*
* - `CC` = 0, `AA` and `DD` are the real eigenvalues of the matrix.
* - `AA` = `DD` and `BB * CC` < 0, `AA + sqrt( BB * CC )` and `AA - sqrt( BB * CC )` are the complex conjugate eigenvalues.
*
* @param {Float64Array} A - array containing the element A(1,1)
* @param {NonNegativeInteger} offsetA - index in `A` of the element A(1,1)
* @param {Float64Array} B - array containing the element A(1,2)
Expand Down
0