1 2 3 4 5 6 7 8 9 10 11 12 13
|
vec1 : 0 1 2 3 4 5 6 7 8 9
vec2 : 10 9 8 7 6 5 4 3 2 1
result: 0 9 16 21 24 25 24 21 16 9
Standard vector operations within ViennaCL:
vec1 : [10](0,1,2,3,4,5,6,7,8,9)
vec2 : [10](10,9,8,7,6,5,4,3,2,1)
result: [10](10,11,12,13,14,15,16,17,18,19)
Using existing kernel within the OpenCL backend of ViennaCL:
vec1 : [10](0,1,2,3,4,5,6,7,8,9)
vec2 : [10](10,9,8,7,6,5,4,3,2,1)
result: [10](0,9,16,21,24,25,24,21,16,9)
result of matrix-vector product: [3](25,106,187)
!!!! TUTORIAL COMPLETED SUCCESSFULLY !!!!
|