| ||||||
| ||||||
![]() | ||||||
Prototype | ||||||
template <class Matrix, class VecX, class VecY, class VecZ> void mult(const Matrix& A, const VecX& x, const VecY& y, VecZ z) ; | ||||||
![]() | ||||||
Description | ||||||
![]() | ||||||
Definition | ||||||
mtl.h | ||||||
![]() | ||||||
Requirements on types | ||||||
![]() | ||||||
Preconditions | ||||||
| ||||||
![]() | ||||||
Complexity | ||||||
![]() | ||||||
Example | ||||||
In symm_sparse_vec_prod.cc:
const Matrix::size_type matrix_size=5; Matrix A(matrix_size,matrix_size); Vec y(matrix_size,1),x(matrix_size); double alpha=2, beta=3; //fill arrays... mult(A,scaled(x,alpha),scaled(y,beta),y); cout << "Ax + y ="; print_vector(y); | ||||||
![]() | ||||||
Notes | ||||||
![]() | ||||||
See also | ||||||
Copyright ©
1998,1999 University of Notre Dame. All Rights Reserved.