~corrado-maurini/dolfin/tao

« back to all changes in this revision

Viewing changes to dolfin/la/CoordinateMatrix.h

  • Committer: corrado maurini
  • Date: 2012-12-18 12:16:08 UTC
  • mfrom: (6685.78.207 trunk)
  • Revision ID: corrado.maurini@upmc.fr-20121218121608-nk82ly9jgsld9u84
updating with trunk, fix uint in TAO solver and hacking the check for tao FindTAO.cmake

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
    /// Destructor
44
44
    virtual ~CoordinateMatrix() {}
45
45
 
46
 
    unsigned int size(unsigned int dim) const
 
46
    std::size_t size(std::size_t dim) const
47
47
    { return _size[dim]; }
48
48
 
49
 
    const std::vector<uint>& rows() const
 
49
    const std::vector<std::size_t>& rows() const
50
50
    { return _rows; }
51
51
 
52
 
    const std::vector<uint>& columns() const
 
52
    const std::vector<std::size_t>& columns() const
53
53
    { return _cols; }
54
54
 
55
55
    const std::vector<double>& values() const
64
64
  private:
65
65
 
66
66
    // Row and column indices
67
 
    std::vector<uint> _rows;
68
 
    std::vector<uint> _cols;
 
67
    std::vector<std::size_t> _rows;
 
68
    std::vector<std::size_t> _cols;
69
69
 
70
70
    // Storage of values
71
71
    std::vector<double> _vals;
72
72
 
73
73
    // Gobal size
74
 
    unsigned int _size[2];
 
74
    std::size_t _size[2];
75
75
 
76
76
    // Symmetric storage
77
77
    const bool _symmetric;