#include "Teuchos_Version.hpp"
int main(int argc, char* argv[])
{
std::cout << Teuchos::Teuchos_Version() << std::endl << std::endl;
int rows, cols, stride;
My_Copy1.putScalar( 1.0 );
My_Copy1 = 1.0;
My_Copy2(1,1) = 10.0;
Empty_Matrix = My_Matrix;
My_GenMatrix = 1.0;
My_Copy2 += My_Matrix;
My_Copy2 *= 0.5;
if (Empty_Matrix == My_Matrix) {
std::cout<< "The matrices are the same!" <<std::endl;
}
if (My_Copy2 != My_Matrix) {
std::cout<< "The matrices are different!" <<std::endl;
}
double norm_one, norm_inf, norm_fro;
std::cout << std::endl << "|| My_Matrix ||_1 = " << norm_one << std::endl;
std::cout << "|| My_Matrix ||_Inf = " << norm_inf << std::endl;
std::cout << "|| My_Matrix ||_F = " << norm_fro << std::endl << std::endl;
X = 1.0;
X = 0.0;
int info = 0;
if (info != 0)
std::cout << "Teuchos::SerialSpdDenseSolver::factor() returned : " << info << std::endl;
info = My_Solver.
solve();
if (info != 0)
std::cout << "Teuchos::SerialSpdDenseSolver::solve() returned : " << info << std::endl;
double alpha=0.5;
A1(0,0) = 1.0, A1(1,1) = 2.0;
A2(0,0) = 1.0, A2(1,1) = 2.0, A2(2,2) = 3.00;
W = 1.0;
Teuchos::symMatTripleProduct<int,double>(
Teuchos::TRANS, alpha, A2, W, C2 );
std::cout<<
printMat(My_Matrix) << std::endl;
return 0;
}