<div dir="ltr">Hi to everyone,<div>I m trying to optimize ScInterpreter::ScGCD and ScInterpreter::ScLCM (in <span style="font-size:medium;color:rgb(0,0,0);font-family:monospace">/</span><a href="http://opengrok.libreoffice.org/xref/core" style="font-size:medium;color:rgb(16,88,2);text-decoration:none;font-family:monospace">core</a><span style="font-size:medium;color:rgb(0,0,0);font-family:monospace">/</span><a href="http://opengrok.libreoffice.org/xref/core/sc" style="font-size:medium;color:rgb(16,88,2);text-decoration:none;font-family:monospace">sc</a><span style="font-size:medium;color:rgb(0,0,0);font-family:monospace">/</span><a href="http://opengrok.libreoffice.org/xref/core/sc/source" style="font-size:medium;color:rgb(16,88,2);text-decoration:none;font-family:monospace">source</a><span style="font-size:medium;color:rgb(0,0,0);font-family:monospace">/</span><a href="http://opengrok.libreoffice.org/xref/core/sc/source/core" style="font-size:medium;color:rgb(16,88,2);text-decoration:none;font-family:monospace">core</a><span style="font-size:medium;color:rgb(0,0,0);font-family:monospace">/</span><a href="http://opengrok.libreoffice.org/xref/core/sc/source/core/tool" style="font-size:medium;color:rgb(16,88,2);text-decoration:none;font-family:monospace">tool</a><span style="font-size:medium;color:rgb(0,0,0);font-family:monospace">/</span><a href="http://opengrok.libreoffice.org/xref/core/sc/source/core/tool/interpr5.cxx" style="font-size:medium;color:rgb(16,88,2);text-decoration:none;font-family:monospace">interpr5.cxx</a>) as mentioned in bug tdf#89387..</div><div>From what I understood , these function are not optimal in the matrix case (evenif the algorithms look good in my opinion) and need to be changed. So my question is how can I do it? If I create function in /core/sc/source/core/tool/ScMatrix.cxx that take as input a matrix and retuns the GCD(or LCM) I'll do ok?or is not the right way to proceed? thanks ,<span style="background-color:rgb(252,252,255);color:rgb(20,20,20);font-family:verdana,arial,tahoma,calibri,geneva,sans-serif;font-size:13.3333px">I welcome any advice that you can give me.</span></div><div><br></div><div><span style="font-size:12.8px">Kind regards,</span><br></div><div><span style="font-size:12.8px">filippo giacchè</span></div></div>