Bug 157845 - Matrix scalar values are not correctly calculated
Summary: Matrix scalar values are not correctly calculated
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: general (show other bugs)
Version: 1.4.0
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-14 23:58 UTC by Andrew Walker
Modified: 2008-02-14 23:59 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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