Table of Contents

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

matrix double[,]
newRowVec double[]

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

matrix double[,]
vector double[]
singleMatrixRowToMult int

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

matrix double[,]
scalar double
singleMatrixRowToMult int

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

matrix double[,]
vector double[]

Returns

double[]

ReplaceColumn(double[,], int, double[])

Replace a single column of a matrix

public static double[,] ReplaceColumn(double[,] matrix, int colIndex, double[] newColVec)

Parameters

matrix double[,]
colIndex int
newColVec double[]

Returns

double[,]

ReplaceRow(double[,], int, double[])

Replace a single row of a matrix

public static double[,] ReplaceRow(double[,] matrix, int rowIndex, double[] newRowVec)

Parameters

matrix double[,]
rowIndex int
newRowVec double[]

Returns

double[,]