matrix1 = ones(5,9)
matrix1[1][1] #第一种方式
matrix1[1,1] #第二种方式
注意:在GPU和函数中,要用第二种索引方式
julia版本 1.6
matrix1 = ones(5,9)
matrix1[1][1] #第一种方式
matrix1[1,1] #第二种方式
注意:在GPU和函数中,要用第二种索引方式
julia版本 1.6
本文标题:julia CUDA 核函数中矩阵访问时下标写法
本文链接:https://www.haomeiwen.com/subject/gazmbltx.html
网友评论