Matrix<T>.MapInPlace Method

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

MapInPlace(Func<T, T>) Applies a function in-place to the elements of a matrix.
MapInPlace<U>(Func<U, T, T>, Matrix<U>) Applies a function in-place to the elements of a matrix as the second argument.
MapInPlace<U>(Func<T, U, T>, Matrix<U>) Applies a function to the elements of a matrix.

MapInPlace(Func<T, T>)

Applies a function in-place to the elements of a matrix.
C#
public virtual Matrix<T> MapInPlace(
	Func<T, T> function
)

Parameters

function  Func<T, T>
A delegate that represents a function of one variable

Return Value

Matrix<T>
A reference to this instance.

Exceptions

ArgumentNullExceptionfunction is null.

MapInPlace<U>(Func<U, T, T>, Matrix<U>)

Applies a function in-place to the elements of a matrix as the second argument.
C#
public virtual Matrix<T> MapInPlace<U>(
	Func<U, T, T> function,
	Matrix<U> left
)

Parameters

function  Func<U, T, T>
A delegate that represents a function of one variable
left  Matrix<U>
A matrix whose elements serve as the first argument to the function.

Type Parameters

U

Return Value

Matrix<T>
A reference to this instance.

Exceptions

ArgumentNullExceptionfunction is null.

MapInPlace<U>(Func<T, U, T>, Matrix<U>)

Applies a function to the elements of a matrix.
C#
public virtual Matrix<T> MapInPlace<U>(
	Func<T, U, T> function,
	Matrix<U> right
)

Parameters

function  Func<T, U, T>
A delegate that represents a function of one variable
right  Matrix<U>
A matrix whose elements serve as the second argument to the function.

Type Parameters

U

Return Value

Matrix<T>
A reference to this instance.

Exceptions

ArgumentNullExceptionfunction is null.

See Also