@@ -50,7 +50,6 @@ import dtypes2signatures = require( './../../../base/dtypes2signatures' );
50
50
import empty = require( './../../../base/empty' ) ;
51
51
import emptyLike = require( './../../../base/empty-like' ) ;
52
52
import expandDimensions = require( './../../../base/expand-dimensions' ) ;
53
- import fill = require( './../../../base/fill' ) ;
54
53
import flag = require( './../../../base/flag' ) ;
55
54
import flags = require( './../../../base/flags' ) ;
56
55
import fliplr = require( './../../../base/fliplr' ) ;
@@ -60,13 +59,10 @@ import scalar2ndarray = require( './../../../base/from-scalar' );
60
59
import ind = require( './../../../base/ind' ) ;
61
60
import ind2sub = require( './../../../base/ind2sub' ) ;
62
61
import iterationOrder = require( './../../../base/iteration-order' ) ;
63
- import map = require( './../../../base/map' ) ;
64
62
import maxViewBufferIndex = require( './../../../base/max-view-buffer-index' ) ;
65
63
import maybeBroadcastArray = require( './../../../base/maybe-broadcast-array' ) ;
66
64
import maybeBroadcastArrays = require( './../../../base/maybe-broadcast-arrays' ) ;
67
65
import metaDataProps = require( './../../../base/meta-data-props' ) ;
68
- import minSignedIntegerDataType = require( './../../../base/min-signed-integer-dtype' ) ;
69
- import minUnsignedIntegerDataType = require( './../../../base/min-unsigned-integer-dtype' ) ;
70
66
import minViewBufferIndex = require( './../../../base/min-view-buffer-index' ) ;
71
67
import minmaxViewBufferIndex = require( './../../../base/minmax-view-buffer-index' ) ;
72
68
import ndarraylike2ndarray = require( './../../../base/ndarraylike2ndarray' ) ;
@@ -107,7 +103,6 @@ import strides2offset = require( './../../../base/strides2offset' );
107
103
import strides2order = require( './../../../base/strides2order' ) ;
108
104
import sub2ind = require( './../../../base/sub2ind' ) ;
109
105
import ndarray2array = require( './../../../base/to-array' ) ;
110
- import toReversed = require( './../../../base/to-reversed' ) ;
111
106
import transpose = require( './../../../base/transpose' ) ;
112
107
import unary = require( './../../../base/unary' ) ;
113
108
import unaryBy = require( './../../../base/unary-by' ) ;
@@ -943,44 +938,6 @@ interface Namespace {
943
938
*/
944
939
expandDimensions : typeof expandDimensions ;
945
940
946
- /**
947
- * Fills an input ndarray with a specified value.
948
- *
949
- * @param x - input ndarray
950
- * @param value - scalar value
951
- *
952
- * @example
953
- * var Float64Array = require( '@stdlib/array/float64' );
954
- *
955
- * // Create a data buffer:
956
- * var xbuf = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
957
- *
958
- * // Define the shape of the input array:
959
- * var shape = [ 3, 1, 2 ];
960
- *
961
- * // Define the array strides:
962
- * var sx = [ 2, 2, 1 ];
963
- *
964
- * // Define the index offset:
965
- * var ox = 0;
966
- *
967
- * // Create the input ndarray-like object:
968
- * var x = {
969
- * 'dtype': 'float64',
970
- * 'data': xbuf,
971
- * 'shape': shape,
972
- * 'strides': sx,
973
- * 'offset': ox,
974
- * 'order': 'row-major'
975
- * };
976
- *
977
- * ns.fill( x, 10.0 );
978
- *
979
- * console.log( x.data );
980
- * // => <Float64Array>[ 10.0, 10.0, 10.0, 10.0, 10.0, 10.0 ]
981
- */
982
- fill : typeof fill ;
983
-
984
941
/**
985
942
* Returns a specified flag for a provided ndarray.
986
943
*
@@ -1334,50 +1291,6 @@ interface Namespace {
1334
1291
*/
1335
1292
iterationOrder : typeof iterationOrder ;
1336
1293
1337
- /**
1338
- * Applies a callback function to the elements in an input ndarray and assigns results to the elements in an output ndarray.
1339
- *
1340
- * @param arrays - array-like object containing one input ndarray and one output ndarray
1341
- * @param fcn - callback function
1342
- * @param thisArg - callback function execution context
1343
- * @throws arrays must have the same number of dimensions
1344
- * @throws arrays must have the same shape
1345
- *
1346
- * @example
1347
- * var Float64Array = require( '@stdlib/array/float64' );
1348
- * var ndarray = require( './../../../ctor' );
1349
- *
1350
- * function scale( x ) {
1351
- * return x * 10.0;
1352
- * }
1353
- *
1354
- * // Create data buffers:
1355
- * var xbuf = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
1356
- * var ybuf = new Float64Array( 6 );
1357
- *
1358
- * // Define the shape of the input and output arrays:
1359
- * var shape = [ 3, 1, 2 ];
1360
- *
1361
- * // Define the array strides:
1362
- * var sx = [ 4, 4, 1 ];
1363
- * var sy = [ 2, 2, 1 ];
1364
- *
1365
- * // Define the index offsets:
1366
- * var ox = 1;
1367
- * var oy = 0;
1368
- *
1369
- * // Create the input and output ndarrays:
1370
- * var x = ndarray( 'float64', xbuf, shape, sx, ox, 'row-major' );
1371
- * var y = ndarray( 'float64', ybuf, shape, sy, oy, 'row-major' );
1372
- *
1373
- * // Apply the ns.map function:
1374
- * ns.map( [ x, y ], scale );
1375
- *
1376
- * console.log( y.data );
1377
- * // => <Float64Array>[ 20.0, 30.0, 60.0, 70.0, 100.0, 110.0 ]
1378
- */
1379
- map : typeof map ;
1380
-
1381
1294
/**
1382
1295
* Computes the maximum linear index in an underlying data buffer accessible to an array view.
1383
1296
*
@@ -1571,38 +1484,6 @@ interface Namespace {
1571
1484
*/
1572
1485
metaDataProps : typeof metaDataProps ;
1573
1486
1574
- /**
1575
- * Returns the minimum ndarray data type for storing a provided signed integer value.
1576
- *
1577
- * @param value - scalar value
1578
- * @returns ndarray data type
1579
- *
1580
- * @example
1581
- * var dt = ns.minSignedIntegerDataType( 1280 );
1582
- * // returns 'int16'
1583
- *
1584
- * @example
1585
- * var dt = ns.minSignedIntegerDataType( 3 );
1586
- * // returns 'int8'
1587
- */
1588
- minSignedIntegerDataType : typeof minSignedIntegerDataType ;
1589
-
1590
- /**
1591
- * Returns the minimum ndarray data type for storing a provided unsigned integer value.
1592
- *
1593
- * @param value - scalar value
1594
- * @returns ndarray data type
1595
- *
1596
- * @example
1597
- * var dt = ns.minUnsignedIntegerDataType( 1280 );
1598
- * // returns 'uint16'
1599
- *
1600
- * @example
1601
- * var dt = ns.minUnsignedIntegerDataType( 3 );
1602
- * // returns 'uint8'
1603
- */
1604
- minUnsignedIntegerDataType : typeof minUnsignedIntegerDataType ;
1605
-
1606
1487
/**
1607
1488
* Computes the minimum linear index in an underlying data buffer accessible to an array view.
1608
1489
*
@@ -2837,42 +2718,6 @@ interface Namespace {
2837
2718
*/
2838
2719
ndarray2array : typeof ndarray2array ;
2839
2720
2840
- /**
2841
- * Returns a new ndarray where the order of elements of an input ndarray is reversed along each dimension.
2842
- *
2843
- * @param x - input array
2844
- * @returns output array
2845
- *
2846
- * @example
2847
- * var typedarray = require( '@stdlib/array/typed' );
2848
- * var ndarray = require( './../../../ctor' );
2849
- * var ndarray2array = require( './../../../to-array' );
2850
- *
2851
- * var buffer = typedarray( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ], 'float64' );
2852
- * var shape = [ 3, 2 ];
2853
- * var strides = [ 2, 1 ];
2854
- * var offset = 0;
2855
- *
2856
- * var x = ndarray( 'float64', buffer, shape, strides, offset, 'row-major' );
2857
- * // returns <ndarray>
2858
- *
2859
- * var sh = x.shape;
2860
- * // returns [ 3, 2 ]
2861
- *
2862
- * var arr = ndarray2array( x );
2863
- * // returns [ [ 1.0, 2.0 ], [ 3.0, 4.0 ], [ 5.0, 6.0 ] ]
2864
- *
2865
- * var y = ns.toReversed( x );
2866
- * // returns <ndarray>
2867
- *
2868
- * sh = y.shape;
2869
- * // returns [ 3, 2 ]
2870
- *
2871
- * arr = ndarray2array( y );
2872
- * // returns [ [ 6.0, 5.0 ], [ 4.0, 3.0 ], [ 2.0, 1.0 ] ]
2873
- */
2874
- toReversed : typeof toReversed ;
2875
-
2876
2721
/**
2877
2722
* Transposes a matrix (or a stack of matrices).
2878
2723
*
0 commit comments