Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
14 changes: 7 additions & 7 deletions lib/node_modules/@stdlib/blas/base/ssyr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,10 @@ Performs the symmetric rank 1 operation `A = α*x*x^T + A` where `α` is a scala
```c
#include "stdlib/blas/base/shared.h"

float A[] = { 1.0, 2.0, 3.0, 2.0, 1.0, 2.0, 3.0, 2.0, 1.0 };
const float x[] = { 1.0, 2.0, 3.0 };
float A[] = { 1.0f, 2.0f, 3.0f, 2.0f, 1.0f, 2.0f, 3.0f, 2.0f, 1.0f };
const float x[] = { 1.0f, 2.0f, 3.0f };

c_ssyr( CblasColMajor, CblasUpper, 3, 1.0, x, 1, A, 3 );
c_ssyr( CblasColMajor, CblasUpper, 3, 1.0f, x, 1, A, 3 );
```

The function accepts the following arguments:
Expand All @@ -228,10 +228,10 @@ Performs the symmetric rank 1 operation `A = α*x*x^T + A`, using alternative in
```c
#include "stdlib/blas/base/shared.h"

float A[] = { 1.0, 2.0, 3.0, 2.0, 1.0, 2.0, 3.0, 2.0, 1.0 };
const float x[] = { 1.0, 2.0, 3.0 };
float A[] = { 1.0f, 2.0f, 3.0f, 2.0f, 1.0f, 2.0f, 3.0f, 2.0f, 1.0f };
const float x[] = { 1.0f, 2.0f, 3.0f };

c_ssyr_ndarray( CblasUpper, 3, 1.0, x, 1, 0, A, 3, 1, 0 );
c_ssyr_ndarray( CblasUpper, 3, 1.0f, x, 1, 0, A, 3, 1, 0 );
```

The function accepts the following arguments:
Expand Down Expand Up @@ -303,7 +303,7 @@ int main( void ) {
}

// Perform the symmetric rank 1 operation `A = α*x*x^T + A` using alternative indexing semantics:
c_ssyr_ndarray( CblasUpper, N, 1.0, x, 1, 0, A2, N, 1, 0 );
c_ssyr_ndarray( CblasUpper, N, 1.0f, x, 1, 0, A2, N, 1, 0 );

