Home > Extreme Optimization Mathematics Library for .NET > Reference > Extreme.Mathematics.LinearAlgebra Namespace > Vector Class > Methods
Swaps the elements of two vectors.
| Exception Type | Condition |
|---|---|
| DimensionMismatchException | The length of vector1 is not equal to the length of vector2. |
| ArgumentNullException | vector1 is a null reference
(Nothing in Visual Basic) -or- vector2 is a null reference (Nothing in Visual Basic) |
| DimensionMismatchException | The length of vector1 does not equal the length of vector2. |
Vector Class | Extreme.Mathematics.LinearAlgebra Namespace