Skip to content

Commit 15ea69b

Browse files
authored
fix: update C examples and description for blas/base/srotm
PR-URL: #2448 Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent c9ab1f2 commit 15ea69b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/node_modules/@stdlib/blas/base/srotm/examples/c/example.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121

2222
int main( void ) {
2323
// Create strided arrays:
24-
float x[] = { 1.0, 2.0, 3.0, 4.0, 5.0 };
25-
float y[] = { 6.0, 7.0, 8.0, 9.0, 10.0 };
24+
float x[] = { 1.0f, 2.0f, 3.0f, 4.0f, 5.0f };
25+
float y[] = { 6.0f, 7.0f, 8.0f, 9.0f, 10.0f };
2626

2727
// Specify the number of elements:
2828
const int N = 5;
@@ -32,7 +32,7 @@ int main( void ) {
3232
const int strideY = 1;
3333

3434
// Specify parameters for the modified Givens transformation:
35-
const float param[5] = { 0.0, 0.0, 2.0, -3.0, 0.0 };
35+
const float param[5] = { 0.0f, 0.0f, 2.0f, -3.0f, 0.0f };
3636

3737
// Apply plane rotation:
3838
c_srotm( N, x, strideX, y, strideY, param );

lib/node_modules/@stdlib/blas/base/srotm/src/srotm.f

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
! limitations under the License.
1717
!<
1818

19-
!> Apples a modified Givens plane rotation.
19+
!> Applies a modified Givens plane rotation.
2020
!
2121
! ## Notes
2222
!

0 commit comments

Comments
 (0)