tsfd.cc

来自「完全使用C++写的高效线性代数运算库!还提供了矩阵类。」· CC 代码 · 共 54 行

CC
54
字号
////              LAPACK++ 1.1 Linear Algebra Package 1.1//               University of Tennessee, Knoxvilee, TN.//            Oak Ridge National Laboratory, Oak Ridge, TN.//        Authors: J. J. Dongarra, E. Greaser, R. Pozo, D. Walker//                 (C) 1992-1996 All Rights Reserved////                             NOTICE//// Permission to use, copy, modify, and distribute this software and// its documentation for any purpose and without fee is hereby granted// provided that the above copyright notice appear in all copies and// that both the copyright notice and this permission notice appear in// supporting documentation.//// Neither the Institutions (University of Tennessee, and Oak Ridge National// Laboratory) nor the Authors make any representations about the suitability // of this software for any purpose.  This software is provided ``as is'' // without express or implied warranty.//// LAPACK++ was funded in part by the U.S. Department of Energy, the// National Science Foundation and the State of Tennessee.#include <stdlib.h>#include "lafnames"#include LA_SYMM_MAT_DOUBLE_H#include LA_SYMM_FACT_DOUBLE_Hint main(int argc, char *argv[]){    int m = 5, n = 5;  LaSymmFactDouble SF;  LaSymmMatDouble SM(m,n);  LaVectorInt V(m);      SF.ref(SM);  cout << "SF.S(): \n";  cout << SF.S() << endl;  SF.pivot().ref(V);  cout << "SF.pivot(): \n";  cout << SF.pivot() << endl;  cout << "SF.info(): \n";  cout << SF.info() << endl;  exit(0);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?