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
3 changes: 3 additions & 0 deletions lib/node_modules/@stdlib/math/base/napi/quaternary/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,8 @@ void stdlib_math_base_napi_dddd_d( napi_env env, napi_callback_info info, double
Macro for registering a Node-API module exporting an interface invoking a quaternary function accepting a double-precision floating-point number and three signed 32-bit integers and returning a double-precision floating-point number.

```c
#include <stdint.h>

static double add( const double x, const int32_t y, const int32_t z, const int32_t w ) {
return x + y + z + w;
}
Expand All @@ -296,6 +298,7 @@ Invokes a quaternary function accepting a double-precision floating-point number

```c
#include <node_api.h>
#include <stdint.h>

// ...

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ logEachMap( 'shape: (%s). dim: %d. flattened: (%s).', shapes, dims, flattenShape
Flattens a shape starting from a specified dimension.

```c
#include <stdint.h>

const int64_t ndims = 3;
const int64_t shape[] = { 2, 3, 10 };
int64_t out[ 2 ];
Expand Down
2 changes: 2 additions & 0 deletions lib/node_modules/@stdlib/ndarray/base/flatten-shape/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ logEachMap( 'shape: (%s). depth: %d. flattened: (%s).', shapes, depths, flattenS
Flattens a shape to a specified depth.

```c
#include <stdint.h>

const int64_t ndims = 3;
const int64_t shape[] = { 2, 3, 10 };
int64_t out[ 1 ];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ for ( i = 0; i < 100; i++ ) {
Computes the minimum and maximum linear indices (in bytes) in an underlying data buffer accessible to an array view.

```c
#include <stdint.h>

int64_t ndims = 2;
int64_t shape[] = { 10, 10 };
int64_t strides[] = { 10, 1 };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ for ( i = 0; i < 100; i++ ) {
Returns the number of non-singleton dimensions.

```c
#include <stdint.h>

int64_t ndims = 2;
int64_t shape[] = { 10, 1 };

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ for ( i = 0; i < 100; i++ ) {
Returns the number of singleton dimensions.

```c
#include <stdint.h>

int64_t ndims = 2;
int64_t shape[] = { 10, 1 };

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function factory( v ) {
var exponent;
var betaTerm;

if ( isnan( v ) || v <= 0 ) {
if ( isnan( v ) || v <= 0.0 ) {
return constantFunction( NaN );
}
betaTerm = ln( sqrt( v ) ) + betaln( v/2.0, 0.5 );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function factory( v ) {
var exponent;
var betaTerm;

if ( isnan( v ) || v <= 0 ) {
if ( isnan( v ) || v <= 0.0 ) {
return constantFunction( NaN );
}
betaTerm = sqrt( v ) * beta( v/2.0, 0.5 );
Expand Down