[Home] [By Thread] [By Date] [Recent Entries]
On 12.07.2020 22:47, Dr. Roger L Costello costello@xxxxxxxxx wrote:
My application uses lots of matrix operations. I used the SAXON Tool Profile (-TP) option to generate a web page that shows the performance of each of my matrix operations. I found that my matrix addition function is taking an appallingly large amount of time. Below is my matrix addition function. Do you have suggestions on ways to improve its performance? /Roger $N/row[$i]/col[$j]"/> Does it improve performance if you use <Matrix id="{$name-of-result-matrix}">
<xsl:for-each select="$M/row">
<xsl:variable name="i" select="position()"/>
<xsl:variable name="row2" select="$N/row[$i]"/>
<row>
<xsl:for-each select="col">
<xsl:variable name="j" select="position()"/>
<col>
<xsl:value-of select=". + $row2/col[$j]"/>
</col>
</xsl:for-each>
</row>
</xsl:for-each>
</Matrix>?
|

Cart



