Click or drag to resize

CVectorFilterMap Method

Creates a new vector by filtering and mapping at the same time.

Namespace: Austra.Library
Assembly: Austra.Library (in Austra.Library.dll) Version: 2.8.0+77a1ed58155f905ef6d88f42ae024582c7e1b4c3
Syntax
C#
public CVector FilterMap(
	Func<Complex, bool> predicate,
	Func<Complex, Complex> mapper
)

Parameters

predicate  FuncComplex, Boolean
The predicate to evaluate.
mapper  FuncComplex, Complex
The mapping function.

Return Value

CVector
A new vector with the filtered items.
Remarks
This method can save an intermediate buffer and one iteration.
See Also