JuliaSIMD / StrideArraysCore.jl

The core AbstractStrideArray type, separated from StrideArrays.jl to avoid circular dependencies.
MIT License
17 stars 8 forks source link

move StrideArray type definition to this package? #6

Closed Roger-luo closed 3 years ago

Roger-luo commented 3 years ago

just to file an issue that will prob resolve https://github.com/chriselrod/StrideArrays.jl/issues/21 so that I can just depend on this package.

chriselrod commented 3 years ago

From the tests:

greet = ["Hello", "world", "hang", "in", "there"]
greetsa = StrideArray(greet);
@test greetsa == greet
greetsa[1] = "howdy"
greetsa[5] = "there!"
@test greet[1] == "howdy"
@test greet[5] == "there!"
A = rand(ComplexF64, 4, 5);
Asa = StrideArray(A);
@test A == Asa
Asa[3,4] = 1234.5 + 678.9im;
@test A[3,4] == 1234.5 + 678.9im;

Also fixes the error you reported with Complex numbers. Note adjoints of complex arrays are still broken.