# Scalar multiplication [Binary operators]

Collaboration diagram for Scalar multiplication:

Operators that multiply a matrix or vector by a scalar. More...

## Functions

template<typename T>
DenseVector< T > operator * (const DenseVector< T > &v, T scalar)
Returns a scalar multiple of a vector, as a new DenseVector<T>.
template<typename T>
DenseVector< T > operator * (T scalar, const DenseVector< T > &v)
Returns a scalar multiple of a vector, as a new DenseVector<T>.
template<typename T>
DenseVector< T > operator/ (const DenseVector< T > &v, T scalar)
Returns an inverse scalar multiple of a vector, as a new DenseVector<T>.
template<typename T>
DenseMatrix< T > operator * (const DenseMatrix< T > &m, T scalar)
Returns a scalar multiple of a matrix, as a new DenseMatrix<T>.
template<typename T>
DenseMatrix< T > operator * (T scalar, const DenseMatrix< T > &m)
Returns a scalar multiple of a matrix, as a new DenseMatrix<T>.
template<typename T>
DenseMatrix< T > operator/ (const DenseMatrix< T > &m, T scalar)
Returns an inverse scalar multiple of a matrix, as a new DenseMatrix<T>.
template<typename T>
PermScaleMatrix< T > operator * (const PermScaleMatrix< T > &m, const T &scalar)
Takes a [const reference to a] PermScaleMatrix and a scalar, and returns their product.
template<typename T>
PermScaleMatrix< T > operator * (const T &scalar, const PermScaleMatrix< T > &m)
Takes a scalar and a [const reference to a] PermScaleMatrix, and returns their product.
template<typename T>
PermScaleMatrix< T > operator/ (const PermScaleMatrix< T > &m, const T &scalar)
Takes a [const reference to a] PermScaleMatrix and a scalar, and returns their quotient.

## Detailed Description

Operators that multiply a matrix or vector by a scalar.

Generated on Wed Jun 14 22:25:35 2006 for linalg by  1.4.4