### Navigation

- index
- modules |
- modules |
- next |
- previous |
- SciPy v0.9 Reference Guide (DRAFT) »
- Maximum entropy models (`scipy.maxentropy`) »

# scipy.maxentropy.maxentutils.rowmeans

`scipy.maxentropy.maxentutils.``rowmeans`(A)

  This is a wrapper for general dense or sparse dot products.

  It is only necessary as a common interface for supporting ndarray, scipy spmatrix, and PySparse arrays.

  Returns a dense (m x 1) vector representing the mean of the rows of A, which be an (m x n) sparse or dense matrix.

      >>> a = numpy.array([[1,2],[3,4]], float)
      >>> rowmeans(a)
      array([ 1.5,  3.5])

### Navigation

- index
- modules |
- modules |
- next |
- previous |
- SciPy v0.9 Reference Guide (DRAFT) »
- Maximum entropy models (`scipy.maxentropy`) »