Changeset 755 for trunk/yat/utility/matrix.h
- Timestamp:
- Feb 18, 2007, 1:01:39 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/utility/matrix.h
r754 r755 168 168 size_t columns(void) const; 169 169 170 / //171 ///Elementwise division of the elemnts of the calling matrix by172 ///the elements of matrix \a b, \f$ a_{ij} = a_{ij} / b_{ij} \;173 ///\forall i,j \f$. The result is stored into the calling matrix.174 /// 175 /// @return Whatever GSL returns.176 ///177 intdiv_elements(const matrix& b);170 /** 171 Elementwise division of the elemnts of the calling matrix by 172 the elements of matrix \a b, \f$ a_{ij} = a_{ij} / b_{ij} \; 173 \forall i,j \f$. The result is stored into the calling matrix. 174 175 \throw GSL_error if dimensions mis-match. 176 */ 177 void div_elements(const matrix& b); 178 178 179 179 /// … … 238 238 bool nan(matrix&) const; 239 239 240 /// 241 /// Multiply the elements of matrix \a b with the elements of the 242 /// calling matrix ,\f$ a_{ij} = a_{ij} * b_{ij} \; \forall 243 /// i,j \f$. The result is stored into the calling matrix. 244 /// 245 /// @return Whatever GSL returns. 246 /// 247 int 248 mul_elements(const matrix& b); 240 /** 241 Multiply the elements of matrix \a b with the elements of the 242 calling matrix ,\f$ a_{ij} = a_{ij} * b_{ij} \; \forall i,j 243 \f$. The result is stored into the calling matrix. 244 245 \throw GSL_error if dimensions mis-match. 246 */ 247 void mul_elements(const matrix& b); 249 248 250 249 /// … … 305 304 void sub(const matrix& b); 306 305 307 /// 308 /// Exchange the elements of the this and \a other by copying. The 309 /// two matrices must have the same size. 310 /// 311 /// @return Whatever GSL returns. 312 /// 313 int swap(matrix& other); 314 315 /// 316 /// @brief Swap columns \a i and \a j. 317 /// 318 int swap_columns(const size_t i,const size_t j); 319 320 /// 321 /// @brief Swap row \a i and column \a j. 322 /// 323 int swap_rowcol(const size_t i,const size_t j); 324 325 /// 326 /// @brief Swap rows \a i and \a j. 327 /// 328 int swap_rows(const size_t i, const size_t j); 306 /** 307 \brief Exchange the elements of the this and \a other by copying. 308 309 The two matrices must have the same size. 310 311 \throw GSL_error if either index is out of bounds. 312 */ 313 void swap(matrix& other); 314 315 /** 316 \brief Swap columns \a i and \a j. 317 318 \throw GSL_error if either index is out of bounds. 319 */ 320 void swap_columns(const size_t i,const size_t j); 321 322 /** 323 \brief Swap row \a i and column \a j. 324 325 \throw GSL_error if either index is out of bounds, or if matrix 326 is not square. 327 */ 328 void swap_rowcol(const size_t i,const size_t j); 329 330 /** 331 \brief Swap rows \a i and \a j. 332 333 \throw GSL_error if either index is out of bounds. 334 */ 335 void swap_rows(const size_t i, const size_t j); 329 336 330 337 /** … … 336 343 void transpose(void); 337 344 338 /// 339 /// @return Reference to the element position (\a row, \a column). 340 /// 345 /** 346 \brief Element access operator. 347 348 \return Reference to the element position (\a row, \a column). 349 350 \throw If GSL range checks are enabled in the underlying GSL 351 library a GSL_error exception is thrown if either index is out 352 of range. 353 */ 341 354 double& operator()(size_t row,size_t column); 342 355 343 /// 344 /// @return Const reference to the element position (\a row, \a 345 /// column). 346 /// 356 /** 357 \brief Element access operator. 358 359 \return Const reference to the element position (\a row, \a 360 column). 361 362 \throw If GSL range checks are enabled in the underlying GSL 363 library a GSL_error exception is thrown if either index is out 364 of range. 365 */ 347 366 const double& operator()(size_t row,size_t column) const; 348 367
Note: See TracChangeset
for help on using the changeset viewer.