Sparse matrix class
| Constructor | Description | 
            
                
              
              
                  Full Usage: 
                   
              SparseDoubleMatrix(numberOfRows, numberOfColumns)
                  Parameters: 
 int
                       - 
                      Number of rows
                    
                    numberOfColumns : int
                       - 
                      Number of columns
                    
                     | 
          
             
                 
               
                 
              Constructor for SparseMatrix class 
  | 
        
            
                
              
                  Full Usage: 
                   
              SparseDoubleMatrix(m, n, matrixItems, matrixIndices, _count)
                  Parameters: 
 int
                    
                    n : int
                    
                    matrixItems : float[][]
                    
                    matrixIndices : int[][]
                    
                    _count : int[]
                    
                     | 
          
             
                 
               
                 
              
 
  | 
        
| Instance member | Description | 
            
                
              
              
                  Full Usage: 
                   
              this.Clear
                   | 
          
             
                 
               
                 
              Sets all elements of the sparse matrix to zero.  | 
        
            
                
              
               | 
          
             
                 
               
                 
              
 
  | 
        
            
                
              
              
                  Full Usage: 
                   
              this.ColumnCount
                  Returns: int
                  
                       n, the number of columns.
                  Modifiers: abstract  | 
          
             
                 
               
                 
              Get column dimension. 
  | 
        
            
                
              
              
                  Full Usage: 
                   
              this.Count
                  Returns: int[]
                  
                   | 
          
             
                 
               
                 
              
 
  | 
        
            
                
              
               | 
          
             
                 
               
                 
              Dense version of a sparse matrix 
  | 
        
            
                
              
              
                  Full Usage: 
                   
              this.GetIndicesOfRow
                  Parameters: 
 int
                       - 
                      
                    
                    Returns: int[]
                  
                  
                   | 
          
             
                 
               
                 
              Get the valid indices for a given row. 
 
  | 
        
            
                
              
              
                  Full Usage: 
                   
              this.GetRow
                  Parameters: 
 int
                       - 
                      Row index
                    
                    Returns: SparseDoubleVector
                  
                  The ith row as a SparseVector
                   | 
          
             
                 
               
                 
              Accessor method for ith row 
 
  | 
        
            
                
              
              
                  Full Usage: 
                   
              this.IsBandMatrix
                  Returns: bool * int * int
                  
                  
                   | 
          
             
                 
               
                 
              Determines whether this sparse matrix is a band matrix, and determines the lower and upper band width. 
  | 
        
            
                
              
              
                  Full Usage: 
                   
              this.IsLowerTriangular
                  Returns: bool
                  
                  true or false
                   | 
          
             
                 
               
                 
              Check if the current matrix is lower triangular 
  | 
        
            
                
              
              
                  Full Usage: 
                   
              this.[arg1, arg2]
                  Parameters: 
 int
                    
                    Returns: int
                  
                  (i,j)th element
                  Modifiers: abstract  | 
          
             
                 
               
                 
              Accessor method for (i,j)th element 
 
  | 
        
            
                
              
              
                  Full Usage: 
                   
              this.MapSparseIncludingDiagonal
                  Parameters: 
 Func<float, int, int, float>
                       - 
                      The mapping function. First arg is the element of the source matrix, 2nd arg is the row, 3rd arg the column number. 
                    
                    result : SparseDoubleMatrix
                       - 
                      The resulting sparse matrix.
                    
                     | 
          
             
                 
               
                 
              Maps the present elements of this matrix (and additionally the diagonal elements, independently if they are present or not), via a evaluation function to a resulting sparse matrix. 
  | 
        
            
                
              
              
                  Full Usage: 
                   
              this.Mul
                  Parameters: 
 float
                       - 
                      Scaling factor
                    
                    Returns: SparseDoubleMatrix
                  
                  Scaled sparse matrix
                   | 
          
             
                 
               
                 
              Matrix multiplication by a scalar 
 
  | 
        
            
                
              
              
                  Full Usage: 
                   
              this.RowCount
                  Returns: int
                  
                       m, the number of rows
                  Modifiers: abstract  | 
          
             
                 
               
                 
              Get row dimension. 
  | 
        
            
                
              
              
                  Full Usage: 
                   
              this.ScaleRow
                  Parameters: 
 int
                       - 
                      Index of the row to be scaled
                    
                    j1 : int
                       - 
                      Lowest column entry to scale
                    
                    j2 : int
                       - 
                      High column entry to scale
                    
                    sf : float
                       - 
                      Scale factor
                    
                     | 
          
             
                 
               
                 
              Method to rescale a row of a Sparse Matrix 
  | 
        
            
                
              
               | 
          
             
                 
               
                 
              
 
  | 
        
            
                
              
               | 
          
             
                 
               
                 
              Forward substitution routine for solving Lx = b, where L is a lower-triangular matrix 
 
  | 
        
            
                
              
              
                  Full Usage: 
                   
              this.SwitchRows
                  Parameters: 
 int
                    
                    j : int
                    
                     | 
          
             
                 
               
                 
              Switch rows of a sparse matrix 
  | 
        
            
                
              
              
                  Full Usage: 
                   
              this.Transpose
                  Returns: SparseDoubleMatrix
                  
                  New matrix that is the transposed of the original.
                   | 
          
             
                 
               
                 
              Tranpose of sparse matrix 
  | 
        
            
                
              
              
                  Full Usage: 
                   
              this.minus B
                  Parameters: 
 SparseDoubleMatrix
                       - 
                      The matrix to subtract
                    
                    Returns: SparseDoubleMatrix
                  
                  The result A - B
                   | 
          
             
                 
               
                 
              Matrix subtraction for a sparse matrix 
 
  | 
        
            
                
              
              
                  Full Usage: 
                   
              this.plus B
                  Parameters: 
 SparseDoubleMatrix
                       - 
                      The matrix to add
                    
                    Returns: SparseDoubleMatrix
                  
                  The result A + B
                   | 
          
             
                 
               
                 
              Matrix addition for a sparse matrix 
 
  | 
        
            
                
              
               | 
          
             
                 
               
                 
              Matrix multiplication 
 
  | 
        
            
                
              
              
                  Full Usage: 
                   
              this.times s
                  Parameters: 
 float
                       - 
                      Scalar
                    
                    Returns: SparseDoubleMatrix
                  
                  Scaled sparse matrix
                   | 
          
             
                 
               
                 
              Matrix multiplication by a scalar 
 
  | 
        
            
                
              
              
                  Full Usage: 
                   
              this.times B
                  Parameters: 
 SparseDoubleMatrix
                       - 
                      Scaling factor
                    
                    Returns: SparseDoubleMatrix
                  
                  A * B where A is current sparce matrix
                   | 
          
             
                 
               
                 
              Matrix right multiplication by a matrix 
 
  | 
        
            
                
              
               | 
          
             
                 
               
                 
              Matrix multiplication, y = v * A 
 
  | 
        
