-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrepl.txt
44 lines (37 loc) · 951 Bytes
/
repl.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{{alias}}( value, dtype )
Tests if a value is an ndarray-like object having a specified data type.
Parameters
----------
value: any
Value to test.
dtype: any
Data type value.
Returns
-------
bool: boolean
Boolean indicating whether a value is an ndarray-like object having a
specified data type.
Examples
--------
> var M = {};
> M.data = [ 0, 0, 0, 0 ];
> M.ndims = 2;
> M.shape = [ 2, 2 ];
> M.strides = [ 2, 1 ];
> M.offset = 0;
> M.order = 'row-major';
> M.dtype = 'generic';
> M.length = 4;
> M.flags = {};
> M.get = function get( i, j ) {};
> M.set = function set( i, j ) {};
> var bool = {{alias}}( M, 'generic' )
true
> bool = {{alias}}( [ 1, 2, 3, 4 ], 'generic' )
false
> bool = {{alias}}( 3.14, 'generic' )
false
> bool = {{alias}}( {}, 'generic' )
false
See Also
--------