Vector.Multiply Method
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
Multiply<T>(Matrix<T>, Vector<T>) | Multiplies a vector by a matrix. |
Multiply<T>(Vector<T>, T) | Multiplies a vector by a constant. |
Multiply<T>(T, Vector<T>) | Multiplies a vector by a constant. |
Multiply<T>(Matrix<T>, TransposeOperation, Vector<T>) | Multiplies a vector by a matrix. |
Multiply<T>(Matrix<T>, Vector<T>)
Multiplies a vector by a matrix.
public static Vector<T> Multiply<T>(
Matrix<T> matrix,
Vector<T> vector
)
Parameters
Type Parameters
- T
Return Value
Vector<T>Exceptions
Argument | matrix is null -or- vector is null |
Multiply<T>(Vector<T>, T)
Multiplies a vector by a constant.
public static Vector<T> Multiply<T>(
Vector<T> vector,
T factor
)
Parameters
- vector Vector<T>
- A vector.
- factor T
- A number.
Type Parameters
- T
Return Value
Vector<T>A vector whose elements are the corresponding elements of vector multiplied by factor.
Exceptions
Argument | vector is null |
Multiply<T>(T, Vector<T>)
Multiplies a vector by a constant.
public static Vector<T> Multiply<T>(
T factor,
Vector<T> vector
)
Parameters
- factor T
- A number.
- vector Vector<T>
- A vector.
Type Parameters
- T
Return Value
Vector<T>A vector whose elements are the corresponding elements of vector multiplied by factor.
Exceptions
Argument | vector is null |
Multiply<T>(Matrix<T>, TransposeOperation, Vector<T>)
Multiplies a vector by a matrix.
public static Vector<T> Multiply<T>(
Matrix<T> matrix,
TransposeOperation operation,
Vector<T> vector
)
Parameters
- matrix Matrix<T>
- A matrix.
- operation TransposeOperation
- The operation to apply to matrix before multiplying.
- vector Vector<T>
- A vector.
Type Parameters
- T
Return Value
Vector<T>Exceptions
Argument | matrix is null -or- vector is null |