A small bug report

In src/cuda/tensor.cu Line 219
float3
dot(symtensor3 const& T, float3 const& v)

and also Line 230

float3
dot(symtensor3 const& T, float3 const& v)
{
return make_float3(
T.xxv.x + T.xyv.y + T.xzv.z,
T.xy
v.y + T.yyv.y + T.yzv.z, // the first v.y → v.x
T.xzv.x + T.yzv.y + T.zz*v.z);

}

i believe this function should be
T.xxv.x + T.xyv.y + T.xzv.z,
T.xy
v.x + T.yyv.y + T.yzv.z, //v.y → v.x
T.xzv.x + T.yzv.y + T.zz*v.z);

just like the function in Line 242
float4
dot(symtensor4 const& T, float4 const& v)
{
return make_float4(
T.xxv.x + T.xyv.y + T.xzv.z + T.xwv.w,
T.xyv.x + T.yyv.y + T.yzv.z + T.ywv.w,
T.xzv.x + T.yzv.y + T.zzv.z + T.zwv.w,
T.xwv.x + T.ywv.y + T.zwv.z + T.wwv.w);

}

Hello,

thanks for spotting this. I assume you’re using the master branch? This issues has been fixed already in commit a9aad165b225ce45ce507cfc8e5695b8126ec045 “Typo/component bug in dot for symtensor3” which is already part of the next branch, although it hasn’t been pushed to master yet.

(Also please use the GitHub issue tracker to report bugs in the future.)