~corrado-maurini/dolfin/tao

« back to all changes in this revision

Viewing changes to dolfin/la/BlockVector.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:
41
41
  public:
42
42
 
43
43
    /// Constructor
44
 
    BlockVector(uint n = 0);
 
44
    BlockVector(std::size_t n = 0);
45
45
 
46
46
    /// Destructor
47
47
    virtual ~BlockVector();
50
50
    virtual BlockVector* copy() const;
51
51
 
52
52
    /// Set function
53
 
    void set_block(uint i, boost::shared_ptr<GenericVector> v);
 
53
    void set_block(std::size_t i, boost::shared_ptr<GenericVector> v);
54
54
 
55
55
    /// Get sub-vector (const)
56
 
    const boost::shared_ptr<GenericVector> get_block(uint i) const;
 
56
    const boost::shared_ptr<GenericVector> get_block(std::size_t i) const;
57
57
 
58
58
    /// Get sub-vector (non-const)
59
 
    boost::shared_ptr<GenericVector> get_block(uint);
 
59
    boost::shared_ptr<GenericVector> get_block(std::size_t);
60
60
 
61
61
    /// Add multiple of given vector (AXPY operation)
62
62
    void axpy(double a, const BlockVector& x);
95
95
    virtual bool empty() const;
96
96
 
97
97
    /// Number of vectors
98
 
    uint size() const;
 
98
    std::size_t size() const;
99
99
 
100
100
    /// Return informal string representation (pretty-print)
101
101
    std::string str(bool verbose) const;