Adds a multiple of a vector broadcast along the specified dimension to a matrix
and returns the result.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static Matrix<T> AddScaled<T>(
Matrix<T> left,
T factor,
Vector<T> right,
Dimension broadcastDimension
)
Public Shared Function AddScaled(Of T) (
left As Matrix(Of T),
factor As T,
right As Vector(Of T),
broadcastDimension As Dimension
) As Matrix(Of T)
public:
generic<typename T>
static Matrix<T>^ AddScaled(
Matrix<T>^ left,
T factor,
Vector<T>^ right,
Dimension broadcastDimension
)
static member AddScaled :
left : Matrix<'T> *
factor : 'T *
right : Vector<'T> *
broadcastDimension : Dimension -> Matrix<'T>
Parameters
- left
- Type: Extreme.MathematicsMatrixT
The left operand of the addition. - factor
- Type: T
Multiplier for the vector right. - right
- Type: Extreme.MathematicsVectorT
A vector. - broadcastDimension
- Type: Extreme.MathematicsDimension
A value that specifies whether the elements
in right should be broadcast across rows or columns.
Type Parameters
- T
Return Value
Type:
MatrixTA
MatrixT that is the sum of the specified form of
this matrix and the vector
right
broadcast in the dimension specified by
broadcastDimension.
The dimensions of the matrix and the length of the vector
must be compatible. Otherwise an exception of type
DimensionMismatchException is thrown.
Reference