@@ -24,7 +24,7 @@ var tape = require( 'tape' );
2424var isSameComplex64Array = require ( '@stdlib/assert/is-same-complex64array' ) ;
2525var Complex64Array = require ( '@stdlib/array/complex64' ) ;
2626var Complex64 = require ( '@stdlib/complex/float32/ctor' ) ;
27- var scalar2ndarray = require ( '@stdlib/ndarray/base/ from-scalar' ) ;
27+ var scalar2ndarray = require ( '@stdlib/ndarray/from-scalar' ) ;
2828var ndarray = require ( '@stdlib/ndarray/base/ctor' ) ;
2929var getData = require ( '@stdlib/ndarray/data-buffer' ) ;
3030var caxpy = require ( './../lib' ) ;
@@ -95,7 +95,9 @@ tape( 'the function multiplies a one-dimensional ndarray `x` by a constant `alph
9595 ] ) ;
9696 x = vector ( xbuf , 5 , 1 , 0 ) ;
9797 y = vector ( ybuf , 5 , 1 , 0 ) ;
98- alpha = scalar2ndarray ( new Complex64 ( 2.0 , 2.0 ) , 'complex64' , 'row-major' ) ;
98+ alpha = scalar2ndarray ( new Complex64 ( 2.0 , 2.0 ) , {
99+ 'dtype' : 'complex64'
100+ } ) ;
99101
100102 v = caxpy ( [ x , y , alpha ] ) ;
101103
@@ -128,7 +130,9 @@ tape( 'the function multiplies a one-dimensional ndarray `x` by a constant `alph
128130 ] ) ;
129131 x = vector ( xbuf , 2 , 1 , 0 ) ;
130132 y = vector ( ybuf , 2 , 1 , 0 ) ;
131- alpha = scalar2ndarray ( new Complex64 ( 2.0 , 2.0 ) , 'complex64' , 'row-major' ) ;
133+ alpha = scalar2ndarray ( new Complex64 ( 2.0 , 2.0 ) , {
134+ 'dtype' : 'complex64'
135+ } ) ;
132136
133137 v = caxpy ( [ x , y , alpha ] ) ;
134138
@@ -157,7 +161,9 @@ tape( 'if provided empty ndarrays, the function returns the output ndarray uncha
157161 ybuf = new Complex64Array ( [ ] ) ;
158162 x = vector ( xbuf , 0 , 1 , 0 ) ;
159163 y = vector ( ybuf , 0 , 1 , 0 ) ;
160- alpha = scalar2ndarray ( new Complex64 ( 1.0 , 2.0 ) , 'complex64' , 'row-major' ) ;
164+ alpha = scalar2ndarray ( new Complex64 ( 1.0 , 2.0 ) , {
165+ 'dtype' : 'complex64'
166+ } ) ;
161167
162168 v = caxpy ( [ x , y , alpha ] ) ;
163169
@@ -204,7 +210,9 @@ tape( 'the function supports one-dimensional ndarrays having non-unit strides',
204210 1.0
205211 ] ) ;
206212 y = vector ( ybuf , 3 , 1 , 0 ) ;
207- alpha = scalar2ndarray ( new Complex64 ( 2.0 , 2.0 ) , 'complex64' , 'row-major' ) ;
213+ alpha = scalar2ndarray ( new Complex64 ( 2.0 , 2.0 ) , {
214+ 'dtype' : 'complex64'
215+ } ) ;
208216
209217 v = caxpy ( [ x , y , alpha ] ) ;
210218
@@ -261,7 +269,9 @@ tape( 'the function supports one-dimensional ndarrays having negative strides',
261269 10.0
262270 ] ) ;
263271 y = vector ( ybuf , 3 , - 1 , 2 ) ;
264- alpha = scalar2ndarray ( new Complex64 ( 2.0 , 2.0 ) , 'complex64' , 'row-major' ) ;
272+ alpha = scalar2ndarray ( new Complex64 ( 2.0 , 2.0 ) , {
273+ 'dtype' : 'complex64'
274+ } ) ;
265275
266276 v = caxpy ( [ x , y , alpha ] ) ;
267277
@@ -330,7 +340,9 @@ tape( 'the function supports one-dimensional ndarrays having non-zero offsets',
330340 8.0
331341 ] ) ;
332342 y = vector ( ybuf , 4 , 1 , 2 ) ;
333- alpha = scalar2ndarray ( new Complex64 ( 2.0 , 2.0 ) , 'complex64' , 'row-major' ) ;
343+ alpha = scalar2ndarray ( new Complex64 ( 2.0 , 2.0 ) , {
344+ 'dtype' : 'complex64'
345+ } ) ;
334346
335347 v = caxpy ( [ x , y , alpha ] ) ;
336348
0 commit comments