isack
MModular
•Created by isack on 12/14/2023 in #questions
Can anyone help me to solve this error.
Hi, I have a question ,... using that Matrix struct above, can i perform vectorization in matrix multiplication fn:
@always_inline
fn mul(self, other: SIMD[type, 1])->Matrix[type]:
alias simd_width=simdwidthoftype
let result=Matrix[type](self.rows, self.cols)
for y in range(self.rows):
for x in range(self.cols):
result[y, x]=other * self.data.simd_load[1](y * self.cols + x)
return result
or should i add Tensor in struct :
struct[t: Tensor]:
is it possible ?
10 replies
MModular
•Created by isack on 12/14/2023 in #questions
Can anyone help me to solve this error.
ok, thank you so much
10 replies
MModular
•Created by isack on 12/14/2023 in #questions
Can anyone help me to solve this error.
10 replies