time-to-botec

Benchmark sampling in different programming languages
Log | Files | Refs | README

README.md (3023B)


      1 <!--
      2 
      3 @license Apache-2.0
      4 
      5 Copyright (c) 2018 The Stdlib Authors.
      6 
      7 Licensed under the Apache License, Version 2.0 (the "License");
      8 you may not use this file except in compliance with the License.
      9 You may obtain a copy of the License at
     10 
     11    http://www.apache.org/licenses/LICENSE-2.0
     12 
     13 Unless required by applicable law or agreed to in writing, software
     14 distributed under the License is distributed on an "AS IS" BASIS,
     15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     16 See the License for the specific language governing permissions and
     17 limitations under the License.
     18 
     19 -->
     20 
     21 # isComplex128Array
     22 
     23 > Test if a value is a [Complex128Array][@stdlib/array/complex128].
     24 
     25 <section class="usage">
     26 
     27 ## Usage
     28 
     29 ```javascript
     30 var isComplex128Array = require( '@stdlib/assert/is-complex128array' );
     31 ```
     32 
     33 #### isComplex128Array( value )
     34 
     35 Tests if a value is a [`Complex128Array`][@stdlib/array/complex128].
     36 
     37 ```javascript
     38 var Complex128Array = require( '@stdlib/array/complex128' );
     39 
     40 var bool = isComplex128Array( new Complex128Array( 10 ) );
     41 // returns true
     42 
     43 bool = isComplex128Array( [] );
     44 // returns false
     45 ```
     46 
     47 </section>
     48 
     49 <!-- /.usage -->
     50 
     51 <section class="examples">
     52 
     53 ## Examples
     54 
     55 <!-- eslint no-undef: "error" -->
     56 
     57 ```javascript
     58 var Int8Array = require( '@stdlib/array/int8' );
     59 var Uint8Array = require( '@stdlib/array/uint8' );
     60 var Uint8ClampedArray = require( '@stdlib/array/uint8c' );
     61 var Int16Array = require( '@stdlib/array/int16' );
     62 var Uint16Array = require( '@stdlib/array/uint16' );
     63 var Int32Array = require( '@stdlib/array/int32' );
     64 var Uint32Array = require( '@stdlib/array/uint32' );
     65 var Float32Array = require( '@stdlib/array/float32' );
     66 var Float64Array = require( '@stdlib/array/float64' );
     67 var Complex64Array = require( '@stdlib/array/complex64' );
     68 var Complex128Array = require( '@stdlib/array/complex128' );
     69 var isComplex128Array = require( '@stdlib/assert/is-complex128array' );
     70 
     71 var bool = isComplex128Array( new Complex128Array( 10 ) );
     72 // returns true
     73 
     74 bool = isComplex128Array( new Complex64Array( 10 ) );
     75 // returns false
     76 
     77 bool = isComplex128Array( new Float64Array( 10 ) );
     78 // returns false
     79 
     80 bool = isComplex128Array( new Int8Array( 10 ) );
     81 // returns false
     82 
     83 bool = isComplex128Array( new Uint8Array( 10 ) );
     84 // returns false
     85 
     86 bool = isComplex128Array( new Uint8ClampedArray( 10 ) );
     87 // returns false
     88 
     89 bool = isComplex128Array( new Int16Array( 10 ) );
     90 // returns false
     91 
     92 bool = isComplex128Array( new Uint16Array( 10 ) );
     93 // returns false
     94 
     95 bool = isComplex128Array( new Int32Array( 10 ) );
     96 // returns false
     97 
     98 bool = isComplex128Array( new Uint32Array( 10 ) );
     99 // returns false
    100 
    101 bool = isComplex128Array( new Float32Array( 10 ) );
    102 // returns false
    103 
    104 bool = isComplex128Array( new Array( 10 ) );
    105 // returns false
    106 
    107 bool = isComplex128Array( {} );
    108 // returns false
    109 
    110 bool = isComplex128Array( null );
    111 // returns false
    112 ```
    113 
    114 </section>
    115 
    116 <!-- /.examples -->
    117 
    118 <section class="links">
    119 
    120 [@stdlib/array/complex128]: https://www.npmjs.com/package/@stdlib/array-complex128
    121 
    122 </section>
    123 
    124 <!-- /.links -->