Matrix<T>.MapAsFirstCore<U, V>(Func<T, U, V>, Matrix<U>, Matrix<V>) Method

Applies a function to the corresponding elements of two matrices.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
protected virtual Matrix<V> MapAsFirstCore<U, V>(
	Func<T, U, V> function,
	Matrix<U> second,
	Matrix<V> result
)

Parameters

function  Func<T, U, V>
A delegate that represents a function of two variables
second  Matrix<U>
A matrix whose elements serve as the second argument to the function.
result  Matrix<V>
The matrix that is to hold the result. May be null.

Type Parameters

U
V

Return Value

Matrix<V>
The result of applying function to the corresponding elements of this matrix and second.

Exceptions

ArgumentNullExceptionfunction is null.

-or-

second is null

DimensionMismatchException

The dimensions of second do not equal the dimensions of this matrix.

See Also