Skip to content

Commit 013fdd9

Browse files
committed
Update namespace
1 parent 12a7491 commit 013fdd9

File tree

3 files changed

+12
-0
lines changed
  • lib/node_modules/@stdlib

3 files changed

+12
-0
lines changed

lib/node_modules/@stdlib/namespace/lib/namespace/b.js

+10
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,16 @@ ns.push({
436436
]
437437
});
438438

439+
ns.push({
440+
'alias': 'base.cinv',
441+
'path': '@stdlib/math/base/complex/inv',
442+
'value': require( '@stdlib/math/base/complex/inv' ),
443+
'type': 'Function',
444+
'related': [
445+
'@stdlib/math/base/complex/divide'
446+
]
447+
});
448+
439449
ns.push({
440450
'alias': 'base.cmul',
441451
'path': '@stdlib/math/base/complex/multiply',

lib/node_modules/@stdlib/repl/code-blocks/lib/db.js

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ module.exports = {
5353
"base.ceiln": "\n// Round to 2 decimal places:\ny = base.ceiln( 3.14159, -2 )\n\n// If `n = 0`, standard round toward positive infinity behavior:\ny = base.ceiln( 3.14159, 0 )\n\n// Round to nearest thousand:\ny = base.ceiln( 12368.0, 3 )\n",
5454
"base.ceilsd": "y = base.ceilsd( 3.14159, 5 )\ny = base.ceilsd( 3.14159, 1 )\ny = base.ceilsd( 12368.0, 2 )\ny = base.ceilsd( 0.0313, 2, 2 )\n",
5555
"base.cfloor": "out = base.cfloor( 5.5, 3.3 )\n",
56+
"base.cinv": "y = base.cinv( 2.0, 4.0 )\nout = new Float64Array( 2 );\nv = base.cinv( out, 2.0, 4.0 )\nbool = ( v === out )\n",
5657
"base.cmul": "y = base.cmul( 5.0, 3.0, -2.0, 1.0 )\n",
5758
"base.continuedFraction": "\n// Continued fraction for (e-1)^(-1):\nfunction closure() {\ni = 0;\nreturn function() {\ni++;\nreturn [ i, i ];\n};\n}\ngen = closure()\nout = base.continuedFraction( gen )\n\n// Using an ES6 generator:\nfunction* generator() {\ni = 0;\nwhile ( true ) {\ni++;\nyield [ i, i ];\n}\n}\ngen = generator();\nout = base.continuedFraction( gen )\n\n// Set options:\nout = base.continuedFraction( generator(), { 'keep': true } )\nout = base.continuedFraction( generator(), { 'maxIter': 10 } )\nout = base.continuedFraction( generator(), { 'tolerance': 1e-1 } )\n",
5859
"base.copy": "\n// Standard usage:\nx = [ 1.0, 2.0, 3.0, 4.0, 5.0 ];\ny = [ 6.0, 7.0, 8.0, 9.0, 10.0 ];\nbase.copy( x.length, x, 1, y, 1 )\n\n// Advanced indexing:\nx = [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ];\ny = [ 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ];\nN = base.floor( x.length / 2 );\nbase.copy( N, x, -2, y, 1 )\n\n// Using typed array views:\nx0 = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );\ny0 = new Float64Array( [ 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );\nx1 = new Float64Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 );\ny1 = new Float64Array( y0.buffer, y0.BYTES_PER_ELEMENT*3 );\nN = base.floor( x0.length / 2 );\nbase.copy( N, x1, -2, y1, 1 )\ny0\n",

lib/node_modules/@stdlib/repl/help/lib/db.js

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ module.exports = {
5353
"base.ceiln": "\nbase.ceiln( x, n )\n Rounds a numeric value to the nearest multiple of `10^n` toward positive\n infinity.\n\n When operating on floating-point numbers in bases other than `2`, rounding\n to specified digits can be inexact.\n\n Parameters\n ----------\n x: number\n Input value.\n\n n: integer\n Integer power of 10.\n\n Returns\n -------\n y: number\n Rounded value.\n\n Examples\n --------\n // Round to 2 decimal places:\n > var y = base.ceiln( 3.14159, -2 )\n 3.15\n\n // If `n = 0`, standard round toward positive infinity behavior:\n > y = base.ceiln( 3.14159, 0 )\n 4.0\n\n // Round to nearest thousand:\n > y = base.ceiln( 12368.0, 3 )\n 13000.0\n\n\n See Also\n --------\n base.ceil, base.ceilb, base.floorn, base.roundn\n",
5454
"base.ceilsd": "\nbase.ceilsd( x, n[, b] )\n Rounds a numeric value to the nearest number toward positive infinity with\n `n` significant figures.\n\n Parameters\n ----------\n x: number\n Input value.\n\n n: integer\n Number of significant figures. Must be greater than 0.\n\n b: integer (optional)\n Base. Must be greater than 0. Default: 10.\n\n Returns\n -------\n y: number\n Rounded value.\n\n Examples\n --------\n > var y = base.ceilsd( 3.14159, 5 )\n 3.1416\n > y = base.ceilsd( 3.14159, 1 )\n 4.0\n > y = base.ceilsd( 12368.0, 2 )\n 13000.0\n > y = base.ceilsd( 0.0313, 2, 2 )\n 0.046875\n\n See Also\n --------\n base.ceil, base.floorsd, base.roundsd, base.truncsd\n",
5555
"base.cfloor": "\nbase.cfloor( re, im )\n Rounds a complex number toward negative infinity.\n\n Parameters\n ----------\n re: number\n Real component.\n\n im: number\n Imaginary component.\n\n Returns\n -------\n out: Array<number>\n Rounded components.\n\n Examples\n --------\n > var out = base.cfloor( 5.5, 3.3 )\n [ 5.0, 3.0 ]\n\n See Also\n --------\n base.cceil, base.cround\n",
56+
"base.cinv": "\nbase.cinv( [out,] re, im )\n Computes the inverse of a complex number.\n\n Parameters\n ----------\n out: Array|TypedArray|Object (optional)\n Output array.\n\n re: number\n Real component.\n\n im: number\n Imaginary component.\n\n Returns\n -------\n out: Array|TypedArray|Object\n Real and imaginary components.\n\n Examples\n --------\n > var y = base.cinv( 2.0, 4.0 )\n [ 0.1, -0.2 ]\n\n > var out = new Float64Array( 2 );\n > var v = base.cinv( out, 2.0, 4.0 )\n <Float64Array>[ 0.1, -0.2 ]\n > var bool = ( v === out )\n true\n\n See Also\n --------\n base.cdiv\n",
5657
"base.cmul": "\nbase.cmul( re1, im1, re2, im2 )\n Multiplies two complex numbers.\n\n Parameters\n ----------\n re1: number\n Real component.\n\n im1: number\n Imaginary component.\n\n re2: number\n Real component.\n\n im2: number\n Imaginary component.\n\n Returns\n -------\n out: Array\n Array containing the real and imaginary components of the result.\n\n Examples\n --------\n > var y = base.cmul( 5.0, 3.0, -2.0, 1.0 )\n [ -13.0, -1.0 ]\n\n See Also\n --------\n base.cadd, base.cdiv, base.csub\n",
5758
"base.continuedFraction": "\nbase.continuedFraction( generator[, options] )\n Evaluates the continued fraction approximation for the supplied series\n generator using the modified Lentz algorithm.\n\n `generator` can be either a function which returns an array with two\n elements, the `a` and `b` terms of the fraction, or an ES6 Generator object.\n\n By default, the function computes\n\n a1\n ---------------\n b1 + a2\n ----------\n b2 + a3\n -----\n b3 + ...\n\n To evaluate\n\n b0 +\t a1\n ---------------\n b1 +\t a2\n ----------\n b2 + a3\n -----\n b3 + ...\n\n set the `keep` option to `true`.\n\n Parameters\n ----------\n generator: Function\n Function returning terms of continued fraction expansion.\n\n options: Object (optional)\n Options.\n\n options.maxIter: integer (optional)\n Maximum number of iterations. Default: `1000000`.\n\n options.tolerance: number (optional)\n Further terms are only added as long as the next term is greater than\n current term times the tolerance. Default: `2.22e-16`.\n\n options.keep: boolean (optional)\n Boolean indicating whether to keep the `b0` term in the continued\n fraction. Default: `false`.\n\n Returns\n -------\n out: number\n Value of continued fraction.\n\n Examples\n --------\n // Continued fraction for (e-1)^(-1):\n > function closure() {\n > var i = 0;\n > return function() {\n > i++;\n > return [ i, i ];\n > };\n > }\n > var gen = closure()\n > var out = base.continuedFraction( gen )\n ~0.582\n\n // Using an ES6 generator:\n > function* generator() {\n > var i = 0;\n > while ( true ) {\n > i++;\n > yield [ i, i ];\n > }\n > }\n > gen = generator();\n > out = base.continuedFraction( gen )\n ~0.582\n\n // Set options:\n > out = base.continuedFraction( generator(), { 'keep': true } )\n ~1.718\n > out = base.continuedFraction( generator(), { 'maxIter': 10 } )\n ~0.582\n > out = base.continuedFraction( generator(), { 'tolerance': 1e-1 } )\n ~0.578\n\n",
5859
"base.copy": "\nbase.copy( N, x, strideX, y, strideY )\n Copies values from `x` into `y`.\n\n The `N` and `stride` parameters determine how values from `x` are copied\n into `y`.\n\n Indexing is relative to the first index. To introduce an offset, use typed\n array views.\n\n If `N` is less than or equal to `0`, the function returns `y` unchanged.\n\n Parameters\n ----------\n N: integer\n Number of values to copy.\n\n x: Array|TypedArray\n Input array.\n\n strideX: integer\n Index increment for `x`.\n\n y: Array|TypedArray\n Destination array.\n\n strideY: integer\n Index increment for `y`.\n\n Returns\n -------\n y: Array|TypedArray\n Input array `y`.\n\n Examples\n --------\n // Standard usage:\n > var x = [ 1.0, 2.0, 3.0, 4.0, 5.0 ];\n > var y = [ 6.0, 7.0, 8.0, 9.0, 10.0 ];\n > base.copy( x.length, x, 1, y, 1 )\n [ 1.0, 2.0, 3.0, 4.0, 5.0 ]\n\n // Advanced indexing:\n > x = [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ];\n > y = [ 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ];\n > var N = base.floor( x.length / 2 );\n > base.copy( N, x, -2, y, 1 )\n [ 5.0, 3.0, 1.0, 10.0, 11.0, 12.0 ]\n\n // Using typed array views:\n > var x0 = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );\n > var y0 = new Float64Array( [ 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );\n > var x1 = new Float64Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 );\n > var y1 = new Float64Array( y0.buffer, y0.BYTES_PER_ELEMENT*3 );\n > N = base.floor( x0.length / 2 );\n > base.copy( N, x1, -2, y1, 1 )\n <Float64Array>[ 6.0, 4.0, 2.0 ]\n > y0\n <Float64Array>[ 7.0, 8.0, 9.0, 6.0, 4.0, 2.0 ]\n\n\nbase.copy.ndarray( N, x, strideX, offsetX, y, strideY, offsetY )\n Copies values from `x` into `y`, with alternative indexing semantics.\n\n While typed array views mandate a view offset based on the underlying\n buffer, the `offset` parameters support indexing semantics based on starting\n indices.\n\n Parameters\n ----------\n N: integer\n Number of values to copy.\n\n x: Array|TypedArray\n Input array.\n\n strideX: integer\n Index increment for `x`.\n\n offsetX: integer\n Starting index for `x`.\n\n y: Array|TypedArray\n Destination array.\n\n strideY: integer\n Index increment for `y`.\n\n offsetY: integer\n Starting index for `y`.\n\n Returns\n -------\n y: Array|TypedArray\n Input array `y`.\n\n Examples\n --------\n // Standard usage:\n > var x = [ 1.0, 2.0, 3.0, 4.0, 5.0 ];\n > var y = [ 6.0, 7.0, 8.0, 9.0, 10.0 ];\n > base.copy.ndarray( x.length, x, 1, 0, y, 1, 0 )\n [ 1.0, 2.0, 3.0, 4.0, 5.0 ]\n\n // Advanced indexing:\n > x = [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ];\n > y = [ 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ];\n > var N = base.floor( x.length / 2 );\n > base.copy.ndarray( N, x, 2, 1, y, -1, y.length-1 )\n [ 7.0, 8.0, 9.0, 6.0, 4.0, 2.0 ]\n\n See Also\n --------\n base.dcopy\n",

0 commit comments

Comments
 (0)