Class Matrix
  Operations for treating 2D-arrays as mathetmatical matrices
Assembly: TimeSeriesAnalysis.dll
  Syntax
  
    public static class Matrix
   
  Methods
  
    |
    Edit this page
  
  
    View Source
  
  
  AppendRow(double[,], double[])
  Appends another row onto an existing matrix. Returns null if this was not possible(ie. dimnesions dont agree).
Declaration
  
    public static double[,] AppendRow(double[,] matrix, double[] newRowVec)
   
  Parameters
  
  Returns
  
  
    |
    Edit this page
  
  
    View Source
  
  
  ComponentMult(double[,], double[], int)
  Multipliy either entire matrix or single row(optional third input) by a vector (returns a matrix)
Declaration
  
    public static double[,] ComponentMult(double[,] matrix, double[] vector, int singleMatrixRowToMult = -1)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | double[,] | matrix |  | 
      
        | double[] | vector |  | 
      
        | int | singleMatrixRowToMult |  | 
    
  
  Returns
  
  
    |
    Edit this page
  
  
    View Source
  
  
  Mult(double[,], double, int)
  Multipliy either entire matrix or single row(optional third input) by a scalar
Declaration
  
    public static double[,] Mult(double[,] matrix, double scalar, int singleMatrixRowToMult = -1)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | double[,] | matrix |  | 
      
        | double | scalar |  | 
      
        | int | singleMatrixRowToMult |  | 
    
  
  Returns
  
  
    |
    Edit this page
  
  
    View Source
  
  
  Mult(double[,], double[])
  Multipliy either entire matrix or single row(optional third input) by a vector (returns vector)
Declaration
  
    public static double[] Mult(double[,] matrix, double[] vector)
   
  Parameters
  
  Returns
  
  
    |
    Edit this page
  
  
    View Source
  
  
  ReplaceColumn(double[,], int, double[])
  Replace a single column of a matrix
Declaration
  
    public static double[,] ReplaceColumn(double[,] matrix, int colIndex, double[] newColVec)
   
  Parameters
  
  Returns
  
  
    |
    Edit this page
  
  
    View Source
  
  
  ReplaceRow(double[,], int, double[])
  Replace a single row of a matrix
Declaration
  
    public static double[,] ReplaceRow(double[,] matrix, int rowIndex, double[] newRowVec)
   
  Parameters
  
  Returns