Bug 157845

Summary: Matrix scalar values are not correctly calculated
Product: [Applications] kst Reporter: Andrew Walker <arwalker>
Component: generalAssignee: kst
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 1.4.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Andrew Walker 2008-02-14 23:58:25 UTC
Version:           1.4.0 (using KDE 3.5.6)
Installed from:    Compiled From Sources
OS:                Linux

PROBLEM:

The scalar values associated with a matrix are not calculated correctly

STEPS TO REPRODUCE:

Start Kst
Open the JavaScript Extension
Enter the following:

m=new Matrix()
m.resize(3,3)
m.zero()
m.setValue(0,0,100)
m.setValue(1,1,200)
m.setvalue(2,2,300)
m.max

RESULTS:

m.max reports 500

EXPECTED RESULTS:

m.max should report 600
Comment 1 Andrew Walker 2008-02-14 23:59:59 UTC
SVN commit 775120 by arwalker:

BUG:157845 Include first matrix element in calculation of sum and sumsquared

 M  +2 -0      kstmatrix.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=775120