/* * ===================================================================================== * * Filename: test.cc * * Description: * * Version: 1.0 * Created: 11/30/2007 11:32:26 AM EST * Revision: none * Compiler: gcc * * Author: Nikolaos Vasiloglou (NV), nvasil@ieee.org * Company: Georgia Tech Fastlab-ESP Lab * * ===================================================================================== */ #define HAVE_CONFIG_H #include "fastlib/fastlib.h" #ifdef F77_FUNC #undef F77_FUNC #endif #include "trilinos/include/Epetra_SerialDenseMatrix.h" #include "trilinos/include/Epetra_SerialComm.h" #include "trilinos/include/Epetra_Version.h" int main(int argc, char *argv[]) { Epetra_SerialComm Comm; // declare two dense matrix, whose dimensions are still not specified Epetra_SerialDenseMatrix A, B; // Total number of rows ans columns for dense matrix A int NumRowsA = 2, NumColsA = 2; // shape A A.Shape( NumRowsA, NumColsA ); // set the element of A using the () operator. // Note that i is the row-index, and j the column-index for( int i=0 ; i