PlayaDenseSerialMatrixFactory.cpp

00001 /* @HEADER@ */
00002 //   
00003  /* @HEADER@ */
00004 
00005 #include "PlayaDenseSerialMatrixFactory.hpp"
00006 #include "PlayaDenseSerialMatrix.hpp"
00007 #include "PlayaSerialVector.hpp"
00008 #include "PlayaVectorSpaceDecl.hpp"  
00009 #include "PlayaVectorDecl.hpp"
00010 #include "Teuchos_Array.hpp"
00011 #include "PlayaMPIComm.hpp"
00012 #include "PlayaLinearOperatorDecl.hpp"
00013 
00014 #ifndef HAVE_TEUCHOS_EXPLICIT_INSTANTIATION
00015 #include "PlayaLinearOperatorImpl.hpp"
00016 #include "PlayaVectorImpl.hpp"
00017 #endif
00018 
00019 
00020 namespace Playa
00021 {
00022 
00023 using namespace Teuchos;
00024 
00025 
00026 DenseSerialMatrixFactory::DenseSerialMatrixFactory(
00027   const VectorSpace<double>& domain,
00028   const VectorSpace<double>& range)
00029   : 
00030   domain_(domain),
00031   range_(range)
00032 {}
00033 
00034 
00035 LinearOperator<double> DenseSerialMatrixFactory::createMatrix() const
00036 {
00037   RCP<LinearOperatorBase<double> > A 
00038     = rcp(new DenseSerialMatrix(domain_, range_));
00039   return A;
00040 }
00041 
00042 }

doxygen