Changeset 1129


Ignore:
Timestamp:
Feb 23, 2008, 7:05:39 PM (16 years ago)
Author:
Peter
Message:

some docs refs #256

Location:
trunk/yat/utility
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/Vector.cc

    r1121 r1129  
    175175      throw utility::GSL_error("Vector::create_gsl_vector_copy failed to allocate memory");
    176176    if (gsl_vector_memcpy(vec, other.gsl_vector_p()))
    177       throw utility::GSL_error("Vector::create_gsl_matrix_copy dimension mis-match");
     177      throw utility::GSL_error("Vector::create_gsl_vector_copy memcpy failed");
    178178    return vec;
    179179  }
     
    199199    const_vec_ = vec_ = gsl_vector_alloc(n);
    200200    if (!vec_)
    201       throw utility::GSL_error("Vector::Vector failed to allocate memory");
     201      throw utility::GSL_error("Vector::resize failed to allocate memory");
    202202    all(init_value);
    203203  }
  • trunk/yat/utility/Vector.h

    r1120 r1129  
    122122      \note Underlying GSL vector is destroyed and a view into this
    123123      Vector becomes invalid.
     124
     125      \throw GSL_error if memory allocation fails.
    124126    */
    125127    void resize(size_t, double init_value=0);
     
    131133
    132134       \return A const reference to the resulting Vector.
     135
     136       \throw GSL_error if assignment fails.
    133137    */
    134138    const Vector& operator=(const Vector&);
     
    140144
    141145       \return A const reference to the resulting Vector.
     146
     147       \throw GSL_error if assignment fails.
    142148    */
    143149    const Vector& operator=(const VectorBase&);
Note: See TracChangeset for help on using the changeset viewer.