Ignore:
Timestamp:
Nov 30, 2005, 10:35:19 PM (17 years ago)
Author:
Jari Häkkinen
Message:

All check passes, but more matrix checks needed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/better_matrix_class/lib/gslapi/matrix.h

    r409 r413  
    4040  /// the omitted functionality could be included.
    4141  ///
     42  /// @todo Maybe it would be smart to create temporary objects need
     43  /// for BLAS in constructors. As it is now temporary objects are
     44  /// called before BLAS functionality iss used, cf. const matrix&
     45  /// matrix::operator*=(const matrix& other)
     46  ///
    4247  class matrix
    4348  {
     
    5055    /// structures.
    5156    ///
    52     matrix(void);
     57    inline matrix(void) : m_(NULL), view_(NULL) {}
    5358
    5459    ///
     
    5661    /// elements, and sets all elements to \a init_value.
    5762    ///
    58     matrix(const size_t& r, const size_t& c, const double init_value=0);
     63    inline matrix(const size_t& r, const size_t& c, double init_value=0)
     64      : view_(NULL) { m_ = gsl_matrix_alloc(r,c); set_all(init_value); }
    5965
    6066    ///
     
    6470    /// of the view will be copied, i.e. the view is not copied.
    6571    ///
    66     matrix(const matrix&);
     72    inline matrix(const matrix& o) : view_(NULL) { m_ = o.gsl_matrix_copy(); }
    6773
    6874    ///
Note: See TracChangeset for help on using the changeset viewer.