From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: tangxiaofeng <tangxiaofeng@kylinos.cn>
Date: Sep, 15 2026 08:41:51 +0000
Subject: [PATCH] Fix member names in Tensor2x2/Tensor3x3::dyadicProduct

Description: The dyadicProduct template member functions referenced tensor
 components that do not exist (xz/yz/zz on Tensor2x2) and vector components
 that do not exist (x0/x1/y0/y1/z0/z1 on gravis::t2Vector/t3Vector). GCC 15
 rejects these invalid member accesses while checking template bodies and
 aborts the build of src/jaz/img_proc/filter_helper.cpp. Use the actual x/y/z
 vector components and drop the components that only exist on Tensor3x3 from
 the 2x2 variant.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
--- relion-3.1.3.orig/src/jaz/tensor2x2.h
+++ relion-3.1.3/src/jaz/tensor2x2.h
@@ -141,12 +141,9 @@ class Tensor2x2
     {
         Tensor2x2<T> out;
 
-        out.xx = v0.x0 * v1.x1;
-        out.xy = v0.x0 * v1.y1;
-        out.xz = v0.x0 * v1.z1;
-        out.yy = v0.y0 * v1.y1;
-        out.yz = v0.y0 * v1.z1;
-        out.zz = v0.z0 * v1.z1;
+        out.xx = v0.x * v1.x;
+        out.xy = v0.x * v1.y;
+        out.yy = v0.y * v1.y;
 
         return out;
     }
--- relion-3.1.3.orig/src/jaz/tensor3x3.h
+++ relion-3.1.3/src/jaz/tensor3x3.h
@@ -167,12 +167,12 @@ class Tensor3x3
     {
         Tensor3x3<T> out;
 
-        out.xx = v0.x0 * v1.x1;
-        out.xy = v0.x0 * v1.y1;
-        out.xz = v0.x0 * v1.z1;
-        out.yy = v0.y0 * v1.y1;
-        out.yz = v0.y0 * v1.z1;
-        out.zz = v0.z0 * v1.z1;
+        out.xx = v0.x * v1.x;
+        out.xy = v0.x * v1.y;
+        out.xz = v0.x * v1.z;
+        out.yy = v0.y * v1.y;
+        out.yz = v0.y * v1.z;
+        out.zz = v0.z * v1.z;
 
         return out;
     }
