Skip to content

feat: add blas/base/wasm/zscal #6810

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 4 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: update test cases
---
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: passed
  - 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: na
  - task: lint_typescript_tests
    status: na
  - task: lint_license_headers
    status: passed
---
  • Loading branch information
ShabiShett07 committed Apr 25, 2025
commit 68586da3d54052f9d33c47edd44f162eb88b581d
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ tape( 'the `main` method supports specifying a `zx` stride', function test( t )
7.0,
2.0
]);
isApprox( t, viewX, expected, 1.0 );
isApprox( t, viewX, expected, 3.0 );

t.end();
});
Expand Down Expand Up @@ -190,7 +190,7 @@ tape( 'the `main` method supports specifying a negative `zx` stride', function t
7.0,
2.0
]);
isApprox( t, viewX, expected, 1.0 );
isApprox( t, viewX, expected, 3.0 );

t.end();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ tape( 'a module instance has a `main` method which scales elements from `zx` by
mod.initializeSync();

zxp = 0;
zap = 24;
zap = 48;

mod.write( zxp, new Complex128Array( [ 0.3, 0.1, 0.5, 0.0, 0.0, 0.5 ] ) );
mod.write( zap, new Float64Array( [ 0.4, -0.7 ] ) );
Expand Down Expand Up @@ -131,7 +131,7 @@ tape( 'a module instance has a `main` method which supports specifying a `zx` st
mod.initializeSync();

zxp = 0;
zap = 48;
zap = 96;

xbuf = new Float64Array([
0.1, // 1
Expand Down Expand Up @@ -172,7 +172,7 @@ tape( 'a module instance has a `main` method which supports specifying a `zx` st
actualX = new Complex128Array( 6 );
mod.read( zxp, actualX );
viewX = new Float64Array( actualX.buffer );
isApprox( t, viewX, zxe, 1.0 );
isApprox( t, viewX, zxe, 3.0 );

t.end();
});
Expand All @@ -195,7 +195,7 @@ tape( 'a module instance has a `main` method which supports specifying a negativ
mod.initializeSync();

zxp = 0;
zap = 48;
zap = 96;

xbuf = new Float64Array([
0.1, // 3
Expand Down Expand Up @@ -236,7 +236,7 @@ tape( 'a module instance has a `main` method which supports specifying a negativ
actualX = new Complex128Array( 6 );
mod.read( zxp, actualX );
viewX = new Float64Array( actualX.buffer );
isApprox( t, viewX, zxe, 1.0 );
isApprox( t, viewX, zxe, 3.0 );

t.end();
});
Expand All @@ -255,7 +255,7 @@ tape( 'a module instance has a `main` method which returns a reference to the in
mod.initializeSync();

zxp = 0;
zap = 24;
zap = 48;

mod.write( zxp, new Complex128Array( [ 0.3, 0.1, 0.5, 0.0, 0.0, 0.5 ] ) );
mod.write( zap, new Float64Array( [ 0.4, -0.7 ] ) );
Expand All @@ -280,7 +280,7 @@ tape( 'if provided an `N` parameter less than or equal to `0`, a module instance
mod.initializeSync();

zxp = 0;
zap = 24;
zap = 48;

mod.write( zxp, new Complex128Array( [ 0.3, 0.1, 0.5, 0.0, 0.0, 0.5 ] ) );
mod.write( zap, new Float64Array( [ 0.4, -0.7 ] ) );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ tape( 'a module instance has an `ndarray` method which scales elements from `zx`
mod.initializeSync();

zxp = 0;
zap = 24;
zap = 48;

mod.write( zxp, new Complex128Array( [ 0.3, 0.1, 0.5, 0.0, 0.0, 0.5 ] ) );
mod.write( zap, new Float64Array( [ 0.4, -0.7 ] ) );
Expand Down Expand Up @@ -131,7 +131,7 @@ tape( 'a module instance has an `ndarray` method which supports a `zx` stride',
mod.initializeSync();

zxp = 0;
zap = 48;
zap = 96;

xbuf = new Float64Array([
0.1, // 1
Expand Down Expand Up @@ -172,7 +172,7 @@ tape( 'a module instance has an `ndarray` method which supports a `zx` stride',
actualX = new Complex128Array( 6 );
mod.read( zxp, actualX );
viewX = new Float64Array( actualX.buffer );
isApprox( t, viewX, zxe, 1.0 );
isApprox( t, viewX, zxe, 3.0 );

t.end();
});
Expand All @@ -195,7 +195,7 @@ tape( 'a module instance has an `ndarray` method which supports a negative `zx`
mod.initializeSync();

zxp = 0;
zap = 48;
zap = 96;

xbuf = new Float64Array([
0.1, // 3
Expand Down Expand Up @@ -236,7 +236,7 @@ tape( 'a module instance has an `ndarray` method which supports a negative `zx`
actualX = new Complex128Array( 6 );
mod.read( zxp, actualX );
viewX = new Float64Array( actualX.buffer );
isApprox( t, viewX, zxe, 1.0 );
isApprox( t, viewX, zxe, 3.0 );

t.end();
});
Expand All @@ -259,7 +259,7 @@ tape( 'a module instance has an `ndarray` method which supports a `zx` offset',
mod.initializeSync();

zxp = 0;
zap = 48;
zap = 96;

xbuf = new Float64Array([
0.1,
Expand Down Expand Up @@ -376,7 +376,7 @@ tape( 'a module instance has an `ndarray` method which supports complex access p
mod.initializeSync();

zxp = 0;
zap = 48;
zap = 96;

xbuf = new Float64Array([
0.1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ tape( 'the `ndarray` method supports specifying a `zx` stride', function test( t
7.0,
2.0
]);
isApprox( t, viewX, expected, 1.0 );
isApprox( t, viewX, expected, 3.0 );

t.end();
});
Expand Down Expand Up @@ -198,7 +198,7 @@ tape( 'the `ndarray` method supports specifying a negative `zx` stride', functio
7.0,
2.0
]);
isApprox( t, viewX, expected, 1.0 );
isApprox( t, viewX, expected, 3.0 );

t.end();
});
Expand Down Expand Up @@ -242,7 +242,7 @@ tape( 'the `ndarray` method supports a `zx` offset', function test( t ) {
4.2, // 3
-4.1 // 3
]);
isApprox( t, viewX, expected, 5.0 );
isApprox( t, viewX, expected, 7.0 );

t.end();
});
Expand Down Expand Up @@ -325,7 +325,7 @@ tape( 'the `ndarray` method supports complex access patterns', function test( t
2.9, // 2
-0.2 // 2
]);
isApprox( t, viewX, expected, 5.0 );
isApprox( t, viewX, expected, 7.0 );

t.end();
});
Loading