Multiplies a vector by a given factor.
Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Overrides Function Multiply ( _ factor As Double _ ) As Vector |
| C# |
|---|
public override Vector Multiply ( double factor ) |
| C++ |
|---|
public: virtual Vector^ Multiply ( double factor ) override |
Parameters
- factor (System.Double)
- The factor to multiply the vector by.
Return Value
a reference to this vector.
Remarks
The structure of a band vector is fixed at the time of construction.
The zero and unit elements cannot be modified. Multiplying a band vector with unit element
by a constant different from 1 would require the unit element to change, which is not allowed.
A ComponentReadOnlyException exception is thrown.
Exceptions
| Exception | Condition |
|---|---|
| ComponentReadOnlyException | The vector has a unit element and factor is not equal to 1. |