~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to dolfin/la/uBlasFactory.cpp

  • Committer: Kent-Andre Mardal
  • Date: 2008-05-19 14:21:52 UTC
  • mfrom: (2668.5.1 trunk)
  • mto: (2668.1.16 trunk)
  • mto: This revision was merged to the branch mainline in revision 2670.
  • Revision ID: kent-and@simula.no-20080519142152-7zb7r4htl7111izh
merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// Copyright (C) 2007 Ola Skavhaug.
2
 
// Licensed under the GNU LGPL Version 2.1.
3
 
//
4
 
// First added:  2007-12-06
5
 
// Last changed: 2007-12-07
6
 
 
7
 
#include "uBlasFactory.h"
8
 
 
9
 
using namespace dolfin;
10
 
 
11
 
uBlasMatrix<ublas_sparse_matrix>* uBlasFactory::createMatrix() const 
12
 
{
13
 
  return new uBlasMatrix<ublas_sparse_matrix>(); 
14
 
}
15
 
 
16
 
SparsityPattern* uBlasFactory::createPattern() const 
17
 
{
18
 
  return new SparsityPattern(); 
19
 
}
20
 
 
21
 
uBlasVector* uBlasFactory::createVector() const 
22
 
{
23
 
  return new uBlasVector(); 
24
 
}
25
 
 
26
 
uBlasFactory uBlasFactory::ublasfactory;