Changeset 790 for trunk/yat/utility/vector.h
- Timestamp:
- Mar 10, 2007, 9:49:31 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/utility/vector.h
r789 r790 59 59 utility::vector::isview(), that can be used to check if a vector 60 60 object is a view. Note that view vectors do not own the 61 underlying data, and a view is not valid if the vector owing the62 data is deallocated.61 underlying data, and a view is not valid if the vector/matrix 62 owing the data is deallocated. 63 63 64 64 \par … … 81 81 v2(0)=-123; // not acceptable for the compiler 82 82 @endcode 83 84 @note Missing support to underlying GSL vector features can in85 principle be included to this class if requested by the user86 community.87 83 */ 88 84 … … 349 345 \return True if all elements are equal otherwise false. 350 346 351 \see equal 347 \see equal(const vector&, const double precision=0) 352 348 */ 353 349 bool operator==(const vector&) const; … … 362 358 \return False if all elements are equal otherwise true. 363 359 364 \see equal 360 \see equal(const vector&, const double precision=0) 365 361 */ 366 362 bool operator!=(const vector&) const; … … 374 370 \brief The assignment operator. 375 371 376 There is no requirements on dimensions, i.e. the vector is 377 remapped in memory if necessary. This implies that in general 378 views cannot be assigned using this operator. Views will be 379 mutated into normal vectors. The only exception to this 380 behaviour on views is when self-assignemnt is done, since 381 self-assignment is ignored. 372 Dimensions of the vectors must match. If the LHS vector is a 373 view, the underlying data will be changed. 382 374 383 375 \return A const reference to the resulting vector. … … 385 377 \see void set(const vector&). 386 378 387 \throw A GSL_error is indirectly thrown if memory allocation 388 fails, or if dimensions mis-match. 379 \throw GSL_error if dimensions mis-match. 389 380 */ 390 381 const vector& operator=(const vector&);
Note: See TracChangeset
for help on using the changeset viewer.