Athan

Results 562 comments of Athan

Whoa. That is bizarre.

In the REPL, do ``` var isAccessorArray = require( '@stdlib/array/base/assert/is-accessor-array' ); var z = new Complex128Array( [ 1.0, 2.0 ] ); isAccessorArray( z ) typeof z.get typeof z.set ```

Okay, that is weird. As `isAccessorArray` is what is used by `arraylike2object`.

Can you also run from the terminal ``` $ make test TESTS_FILTER=".*/array/base/arraylike2object/.*" ```

`array/base/arraylike2object` has an explicit test for complex number arrays.

In the source code of `arraylike2object`, log the values of `x` and the result of `isAccessorArray( x )` (L55-56), and run the tests again.

Wait...why are you logging `value.accessors`? Where is this happening?

Yes, that would probably be best.

You use convert a normal array to an accessor array using `@stdlib/array/base/to-accessor-array`.

Yes, but you'll want to add separate complex array tests, as the algorithm, IIRC, is different depending on whether real or complex.