// Print the result:
for ( int i = 0; i < N*N; i++ ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import { typedndarray, float64ndarray } from '@stdlib/types/ndarray';
* var x = new Float64Vector( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
*
* var k = scalar2ndarray( 2, {
* 'dtype': 'generic'
* 'dtype': 'generic'
* });
*
* var out = dcircshift( [ x, k ] );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,17 @@ import { typedndarray, float64ndarray } from '@stdlib/types/ndarray';
*
* var x = new Float64Vector( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
* var target = scalar2ndarray( 3, {
* 'dtype': 'generic'
* 'dtype': 'generic'
* });
* var start = scalar2ndarray( 1, {
* 'dtype': 'generic'
* 'dtype': 'generic'
* });
* var end = scalar2ndarray( 4, {
* 'dtype': 'generic'
* 'dtype': 'generic'
* });
*
* var w = zeros( [ 6 ], {
* 'dtype': 'float64'
* 'dtype': 'float64'
* });
*
* var out = dcopyWithin( [ x, target, start, end, w ] );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ import { float64ndarray, boolndarray } from '@stdlib/types/ndarray';
* var x = new Float64Vector( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
*
* var start = scalar2ndarray( 0.0, {
* 'dtype': 'float64'
* 'dtype': 'float64'
* });
*
* var stop = scalar2ndarray( 100.0, {
* 'dtype': 'float64'
* 'dtype': 'float64'
* });
*
* var endpoint = scalar2ndarray( true, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import { typedndarray, float64ndarray } from '@stdlib/types/ndarray';
* var x = new Float64Vector( [ 1.0, -2.0, 3.0, -4.0 ] );
*
* var ord = scalar2ndarray( 1.0, {
* 'dtype': 'generic'
* 'dtype': 'generic'
* });
*
* var out = dsort( [ x, ord ] );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import { typedndarray, float64ndarray } from '@stdlib/types/ndarray';
* var x = new Float64Vector( [ 1.0, -2.0, 3.0, -4.0 ] );
*
* var ord = scalar2ndarray( 1.0, {
* 'dtype': 'generic'
* 'dtype': 'generic'
* });
*
* var out = dsorthp( [ x, ord ] );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import { typedndarray, float64ndarray } from '@stdlib/types/ndarray';
* var x = new Float64Vector( [ 1.0, -2.0, 3.0, -4.0 ] );
*
* var ord = scalar2ndarray( 1.0, {
* 'dtype': 'generic'
* 'dtype': 'generic'
* });
*
* var out = dsortins( [ x, ord ] );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import { typedndarray, float64ndarray } from '@stdlib/types/ndarray';
* var x = new Float64Vector( [ 1.0, -2.0, 3.0, -4.0 ] );
*
* var ord = scalar2ndarray( 1.0, {
* 'dtype': 'generic'
* 'dtype': 'generic'
* });
*
* var out = dsortsh( [ x, ord ] );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import { float64ndarray, typedndarray } from '@stdlib/types/ndarray';
* var B = new Float64Matrix( [ [ 0.0, 0.0 ], [ 0.0, 0.0 ] ] );
*
* var k = scalar2ndarray( 0, {
* 'dtype': 'generic'
* 'dtype': 'generic'
* });
*
* var out = dtriu( [ A, B, k ] );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import { typedndarray } from '@stdlib/types/ndarray';
* var x = vector( [ 1.0, 2.0, 3.0, 4.0, 5.0 ], 'generic' );
*
* var k = scalar2ndarray( 2, {
* 'dtype': 'generic'
* 'dtype': 'generic'
* });
*
* var out = gcircshift( [ x, k ] );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import { typedndarray } from '@stdlib/types/ndarray';
* var zeros = require( '@stdlib/ndarray/zeros' );
*
* var opts = {
* 'dtype': 'generic'
* 'dtype': 'generic'
* };
* var x = vector( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ], opts.dtype );
* var target = scalar2ndarray( 3, opts );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ import { typedndarray } from '@stdlib/types/ndarray';
* var x = vector( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], 'generic' );
*
* var start = scalar2ndarray( 0.0, {
* 'dtype': 'generic'
* 'dtype': 'generic'
* });
*
* var stop = scalar2ndarray( 100.0, {
* 'dtype': 'generic'
* 'dtype': 'generic'
* });
*
* var endpoint = scalar2ndarray( true, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import { typedndarray } from '@stdlib/types/ndarray';
* var x = vector( [ 1.0, -2.0, 3.0, -4.0 ], 'generic' );
*
* var ord = scalar2ndarray( 1.0, {
* 'dtype': 'generic'
* 'dtype': 'generic'
* });
*
* var out = gsort( [ x, ord ] );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import { typedndarray } from '@stdlib/types/ndarray';
* var x = vector( [ 1.0, -2.0, 3.0, -4.0 ], 'generic' );
*
* var ord = scalar2ndarray( 1.0, {
* 'dtype': 'generic'
* 'dtype': 'generic'
* });
*
* var out = gsorthp( [ x, ord ] );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import { typedndarray, float32ndarray } from '@stdlib/types/ndarray';
* var x = new Float32Vector( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
*
* var k = scalar2ndarray( 2, {
* 'dtype': 'generic'
* 'dtype': 'generic'
* });
*
* var out = scircshift( [ x, k ] );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,17 @@ import { typedndarray, float32ndarray } from '@stdlib/types/ndarray';
*
* var x = new Float32Vector( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
* var target = scalar2ndarray( 3, {
* 'dtype': 'generic'
* 'dtype': 'generic'
* });
* var start = scalar2ndarray( 1, {
* 'dtype': 'generic'
* 'dtype': 'generic'
* });
* var end = scalar2ndarray( 4, {
* 'dtype': 'generic'
* 'dtype': 'generic'
* });
*
* var w = zeros( [ 6 ], {
* 'dtype': 'float32'
* 'dtype': 'float32'
* });
*
* var out = scopyWithin( [ x, target, start, end, w ] );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ import { float32ndarray, boolndarray } from '@stdlib/types/ndarray';
* var x = new Float32Vector( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
*
* var start = scalar2ndarray( 0.0, {
* 'dtype': 'float32'
* 'dtype': 'float32'
* });
*
* var stop = scalar2ndarray( 100.0, {
* 'dtype': 'float32'
* 'dtype': 'float32'
* });
*
* var endpoint = scalar2ndarray( true, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import { typedndarray, float32ndarray } from '@stdlib/types/ndarray';
* var x = new Float32Vector( [ 1.0, -2.0, 3.0, -4.0 ] );
*
* var ord = scalar2ndarray( 1.0, {
* 'dtype': 'generic'
* 'dtype': 'generic'
* });
*
* var out = ssort( [ x, ord ] );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import { typedndarray, float32ndarray } from '@stdlib/types/ndarray';
* var x = new Float32Vector( [ 1.0, -2.0, 3.0, -4.0 ] );
*
* var ord = scalar2ndarray( 1.0, {
* 'dtype': 'generic'
* 'dtype': 'generic'
* });
*
* var out = ssorthp( [ x, ord ] );
Expand Down
18 changes: 9 additions & 9 deletions lib/node_modules/@stdlib/blas/ext/base/swxsy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,9 @@ logEach( '%d - %d = %d', x, y, w );
Subtracts elements of a single-precision floating-point strided array `Y` from the corresponding elements of a single-precision floating-point strided array `X` and assigns the results to elements in a single-precision floating-point strided array `W`.

```c
const float x[] = { 1.0, 2.0, 3.0, 4.0 };
const float y[] = { 2.0, 3.0, 4.0, 5.0 };
float w[] = { 0.0, 0.0, 0.0, 0.0 };
const float x[] = { 1.0f, 2.0f, 3.0f, 4.0f };
const float y[] = { 2.0f, 3.0f, 4.0f, 5.0f };
float w[] = { 0.0f, 0.0f, 0.0f, 0.0f };

stdlib_strided_swxsy( 4, x, 1, y, 1, w, 1 );
```
Expand Down Expand Up @@ -242,9 +242,9 @@ void stdlib_strided_swxsy( const CBLAS_INT N, const float *X, const CBLAS_INT st
Subtracts elements of a single-precision floating-point strided array `Y` from the corresponding elements of a single-precision floating-point strided array `X` and assigns the results to elements in a single-precision floating-point strided array `W` using alternative indexing semantics.

```c
const float x[] = { 1.0, 2.0, 3.0, 4.0 };
const float y[] = { 2.0, 3.0, 4.0, 5.0 };
float w[] = { 0.0, 0.0, 0.0, 0.0 };
const float x[] = { 1.0f, 2.0f, 3.0f, 4.0f };
const float y[] = { 2.0f, 3.0f, 4.0f, 5.0f };
float w[] = { 0.0f, 0.0f, 0.0f, 0.0f };

stdlib_strided_swxsy_ndarray( 4, x, 1, 0, y, 1, 0, w, 1, 0 );
```
Expand Down Expand Up @@ -290,9 +290,9 @@ void stdlib_strided_swxsy_ndarray( const CBLAS_INT N, const float *X, const CBLA

int main( void ) {
// Create strided arrays:
const float x[] = { 1.0, -2.0, 3.0, -4.0, 5.0, -6.0, 7.0, -8.0 };
const float y[] = { 2.0, 3.0, -1.0, 4.0, -2.0, 5.0, -3.0, 6.0 };
float w[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
const float x[] = { 1.0f, -2.0f, 3.0f, -4.0f, 5.0f, -6.0f, 7.0f, -8.0f };
const float y[] = { 2.0f, 3.0f, -1.0f, 4.0f, -2.0f, 5.0f, -3.0f, 6.0f };
float w[] = { 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f };

// Specify the number of indexed elements:
const int N = 8;
Expand Down
Loading