C# Class csCommon.Types.Geometries.AdvancedGeometry.GeometryTransformers.SmoothBezierTransformer.Cyclic

Solves the cyclic set of linear equations.
The cyclic set of equations have the form --------------------------- b0 c0 0 · · · · · · ß a1 b1 c1 · · · · · · · · · · · · · · · · · · · · · a[n-2] b[n-2] c[n-2] a · · · · 0 a[n-1] b[n-1] --------------------------- This is a tridiagonal system, except for the matrix elements a and ß in the corners.
Mostra file Open project: TNOCS/csTouch

Public Methods

Method Description
Solve ( double a, double b, double c, double alpha, double beta, double rhs ) : double[]

Solves the cyclic set of linear equations.

All vectors have size of n although some elements are not used. The input is not modified.

Method Details

Solve() public static method

Solves the cyclic set of linear equations.
All vectors have size of n although some elements are not used. The input is not modified.
public static Solve ( double a, double b, double c, double alpha, double beta, double rhs ) : double[]
a double Lower diagonal vector of size n; a[0] not used.
b double Main diagonal vector of size n.
c double Upper diagonal vector of size n; c[n-1] not used.
alpha double Bottom-left corner value.
beta double Top-right corner value.
rhs double Right hand side vector.
return double[]