~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to src/kernel/la/uBlasFactory.cpp

  • Committer: Johannes Ring
  • Date: 2008-03-05 22:43:06 UTC
  • Revision ID: johannr@simula.no-20080305224306-2npsdyhfdpl2esji
The BIG commit!

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 <dolfin/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;