Click or drag to resize

Matrix Class

The class of matrix.
Inheritance Hierarchy
SystemObject
  FinMath.LinearAlgebraSharedDataDouble
    FinMath.LinearAlgebraMatrix

Namespace:  FinMath.LinearAlgebra
Assembly:  FinMath (in FinMath.dll) Version: 2.4.7-0a995bd0ea1854c2c868ec3f8dae606c5777e170
Syntax
C#
[SerializableAttribute]
public class Matrix : SharedData<double>, 
	IEquatable<Matrix>, IFormattable

The Matrix type exposes the following members.

Constructors
  NameDescription
Public methodMatrix
Creates a Matrix with 0 columns and 0 rows.
Public methodMatrix(Double)
Creates a matrix from multidimensional array.
Public methodMatrix(Int32)
Creates a zero matrix of the given order.
Public methodMatrix(Matrix)
Creates a copy of the given matrix.
Public methodMatrix(Int32, Double)
Creates a matrix of the given order and sets all its elements to the given value.
Public methodMatrix(Int32, Int32)
Creates a zero matrix of the given size.
Public methodMatrix(Int32, Int32, Double)
Creates a matrix of the given size and sets all its elements to the given value.
Public methodMatrix(Int32, Int32, Double)
Creates a matrix from one dimensional array.
Top
Properties
  NameDescription
Public propertyColumns
The number of columns in the matrix.
Public propertyItem
Set or get an element of the matrix.
Public propertyRows
The number of rows in the matrix.
Public propertySize
Total number of elements in the matrix.
Top
Methods
  NameDescription
