Class Matrix
- Namespace
- TimeSeriesAnalysis
- Assembly
- TimeSeriesAnalysis.dll
Operations for treating 2D-arrays as mathematical matrices
public static class Matrix
- Inheritance
-
Matrix
- Inherited Members
Methods
AppendRow(double[,], double[])
Appends another row onto an existing matrix. Returns null if this was not possible(ie. dimensions do nt agree).
public static double[,] AppendRow(double[,] matrix, double[] newRowVec)
Parameters
Returns
- double[,]
ComponentMult(double[,], double[], int)
Multiply either entire matrix or single row(optional third input) by a vector (returns a matrix)
public static double[,] ComponentMult(double[,] matrix, double[] vector, int singleMatrixRowToMult = -1)
Parameters
Returns
- double[,]
Mult(double[,], double, int)
Multiply either entire matrix or single row(optional third input) by a scalar
public static double[,] Mult(double[,] matrix, double scalar, int singleMatrixRowToMult = -1)
Parameters
Returns
- double[,]
Mult(double[,], double[])
Multiply either entire matrix or single row(optional third input) by a vector (returns vector)
public static double[] Mult(double[,] matrix, double[] vector)
Parameters
Returns
- double[]
ReplaceColumn(double[,], int, double[])
Replace a single column of a matrix
public static double[,] ReplaceColumn(double[,] matrix, int colIndex, double[] newColVec)
Parameters
Returns
- double[,]
ReplaceRow(double[,], int, double[])
Replace a single row of a matrix
public static double[,] ReplaceRow(double[,] matrix, int rowIndex, double[] newRowVec)
Parameters
Returns
- double[,]