| Static member | Description | 
            
                
              
              
                  Full Usage: 
                   
              m * v
                  Parameters: 
 SparseDoubleMatrix
                       - 
                      
                    
                    v : IReadOnlyList<float>
                       - 
                      Vector
                    
                    Returns: DoubleVector
                  
                  
                   | 
          
             
                 
               
                 
              Matrix multiplication 
 
  | 
        
            
                
              
              
                  Full Usage: 
                   
              v * m
                  Parameters: 
 IReadOnlyList<float>
                       - 
                      Vector
                    
                    m : SparseDoubleMatrix
                       - 
                      
                    
                    Returns: DoubleVector
                  
                  
                   | 
          
             
                 
               
                 
              Matrix multiplication 
 
  | 
        
            
                
              
              
                  Full Usage: 
                   
              A * s
                  Parameters: 
 SparseDoubleMatrix
                       - 
                      Sparse Matrix
                    
                    s : float
                       - 
                      Scalar
                    
                    Returns: SparseDoubleMatrix
                  
                  Scaled sparse matrix
                   | 
          
             
                 
               
                 
              Matrix multiplication by a scalar 
 
  | 
        
            
                
              
              
                  Full Usage: 
                   
              A * B
                  Parameters: 
 SparseDoubleMatrix
                    
                    B : SparseDoubleMatrix
                    
                    Returns: SparseDoubleMatrix
                  
                   | 
          
             
                 
               
                 
              
 
 
  | 
        
            
                
              
              
                  Full Usage: 
                   
              A + B
                  Parameters: 
 SparseDoubleMatrix
                       - 
                      first matrix 
                    
                    B : SparseDoubleMatrix
                       - 
                      another matrix 
                    
                    Returns: SparseDoubleMatrix
                  
                       A + B
                   | 
          
             
                 
               
                 
              C = A + B 
 
  | 
        
            
                
              
              
                  Full Usage: 
                   
              A - B
                  Parameters: 
 SparseDoubleMatrix
                       - 
                      The matrix from which to subtract
                    
                    B : SparseDoubleMatrix
                       - 
                      The matrix to subtract
                    
                    Returns: SparseDoubleMatrix
                  
                  The result A - B
                   | 
          
             
                 
               
                 
              Matrix subtraction for a sparse matrix 
 
  | 
        
            
                
              
              
                  Full Usage: 
                   
              SparseDoubleMatrix.Identity(m, n)
                  Parameters: 
 int
                       - 
                      Row dimension
                    
                    n : int
                       - 
                      Column dimension
                    
                    Returns: SparseDoubleMatrix
                  
                  An m x n sparse identity matrix
                   | 
          
             
                 
               
                 
              Identity matrix in sparse form 
 
  |