orthovalM

Orthogonal evaluation for matrices.


Syntax
   F = orthovalM(a, M, domain, basis)

Description
   f = orthovalM(a, M, domain, basis) returns the value of 
   a polynomial evaluated (orthogonally) at M: f = sum(a_iP_i).

Inputs
   a      = coefficients (double vector).
   M      = input for evaluation (sparse matrix).
   domain = domain [a b] of orthogonality (double vector).
   basis  = orthogonal polynomial basis (integer scalar or char).
            1 or 'ChebyshevT' to Chebyshev of first kind, 
            2 or 'ChebyshevU' to Chebyshev of second kind, 
            3 or 'LegendreP' to Legendre, 
            4 or 'HermiteH' to Hermite,
            5 or 'LaguerreL' to Laguerre and
            6 or 'GegenbauerC' to Gegenbauer.

Output
   F      = sum(a_iP_i(M)), i = 1:length(a) (dense matrix (n <= 10 )).
                                            (sparse matrix (n > 10 ))

See also
  orthovalv, orthovalvj, orthovald and orthovalMj.