# Tensoring [Tensor product structures]

Collaboration diagram for Tensoring:

Methods for creating a new object as the tensor product of other objects. More...

## Functions

template<class T>
DenseVector< T > tensor (const DenseVector< T > &v1, const DenseVector< T > &v2)
Creates and returns a new DenseVector containing the tensor product of `v1` and `v2`.
template<class T>
DenseVector< T > tensor (itype N, DenseVector< T > *v_arr1[])
Creates and returns a new DenseVector containing the tensor product of v_arr[0...N-1].
template<class T>
DenseMatrix< T > tensor (const DenseMatrix< T > &m1, const DenseMatrix< T > &m2)
Creates and returns a new DenseMatrix containing the tensor product of m1 and m2.
template<class T>
DenseMatrix< T > tensor (itype N, DenseMatrix< T > *m_arr[])
Creates and returns a new DenseMatrix containing the tensor product of v_arr[0...N-1].
template<class T>
DenseVector< T > & tensor_into (const DenseVector< T > &v1, const DenseVector< T > &v2, DenseVector< T > &result, T scalar=T(1))
Overwrites result with scalar times the tensor product of v1 and v2, and returns a reference to result.
template<class T>
DenseVector< T > & tensor_into (itype N, DenseVector< T > *v_arr[], DenseVector< T > &result, T scalar=T(1))
Overwrites result with scalar times the tensor product of v_arr[0...N-1], and returns a reference to result.
template<class T>
DenseMatrix< T > & tensor_into (const DenseMatrix< T > &m1, const DenseMatrix< T > &m2, DenseMatrix< T > &result, T scalar=T(1))
Overwrites result with scalar times the tensor product of m1 and m2, and returns a reference to result.
template<class T>
DenseMatrix< T > & tensor_into (itype N, DenseMatrix< T > *m_arr[], DenseMatrix< T > &result, T scalar=T(1))
Overwrites result with scalar times the tensor product of m_arr[0...N-1], and returns a reference to result.
template<class T>
DenseVector< T > & add_tensor (const DenseVector< T > &v1, const DenseVector< T > &v2, DenseVector< T > &accumulator, T scalar=T(1))
Adds scalar times the tensor product of v1 and v2 to result, and returns a reference to result.
template<class T>
DenseVector< T > & add_tensor (itype N, DenseVector< T > *v_arr[], DenseVector< T > &accumulator, T scalar=T(1))
Adds scalar times the tensor product of v_arr[0...N-1] to result, and returns a reference to result.
template<class T>
DenseMatrix< T > & add_tensor (const DenseMatrix< T > &m1, const DenseMatrix< T > &m2, DenseMatrix< T > &accumulator, T scalar=T(1))
Adds scalar times the tensor product of m1 and m2 to result, and returns a reference to result.
template<class T>
DenseMatrix< T > & add_tensor (itype N, DenseMatrix< T > *m_arr[], DenseMatrix< T > &accumulator, T scalar=T(1))
Adds scalar times the tensor product of v_arr[0...N-1] to result, and returns a reference to result.

## Detailed Description

Methods for creating a new object as the tensor product of other objects.

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