Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
Sample3_9.cs
Package: CSharpNumericalAlgorithms.rar [view]
Upload User: wen_feilan
Upload Date: 2014-09-01
Package Size: 246k
Code Size: 1k
Category:
Mathimatics-Numerical algorithms
Development Platform:
Others
- /*
- * 示例程序Sample3_9: Matrix类的对称正定矩阵的乔里斯基分解与行列式的求值
- */
- using System;
- using CSharpAlgorithm.Algorithm;
- namespace CSharpAlgorithm.Sample
- {
- class Class1
- {
- [STAThread]
- static void Main(string[] args)
- {
- // 矩阵数据
- double[] mtxData10 = {
- 5.0,7.0,6.0,5.0,
- 7.0,10.0,8.0,7.0,
- 6.0,8.0,10.0,9.0,
- 5.0,7.0,9.0,10.0};
- // 构造矩阵
- Matrix mtx10 = new Matrix(4, mtxData10);
- // 对称正定矩阵的乔里斯基分解与行列式的求值
- double detValue = 0.0;
- if (mtx10.ComputeDetCholesky(ref detValue))
- {
- Console.WriteLine("行列式=" + detValue);
- Console.WriteLine("分解后的下三角矩阵=");
- Console.WriteLine(mtx10);
- }
- else
- {
- Console.WriteLine("失败");
- }
- }
- }
- }