C++
C#
VB
JScript
All

External Function mul


Copyright (C) 2005 IENT-RWTH Aachen

template<class G1,class G2> inline typename MultiplyMatrix<const Matrix<G1>,const Matrix<G2> >::self mul(const Matrix<G1> &X,const Matrix<G2> &Y)
template<class G1,class G2> inline typename MultiplyMatrixVector<const Matrix<G1>,const Vector<G2> >::self mul(const Matrix<G1> &X,const Vector<G2> &Y)

Matrix multiplication

Parameters

X

The first matrix

Y

The second array

Returns

An array representing the multiplied matrices

Example

DenseMatrix<int>::self X(2,2,"1 2 3 4");
DenseMatrix<int>::self Y(2,2,"5 6 7 8");
DenseVector<int>::self Z(2,"5 6");
cout << mul(X,Y) << endl;
cout << mul(X,Z) << endl;

See Also

operator*