Skip to content

Commit ef780e7

Browse files
committed
Auto-generated commit
1 parent bba8e80 commit ef780e7

File tree

3 files changed

+14
-13
lines changed

3 files changed

+14
-13
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2024-07-11)
7+
## Unreleased (2024-07-14)
88

99
<section class="packages">
1010

@@ -2503,6 +2503,7 @@ A total of 35 people contributed to this release. Thank you to the following con
25032503

25042504
<details>
25052505

2506+
- [`562f806`](https://github.com/stdlib-js/stdlib/commit/562f80662e928af49eac8dd78ee57b1785aab515) - **style:** group expressions based on order of operations _(by Athan Reines)_
25062507
- [`a78f42b`](https://github.com/stdlib-js/stdlib/commit/a78f42b3295fe4513a15b90a837b60a63fc1f6bc) - **docs:** fix paths in examples and refactor array creation in benchmarks [(#2563)](https://github.com/stdlib-js/stdlib/pull/2563) _(by Aman Bhansali)_
25072508
- [`4d5293d`](https://github.com/stdlib-js/stdlib/commit/4d5293d0cfd81bd1016d1bcc372afefe20b1a211) - **feat:** add `blas/base/zdrot` [(#2257)](https://github.com/stdlib-js/stdlib/pull/2257) _(by Aman Bhansali, Athan Reines)_
25082509
- [`f35cb6e`](https://github.com/stdlib-js/stdlib/commit/f35cb6eb2dddc6fdcc904ef165b92970f4a50698) - **docs:** fix description _(by Athan Reines)_

base/zdrot/src/zdrot.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ void API_SUFFIX(c_zdrot)( const CBLAS_INT N, void *ZX, const CBLAS_INT strideX,
4747
}
4848
if ( strideX == 1 && strideY == 1 ) {
4949
for ( i = 0; i < N*2; i += 2 ) {
50-
tmp = c*zx[ i ] + s*zy[ i ];
51-
zy[ i ] = c*zy[ i ] - s*zx[ i ];
50+
tmp = ( c*zx[ i ] ) + ( s*zy[ i ] );
51+
zy[ i ] = ( c*zy[ i ] ) - ( s*zx[ i ] );
5252
zx[ i ] = tmp;
5353

5454
j = i + 1;
55-
tmp = c*zx[ j ] + s*zy[ j ];
56-
zy[ j ] = c*zy[ j ] - s*zx[ j ];
55+
tmp = ( c*zx[ j ] ) + ( s*zy[ j ] );
56+
zy[ j ] = ( c*zy[ j ] ) - ( s*zx[ j ] );
5757
zx[ j ] = tmp;
5858
}
5959
return;
@@ -63,12 +63,12 @@ void API_SUFFIX(c_zdrot)( const CBLAS_INT N, void *ZX, const CBLAS_INT strideX,
6363
ix = stdlib_strided_stride2offset( N, strideX );
6464
iy = stdlib_strided_stride2offset( N, strideY );
6565
for ( i = 0; i < N; i++ ) {
66-
tmp = c*zx[ ix ] + s*zy[ iy ];
67-
zy[ iy ] = c*zy[ iy ] - s*zx[ ix ];
66+
tmp = ( c*zx[ ix ] ) + ( s*zy[ iy ] );
67+
zy[ iy ] = ( c*zy[ iy ] ) - ( s*zx[ ix ] );
6868
zx[ ix ] = tmp;
6969

70-
tmp = c*zx[ ix+1 ] + s*zy[ iy+1 ];
71-
zy[ iy+1 ] = c*zy[ iy+1 ] - s*zx[ ix+1 ];
70+
tmp = ( c*zx[ ix+1 ] ) + ( s*zy[ iy+1 ] );
71+
zy[ iy+1 ] = ( c*zy[ iy+1 ] ) - ( s*zx[ ix+1 ] );
7272
zx[ ix+1 ] = tmp;
7373

7474
ix += sx;

base/zdrot/src/zdrot.f

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ subroutine zdrot( N, zx, strideX, zy, strideY, c, s )
6969
! ..
7070
if ( strideX == 1 .AND. strideY == 1 ) then
7171
do i = 1, N
72-
ztmp = c*zx( i ) + s*zy( i )
73-
zy( i ) = c*zy( i ) - s*zx( i )
72+
ztmp = ( c*zx( i ) ) + ( s*zy( i ) )
73+
zy( i ) = ( c*zy( i ) ) - ( s*zx( i ) )
7474
zx( i ) = ztmp
7575
end do
7676
else
@@ -85,8 +85,8 @@ subroutine zdrot( N, zx, strideX, zy, strideY, c, s )
8585
iy = 1
8686
end if
8787
do i = 1, N
88-
ztmp = c*zx( ix ) + s*zy( iy )
89-
zy( iy ) = c*zy( iy ) - s*zx( ix )
88+
ztmp = ( c*zx( ix ) ) + ( s*zy( iy ) )
89+
zy( iy ) = ( c*zy( iy ) ) - ( s*zx( ix ) )
9090
zx( ix ) = ztmp
9191
ix = ix + strideX
9292
iy = iy + strideY

0 commit comments

Comments
 (0)