main.cpp

来自「lapack的c++版本之一.lapack是imsl,mkl,matlab等大部」· C++ 代码 · 共 37 行

CPP
37
字号
/*****************************************************************************//*                                 noname                                    *//*****************************************************************************///====================================================================[include]#include <iostream>#include <cstdlib>#include <ctime>#include "cpplapack.h"using namespace std;//=======================================================================[main]/*! main */int main(int argc, char** argv){  srand(time(NULL));  int M(4);    CPPL::dcovector x(M);  CPPL::drovector y(M);    for(int i=0; i<x.l; i++){	x(i) =double( rand() /(RAND_MAX/10) );  }  for(int i=0; i<y.l; i++){	y(i) =double( rand() /(RAND_MAX/10) );  }    cout << "x =\n" << x << endl;  cout << "y =\n" << y << endl;  cout << "x*y =\n" << x*y << endl;    return 0;}/*****************************************************************************/

⌨️ 快捷键说明

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