Version

Sum(Matrix,Int32) Method

Returns the sum of the elements of the Matrixx along the Nth dimension.
Syntax
'Declaration
 
Public Overloads Shared Function Sum( _
   ByVal x As Matrix, _
   ByVal N As Integer _
) As Matrix
public static Matrix Sum( 
   Matrix x,
   int N
)

Parameters

x
A Matrix.
N
The calculation dimension.

Return Value

A Matrix with the sum of the elements of x along the Nth dimension.
Exceptions
ExceptionDescription
System.ArgumentExceptionOccurs when N is less than 1.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also