See my following exmaple:
gensBCSIdentifyGroup[gens_List]:=Module[{x,y,z},
Table[(i[[1;;3,1;;3]] . Transpose[{{x,y,z}}] +i[[1;;3,4]])//Transpose,{i,gens}]//ArrayFlatten[#,1]&//ToString[#,InputForm]&//StringReplace[#,{"("->"",")"->""}]&
]
In[341]:= SGGenSetAK227Left2
%//gensBCSIdentifyGroup
Out[341]= {{{-1, 0, 0, 1/4}, {0, 0, -1, 1/4}, {1, 1, 1, 1/4}, {0, 0,
0, 1}}, {{0, 1, 0, 0}, {0, 0, 1, 0}, {-1, -1, -1, 0}, {0, 0, 0, 1}}}
Out[342]= "{{1/4 - x$206730, 1/4 - z$206730, 1/4 + x$206730 + \
y$206730 + z$206730}, {y$206730, z$206730, -x$206730 - y$206730 - \
z$206730}}"
In fact, I want to obtain the following result:
In[379]:= SGGenSetAK227Left2
%//gensBCSIdentifyGroup
Out[379]= {{{-1, 0, 0, 1/4}, {0, 0, -1, 1/4}, {1, 1, 1, 1/4}, {0, 0,
0, 1}}, {{0, 1, 0, 0}, {0, 0, 1, 0}, {-1, -1, -1, 0}, {0, 0, 0, 1}}}
Out[380]= "{{1/4 - x, 1/4 - z, 1/4 + x + y + z}, {y, z, -x - y - z}}"
Any hints for fixing this problem?
Regards,
Zhao