# TaoCreateLinearSolver

Create a linear solver for use in TAO

## Synopsis

    #include "tao_solver.h"
    int TaoCreateLinearSolver(TAO_SOLVER tao, TaoMat *MM, int stype, TaoLinearSolver **ksp)

## Input Parameters

| tao | - the TAO_SOLVER context
| MM | - the matrix associated with the solver
| stype | - the type of linear solver

## Output Parameters

ksp -a linear solver

## Types of linear solvers

| 100 | - Solver for any square matrix
| 110 | - GMRES
| 200 | - Any symmetric matrix
| 210 | - MINRES
| 220 | - CG with Trust Region
| 230 | - SYMMLQ
| 300 | - Any symmetric positive definite
| 310 | - Conjugate Gradient

## See Also

TaoLinearSolve()

## Keywords

linear solver

Level:developer
Location:src/interface/tao_lsolver.c
TAO Solver Index
Table of Contents