Extreme Optimization™: Complexity made simple.

Math and Statistics
Libraries for .NET

  • Home
  • Features
    • Math Library
    • Vector and Matrix Library
    • Statistics Library
    • Performance
    • Usability
  • Documentation
    • Introduction
    • Math Library User's Guide
    • Vector and Matrix Library User's Guide
    • Data Analysis Library User's Guide
    • Statistics Library User's Guide
    • Reference
  • Resources
    • Downloads
    • QuickStart Samples
    • Sample Applications
    • Frequently Asked Questions
    • Technical Support
  • Blog
  • Order
  • Company
    • About us
    • Testimonials
    • Customers
    • Press Releases
    • Careers
    • Partners
    • Contact us
Introduction
Deployment Guide
Nuget packages
Configuration
Using Parallelism
Expand Mathematics Library User's GuideMathematics Library User's Guide
Expand Vector and Matrix Library User's GuideVector and Matrix Library User's Guide
Expand Data Analysis Library User's GuideData Analysis Library User's Guide
Expand Statistics Library User's GuideStatistics Library User's Guide
Expand Data Access Library User's GuideData Access Library User's Guide
Expand ReferenceReference
  • Extreme Optimization
    • Features
    • Solutions
    • Documentation
    • QuickStart Samples
    • Sample Applications
    • Downloads
    • Technical Support
    • Download trial
    • How to buy
    • Blog
    • Company
    • Resources
  • Documentation
    • Introduction
    • Deployment Guide
    • Nuget packages
    • Configuration
    • Using Parallelism
    • Mathematics Library User's Guide
    • Vector and Matrix Library User's Guide
    • Data Analysis Library User's Guide
    • Statistics Library User's Guide
    • Data Access Library User's Guide
    • Reference
  • Reference
    • Extreme
    • Extreme.Collections
    • Extreme.Data
    • Extreme.Data.Json
    • Extreme.Data.Matlab
    • Extreme.Data.R
    • Extreme.Data.Stata
    • Extreme.Data.Text
    • Extreme.DataAnalysis
    • Extreme.DataAnalysis.Linq
    • Extreme.DataAnalysis.Models
    • Extreme.Mathematics
    • Extreme.Mathematics.Algorithms
    • Extreme.Mathematics.Calculus
    • Extreme.Mathematics.Calculus.OrdinaryDifferentialEquations
    • Extreme.Mathematics.Curves
    • Extreme.Mathematics.Curves.Nonlinear
    • Extreme.Mathematics.Distributed
    • Extreme.Mathematics.EquationSolvers
    • Extreme.Mathematics.Generic
    • Extreme.Mathematics.LinearAlgebra
    • Extreme.Mathematics.LinearAlgebra.Implementation
    • Extreme.Mathematics.LinearAlgebra.IterativeSolvers
    • Extreme.Mathematics.LinearAlgebra.IterativeSolvers.Preconditioners
    • Extreme.Mathematics.Optimization
    • Extreme.Mathematics.Optimization.LineSearches
    • Extreme.Mathematics.Random
    • Extreme.Mathematics.SignalProcessing
    • Extreme.Providers
    • Extreme.Providers.InteropServices
    • Extreme.Statistics
    • Extreme.Statistics.Distributions
    • Extreme.Statistics.Multivariate
    • Extreme.Statistics.Tests
    • Extreme.Statistics.TimeSeriesAnalysis
  • Extreme.Mathematics
    • AccuracyGoal Structure
    • AlgorithmStatus Enumeration
    • ArrayAttributes Structure
    • ArrayMath Class
    • ArrayMutability Enumeration
    • BigFloat Class
    • BigInteger Structure
    • BigRational Structure
    • CategoricalVector(T) Class
    • Complex(T) Structure
    • Constants Class
    • ConvergenceCriterion Enumeration
    • CoreImplementations(T) Class
    • DecimalMath Class
    • Dimension Enumeration
    • DimensionMismatchException Class
    • DimensionType Enumeration
    • DistributedDataLocation Enumeration
    • DoubleComparer Class
    • Elementary Class
    • ElementType(T) Class
    • FunctionMath Class
    • FunctionWithDerivative Delegate
    • GenericCoreProvider(T) Class
    • GenericImplementations Class
    • ICategoricalVector Interface
    • IDistributed Interface
    • InsufficientDataException Class
    • IntegerMath Class
    • Intent Enumeration
    • Interval Structure
    • Interval(T) Structure
    • IPermutable Interface
    • ISummarizable Interface
    • Iterators Class
    • IVector Interface
    • MachineConstants Class
    • ManagedCoreProviderOfSingle Class
    • Math(T) Class
    • Matrix Class
    • Matrix(T) Class
    • MatrixDiagonal Enumeration
    • MatrixElementOrder Enumeration
    • MatrixExtensions Class
    • MatrixNorm Enumeration
    • MatrixOperationSide Enumeration
    • MatrixStructure Enumeration
    • MatrixTriangle Enumeration
    • MutabilityBehaviour Enumeration
    • NumericsConfiguration Class
    • Operations(T) Class
    • Permutation Class
    • Quad Structure
    • RandomExtensions Class
    • Range Structure
    • RoundingMode Enumeration
    • SingleConstants Class
    • SinglePrecisionImplementations Class
    • Slice Structure
    • SolutionReport(T) Class
    • SolutionReport(T, TError) Class
    • Special Class
    • SummaryOptions Class
    • SymbolicMath Class
    • TotalLossOfPrecisionException Class
    • TransposeOperation Enumeration
    • TypedVectorWrapper(K, T) Structure
    • Vector Class
    • Vector(T) Class
    • VectorExtensions Class
  • Matrix Class
    • Methods
  • Methods
    • Abs(T) Method
    • AbsInto(T) Method
    • Acos(T) Method
    • Acosh(T) Method
    • AcoshInto(T) Method
    • AcosInto(T) Method
    • Add Method Overloads
    • AddInto Method Overloads
    • AddProduct(T) Method
    • AddProductInto(T) Method
    • AddScaled Method Overloads
    • AddScaledInto Method Overloads
    • AddScaledProduct Method Overloads
    • AddScaledProductInto Method Overloads
    • Align(T, U) Method
    • AlignColumns Method Overloads
    • AlignRows Method Overloads
    • Asin(T) Method
    • Asinh(T) Method
    • AsinhInto(T) Method
    • AsinInto(T) Method
    • Atan(T) Method
    • Atan2(T) Method
    • Atan2Into(T) Method
    • Atanh(T) Method
    • AtanhInto(T) Method
    • AtanInto(T) Method
    • Ceiling(T) Method
    • CeilingInto(T) Method
    • Conjugate(T) Method
    • ConjugateInto(T) Method
    • Cos(T) Method
    • Cosh(T) Method
    • CoshInto(T) Method
    • CosInto(T) Method
    • Create Method Overloads
    • CreateBanded Method Overloads
    • CreateConstant(T) Method
    • CreateDiagonal Method Overloads
    • CreateHermitian Method Overloads
    • CreateLowerBanded Method Overloads
    • CreateLowerTriangular Method Overloads
    • CreateRandom Method Overloads
    • CreateSparse Method Overloads
    • CreateSparseSymmetric Method Overloads
    • CreateSymmetric Method Overloads
    • CreateSymmetricBanded(T) Method
    • CreateUpperBanded Method Overloads
    • CreateUpperTriangular Method Overloads
    • Divide(T) Method
    • ElementwiseConjugateMultiply(T) Method
    • ElementwiseConjugateMultiplyInto(T) Method
    • ElementwiseDivide Method Overloads
    • ElementwiseDivideInto Method Overloads
    • ElementwiseMultiply Method Overloads
    • ElementwiseMultiplyInto Method Overloads
    • ElementwisePow Method Overloads
    • ElementwisePowInto Method Overloads
    • EqualTo Method Overloads
    • EqualToInto Method Overloads
    • Exp(T) Method
    • ExpInto(T) Method
    • ExtractHermitian Method Overloads
    • ExtractLowerTriangle Method Overloads
    • ExtractSymmetric Method Overloads
    • ExtractUpperTriangle Method Overloads
    • Floor(T) Method
    • FloorInto(T) Method
    • FromColumns(T) Method
    • FromRows(T) Method
    • GreaterThan Method Overloads
    • GreaterThanInto Method Overloads
    • GreaterThanOrEqualTo Method Overloads
    • GreaterThanOrEqualToInto Method Overloads
    • Hypot(T) Method
    • HypotInto(T) Method
    • JoinHorizontal(T) Method
    • JoinVertical(T) Method
    • LessThan Method Overloads
    • LessThanInto Method Overloads
    • LessThanOrEqualTo Method Overloads
    • LessThanOrEqualToInto Method Overloads
    • Log Method Overloads
    • Log10(T) Method
    • Log10Into(T) Method
    • LogInto Method Overloads
    • Map Method Overloads
    • MapInto Method Overloads
    • Max Method Overloads
    • MaxInto Method Overloads
    • Min Method Overloads
    • MinInto Method Overloads
    • Multiply Method Overloads
    • MultiplyInto Method Overloads
    • Negate(T) Method
    • NegateInto(T) Method
    • NotEqualTo Method Overloads
    • NotEqualToInto Method Overloads
    • Reciprocal(T) Method
    • ReciprocalInto(T) Method
    • Round(T) Method
    • ScaleColumns(T) Method
    • ScaleColumnsInto(T) Method
    • ScaleRows(T) Method
    • ScaleRowsInto(T) Method
    • Sin(T) Method
    • Sinh(T) Method
    • SinhInto(T) Method
    • SinInto(T) Method
    • Sqrt(T) Method
    • SqrtInto(T) Method
    • Subtract Method Overloads
    • SubtractInto Method Overloads
    • SubtractProduct(T) Method
    • SubtractProductInto(T) Method
    • Tan(T) Method
    • Tanh(T) Method
    • TanhInto(T) Method
    • TanInto(T) Method
    • UnscaleColumns(T) Method
    • UnscaleColumnsInto(T) Method
    • UnscaleRows(T) Method
    • UnscaleRowsInto(T) Method
  • MapInto Method Overloads
    • MapInto(T, U) Method (Func(T, U), Matrix(T), Matrix(U))
    • MapInto(T, U, V) Method (Func(T, U, V), Matrix(T), Matrix(U), Matrix(V))
    • MapInto(T, U, V) Method (Func(T, U, V), Matrix(T), Vector(U), Dimension, Matrix(V))
    • MapInto(T, U, V) Method (Func(T, U, V), Vector(T), Dimension, Matrix(U), Matrix(V))
    • MapInto(T, U, V) Method (Func(T, U, V), Vector(T), Dimension, Vector(U), Matrix(V))
  • MapInto(T, U, V) Method (Func(T, U, V), Matrix(T), Matrix(U), Matrix(V))

