From dfb9559fb16a30d6e5b101d66ee631866e2af7a0 Mon Sep 17 00:00:00 2001 From: ashutoshsao Date: Sun, 7 Dec 2025 17:19:00 +0530 Subject: [PATCH 1/2] docs: improve doctests for complex number instances in ndarray/base/broadcast-scalar --- 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: na - 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: passed - task: lint_license_headers status: passed --- --- .../base/broadcast-scalar/docs/types/index.d.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/lib/node_modules/@stdlib/ndarray/base/broadcast-scalar/docs/types/index.d.ts b/lib/node_modules/@stdlib/ndarray/base/broadcast-scalar/docs/types/index.d.ts index 1326ae8d6d53..d18f871021b9 100644 --- a/lib/node_modules/@stdlib/ndarray/base/broadcast-scalar/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/ndarray/base/broadcast-scalar/docs/types/index.d.ts @@ -94,8 +94,6 @@ declare function broadcastScalar( value: number, dtype: 'float32', shape: Shape, * var getShape = require( '@stdlib/ndarray/shape' ); * var getDType = require( '@stdlib/ndarray/dtype' ); * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/float64/real' ); -* var imag = require( '@stdlib/complex/float64/imag' ); * * var v = new Complex128( 1.0, 2.0 ); * @@ -109,13 +107,7 @@ declare function broadcastScalar( value: number, dtype: 'float32', shape: Shape, * // returns 'complex128' * * var v = x.get( 0, 1 ); -* // returns -* -* var re = real( v ); -* // returns 1.0 -* -* var im = imag( v ); -* // returns 2.0 +* // returns [ 1.0,2.0 ] */ declare function broadcastScalar( value: number | ComplexLike, dtype: 'complex128', shape: Shape, order: Order ): complex128ndarray; From e39bf01691ac23600d2496b38be5192c93a5e647 Mon Sep 17 00:00:00 2001 From: Athan Date: Sun, 7 Dec 2025 18:42:31 -0800 Subject: [PATCH 2/2] style: add missing space Signed-off-by: Athan --- .../@stdlib/ndarray/base/broadcast-scalar/docs/types/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/ndarray/base/broadcast-scalar/docs/types/index.d.ts b/lib/node_modules/@stdlib/ndarray/base/broadcast-scalar/docs/types/index.d.ts index d18f871021b9..f26a4e930d44 100644 --- a/lib/node_modules/@stdlib/ndarray/base/broadcast-scalar/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/ndarray/base/broadcast-scalar/docs/types/index.d.ts @@ -107,7 +107,7 @@ declare function broadcastScalar( value: number, dtype: 'float32', shape: Shape, * // returns 'complex128' * * var v = x.get( 0, 1 ); -* // returns [ 1.0,2.0 ] +* // returns [ 1.0, 2.0 ] */ declare function broadcastScalar( value: number | ComplexLike, dtype: 'complex128', shape: Shape, order: Order ): complex128ndarray;