Public methodAdd(Double)
Adds the scalar to this matrix and returns the result.
Public methodAdd(Matrix)
Adds the given matrix to this one and returns the result.
Public methodAdd(Double, Matrix)
Adds the scalar to the matrix and writes the result in another matrix.
Public methodAdd(Matrix, Matrix)
Adds another matrix to this one and writes result to the given matrix.
Public methodAddInPlace(Double)
Adds the scalar to the matrix.
Public methodAddInPlace(Matrix)
Adds another matrix to this one.
Public methodAssign(Double)
Sets all elements of the matrix to the given value. This is the same as SetValues() call.
Public methodAssign(Double)
Copies the elements of the matrix from 2D array. This is the same as SetValues() call.
Public methodBilinearForm
Computes the value of bilinear form x' * A * y.
Public methodClear
Sets all elements of the matrix to zero.
Public methodClone
Creates a copy of this matrix.
Public methodConditionNumber
Computes the condition number of the matrix using SVD.
Public methodCopyTo(Matrix)
Copies this matrix into another one.
Public methodCopyTo(Matrix, Int32, Int32, Int32, Int32, Int32, Int32)
Copies part of this matrix to another one.
Public methodDelayedClone
Returns a mirror of this matrix.
Public methodDeterminant
Computes the determinant of the matrix using LU factorization.
Public methodStatic memberDiagonal(Int32, Vector)
Creates square matrix with given elements on the main diagonal.
Public methodStatic memberDiagonal(Int32, Int32, Vector)
Creates rectangular matrix with given elements on the main diagonal.
Public methodStatic memberDiagonalStack(Matrix, Matrix)
Diagonally stacks two given matrices. The new matrix is a M-by-N diagonal block matrix, where
1M = topLeft.Rows + bottomRight.Rows
and
1N = topLeft.Columns +
2            bottomRight.Columns
. The values of the off-diagonal blocks are unchanged.
Public methodStatic memberDiagonalStack(Matrix, Matrix, Matrix)
Diagonally stacks two given matrices. The new matrix is a M-by-N diagonal block matrix, where
1M = topLeft.Rows + bottomRight.Rows
and
1N = topLeft.Columns +
2            bottomRight.Columns
. The values of the off-diagonal blocks are unchanged.
Public methodDivide(Double)
Divides this matrix by given scalar and writes result into another matrix.
Public methodDivide(Double, Matrix)
Divides this matrix by given scalar and writes result into another matrix.
Public methodDivideInPlace
Divides each element of the matrix by given scalar.
Public methodEquals(Object)
Determines whether the specified Object is equal to the current Object.
(Overrides ObjectEquals(Object).)
Public methodEquals(Matrix)
Indicates whether the current matrix is equal to another.
Public methodFrobeniusNorm
Computes the Frobenius norm.
Public methodGeneralMatrixMatrixMultiply
Computes the matrix-matrix product in general form. This method corresponds to the GEMM routine from BLAS Level 3. It multiplies this matrix by scalar beta and adds the product of matrices A and B scaled by scalar alpha.
Public methodGetColumn(Int32)
Returns the vector that stores the elements of particular column of this matrix.
Public methodGetColumn(Int32, Vector)
Copies the elements of particular column of this matrix to given vector.
Public methodGetColumn(Int32, Double)
Copies the elements of particular column of this matrix to given vector.
Public methodGetDiagonalValues
Creates the vector of diagonal elements of this matrix.
Public methodGetDiagonalValues(Vector)
Copies the diagonal elements of this matrix into the vector.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Overrides ObjectGetHashCode.)
Public methodGetInverse
Computes the Moore-Penrose pseudoinverse matrix. This routine uses advanced algorithm that performs much faster for most matrices.
Public methodGetInverse(Matrix)
Computes the Moore-Penrose pseudoinverse matrix. This routine uses advanced algorithm that performs much faster for most matrices.
Public methodGetLowerTrapezoid
Returns a new matrix of the same size containing the lower trapezoid of this matrix.
Public methodGetLowerTrapezoid(Matrix)
Copies the lower trapezoid of this matrix into another matrix of the same size.
Public methodGetLowerTrapezoid(Matrix, Boolean)
Copies the lower trapezoid of this matrix into another matrix of the same size.
Public methodGetLowerTriangle
Returns a new square matrix containing the lower triangle of this matrix.
Public methodGetLowerTriangle(Matrix)
Copies the lower triangle of this matrix into another square matrix.
Public methodGetLowerTriangle(Matrix, Boolean)
Copies the lower triangle of this matrix into another square matrix.
Public methodGetLUInverse
Computes the inverse of this matrix.
Public methodGetLUInverse(Matrix)
Computes the inverse of this matrix.
Public methodGetNormalized(MatrixNormType)
Computes normalized matrix (with unity norm).
Public methodGetNormalized(MatrixNormType, Matrix)
Computes normalized matrix (with unity norm).
Public methodGetPseudoInverse
Computes the Moore-Penrose pseudoinverse matrix.
Public methodGetPseudoInverse(Matrix)
Computes the Moore-Penrose pseudoinverse matrix.
Public methodGetRow(Int32)
Returns the vector that stores the elements of the particular row.
Public methodGetRow(Int32, Vector)
Copies the elements of the particular row to the given vector.
Public methodGetRow(Int32, Double)
Copies the elements of the particular row to the given vector.
Public methodGetStrictlyLowerTrapezoid
Returns a new matrix of the same size containing the strictly lower trapezoid of this matrix.
Public methodGetStrictlyLowerTrapezoid(Matrix)
Copies the strictly lower trapezoid of this matrix into another matrix of the same size.
Public methodGetStrictlyLowerTrapezoid(Matrix, Boolean)
Copies the strictly lower trapezoid of this matrix into another matrix of the same size.
Public methodGetStrictlyLowerTriangle
Returns a new square matrix containing the strictly lower triangle of this matrix.
Public methodGetStrictlyLowerTriangle(Matrix)
Copies the strictly lower triangle of this matrix into another square matrix.
Public methodGetStrictlyLowerTriangle(Matrix, Boolean)
Copies the strictly lower triangle of this matrix into another square matrix.
Public methodGetStrictlyUpperTrapezoid
Returns a new matrix of the same size containing the strictly upper trapezoid of this matrix.
Public methodGetStrictlyUpperTrapezoid(Matrix)
Copies the strictly upper trapezoid of this matrix into another matrix of the same size.
Public methodGetStrictlyUpperTrapezoid(Matrix, Boolean)
Copies the strictly upper trapezoid of this matrix into another matrix of the same size.
Public methodGetStrictlyUpperTriangle
Returns a new square matrix containing the strictly upper triangle of this matrix.
Public methodGetStrictlyUpperTriangle(Matrix)
Copies the strictly upper triangle of this matrix into another square matrix.
Public methodGetStrictlyUpperTriangle(Matrix, Boolean)
Copies the strictly upper triangle of this matrix into another square matrix.
Public methodGetSubMatrix(Int32, Int32, Matrix)
Copies submatrix to another matrix.
Public methodGetSubMatrix(Int32, Int32, Int32, Int32)
Creates a matrix that contains the values from the requested sub-matrix.
Public methodGetTransposed
Computes the transpose of this matrix.
Public methodGetTransposed(Matrix)
Computes the transpose of this matrix.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetUpperTrapezoid
Returns a new matrix of the same size containing the upper trapezoid of this matrix.
Public methodGetUpperTrapezoid(Matrix)
Copies the upper trapezoid of this matrix into another matrix of the same size.
Public methodGetUpperTrapezoid(Matrix, Boolean)
Copies the upper trapezoid of this matrix into another matrix of the same size.
Public methodGetUpperTriangle
Returns a new square matrix containing the upper triangle of this matrix.
Public methodGetUpperTriangle(Matrix)
Copies the upper triangle of this matrix into another square matrix.
Public methodGetUpperTriangle(Matrix, Boolean)
Copies the upper triangle of this matrix into another square matrix.
Public methodGetValues
Returns the 2D array with matrix' elements.
Public methodGetValues(Double)
Copies the elements of the matrix into 2D array.
Public methodStatic memberHadamardProduct(Matrix, Matrix)
Computes the Hadamard product (also known as pointwise product or Shur product) of two matrices.
Public methodStatic memberHadamardProduct(Matrix, Matrix, Matrix)
Computes the Hadamard product (also known as pointwise product or Shur product) of two matrices.
Public methodHasAbnormal
Checks whether the matrix contains abnormal numbers: NaN, NegativeInfinity, or PositiveInfinity.
Public methodHasInfinity
Checks whether the matrix contains NegativeInfinity or PositiveInfinity.
Public methodHasNaN
Checks whether the matrix contains NaN.
Public methodHasNegativeInfinity
Checks whether the matrix contains NegativeInfinity.
Public methodHasPositiveInfinity
Checks whether the matrix contains PositiveInfinity.
Public methodStatic memberHorizontalStack(Matrix, Matrix)
Stacks the given matrices horizontally. The new matrix is M-by-N matrix, where
1M = left.Rows
and
1N = left.Columns + right.Columns
.
Public methodStatic memberHorizontalStack(Matrix, Matrix, Matrix)
Stacks the given matrices horizontally. The new matrix is M-by-N matrix, where
1M = left.Rows
and
1N = left.Columns + right.Columns
.
Public methodStatic memberIdentity(Int32)
Creates identity matrix of the given order.
Public methodStatic memberIdentity(Int32, Int32)
Creates rectangular matrix with unit diagonal elements.
Public methodInfinityNorm
Computes the infinity norm (induced by infinity vector norm).
Public methodInvert
Computes the Moore-Penrose pseudoinverse matrix in place. This routine uses advanced algorithm that performs much faster for most matrices.
Public methodStatic memberKroneckerProduct(Matrix, Matrix)
Computes the Kronecker product of two matrices.
Public methodStatic memberKroneckerProduct(Matrix, Matrix, Matrix)
Computes the Kronecker product of two matrices.
Public methodL1Norm
Computes the L1 norm (induced by L1 vector norm).
Public methodL2Norm
Computes the L2 norm (induced by L2 vector norm).
Public methodLeftMultiply(Matrix)
Multiplies this matrix by another one from the left and returns the result.
Public methodLeftMultiply(Vector)
Multiplies this matrix by the row vector from the left and returns the result.
Public methodLeftMultiply(Matrix, Matrix)
Multiplies this matrix by another one from the left and writes the result into another matrix.
Public methodLeftMultiply(Vector, Vector)
Multiplies this matrix by the row vector from the left and writes the result into another row vector.
Public methodLeftSubtract(Double)
Subtracts this matrix from the given scalar and returns the result.
Public methodLeftSubtract(Matrix)
Subtracts this matrix from the given one and returns the result.
Public methodLeftSubtract(Double, Matrix)
Subtracts this matrix from the given scalar and writes the result into another matrix.
Public methodLeftSubtract(Matrix, Matrix)
Subtracts this matrix from another one and writes result into the given matrix.
Public methodLeftSubtractInPlace(Double)
Subtracts this matrix from the given result.
Public methodLeftSubtractInPlace(Matrix)
Subtracts this matrix from another one.
Public methodStatic memberLoad(String)
Loads Matrix from CSV file.
Public methodStatic memberLoad(String, Boolean, Char)
Loads Matrix from CSV file.
Public methodLUInvert
Overwrites this matrix with its inverse.
Public methodMaxNorm
Computes the max norm (maximal absolute value of matrix' elements).
Public methodMinus
Returns the negated copy of this matrix.
Public methodMinus(Matrix)
Writes the negated copy of this matrix into another matrix.
Public methodMinusInPlace
Negates this matrix.
Public methodMultiply(Double)
Multiplies this matrix by the given scalar and returns the result.
Public methodMultiply(Matrix)
Multiplies this matrix by the given matrix from the right and returns the result.
Public methodMultiply(Vector)
Multiplies this matrix by the column vector from the right and returns the result.
Public methodMultiply(Double, Matrix)
Multiplies this matrix by the given scalar and writes the result in another matrix.
Public methodMultiply(Matrix, Matrix)
Multiplies this matrix by the given matrix from the right and writes the result into another matrix.
Public methodMultiply(Vector, Vector)
Multiplies this matrix by the column vector from the right and writes the result into another vector.
Public methodMultiplyInPlace
Multiplies the matrix by given scalar.
Public methodNegate
Negates all elements of the matrix.
Public methodNorm
Computes matrix norm.
Public methodNormalize
Normalizes this matrix (with unity norm).
Public methodPermuteColumns
Permutes columns of the matrix.
Public methodPermuteRows
Permutes rows of the matrix.
Public methodPlus
Returns the copy of this matrix.
Public methodPlus(Matrix)
Copies this matrix into another one.
Public methodPlusInPlace
Does nothing.
Public methodPointwiseAdd(Double)
Adds the given scalar to each element of the matrix and returns the result.
Public methodPointwiseAdd(Matrix)
Adds each element of the given matrix to the corresponding element of this matrix and returns the result.
Public methodPointwiseAdd(Double, Matrix)
Adds the given scalar to each element of the matrix and writes the result into another one.
Public methodPointwiseAdd(Matrix, Matrix)
Adds each element of the given matrix to the corresponding element of this matrix and writes the result into another one.
Public methodPointwiseAddInPlace(Double)
Adds given scalar to each element of the matrix.
Public methodPointwiseAddInPlace(Matrix)
Adds each element of the given matrix to the corresponding element of this matrix.
Public methodPointwiseColumnAddInPlace
Adds the elements of each matrix column with the input vector elements.
Public methodPointwiseColumnDivideInPlace
Divide the elements of each matrix column by the input vector elements.
Public methodPointwiseColumnMultiplyInPlace
Multiply the elements of each matrix column by the input vector elements.
Public methodPointwiseColumnSubtractInPlace
Subtract the elements of each matrix column by the input vector elements.
Public methodPointwiseDivide(Double)
Divides each element of this matrix by given scalar and returns the result.
Public methodPointwiseDivide(Matrix)
Divides each element of this matrix by the corresponding element of the given one and returns the result.
Public methodPointwiseDivide(Double, Matrix)
Divides each element of this matrix by given scalar and writes the result into another matrix.
Public methodPointwiseDivide(Matrix, Matrix)
Divides each element of this matrix by the corresponding element of the given one and writes the result into another matrix.
Public methodPointwiseDivideInPlace(Double)
Divides each element of this matrix by given scalar.
Public methodPointwiseDivideInPlace(Matrix)
Divides each element of this matrix by the corresponding element of the given one.
Public methodPointwiseLeftDivide(Double)
Divides the given scalar by each element of the matrix and returns the result.
Public methodPointwiseLeftDivide(Matrix)
Divides each element of the given matrix by the corresponding element of this one and returns the result.
Public methodPointwiseLeftDivide(Double, Matrix)
Divides the given scalar by each element of the matrix and writes the result into another matrix.
Public methodPointwiseLeftDivide(Matrix, Matrix)
Divides each element of the given matrix by the corresponding element of this one and writes the result into another matrix.
Public methodPointwiseLeftDivideInPlace(Double)
Divides the given scalar by each element of the matrix.
Public methodPointwiseLeftDivideInPlace(Matrix)
Divides each element of the given matrix by the corresponding element of this one.
Public methodPointwiseLeftSubtract(Double)
Subtracts each element of the matrix from the given scalar and returns the result.
Public methodPointwiseLeftSubtract(Matrix)
Subtracts each element of this matrix from the corresponding element of the given matrix and returns the result.
Public methodPointwiseLeftSubtract(Double, Matrix)
Subtracts each element of the matrix from the given scalar and writes the result into another matrix.
Public methodPointwiseLeftSubtract(Matrix, Matrix)
Subtracts each element of this matrix from the corresponding element of the given matrix and writes the result into antother matrix.
Public methodPointwiseLeftSubtractInPlace(Double)
Subtracts each element of the matrix from the given scalar.
Public methodPointwiseLeftSubtractInPlace(Matrix)
Subtracts each element of this matrix from the corresponding element of the given matrix.
Public methodPointwiseMultiply(Double)
Multiplies each element of the matrix by given scalar and returns the result.
Public methodPointwiseMultiply(Matrix)
Multiplies each element of this matrix by the corresponding element of the given matrix and returns the result.
Public methodPointwiseMultiply(Double, Matrix)
Multiplies each elementof the matrix by given scalar and writes the result into another matrix.
Public methodPointwiseMultiply(Matrix, Matrix)
Multiplies each element of this matrix by the corresponding element of the given matrix and writes the result into another matrix.
Public methodPointwiseMultiplyInPlace(Double)
Multiplies each element of the matrix by given scalar.
Public methodPointwiseMultiplyInPlace(Matrix)
Multiplies each element of this matrix by the corresponding element of the given matrix.
Public methodPointwiseRowAddInPlace
Adds the elements of each matrix row with the input vector elements.
Public methodPointwiseRowDivideInPlace
Divide the elements of each matrix row by the input vector elements.
Public methodPointwiseRowMultiplyInPlace
Multiply the elements of each matrix row by the input vector elements.
Public methodPointwiseRowSubtractInPlace
Subtract the elements of each matrix row by the input vector elements.
Public methodPointwiseSubtract(Double)
Subtracts given scalar from each element of the matrix and returns the result.
Public methodPointwiseSubtract(Matrix)
Subtracts each element of the given matrix from the corresponding element of this matrix and returns the result.
Public methodPointwiseSubtract(Double, Matrix)
Subtracts given scalar from each element of the matrix and writes the result into another one.
Public methodPointwiseSubtract(Matrix, Matrix)
Subtracts each element of the given matrix from the corresponding element of this matrix and writes the result into another matrix.
Public methodPointwiseSubtractInPlace(Double)
Subtracts given scalar from each element of the matrix.
Public methodPointwiseSubtractInPlace(Matrix)
Subtracts each element of the given matrix from the corresponding element of this matrix.
Public methodPower
Raises square matrix to a specified positive integer power.
Public methodPseudoInvert
Overwrites current matrix with its Moore-Penrose pseudoinverse.
Public methodQuadraticForm
Computes the value of quadratic form x' * A * x.
Public methodStatic memberRandom(Int32)
Creates square matrix with elements which are samples from the continuous uniform [0;1] distribution.
Public methodStatic memberRandom(CMDistribution)
Creates rectangular matrix with elements which are samples from the specified matrix-variate distribution. Matrix size determined by distribution.
Public methodStatic memberRandom(Int32, CUDistribution)
Creates square matrix with elements which are samples from the specified distribution.
Public methodStatic memberRandom(Int32, RandomGenerator)
Creates rectangular matrix with elements uniformly distributed in [0; 1].
Public methodStatic memberRandom(Int32, Int32)
Creates rectangular matrix with elements which are samples from the continuous uniform [0;1] distribution.
Public methodStatic memberRandom(Int32, Random)
Creates rectangular matrix with elements uniformly distributed in [0; 1].
Public methodStatic memberRandom(Int32, Int32, CUDistribution)
Creates rectangular matrix with elements which are samples from the specified distribution.
Public methodStatic memberRandom(Int32, Int32, RandomGenerator)
Creates rectangular matrix with elements uniformly distributed in [0; 1].
Public methodStatic memberRandom(Int32, Int32, Random)
Creates rectangular matrix with elements uniformly distributed in [0; 1].
Public methodRank
Computes the rank of the matrix using SVD.
Public methodRankOneUpdate
Performs in-place rank-1 update of this matrix (adds scaled outer product of two vectors).
Public methodSave
Saves Matrix into CSV file.
Public methodScaleColumns
Scales each column of the matrix by corresponding factor.
Public methodScaleRows
Scales each row of the matrix by corresponding factor.
Public methodSetColumn(Int32, Vector)
Sets elements of the particular column.
Public methodSetColumn(Int32, Double)
Sets elements of the particular column.
Public methodSetDiagonalValues
Copies the diagonal elements of this matrix from the vector.
Public methodSetRow(Int32, Vector)
Sets elements of particular row.
Public methodSetRow(Int32, Double)
Sets elements of particular row.
Public methodSetSubMatrix
Sets submatrix.
Public methodSetValues(Double)
Sets all elements of the matrix to the given value. This is the same as Assign() call.
Public methodSetValues(Double)
Copies the elements of the matrix from 2D array. This is the same as Assign() call.
Public methodSubtract(Double)
Subtracts the given scalar from the matrix and returns the result.
Public methodSubtract(Matrix)
Subtracts the given matrix from this one and returns the result.
Public methodSubtract(Double, Matrix)
Subtracts the given scalar from the matrix and writes the result in another matrix.
Public methodSubtract(Matrix, Matrix)
Subtracts the given matrix from this one and writes the result into the given matrix.
Public methodSubtractInPlace(Double)
Subtracts the scalar from the matrix.
Public methodSubtractInPlace(Matrix)
Subtracts another matrix from this one.
Public methodToArray
Converts this matrix to 2D array of its values.
Public methodToColumnWiseArray
Writes all elements of matrix to 1D array by columns.
Public methodToRowWiseArray
Writes all elements of matrix to 1D array by rows.
Public methodToString
Returns a String that represents the current Matrix.
(Overrides ObjectToString.)
Public methodToString(IFormatProvider)
Formats the value of the current instance using the specified format.
Public methodToString(String)
Formats the value of the current instance using the specified format.
Public methodToString(String, IFormatProvider)
Formats the value of the current instance using the specified format.
Public methodTrace
Computes the trace of the matrix (sum of diagonal elements).
Public methodTranspose
Overwrites this matrix with its transpose.
Public methodTransposedMultiply(Matrix)
Multiplies transposed matrix by another one.
Public methodTransposedMultiply(Vector)
Multiplies transposed matrix by given vector.
Public methodTransposedMultiply(Matrix, Matrix)
Multiplies transposed matrix by another one and writes the result to the given matrix.
Public methodTransposedMultiply(Vector, Vector)
Multiplies transposed matrix by given vector and writes the result to another one.
Public methodStatic memberVerticalStack(Matrix, Matrix)
Stacks the given matrices vertically. The new matrix is M-by-N matrix, where
1M = top.Rows + bottom.Rows
and
1N = top.Columns
.
Public methodStatic memberVerticalStack(Matrix, Matrix, Matrix)
Stacks the given matrices vertically. The new matrix is M-by-N matrix, where
1M = top.Rows + bottom.Rows
and
1N = top.Columns
.
Top
Operators
  NameDescription
Public operatorStatic memberAddition(Double, Matrix)
Adds a scalar to each element of the matrix and returns the result.
Public operatorStatic memberAddition(Matrix, Matrix)
Adds two matrices together and returns the result.
Public operatorStatic memberAddition(Matrix, Double)
Adds a scalar to each element of the matrix and returns the result.
Public operatorStatic memberDivision
Divides each element of the matrix by given scalar and returns the result.
Public operatorStatic memberMultiply(Double, Matrix)
Multiplies the matrix by given scalar and returns the result.
Public operatorStatic memberMultiply(Matrix, Matrix)
Multiplies two matrices and returns the result.
Public operatorStatic memberMultiply(Matrix, Vector)
Multiplies the matrix by the column vector.
Public operatorStatic memberMultiply(Matrix, Double)
Multiplies the matrix by given scalar and returns the result.
Public operatorStatic memberMultiply(Vector, Matrix)
Multiplies the row vector by the matrix.
Public operatorStatic memberSubtraction(Double, Matrix)
Subtracts each element of the matrix from the scalar and returns the result.
Public operatorStatic memberSubtraction(Matrix, Matrix)
Subtracts the one matrix from another and returns the result.
Public operatorStatic memberSubtraction(Matrix, Double)
Subtracts the scalar from each element of the matrix and returns the result.
Public operatorStatic memberUnaryNegation
Negates each element of the matrix.
Public operatorStatic memberUnaryPlus
Returns a Matrix containing the same values of right.
Top
Extension Methods
  NameDescription
Public Extension MethodCalculateMetric(MetricType)Overloaded.
Calculate metric.
(Defined by MetricsCalculator.)
Public Extension MethodCalculateMetric(Matrix, MetricType)Overloaded.
Calculate metric.
(Defined by MetricsCalculator.)
Public Extension MethodCenterOverloaded.
Center each series in specified data matrix. Columns corresponds to variables Rows corresponds to observations.
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodCenter(Vector)Overloaded.
Center each series in specified data matrix. Columns corresponds to variables Rows corresponds to observations.
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodCholeskyWhiteOverloaded.
White series in specified data matrix. I.e. center apply linear transformation which intends to make covariance matrix unit. Columns corresponds to variables Rows corresponds to observations. This transformation use inversed Cholesky factor.
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodCholeskyWhite(Matrix)Overloaded.
White series in specified data matrix. Use user specified covariance matrix instead of actual calculation. I.e. center apply linear transformation which intends to make covariance matrix unit. Columns corresponds to variables Rows corresponds to observations. This transformation use inversed Cholesky factor.
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodCholeskyWhite(Matrix, Matrix)Overloaded.
White series in specified data matrix. Use user specified covariance matrix instead of actual calculation. I.e. center apply linear transformation which intends to make covariance matrix unit. Columns corresponds to variables Rows corresponds to observations. This transformation use inversed Cholesky factor.
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodCorrelation
Returns correlation. Columns corresponds to variables Rows corresponds to observations. http://en.wikipedia.org/wiki/Correlation
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodCorrelationAndMean
Calculates mean and correlation for data matrix. Columns corresponds to variables Rows corresponds to observations. http://en.wikipedia.org/wiki/Correlation
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodCosineSimilarityOverloaded.
Cosine Similarity Distance between set of objects. http://en.wikipedia.org/wiki/Cosine_similarity
(Defined by MetricsCalculator.)
Public Extension MethodCosineSimilarity(Matrix)Overloaded.
Cosine Similarity Distance between set of objects. http://en.wikipedia.org/wiki/Cosine_similarity
(Defined by MetricsCalculator.)
Public Extension MethodCovariance
Returns population covariance. Columns corresponds to variables Rows corresponds to observations. http://en.wikipedia.org/wiki/Covariance
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodCovarianceAndMean
Calculates mean and population covariance for data matrix. Columns corresponds to variables Rows corresponds to observations. http://en.wikipedia.org/wiki/Covariance
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodCovarianceAndMeanPopulation
Calculates mean and population covariance for data matrix. Columns corresponds to variables Rows corresponds to observations. http://en.wikipedia.org/wiki/Covariance
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodCovarianceAndMeanSample
Calculates mean and estimation of sample covariance for data matrix. Columns corresponds to variables Rows corresponds to observations. http://en.wikipedia.org/wiki/Covariance
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodCovariancePopulation
Returns population covariance. Columns corresponds to variables Rows corresponds to observations. http://en.wikipedia.org/wiki/Covariance
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodCovarianceSample
Returns estimation of sample covariance. Columns corresponds to variables Rows corresponds to observations. http://en.wikipedia.org/wiki/Covariance
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodCrossCorrelation
Calculates mean and cross-correlation between two vector sets. Columns corresponds to variables Rows corresponds to observations. http://en.wikipedia.org/wiki/Correlation
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodCrossCorrelationAndMean
Calculates mean and cross-correlation between two vector sets. Columns corresponds to variables Rows corresponds to observations. http://en.wikipedia.org/wiki/Correlation
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodCrossCovariance
Calculates mean and population cross-covariance between two vector sets. Columns corresponds to variables Rows corresponds to observations. http://en.wikipedia.org/wiki/Covariance
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodCrossCovarianceAndMean
Calculates mean and population cross-covariance between two vector sets. Columns corresponds to variables Rows corresponds to observations. http://en.wikipedia.org/wiki/Covariance
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodCrossCovarianceAndMeanPopulation
Calculates mean and population cross-covariance between two vector sets. Columns corresponds to variables Rows corresponds to observations. http://en.wikipedia.org/wiki/Covariance
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodCrossCovarianceAndMeanSample
Calculates mean and sample cross-covariance between two vector sets. Columns corresponds to variables Rows corresponds to observations. http://en.wikipedia.org/wiki/Covariance
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodCrossCovariancePopulation
Calculates mean and population cross-covariance between two vector sets. Columns corresponds to variables Rows corresponds to observations. http://en.wikipedia.org/wiki/Covariance
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodCrossCovarianceSample
Calculates mean and sample cross-covariance between two vector sets. Columns corresponds to variables Rows corresponds to observations. http://en.wikipedia.org/wiki/Covariance
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodEnsureBoundaries
Values below leftBoundary will be replaced with leftBoundary value. Values above rightBoundary will be replaced with rightBoundary value.
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodEnsureLeftBoundary
Values below boundary will be replaced with boundary value.
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodEnsureRightBoundary
Values above boundary will be replaced with boundary value.
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodEuclideanDistanceOverloaded.
Euclidean Distance between set of objects. http://en.wikipedia.org/wiki/Euclidean_distance
(Defined by MetricsCalculator.)
Public Extension MethodEuclideanDistance(Matrix)Overloaded.
Cosine Similarity Distance between set of objects. http://en.wikipedia.org/wiki/Cosine_similarity
(Defined by MetricsCalculator.)
Public Extension MethodGetCenteredOverloaded.
Get centered copy of data matrix. Columns corresponds to variables Rows corresponds to observations.
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodGetCentered(Matrix)Overloaded.
Get centered copy of data matrix. Columns corresponds to variables Rows corresponds to observations.
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodGetCentered(Vector)Overloaded.
Get centered copy of data matrix. Columns corresponds to variables Rows corresponds to observations.
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodGetCentered(Matrix, Vector)Overloaded.
Get centered copy of data matrix. Columns corresponds to variables Rows corresponds to observations.
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodGetCholeskyWhitedOverloaded.
Get whited copy of data matrix. I.e. centered and after applying linear transformation which intends to make covariance matrix unit. Columns corresponds to variables Rows corresponds to observations. This transformation use inversed Cholesky factor.
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodGetCholeskyWhited(Matrix)Overloaded.
Get whited copy of data matrix. I.e. centered and after applying linear transformation which intends to make covariance matrix unit. Columns corresponds to variables Rows corresponds to observations. This transformation use inversed Cholesky factor.
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodGetCholeskyWhited(Matrix, Matrix)Overloaded.
Get whited copy of data matrix. Use user specified covariance matrix instead of actual calculation. I.e. centered and after applying linear transformation which intends to make covariance matrix unit. Columns corresponds to variables Rows corresponds to observations. This transformation use inversed Cholesky factor.
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodGetCholeskyWhited(Matrix, Matrix, Matrix)Overloaded.
Get whited copy of data matrix. Use user specified covariance matrix instead of actual calculation. I.e. centered and after applying linear transformation which intends to make covariance matrix unit. Columns corresponds to variables Rows corresponds to observations. This transformation use inversed Cholesky factor.
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodGetEnsuredBoundaries(Double, Double)Overloaded.
Returns copy of matrix. Values below leftBoundary will be replaced with leftBoundary value. Values above rightBoundary will be replaced with rightBoundary value.
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodGetEnsuredBoundaries(Double, Double, Matrix)Overloaded.
Store copy of matrix. Values below leftBoundary will be replaced with leftBoundary value. Values above rightBoundary will be replaced with rightBoundary value.
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodGetEnsuredLeftBoundary(Double)Overloaded.
Returns copy of matrix. Values below boundary will be replaced with boundary value.
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodGetEnsuredLeftBoundary(Double, Matrix)Overloaded.
Store copy of matrix. Values below boundary will be replaced with boundary value.
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodGetEnsuredRightBoundary(Double)Overloaded.
Returns copy of matrix. Values above boundary will be replaced with boundary value.
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodGetEnsuredRightBoundary(Double, Matrix)Overloaded.
Store copy of matrix. Values above boundary will be replaced with boundary value.
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodGetStandardizedOverloaded.
Get standardized copy of data matrix. Columns corresponds to variables Rows corresponds to observations. http://en.wikipedia.org/wiki/Standardize
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodGetStandardized(Matrix)Overloaded.
Get standardized copy of data matrix. Columns corresponds to variables Rows corresponds to observations. http://en.wikipedia.org/wiki/Standardize
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodGetWhitedOverloaded.
Get whited copy of data matrix. I.e. centered and after applying linear transformation which intends to make covariance matrix unit. Columns corresponds to variables Rows corresponds to observations. This transformation power singular values of covariance matrix. http://en.wikipedia.org/wiki/Whitening_transformation
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodGetWhited(Matrix)Overloaded.
Get whited copy of data matrix. I.e. centered and after applying linear transformation which intends to make covariance matrix unit. Columns corresponds to variables Rows corresponds to observations. This transformation power singular values of covariance matrix. http://en.wikipedia.org/wiki/Whitening_transformation
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodGetWhited(Matrix, Matrix)Overloaded.
Get whited copy of data matrix. Use user specified covariance matrix instead of actual calculation. I.e. centered and after applying linear transformation which intends to make covariance matrix unit. Columns corresponds to variables Rows corresponds to observations. This transformation power singular values of covariance matrix. http://en.wikipedia.org/wiki/Whitening_transformation
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodGetWhited(Matrix, Matrix, Matrix)Overloaded.
Get whited copy of data matrix. Use user specified covariance matrix instead of actual calculation. I.e. centered and after applying linear transformation which intends to make covariance matrix unit. Columns corresponds to variables Rows corresponds to observations. This transformation power singular values of covariance matrix. http://en.wikipedia.org/wiki/Whitening_transformation
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodHammingMetricOverloaded.
Hamming Distance between set of objects. http://en.wikipedia.org/wiki/Hamming_distance
(Defined by MetricsCalculator.)
Public Extension MethodHammingMetric(Matrix)Overloaded.
Hamming Distance between set of objects. http://en.wikipedia.org/wiki/Hamming_distance
(Defined by MetricsCalculator.)
Public Extension MethodInfinityDistanceOverloaded.
Maximum Distance between set of objects. http://en.wikipedia.org/wiki/Uniform_norm
(Defined by MetricsCalculator.)
Public Extension MethodInfinityDistance(Matrix)Overloaded.
Maximum Distance between set of objects. http://en.wikipedia.org/wiki/Uniform_norm
(Defined by MetricsCalculator.)
Public Extension MethodManhattanDistanceOverloaded.
Manhattan Distance between set of objects. http://en.wikipedia.org/wiki/Manhattan_distance
(Defined by MetricsCalculator.)
Public Extension MethodManhattanDistance(Matrix)Overloaded.
Manhattan Distance between set of objects. http://en.wikipedia.org/wiki/Manhattan_distance
(Defined by MetricsCalculator.)
Public Extension MethodMantegnaMetricOverloaded.
Mantegna Metric between set of objects. Mantegna - Metric which convert correlation into distance.
(Defined by MetricsCalculator.)
Public Extension MethodMantegnaMetric(Matrix)Overloaded.
Mantegna Metric between set of objects. Mantegna - Metric which convert correlation into distance.
(Defined by MetricsCalculator.)
Public Extension MethodMaximumOverloaded.
Returns maximum value for each data series. Columns corresponds to variables Rows corresponds to observations. http://en.wikipedia.org/wiki/Maxima_and_minima
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodMaximum(Vector)Overloaded.
Calculates maximum value for each data series. Columns corresponds to variables Rows corresponds to observations. http://en.wikipedia.org/wiki/Maxima_and_minima
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodMeanOverloaded.
Returns mean for each data series. Columns corresponds to variables Rows corresponds to observations. http://en.wikipedia.org/wiki/Mean
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodMean(Vector)Overloaded.
Calculates mean for each data series. Columns corresponds to variables Rows corresponds to observations. http://en.wikipedia.org/wiki/Mean
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodMinimumOverloaded.
Returns minimum value for each data series. Columns corresponds to variables Rows corresponds to observations. http://en.wikipedia.org/wiki/Maxima_and_minima
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodMinimum(Vector)Overloaded.
Calculates minimum value for each data series. Columns corresponds to variables Rows corresponds to observations. http://en.wikipedia.org/wiki/Maxima_and_minima
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodMinimumMaximumOverloaded.
Returns minimum and maximum values for each data series. Columns corresponds to variables Rows corresponds to observations. http://en.wikipedia.org/wiki/Maxima_and_minima
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodMinimumMaximum(IListDescriptiveStatisticsMinimumMaximumValuesDouble)Overloaded.
Calculates minimum and maximum values for each data series. Columns corresponds to variables Rows corresponds to observations. http://en.wikipedia.org/wiki/Maxima_and_minima
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodSquaredEuclideanDistanceOverloaded.
Squared Euclidean Distance between set of objects. It is just square of Euclidean distance.
(Defined by MetricsCalculator.)
Public Extension MethodSquaredEuclideanDistance(Matrix)Overloaded.
Squared Euclidean Distance between set of objects. It is just square of Euclidean distance.
(Defined by MetricsCalculator.)
Public Extension MethodStandardize
Standardize all series in data matrix. Columns corresponds to variables Rows corresponds to observations. http://en.wikipedia.org/wiki/Standardize
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodSumOverloaded.
Calculates sum of rows.
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodSum(Vector)Overloaded.
Calculates sum of rows.
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodSumSquaresOverloaded.
Calculates sum squared values in rows.
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodSumSquares(Vector)Overloaded.
Calculates sum squared values in rows.
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodWhiteOverloaded.
White series in specified data matrix. I.e. center apply linear transformation which intends to make covariance matrix unit. Columns corresponds to variables Rows corresponds to observations. This transformation power singular values of covariance matrix. http://en.wikipedia.org/wiki/Whitening_transformation
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodWhite(Matrix)Overloaded.
White series in specified data matrix. Use user specified covariance matrix instead of actual calculation. I.e. center apply linear transformation which intends to make covariance matrix unit. Columns corresponds to variables Rows corresponds to observations. This transformation power singular values of covariance matrix. http://en.wikipedia.org/wiki/Whitening_transformation
(Defined by DescriptiveStatisticsMatrix.)
Public Extension MethodWhite(Matrix, Matrix)Overloaded.
White series in specified data matrix. Use user specified covariance matrix instead of actual calculation. I.e. center apply linear transformation which intends to make covariance matrix unit. Columns corresponds to variables Rows corresponds to observations. This transformation power singular values of covariance matrix. http://en.wikipedia.org/wiki/Whitening_transformation
(Defined by DescriptiveStatisticsMatrix.)
Top
See Also