/** Implementation of ComputeColAMaxImpl, which calls ComputeRowAMaxImpl. * * Since the matrix is symmetric, the row and column max norms are identical. */ virtual void ComputeColAMaxImpl( Vector& cols_norms, bool init ) const { ComputeRowAMaxImpl(cols_norms, init); }
/** Compute the max-norm of the rows in the matrix. The result is * stored in rows_norms. The vector is assumed to be initialized * of init is false. */ void ComputeRowAMax(Vector& rows_norms, bool init=true) const { DBG_ASSERT(NRows() == rows_norms.Dim()); if (init) rows_norms.Set(0.); ComputeRowAMaxImpl(rows_norms, init); }