NumericMatrix {Microsoft.VisualBasic.Math.LinearAlgebra.Matrix} .NET clr documentation

NumericMatrix

Description

.NET GeneralMatrix class.

The .NET GeneralMatrix Class provides the fundamental operations of numerical linear algebra. Various constructors create Matrices from two dimensional arrays of double precision floating point numbers. Various "gets" and "sets" provide access to submatrices and matrix elements. Several methods implement basic matrix arithmetic, including matrix addition and multiplication, matrix norms, and element-by-element array operations. Methods for reading and printing matrices are also included. All the operations in this version of the GeneralMatrix Class involve real matrices. Complex matrices may be handled in a future version. Five fundamental matrix decompositions, which consist of pairs or triples of matrices, permutation vectors, and the like, produce results in five decomposition classes. These decompositions are accessed by the GeneralMatrix class to compute solutions of simultaneous linear equations, determinants, inverses and other matrix functions. The five decompositions are: + CholeskyDecomposition of symmetric, positive definite matrices. + LUDecomposition of rectangular matrices. + QRDecomposition of rectangular matrices. + SingularValueDecomposition of rectangular matrices. + EigenvalueDecomposition of both symmetric and nonsymmetric square matrices. Example of use: Solve a linear system A x = b and compute the residual norm, ||b - A x||.

 double[][] vals;
 GeneralMatrix A = New NumericMatrix(vals);
 GeneralMatrix b = GeneralMatrix.Random(3,1);
 GeneralMatrix x = A.Solve(b);
 GeneralMatrix r = A.Multiply(x).Subtract(b);
 double rnorm = r.NormInf();

Access the internal two-dimensional array. Pointer to the two-dimensional array of matrix elements. this numeric matrix object consist with a collection of Vector as rows.

Declare

            
# namespace Microsoft.VisualBasic.Math.LinearAlgebra.Matrix
export class NumericMatrix extends Vector`1 {
   Array: Double[][];
   # Get column dimension.
   ColumnDimension: integer;
   # Make a one-dimensional column packed copy of the internal array.
   ColumnPackedCopy: double;
   DiagonalVector: Vector;
   # get [n,m] shape data
   Dimension: Size;
   First: double;
   IsScalar: boolean;
   Last: double;
   Length: integer;
   # Get row dimension.
   RowDimension: integer;
   # Make a one-dimensional row packed copy of the internal array.
   RowPackedCopy: double;
}

        

.NET clr type reference tree

  1. this class extends from Vector`1 class: Vector`1
  2. use by property member Array: Double[]
  3. use by property member DiagonalVector: Vector
  4. use by property member Dimension: Size

[Package {$package} version {$version} Index]