[Mathlib-commitlog] mathlib/Source/MathLib/Functions/Matrix InverseMatrix.java, 1.10, 1.11 magic.ja
Status: Beta
Brought to you by:
st_mueller
|
From: Stefan M. <st_...@us...> - 2007-01-06 09:32:19
|
Update of /cvsroot/mathlib/mathlib/Source/MathLib/Functions/Matrix In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv12240/Source/MathLib/Functions/Matrix Modified Files: InverseMatrix.java magic.java ElementAt.java Sum.java Adjoint.java find.java Log Message: getValue() replaced by getValueRe() Index: magic.java =================================================================== RCS file: /cvsroot/mathlib/mathlib/Source/MathLib/Functions/Matrix/magic.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** magic.java 22 May 2004 07:17:50 -0000 1.2 --- magic.java 6 Jan 2007 09:32:14 -0000 1.3 *************** *** 21,25 **** // dimension of matrix ! int n = (int)((NumberToken)operands[0]).getValue(); double[][] M = magic_calculation(n); --- 21,25 ---- // dimension of matrix ! int n = (int)((NumberToken)operands[0]).getValueRe(); double[][] M = magic_calculation(n); Index: Adjoint.java =================================================================== RCS file: /cvsroot/mathlib/mathlib/Source/MathLib/Functions/Matrix/Adjoint.java,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** Adjoint.java 30 Dec 2006 18:07:11 -0000 1.11 --- Adjoint.java 6 Jan 2007 09:32:14 -0000 1.12 *************** *** 68,72 **** ! double minor = ((NumberToken)function.evaluate(operands)).getValue(); int modifier = -1; --- 68,72 ---- ! double minor = ((NumberToken)function.evaluate(operands)).getValueRe(); int modifier = -1; Index: Sum.java =================================================================== RCS file: /cvsroot/mathlib/mathlib/Source/MathLib/Functions/Matrix/Sum.java,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** Sum.java 11 Dec 2006 19:46:13 -0000 1.11 --- Sum.java 6 Jan 2007 09:32:14 -0000 1.12 *************** *** 40,44 **** // get dimension to sum ! dim = (int)((NumberToken)operands[1]).getValue(); } --- 40,44 ---- // get dimension to sum ! dim = (int)((NumberToken)operands[1]).getValueRe(); } Index: InverseMatrix.java =================================================================== RCS file: /cvsroot/mathlib/mathlib/Source/MathLib/Functions/Matrix/InverseMatrix.java,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** InverseMatrix.java 26 Dec 2006 12:24:16 -0000 1.10 --- InverseMatrix.java 6 Jan 2007 09:32:14 -0000 1.11 *************** *** 51,55 **** {} ! double matrixDeterminant = ((NumberToken)determinant.evaluate(operands)).getValue(); if(matrixDeterminant != 0) --- 51,55 ---- {} ! double matrixDeterminant = ((NumberToken)determinant.evaluate(operands)).getValueRe(); if(matrixDeterminant != 0) Index: ElementAt.java =================================================================== RCS file: /cvsroot/mathlib/mathlib/Source/MathLib/Functions/Matrix/ElementAt.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** ElementAt.java 26 Dec 2006 12:24:17 -0000 1.8 --- ElementAt.java 6 Jan 2007 09:32:14 -0000 1.9 *************** *** 22,27 **** throwMathLibException("ElementAt: number of arguments != 3"); ! int rowNo = ((int)((NumberToken)operands[1]).getValue()); ! int colNo = ((int)((NumberToken)operands[2]).getValue()); if(operands[0] instanceof NumberToken) --- 22,27 ---- throwMathLibException("ElementAt: number of arguments != 3"); ! int rowNo = ((int)((NumberToken)operands[1]).getValueRe()); ! int colNo = ((int)((NumberToken)operands[2]).getValueRe()); if(operands[0] instanceof NumberToken) Index: find.java =================================================================== RCS file: /cvsroot/mathlib/mathlib/Source/MathLib/Functions/Matrix/find.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** find.java 26 Dec 2006 12:24:18 -0000 1.8 --- find.java 6 Jan 2007 09:32:14 -0000 1.9 *************** *** 47,51 **** throwMathLibException("find: second argument must be a number"); ! n = (int)((NumberToken)operands[1]).getValue(); } debugLine("find "+n); --- 47,51 ---- throwMathLibException("find: second argument must be a number"); ! n = (int)((NumberToken)operands[1]).getValueRe(); } debugLine("find "+n); |