ListVector<T>.MapInPlace Method

Definition

Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.2.0

Overload List

MapInPlace<U>(Func<T, U, T>, Vector<U>) 
MapInPlace(Func<T, T>) Applies a transformation in-place to each element in each 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<T, U, T>, Vector<U>) Applies a function to the elements of a vector.
MapInPlace<TScalar>(Vector<TScalar>, Func<T, TScalar, T>) Applies a transformation in-place to each element in each list, using a corresponding scalar value per list.
MapInPlace<TScalar1, TScalar2>(Vector<TScalar1>, Vector<TScalar2>, Func<T, TScalar1, TScalar2, T>) Applies a transformation in-place to each element in each list, using two corresponding scalar values per list.

MapInPlace(Func<T, T>)

Applies a transformation in-place to each element in each list.
C#
public void MapInPlace(
	Func<T, T> func
)

Parameters

func  Func<T, T>
The function to apply to each element.

Remarks

This method modifies the vector in place. The vector must have mutable values.

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

Applies a transformation in-place to each element in each list, using a corresponding scalar value per list.
C#
public void MapInPlace<TScalar>(
	Vector<TScalar> scalars,
	Func<T, TScalar, T> func
)

Parameters

scalars  Vector<TScalar>
A vector of scalar values, one per list.
func  Func<T, TScalar, T>
The function to apply to each element and its corresponding scalar.

Type Parameters

TScalar
The type of the scalar values.

Remarks

This method modifies the vector in place. The vector must have mutable values.

MapInPlace<TScalar1, TScalar2>(Vector<TScalar1>, Vector<TScalar2>, Func<T, TScalar1, TScalar2, T>)

Applies a transformation in-place to each element in each list, using two corresponding scalar values per list.
C#
public void MapInPlace<TScalar1, TScalar2>(
	Vector<TScalar1> scalars1,
	Vector<TScalar2> scalars2,
	Func<T, TScalar1, TScalar2, T> func
)

Parameters

scalars1  Vector<TScalar1>
A vector of first scalar values, one per list.
scalars2  Vector<TScalar2>
A vector of second scalar values, one per list.
func  Func<T, TScalar1, TScalar2, T>
The function to apply to each element and its corresponding scalars.

Type Parameters

TScalar1
The type of the first scalar values.
TScalar2
The type of the second scalar values.

Remarks

This method modifies the vector in place. The vector must have mutable values.

See Also