Applies a function to each column in a matrix and returns the result as a vector.
Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Function ApplyToColumns ( _ function As MultivariateRealFunction _ ) As GeneralVector |
| C# |
|---|
public GeneralVector ApplyToColumns ( MultivariateRealFunction function ) |
| C++ |
|---|
public: GeneralVector^ ApplyToColumns ( MultivariateRealFunction^ function ) |
Parameters
- function (Extreme.Mathematics.MultivariateRealFunction)
- A MultivariateRealFunction delegate.
Return Value
A GeneralVector whose components are the result of applying function to each column of the matrix.
Remarks
The length of the returned vector equals the number of columns in the matrix.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | function is nullNothingnullptr. |