| FloatComplexMatrixApplyColumns Method |
Returns a new vector containing an element for each column in this matrix.
The elements are the results of applying a function that takes a vector and
returns a single-precision number.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public FloatComplexVector ApplyColumns(
Func<FloatComplexVector, FloatComplex> function
)
Public Function ApplyColumns (
function As Func(Of FloatComplexVector, FloatComplex)
) As FloatComplexVector
public:
FloatComplexVector^ ApplyColumns(
Func<FloatComplexVector^, FloatComplex>^ function
)
member ApplyColumns :
function : Func<FloatComplexVector, FloatComplex> -> FloatComplexVector
Parameters
- function FuncFloatComplexVector, FloatComplex
-
A delegate object representing a function that
takes a FloatComplexVector parameter and returns a FloatComplex.
Return Value
FloatComplexVectorA vector
v with the same length as the number of columns in this
matrix, where
v[i]=function( this.Col(i) ).
Remarks
To apply a function to the rows of a matrix, first Transpose() the matrix, then
call ApplyColumns(). Transpose() again to return the matrix to its
original view. Transposing just swaps the number of rows and the number of columns,
as well as row strides and column strides. No data is copied.
See Also