Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 660 Bytes

operator_prod.rst

File metadata and controls

27 lines (17 loc) · 660 Bytes

operator*

.. cpp:function:: Row operator*(scalar_type const a) const

   Multiplies every entry of the row by a scalar.

   :param a: the scalar.

   :returns:
     A value of type Row containing the original row multiplied by the scalar
     ``a``.

   :complexity:
      :math:`O(m)` where :math:`m` is :cpp:any:`size`

   :throws:
      If the implementation of the semiring addition throws or
      ``std::bad_alloc`` is thrown.