MatrixMapIntoT, U, V Method (FuncT, U, V, MatrixT, MatrixU, MatrixV)

Extreme Optimization Numerical Libraries for .NET Professional
Applies a function to the corresponding elements of two matrices and returns the result in a third matrix.

Namespace:  Extreme.Mathematics
Assembly:  Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
Syntax

C#
VB
C++
F#
Copy
public static Matrix<V> MapInto<T, U, V>(
	Func<T, U, V> function,
	Matrix<T> first,
	Matrix<U> second,
	Matrix<V> result
)
Public Shared Function MapInto(Of T, U, V) ( 
	function As Func(Of T, U, V),
	first As Matrix(Of T),
	second As Matrix(Of U),
	result As Matrix(Of V)
) As Matrix(Of V)
public:
generic<typename T, typename U, typename V>
static Matrix<V>^ MapInto(
	Func<T, U, V>^ function, 
	Matrix<T>^ first, 
	Matrix<U>^ second, 
	Matrix<V>^ result
)
static member MapInto : 
        function : Func<'T, 'U, 'V> * 
        first : Matrix<'T> * 
        second : Matrix<'U> * 
        result : Matrix<'V> -> Matrix<'V> 

Parameters

function
Type: SystemFuncT, U, V
A delegate that represents a function of two variables
first
Type: Extreme.MathematicsMatrixT
A matrix whose elements serve as the first argument to the function.
second
Type: Extreme.MathematicsMatrixU
A matrix whose elements serve as the second argument to the function.
result
Type: Extreme.MathematicsMatrixV
The matrix that is to hold the result. May be .

Type Parameters

T
U
V

Return Value

Type: MatrixV
The result of applying function to the corresponding elements of first and second.
Exceptions

ExceptionCondition
ArgumentNullExceptionfunction is .

-or-

first is

-or-

second is

DimensionMismatchException

The number of rows of first does not equal the number of rows of second.

-or-

The number of columns of first does not equal the number of columns of second.

See Also

Reference

Matrix Class
MapInto Overload
Extreme.Mathematics Namespace

Copyright (c) 2004-2021 ExoAnalytics Inc.

Send comments on this topic to support@extremeoptimization.com

Copyright © 2004-2021, Extreme Optimization. All rights reserved.
Extreme Optimization, Complexity made simple, M#, and M Sharp are trademarks of ExoAnalytics Inc.
Microsoft, Visual C#, Visual Basic, Visual Studio, Visual Studio.NET, and the Optimized for Visual Studio logo
are registered trademarks of Microsoft Corporation.