📄 defaultludecomposition.java
字号:
package org.jutil.math.matrix;/** * This class represents a default LU factorization of a square * non-singular matrix. * * @path $Source: /cvsroot/org-jutil/jutil.org/src/org/jutil/math/matrix/DefaultLUDecomposition.java,v $ * @version $Revision: 1.4 $ * @date $Date: 2002/07/02 14:27:31 $ * @state $State: Exp $ * @author Marko van Dooren * @release $Name: $ */public class DefaultLUDecomposition implements LUDecomposition { /* The revision of this class */ public final static String CVS_REVISION ="$Revision: 1.4 $"; /** * Initialize a new DefaultLUDecomposition with the given * L and U matrices * * @param L * The L matrix of the LU decomposition * @param U * The U matrix of the LU decomposition */ /*@ @ public behavior @ @ pre L != null; @ pre L.isSquare(); @ pre L.isLowerTriangular(); @ pre (\forall int i; i>=1 && i<=L.getNbColumns(); @ L.elementAt(i,i) == 1); @ pre U != null; @ pre U.sameDimensions(L); @ pre U.isUpperTriangular(); @ pre P != null; @ pre P.isPermutationMatrix(); @ pre P.sameDimensions(L); @ @ post L().equals(L); @ post U().equals(U); @ post P().equals(P); @*/ public DefaultLUDecomposition(Matrix L, Matrix U, Matrix P) { _L=(Matrix)L.clone(); _U=(Matrix)U.clone(); _P=(Matrix)P.clone(); } /** * See superclass */ public Matrix L() { return (Matrix)_L.clone(); } /** * See superclass */ public Matrix U() { return (Matrix)_U.clone(); } /** * See superclass */ public Matrix P() { return (Matrix)_P.clone(); } /** * The L matrix of this LU decomposition. */ /*@ @ private invariant _L != null; @ private invariant _L.isSquare(); @ private invariant _L.isLowerTriangular(); @ private invariant (\forall int i; i>=1 && i<=_L.getNbColumns(); @ _L.elementAt(i,i) == 1); @*/ private Matrix _L; /** * The L matrix of this LU decomposition. */ /*@ @ private invariant _U != null; @ private invariant _U.isSquare(); @ private invariant _U.isUpperTriangular(); @ private invariant _U.sameDimensions(_L); @*/ private Matrix _U; /** * The P matrix of this LU decomposition. */ /*@ @ private invariant _P != null; @ private invariant _P.isPermutationMatrix(); @ private invariant _P.sameDimensions(_L); @*/ private Matrix _P;}/*<copyright>Copyright (C) 1997-2002. This software is copyrighted by the people and entities mentioned after the "@author" tags above, on behalf of the JUTIL.ORG Project. The copyright is dated by the dates after the "@date" tags above. All rights reserved.This software is published under the terms of the JUTIL.ORG SoftwareLicense version 1.1 or later, a copy of which has been included withthis distribution in the LICENSE file, which can also be found athttp://www.jutil.org/LICENSE. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the JUTIL.ORG Software License for more details.For more information, please see http://jutil.org/</copyright>*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -