Skip to content

Commit 4bdab4f

Browse files
authored
Update README.md
1 parent 7962715 commit 4bdab4f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ function mul_avx!(C:: StructMatrixComplexFInt64, A::StructMatrixComplexFInt64, B
213213
end
214214
```
215215
this `mul_avx!` kernel can now accept `StructArray` matrices of complex numbers and multiply them efficiently:
216-
```juia
216+
```julia
217217
M, K, N = 50, 51, 52
218218

219219
A = StructArray(randn(ComplexF64, M, K));
@@ -225,5 +225,8 @@ C2 = collect(similar(C1));
225225
@btime mul!( $C2, $(collect(A)), $(collect(B))) # collect turns the StructArray into a regular Array
226226
@test C1 C2
227227
```
228+
229+
Similar approaches can be taken to make kernels working with a variety of numeric struct types such as [dual numbers](https://github.com/JuliaDiff/DualNumbers.jl), [DoubleFloats](https://github.com/JuliaMath/DoubleFloats.jl), etc.
230+
228231
</p>
229232
</details>

0 commit comments

Comments
 (0)