Skip to content

Commit d17b829

Browse files
committed
chore: add appropriate comments for example
--- 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: passed - 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: missing_dependencies - 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 ---
1 parent 8587b9e commit d17b829

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/node_modules/@stdlib/blas/base/dtrmv/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ void c_dtrmv_ndarray( const CBLAS_UPLO uplo, const CBLAS_TRANSPOSE trans, const
273273
#include <stdio.h>
274274

275275
int main( void ) {
276-
// Define a 3x3 matrix stored in row-major order:
276+
// Define a 3x3 triangular matrix stored in row-major order:
277277
const double A[ 3*3 ] = {
278278
1.0, 0.0, 0.0,
279279
2.0, 1.0, 0.0,
@@ -285,15 +285,15 @@ int main( void ) {
285285
// Specify the number of elements along each dimension of `A`:
286286
const int N = 3;
287287

288-
// Perform the matrix-vector operations `y = α*A*x + β*y`:
288+
// Perform the matrix-vector operations `x = A*x`:
289289
c_dtrmv( CblasRowMajor, CblasUpper, CblasNoTrans, CblasUnit, N, A, N, x, 1 );
290290

291291
// Print the result:
292292
for ( int i = 0; i < N; i++ ) {
293293
printf( "x[ %i ] = %lf\n", i, x[ i ] );
294294
}
295295

296-
// Perform the symmetric rank 2 operation `A = α*x*y^T + α*y*x^T + A`:
296+
// Perform the matrix-vector operations `x = A*x` using alternative indexing semantics:
297297
c_dtrmv_ndarray( CblasUpper, CblasNoTrans, CblasUnit, 3, A, 3, 1, 0, x, 1, 0 );
298298

299299
// Print the result:

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include <stdio.h>
2222

2323
int main( void ) {
24-
// Define a 3x3 matrix stored in row-major order:
24+
// Define a 3x3 triangular matrix stored in row-major order:
2525
const double A[ 3*3 ] = {
2626
1.0, 0.0, 0.0,
2727
2.0, 1.0, 0.0,
@@ -33,15 +33,15 @@ int main( void ) {
3333
// Specify the number of elements along each dimension of `A`:
3434
const int N = 3;
3535

36-
// Perform the matrix-vector operations `y = α*A*x + β*y`:
36+
// Perform the matrix-vector operations `x = A*x`:
3737
c_dtrmv( CblasRowMajor, CblasUpper, CblasNoTrans, CblasUnit, N, A, N, x, 1 );
3838

3939
// Print the result:
4040
for ( int i = 0; i < N; i++ ) {
4141
printf( "x[ %i ] = %lf\n", i, x[ i ] );
4242
}
4343

44-
// Perform the symmetric rank 2 operation `A = α*x*y^T + α*y*x^T + A`:
44+
// Perform the matrix-vector operations `x = A*x` using alternative indexing semantics:
4545
c_dtrmv_ndarray( CblasUpper, CblasNoTrans, CblasUnit, 3, A, 3, 1, 0, x, 1, 0 );
4646

4747
// Print the result:

0 commit comments

Comments
 (0)