|
||
---|---|---|
.. | ||
addon-arguments | ||
dmap | ||
dmskmap | ||
docs/types | ||
include/stdlib/strided | ||
lib | ||
mskunary | ||
smap | ||
smskmap | ||
unary | ||
manifest.json | ||
package.json | ||
README.md |
Strided Array Native Add-ons
C APIs for creating Node-API strided array native add-ons.
This package exposes an absolute file path for the directory containing header files for various C APIs. The various C APIs facilitate the creation of Node-API strided array native add-ons.
Usage
var headerDir = require( '@stdlib/strided/napi' );
headerDir
Absolute file path for the directory containing header files for C APIs.
var dir = headerDir;
// returns <string>
Examples
var headerDir = require( '@stdlib/strided/napi' );
console.log( headerDir );
// => <string>
C APIs
This package exposes various C APIs to facilitate the creation of Node-API strided array native add-ons. The included C APIs are the APIs implemented in the following packages:
@stdlib/strided/base/binary
: https://www.npmjs.com/package/@stdlib/strided/tree/main/base/binary`][@stdlib/strided/base/binary@stdlib/strided/base/dmap
: https://www.npmjs.com/package/@stdlib/strided/tree/main/base/dmap`][@stdlib/strided/base/dmap@stdlib/strided/base/dmskmap
: https://www.npmjs.com/package/@stdlib/strided/tree/main/base/dmskmap`][@stdlib/strided/base/dmskmap@stdlib/strided/base/function-object
: https://www.npmjs.com/package/@stdlib/strided/tree/main/base/function-object`][@stdlib/strided/base/function-object@stdlib/strided/base/mskunary
: https://www.npmjs.com/package/@stdlib/strided/tree/main/base/mskunary`][@stdlib/strided/base/mskunary@stdlib/strided/base/smap
: https://www.npmjs.com/package/@stdlib/strided/tree/main/base/smap`][@stdlib/strided/base/smap@stdlib/strided/base/smskmap
: https://www.npmjs.com/package/@stdlib/strided/tree/main/base/smskmap`][@stdlib/strided/base/smskmap@stdlib/strided/base/unary
: https://www.npmjs.com/package/@stdlib/strided/tree/main/base/unary`][@stdlib/strided/base/unary@stdlib/strided/dtypes
: https://www.npmjs.com/package/@stdlib/strided/tree/main/dtypes`][@stdlib/strided/dtypes@stdlib/strided/napi/dmap
: https://www.npmjs.com/package/@stdlib/strided/tree/main/napi/dmap`][@stdlib/strided/napi/dmap@stdlib/strided/napi/dmskmap
: https://www.npmjs.com/package/@stdlib/strided/tree/main/napi/dmskmap`][@stdlib/strided/napi/dmskmap@stdlib/strided/napi/mskunary
: https://www.npmjs.com/package/@stdlib/strided/tree/main/napi/mskunary`][@stdlib/strided/napi/mskunary@stdlib/strided/napi/smap
: https://www.npmjs.com/package/@stdlib/strided/tree/main/napi/smap`][@stdlib/strided/napi/smap@stdlib/strided/napi/smskmap
: https://www.npmjs.com/package/@stdlib/strided/tree/main/napi/smskmap`][@stdlib/strided/napi/smskmap@stdlib/strided/napi/unary
: https://www.npmjs.com/package/@stdlib/strided/tree/main/napi/unary`][@stdlib/strided/napi/unary
For API documentation, consult the individual packages.
Usage
#include "stdlib/strided/napi.h"
Examples
#include "stdlib/strided/napi.h"
static double identity( const double x ) {
return x;
}
STDLIB_STRIDED_NAPI_MODULE_DMAP( identity )