| | | |
Offset 4, 16 lines modified | Offset 4, 16 lines modified |
4 | import·org.codehaus.groovy.runtime.callsite.CallSiteArray; | 4 | import·org.codehaus.groovy.runtime.callsite.CallSiteArray; |
5 | import·org.apache.commons.math3.exception.NotPositiveException; | 5 | import·org.apache.commons.math3.exception.NotPositiveException; |
6 | import·org.apache.commons.math3.linear.NonSquareMatrixException; | 6 | import·org.apache.commons.math3.linear.NonSquareMatrixException; |
7 | import·org.apache.commons.math3.linear.RealVector; | 7 | import·org.apache.commons.math3.linear.RealVector; |
8 | import·org.apache.commons.math3.linear.MatrixDimensionMismatchException; | 8 | import·org.apache.commons.math3.linear.MatrixDimensionMismatchException; |
9 | import·org.apache.commons.math3.exception.NumberIsTooSmallException; | 9 | import·org.apache.commons.math3.exception.NumberIsTooSmallException; |
10 | import·org.codehaus.groovy.runtime.ArrayUtil; | 10 | import·org.codehaus.groovy.runtime.ArrayUtil; |
11 | import·org.apache.commons.math3.linear.RealMatrixChangingVisitor; | |
12 | import·org.apache.commons.math3.linear.RealMatrixPreservingVisitor; | 11 | import·org.apache.commons.math3.linear.RealMatrixPreservingVisitor; |
| 12 | import·org.apache.commons.math3.linear.RealMatrixChangingVisitor; |
13 | import·org.apache.commons.math3.exception.NullArgumentException; | 13 | import·org.apache.commons.math3.exception.NullArgumentException; |
14 | import·org.apache.commons.math3.exception.DimensionMismatchException; | 14 | import·org.apache.commons.math3.exception.DimensionMismatchException; |
15 | import·org.apache.commons.math3.exception.OutOfRangeException; | 15 | import·org.apache.commons.math3.exception.OutOfRangeException; |
16 | import·org.apache.commons.math3.exception.NoDataException; | 16 | import·org.apache.commons.math3.exception.NoDataException; |
17 | import·org.apache.commons.math3.exception.NotStrictlyPositiveException; | 17 | import·org.apache.commons.math3.exception.NotStrictlyPositiveException; |
18 | import·groovy.lang.MetaClass; | 18 | import·groovy.lang.MetaClass; |
19 | import·java.io.ObjectInputStream; | 19 | import·java.io.ObjectInputStream; |
Offset 863, 92 lines modified | Offset 863, 92 lines modified |
863 | ········return·(Matrix)result.get(); | 863 | ········return·(Matrix)result.get(); |
864 | ····} | 864 | ····} |
865 | ···· | 865 | ···· |
866 | ····public·int·size()·{ | 866 | ····public·int·size()·{ |
867 | ········return·DefaultTypeTransformation.intUnbox($getCallSiteArray()[229].callGetProperty((Object)this.matrix)); | 867 | ········return·DefaultTypeTransformation.intUnbox($getCallSiteArray()[229].callGetProperty((Object)this.matrix)); |
868 | ····} | 868 | ····} |
869 | ···· | 869 | ···· |
| 870 | ····public·double[][]·getData()·{ |
| 871 | ········return·(double[][])ScriptBytecodeAdapter.castToType($getCallSiteArray()[230].call((Object)this.matrix),·(Class)double[][].class); |
| 872 | ····} |
| 873 | ···· |
870 | ····public·RealMatrix·createMatrix(final·int·param0,·final·int·param1)·throws·NotStrictlyPositiveException·{ | 874 | ····public·RealMatrix·createMatrix(final·int·param0,·final·int·param1)·throws·NotStrictlyPositiveException·{ |
871 | ········return·(RealMatrix)ScriptBytecodeAdapter.castToType($getCallSiteArray()[230].call((Object)this.matrix,·(Object)param0,·(Object)param1),·(Class)RealMatrix.class); | 875 | ········return·(RealMatrix)ScriptBytecodeAdapter.castToType($getCallSiteArray()[231].call((Object)this.matrix,·(Object)param0,·(Object)param1),·(Class)RealMatrix.class); |
872 | ····} | 876 | ····} |
873 | ···· | 877 | ···· |
874 | ····public·double[][]·getDataRef()·{ | 878 | ····public·double[][]·getDataRef()·{ |
875 | ········return·(double[][])ScriptBytecodeAdapter.castToType($getCallSiteArray()[231].call((Object)this.matrix),·(Class)double[][].class); | 879 | ········return·(double[][])ScriptBytecodeAdapter.castToType($getCallSiteArray()[232].call((Object)this.matrix),·(Class)double[][].class); |
876 | ····} | 880 | ····} |
877 | ···· | 881 | ···· |
878 | ····public·void·setSubMatrix(final·double[][]·param0,·final·int·param1,·final·int·param2)·throws·NoDataException,·OutOfRangeException,·DimensionMismatchException,·NullArgumentException·{ | 882 | ····public·void·setSubMatrix(final·double[][]·param0,·final·int·param1,·final·int·param2)·throws·NoDataException,·OutOfRangeException,·DimensionMismatchException,·NullArgumentException·{ |
879 | ········$getCallSiteArray()[232].call((Object)this.matrix,·(Object)param0,·(Object)param1,·(Object)param2); | 883 | ········$getCallSiteArray()[233].call((Object)this.matrix,·(Object)param0,·(Object)param1,·(Object)param2); |
880 | ····} | 884 | ····} |
881 | ···· | 885 | ···· |
882 | ····public·void·addToEntry(final·int·param0,·final·int·param1,·final·double·param2)·throws·OutOfRangeException·{ | 886 | ····public·void·addToEntry(final·int·param0,·final·int·param1,·final·double·param2)·throws·OutOfRangeException·{ |
883 | ········$getCallSiteArray()[233].call((Object)this.matrix,·(Object)param0,·(Object)param1,·(Object)param2); | 887 | ········$getCallSiteArray()[234].call((Object)this.matrix,·(Object)param0,·(Object)param1,·(Object)param2); |
884 | ····} | 888 | ····} |
885 | ···· | 889 | ···· |
886 | ····public·void·multiplyEntry(final·int·param0,·final·int·param1,·final·double·param2)·throws·OutOfRangeException·{ | 890 | ····public·void·multiplyEntry(final·int·param0,·final·int·param1,·final·double·param2)·throws·OutOfRangeException·{ |
887 | ········$getCallSiteArray()[234].call((Object)this.matrix,·(Object)param0,·(Object)param1,·(Object)param2); | 891 | ········$getCallSiteArray()[235].call((Object)this.matrix,·(Object)param0,·(Object)param1,·(Object)param2); |
888 | ····} | 892 | ····} |
889 | ···· | 893 | ···· |
890 | ····public·int·getRowDimension()·{ | 894 | ····public·int·getRowDimension()·{ |
891 | ········return·DefaultTypeTransformation.intUnbox($getCallSiteArray()[235].call((Object)this.matrix)); | 895 | ········return·DefaultTypeTransformation.intUnbox($getCallSiteArray()[236].call((Object)this.matrix)); |
892 | ····} | 896 | ····} |
893 | ···· | 897 | ···· |
894 | ····public·int·getColumnDimension()·{ | 898 | ····public·int·getColumnDimension()·{ |
895 | ········return·DefaultTypeTransformation.intUnbox($getCallSiteArray()[236].call((Object)this.matrix)); | 899 | ········return·DefaultTypeTransformation.intUnbox($getCallSiteArray()[237].call((Object)this.matrix)); |
896 | ····} | 900 | ····} |
897 | ···· | 901 | ···· |
898 | ····public·double[]·operate(final·double...·param0)·throws·DimensionMismatchException·{ | 902 | ····public·double[]·operate(final·double...·param0)·throws·DimensionMismatchException·{ |
899 | ········return·(double[])ScriptBytecodeAdapter.castToType($getCallSiteArray()[237].call((Object)this.matrix,·(Object)param0),·(Class)double[].class); | |
900 | ····} | |
901 | ···· | |
902 | ····public·double[]·preMultiply(final·double...·param0)·throws·DimensionMismatchException·{ | |
903 | ········return·(double[])ScriptBytecodeAdapter.castToType($getCallSiteArray()[238].call((Object)this.matrix,·(Object)param0),·(Class)double[].class); | 903 | ········return·(double[])ScriptBytecodeAdapter.castToType($getCallSiteArray()[238].call((Object)this.matrix,·(Object)param0),·(Class)double[].class); |
904 | ····} | 904 | ····} |
905 | ···· | 905 | ···· |
906 | ····public·double·walkInRowOrder(final·RealMatrixPreservingVisitor·param0)·{ | 906 | ····public·double[]·preMultiply(final·double...·param0)·throws·DimensionMismatchException·{ |
907 | ········return·DefaultTypeTransformation.doubleUnbox($getCallSiteArray()[239].call((Object)this.matrix,·(Object)param0)); | 907 | ········return·(double[])ScriptBytecodeAdapter.castToType($getCallSiteArray()[239].call((Object)this.matrix,·(Object)param0),·(Class)double[].class); |
908 | ····} | 908 | ····} |
909 | ···· | 909 | ···· |
910 | ····public·double·walkInRowOrder(final·RealMatrixChangingVisitor·param0)·{ | 910 | ····public·double·walkInRowOrder(final·RealMatrixChangingVisitor·param0)·{ |
911 | ········return·DefaultTypeTransformation.doubleUnbox($getCallSiteArray()[240].call((Object)this.matrix,·(Object)param0)); | 911 | ········return·DefaultTypeTransformation.doubleUnbox($getCallSiteArray()[240].call((Object)this.matrix,·(Object)param0)); |
912 | ····} | 912 | ····} |
913 | ···· | 913 | ···· |
914 | ····public·double·walkInRowOrder(final·RealMatrixChangingVisitor·param0,·final·int·param1,·final·int·param2,·final·int·param3,·final·int·param4)·throws·OutOfRangeException,·NumberIsTooSmallException·{ | 914 | ····public·double·walkInRowOrder(final·RealMatrixPreservingVisitor·param0)·{ |
915 | ········return·DefaultTypeTransformation.doubleUnbox($getCallSiteArray()[241].call((Object)this.matrix,·ArrayUtil.createArray((Object)param0,·(Object)param1,·(Object)param2,·(Object)param3,·(Object)param4))); | 915 | ········return·DefaultTypeTransformation.doubleUnbox($getCallSiteArray()[241].call((Object)this.matrix,·(Object)param0)); |
916 | ····} | 916 | ····} |
917 | ···· | 917 | ···· |
918 | ····public·double·walkInRowOrder(final·RealMatrixPreservingVisitor·param0,·final·int·param1,·final·int·param2,·final·int·param3,·final·int·param4)·throws·OutOfRangeException,·NumberIsTooSmallException·{ | 918 | ····public·double·walkInRowOrder(final·RealMatrixChangingVisitor·param0,·final·int·param1,·final·int·param2,·final·int·param3,·final·int·param4)·throws·OutOfRangeException,·NumberIsTooSmallException·{ |
919 | ········return·DefaultTypeTransformation.doubleUnbox($getCallSiteArray()[242].call((Object)this.matrix,·ArrayUtil.createArray((Object)param0,·(Object)param1,·(Object)param2,·(Object)param3,·(Object)param4))); | 919 | ········return·DefaultTypeTransformation.doubleUnbox($getCallSiteArray()[242].call((Object)this.matrix,·ArrayUtil.createArray((Object)param0,·(Object)param1,·(Object)param2,·(Object)param3,·(Object)param4))); |
920 | ····} | 920 | ····} |
921 | ···· | 921 | ···· |
922 | ····public·double·walkInColumnOrder(final·RealMatrixChangingVisitor·param0)·{ | 922 | ····public·double·walkInRowOrder(final·RealMatrixPreservingVisitor·param0,·final·int·param1,·final·int·param2,·final·int·param3,·final·int·param4)·throws·OutOfRangeException,·NumberIsTooSmallException·{ |
923 | ········return·DefaultTypeTransformation.doubleUnbox($getCallSiteArray()[243].call((Object)this.matrix,·(Object)param0)); | 923 | ········return·DefaultTypeTransformation.doubleUnbox($getCallSiteArray()[243].call((Object)this.matrix,·ArrayUtil.createArray((Object)param0,·(Object)param1,·(Object)param2,·(Object)param3,·(Object)param4))); |
924 | ····} | 924 | ····} |
925 | ···· | 925 | ···· |
926 | ····public·double·walkInColumnOrder(final·RealMatrixPreservingVisitor·param0)·{ | 926 | ····public·double·walkInColumnOrder(final·RealMatrixPreservingVisitor·param0,·final·int·param1,·final·int·param2,·final·int·param3,·final·int·param4)·throws·OutOfRangeException,·NumberIsTooSmallException·{ |
927 | ········return·DefaultTypeTransformation.doubleUnbox($getCallSiteArray()[244].call((Object)this.matrix,·(Object)param0)); | 927 | ········return·DefaultTypeTransformation.doubleUnbox($getCallSiteArray()[244].call((Object)this.matrix,·ArrayUtil.createArray((Object)param0,·(Object)param1,·(Object)param2,·(Object)param3,·(Object)param4))); |
928 | ····} | 928 | ····} |
929 | ···· | 929 | ···· |
930 | ····public·double·walkInColumnOrder(final·RealMatrixChangingVisitor·param0,·final·int·param1,·final·int·param2,·final·int·param3,·final·int·param4)·throws·OutOfRangeException,·NumberIsTooSmallException·{ | 930 | ····public·double·walkInColumnOrder(final·RealMatrixChangingVisitor·param0,·final·int·param1,·final·int·param2,·final·int·param3,·final·int·param4)·throws·OutOfRangeException,·NumberIsTooSmallException·{ |
931 | ········return·DefaultTypeTransformation.doubleUnbox($getCallSiteArray()[245].call((Object)this.matrix,·ArrayUtil.createArray((Object)param0,·(Object)param1,·(Object)param2,·(Object)param3,·(Object)param4))); | 931 | ········return·DefaultTypeTransformation.doubleUnbox($getCallSiteArray()[245].call((Object)this.matrix,·ArrayUtil.createArray((Object)param0,·(Object)param1,·(Object)param2,·(Object)param3,·(Object)param4))); |
932 | ····} | 932 | ····} |
933 | ···· | 933 | ···· |
934 | ····public·double·walkInColumnOrder(final·RealMatrixPreservingVisitor·param0,·final·int·param1,·final·int·param2,·final·int·param3,·final·int·param4)·throws·OutOfRangeException,·NumberIsTooSmallException·{ | 934 | ····public·double·walkInColumnOrder(final·RealMatrixChangingVisitor·param0)·{ |
935 | ········return·DefaultTypeTransformation.doubleUnbox($getCallSiteArray()[246].call((Object)this.matrix,·ArrayUtil.createArray((Object)param0,·(Object)param1,·(Object)param2,·(Object)param3,·(Object)param4))); | 935 | ········return·DefaultTypeTransformation.doubleUnbox($getCallSiteArray()[246].call((Object)this.matrix,·(Object)param0)); |
936 | ····} | 936 | ····} |
937 | ···· | 937 | ···· |
938 | ····public·double[][]·getData()·{ | 938 | ····public·double·walkInColumnOrder(final·RealMatrixPreservingVisitor·param0)·{ |
939 | ········return·(double[][])ScriptBytecodeAdapter.castToType($getCallSiteArray()[247].call((Object)this.matrix),·(Class)double[][].class); | 939 | ········return·DefaultTypeTransformation.doubleUnbox($getCallSiteArray()[247].call((Object)this.matrix,·(Object)param0)); |
940 | ····} | 940 | ····} |
941 | ···· | 941 | ···· |
942 | ····public·Array2DRowRealMatrix·subtract(final·Array2DRowRealMatrix·param0)·throws·MatrixDimensionMismatchException·{ | 942 | ····public·void·setEntry(final·int·param0,·final·int·param1,·final·double·param2)·throws·OutOfRangeException·{ |
943 | ········return·(Array2DRowRealMatrix)ScriptBytecodeAdapter.castToType($getCallSiteArray()[248].call((Object)this.matrix,·(Object)param0),·(Class)Array2DRowRealMatrix.class); | 943 | ········$getCallSiteArray()[248].call((Object)this.matrix,·(Object)param0,·(Object)param1,·(Object)param2); |
944 | ····} | 944 | ····} |
945 | ···· | 945 | ···· |
946 | ····public·void·setEntry(final·int·param0,·final·int·param1,·final·double·param2)·throws·OutOfRangeException·{ | 946 | ····public·Array2DRowRealMatrix·subtract(final·Array2DRowRealMatrix·param0)·throws·MatrixDimensionMismatchException·{ |
947 | ········$getCallSiteArray()[249].call((Object)this.matrix,·(Object)param0,·(Object)param1,·(Object)param2); | 947 | ········return·(Array2DRowRealMatrix)ScriptBytecodeAdapter.castToType($getCallSiteArray()[249].call((Object)this.matrix,·(Object)param0),·(Class)Array2DRowRealMatrix.class); |
948 | ····} | 948 | ····} |
949 | ···· | 949 | ···· |
950 | ····public·Array2DRowRealMatrix·add(final·Array2DRowRealMatrix·param0)·throws·MatrixDimensionMismatchException·{ | 950 | ····public·Array2DRowRealMatrix·add(final·Array2DRowRealMatrix·param0)·throws·MatrixDimensionMismatchException·{ |
951 | ········return·(Array2DRowRealMatrix)ScriptBytecodeAdapter.castToType($getCallSiteArray()[250].call((Object)this.matrix,·(Object)param0),·(Class)Array2DRowRealMatrix.class); | 951 | ········return·(Array2DRowRealMatrix)ScriptBytecodeAdapter.castToType($getCallSiteArray()[250].call((Object)this.matrix,·(Object)param0),·(Class)Array2DRowRealMatrix.class); |
952 | ····} | 952 | ····} |
953 | ···· | 953 | ···· |
954 | ····public·RealMatrix·copy()·{ | 954 | ····public·RealMatrix·copy()·{ |
Offset 959, 32 lines modified | Offset 959, 32 lines modified |
959 | ········return·DefaultTypeTransformation.doubleUnbox($getCallSiteArray()[252].call((Object)this.matrix,·(Object)param0,·(Object)param1)); | 959 | ········return·DefaultTypeTransformation.doubleUnbox($getCallSiteArray()[252].call((Object)this.matrix,·(Object)param0,·(Object)param1)); |
960 | ····} | 960 | ····} |
961 | ···· | 961 | ···· |
962 | ····public·Array2DRowRealMatrix·multiply(final·Array2DRowRealMatrix·param0)·throws·DimensionMismatchException·{ | 962 | ····public·Array2DRowRealMatrix·multiply(final·Array2DRowRealMatrix·param0)·throws·DimensionMismatchException·{ |
963 | ········return·(Array2DRowRealMatrix)ScriptBytecodeAdapter.castToType($getCallSiteArray()[253].call((Object)this.matrix,·(Object)param0),·(Class)Array2DRowRealMatrix.class); | 963 | ········return·(Array2DRowRealMatrix)ScriptBytecodeAdapter.castToType($getCallSiteArray()[253].call((Object)this.matrix,·(Object)param0),·(Class)Array2DRowRealMatrix.class); |
964 | ····} | 964 | ····} |
965 | ···· | 965 | ···· |
966 | ····public·double[]·getColumn(final·int·param0)·throws·OutOfRangeException·{ | 966 | ····public·RealVector·operate(final·RealVector·param0)·throws·DimensionMismatchException·{ |
967 | ········return·(double[])ScriptBytecodeAdapter.castToType($getCallSiteArray()[254].call((Object)this.matrix,·(Object)param0),·(Class)double[].class); | 967 | ········return·(RealVector)ScriptBytecodeAdapter.castToType($getCallSiteArray()[254].call((Object)this.matrix,·(Object)param0),·(Class)RealVector.class); |
968 | ····} | 968 | ····} |
969 | ···· | 969 | ···· |
970 | ····public·void·setColumn(final·int·param0,·final·double...·param1)·throws·OutOfRangeException,·MatrixDimensionMismatchException·{ | 970 | ····public·RealMatrix·preMultiply(final·RealMatrix·param0)·throws·DimensionMismatchException·{ |
Max diff block lines reached; 6858/18735 bytes (36.61%) of diff not shown.
|