Generic class colwise_sum which provides a static compute method. This class is specialized for different types of matrices and backend, providing a means to deal with various matrices directly without having to convert.
Public 类型 | |
| typedef Matrix::Scalar | T | 
静态 Public 成员函数 | |
| static SGVector< T > | compute (Matrix m, bool no_diag) | 
| static SGVector< T > | compute (Block< Matrix > b, bool no_diag) | 
| static void | compute (SGMatrix< T > m, SGVector< T > result, bool no_diag) | 
| static void | compute (Block< SGMatrix< T > > b, SGVector< T > result, bool no_diag) | 
Method that computes column wise sum of co-efficients of a dense matrix
| m | the matrix whose colwise sum of co-efficients has to be computed | 
| no_diag | if true, diagonal entries are excluded from the sum | 
Method that computes column wise sum of co-efficients of dense matrix blocks
| b | the matrix-block whose colwise sum of co-efficients has to be computed | 
| no_diag | if true, diagonal entries are excluded from the sum | 
Method that computes the column wise sum of co-efficients of SGMatrix using Eigen3
| m | the matrix whose colwise sum of co-efficients has to be computed | 
| no_diag | if true, diagonal entries are excluded from the sum | 
| result | Pre-allocated vector for the result of the computation | 
Method that computes the column wise sum of co-efficients of SGMatrix blocks using Eigen3
| b | the matrix-block whose colwise sum of co-efficients has to be computed | 
| no_diag | if true, diagonal entries are excluded from the sum | 
| result | Pre-allocated vector for the result of the computation |