Vector.Multiply Method
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
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. |