Preconditioner matrices, specified as separate arguments of matrices or function In MATLAB®, write a function that creates these vectors and adds them together, thus giving the value of A*x or A'*x, depending on the flag input: Likewise, the expression for A T x becomes:Ī T x =. The resulting vector can be written as the sum of three vectors:Ī x = + + 2 ⋅. The nonzero elements in the result correspond with the nonzero tridiagonal elements of A.Ī x =. When A multiplies a vector, most of the elements in the resulting vector are zeros. Since this tridiagonal matrix has a special structure, you can represent the operation A*x with a function handle.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |