Matrix.Map<T, U, V>(Func<T, U, V>, Vector<T>, Dimension, Vector<U>) Method

Maps two broadcast vectors to form a matrix.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static Matrix<V> Map<T, U, V>(
	Func<T, U, V> function,
	Vector<T> first,
	Dimension firstBroadcastDimension,
	Vector<U> second
)

Parameters

function  Func<T, U, V>
A delegate that represents a function of two variables
first  Vector<T>
A vector.
firstBroadcastDimension  Dimension
A value that specifies whether the elements in first should be broadcast across rows or columns.
second  Vector<U>
A vector.

Type Parameters

T
U
V

Return Value

Matrix<V>
A matrix whose elements are the sum of the corresponding elements of first and second.

Exceptions

ArgumentNullExceptionfirst is null

-or-

second is null

See Also