Changeset 84e50984 in tol
- Timestamp:
- Feb 3, 2009, 9:16:58 AM (18 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 44e5e09
- Parents:
- 23b4ae2
- File:
-
- 1 edited
-
tol/btol/vmatrix_type/vmatgra.cpp (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol/btol/vmatrix_type/vmatgra.cpp
r23b4ae2 r84e50984 1715 1715 //-------------------------------------------------------------------- 1716 1716 DeclareContensClass(BVMat, BVMatTemporary, BVMatCholeskiFactor); 1717 DefExtOpr(1, BVMatCholeskiFactor, "CholeskiFactor", 1, 2, "VMatrix Text",1718 "(VMatrix X [, Text S=\"X\" ])",1717 DefExtOpr(1, BVMatCholeskiFactor, "CholeskiFactor", 1, 3, "VMatrix Text Real", 1718 "(VMatrix X [, Text S=\"X\", Real force_natural_order=false])", 1719 1719 I2("Returns the Choleski decomposition of a symmetric positive definite " 1720 1720 "virtual matrix S, that will be built as: \n" … … 1730 1730 "In this case you only can handle with L and P using CholeskiSolve method.\n" 1731 1731 "Otherwise no operation is performed and unknown virtual matrix is returned." 1732 "NOTE: At current version P is allways the identity but next versions could be " 1733 "able to handle with generic permutation mtrices.\n", 1732 "If force_natural_order is true then P is the identity.\n", 1734 1733 "Devuelve la descomposicion de Choleski de una matriz simetrica S definida " 1735 1734 "positiva, la cual se construye de esta forma: \n" … … 1747 1746 "En otro caso no se realiza ninguna operacion y se devuelve la matriz " 1748 1747 "virtual desconocida.\n" 1749 "NOTA: En la presente versión P es siempre la identidad pero en próximas " 1750 "versiones será posible utilizar permutaciones genéricas.\n"), 1748 "Si force_natural_order es falso entonces P es la identidad.\n"), 1751 1749 BOperClassify::MatrixAlgebra_); 1752 1750 //-------------------------------------------------------------------- … … 1755 1753 { 1756 1754 BText S="X"; 1755 bool force = false; 1757 1756 if(Arg(2)) { S=Text(Arg(2)); } 1758 BVMat::CholeskiFactor(VMat(Arg(1)),contens_,S,true); 1757 if(Arg(3)) { force=Real(Arg(3))!=0.0; } 1758 1759 BVMat::CholeskiFactor(VMat(Arg(1)),contens_,S,true,force); 1759 1760 assert(contens_.Check()); 1760 1761 } … … 1770 1771 " sys=\"LLt\" => F= L*L' *x = b\n" 1771 1772 " sys=\"PtL\" => F= P'*L *x = b\n" 1772 " sys=\"LtP\" => F= L'*P*x = b\n"1773 " sys=\"Lt\" => F= L' *x = b\n"1773 " sys=\"LtP\" => F= *L'*P*x = b\n" 1774 " sys=\"Lt\" => F= *L' *x = b\n" 1774 1775 " sys=\"L\" => F= L *x = b\n" 1775 1776 " sys=\"Pt\" => F= P' *x = b\n" 1776 " sys=\"P\" => F= P*x = b\n"1777 " sys=\"P\" => F= P*x = b\n" 1777 1778 "At current version P is allways the identity but next versions could be " 1778 1779 "able to handle with generic permutation mtrices.\n" … … 1790 1791 " sys=\"LLt\" => F= L*L' *x = b\n" 1791 1792 " sys=\"PtL\" => F= P'*L *x = b\n" 1792 " sys=\"LtP\" => F= L'*P*x = b\n"1793 " sys=\"Lt\" => F= L' *x = b\n"1793 " sys=\"LtP\" => F= *L'*P*x = b\n" 1794 " sys=\"Lt\" => F= *L' *x = b\n" 1794 1795 " sys=\"L\" => F= L *x = b\n" 1795 1796 " sys=\"Pt\" => F= P' *x = b\n" 1796 " sys=\"P\" => F= P*x = b\n"1797 " sys=\"P\" => F= P*x = b\n" 1797 1798 "La matriz L es triangular" 1798 1799 "El factor puede ser una matriz Blas.R.Dense triangular inferior, en "
Note: See TracChangeset
for help on using the changeset viewer.
