~corrado-maurini/dolfin/tao

« back to all changes in this revision

Viewing changes to dolfin/la/uBLASLinearOperator.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:
16
16
// along with DOLFIN. If not, see <http://www.gnu.org/licenses/>.
17
17
//
18
18
// First added:  2006-06-30
19
 
// Last changed: 2012-08-31
 
19
// Last changed: 2012-12-12
20
20
 
21
21
#ifndef __UBLAS_LINEAR_OPERATOR_H
22
22
#define __UBLAS_LINEAR_OPERATOR_H
45
45
    //--- Implementation of the GenericLinearOperator interface ---
46
46
 
47
47
    /// Return size of given dimension
48
 
    virtual uint size(uint dim) const;
 
48
    virtual std::size_t size(std::size_t dim) const;
49
49
 
50
50
    /// Compute matrix-vector product y = Ax
51
51
    virtual void mult(const GenericVector& x, GenericVector& y) const;
56
56
  protected:
57
57
 
58
58
    // Initialization
59
 
    void init(uint M, uint N, GenericLinearOperator* wrapper);
 
59
    void init(const GenericVector& x, const GenericVector& y,
 
60
              GenericLinearOperator* wrapper);
60
61
 
61
62
    // Pointer to wrapper
62
63
    GenericLinearOperator* _wrapper;
63
64
 
64
65
    // Dimensions
65
 
    uint M, N;
 
66
    std::size_t M, N;
66
67
 
67
68
  };
68
69