Vector<T>.MapInPlace Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3

Overload List

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

MapInPlace(Func<T, T>)

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

Parameters

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

Return Value

Vector<T>
A reference to this instance.

Exceptions

ArgumentNullException

function is null.

MapInPlace(Func<Int32, T, T>)

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

Parameters

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

Return Value

Vector<T>
A reference to this instance.

Exceptions

ArgumentNullException

function is null.

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

Applies a function in-place to the elements of a vector as the second argument.
C#
public Vector<T> MapInPlace<U>(
	Func<U, T, T> function,
	Vector<U> first
)

Parameters

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

Type Parameters

U

Return Value

Vector<T>
A reference to this instance.

Exceptions

ArgumentNullException

function is null.

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

Applies a function to the elements of a vector.
C#
public Vector<T> MapInPlace<U>(
	Func<T, U, T> function,
	Vector<U> second
)

Parameters

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

Type Parameters

U

Return Value

Vector<T>
A reference to this instance.

Exceptions

ArgumentNullException

function is null.

See Also