Main Page | Modules | Class List | File List | Class Members | File Members

Build a Fixed Size Matrix
[Fixed Size Matrices]


Functions

Gan_Matrix23 gan_mat23_set_parts_s (const Gan_Matrix22 *B, const Gan_Vector2 *p)
 Build 2x3 matrix from 2x2 matrix and column 2-vector.
Gan_Matrix23gan_mat23_set_parts_q (Gan_Matrix23 *A, const Gan_Matrix22 *B, const Gan_Vector2 *p)
 Macro: Build 2x3 matrix from 2x2 matrix and column 2-vector.
Gan_Matrix23_f gan_mat23f_set_parts_s (const Gan_Matrix22_f *B, const Gan_Vector2_f *p)
 Build 2x3 matrix from 2x2 matrix and column 2-vector.
Gan_Matrix23_fgan_mat23f_set_parts_q (Gan_Matrix23_f *A, const Gan_Matrix22_f *B, const Gan_Vector2_f *p)
 Macro: Build 2x3 matrix from 2x2 matrix and column 2-vector.
Gan_Matrix33 gan_mat33_set_parts_s (const Gan_Matrix22 *B, const Gan_Vector2 *p, const Gan_Vector2 *q, double s)
 Build a 3x3 matrix from parts.
Gan_Matrix33 gan_mat33_set_cols_s (const Gan_Vector3 *p, const Gan_Vector3 *q, const Gan_Vector3 *r)
 Build 3x3 matrix from 3-vector columns.
Gan_Matrix33 gan_mat33_set_rows_s (const Gan_Vector3 *p, const Gan_Vector3 *q, const Gan_Vector3 *r)
 Build 3x3 matrix from 3-vector rows.
Gan_SquMatrix33 gan_symmat33_set_parts_s (Gan_SquMatrix22 *B, const Gan_Vector2 *p, double s)
 Build a 3x3 symmetric matrix from parts.
Gan_SquMatrix33 gan_ltmat33_set_parts_s (const Gan_SquMatrix22 *B, const Gan_Vector2 *p, double s)
 Build a 3x3 lower triangular matrix from parts.
Gan_Matrix33gan_mat33_set_parts_q (Gan_Matrix33 *A, const Gan_Matrix22 *B, const Gan_Vector2 *p, const Gan_Vector2 *q, double s)
 Macro: Build a 3x3 matrix from parts.
Gan_Matrix33gan_mat33_set_cols_q (Gan_Matrix33 *A, const Gan_Vector3 *p, const Gan_Vector3 *q, const Gan_Vector3 *r)
 Macro: Build 3x3 matrix from 3-vector columns.
Gan_Matrix33gan_mat33_set_rows_q (Gan_Matrix33 *A, const Gan_Vector3 *p, const Gan_Vector3 *q, const Gan_Vector3 *r)
 Macro: Build 3x3 matrix from 3-vector rows.
Gan_SquMatrix33gan_symmat33_set_parts_q (Gan_SquMatrix33 *A, const Gan_SquMatrix22 *B, const Gan_Vector2 *p, double s)
 Macro: Build a 3x3 symmetric matrix from parts.
Gan_SquMatrix33gan_ltmat33_set_parts_q (Gan_SquMatrix33 *A, const Gan_SquMatrix22 *B, const Gan_Vector2 *p, double s)
 Macro: Build a 3x3 lower triangular matrix from parts.
Gan_Matrix33_f gan_mat33f_set_parts_s (Gan_Matrix22_f *B, const Gan_Vector2_f *p, const Gan_Vector2_f *q, float s)
 Build a 3x3 matrix from parts.
Gan_Matrix33_f gan_mat33f_set_cols_s (const Gan_Vector3_f *p, const Gan_Vector3_f *q, const Gan_Vector3_f *r)
 Build 3x3 matrix from 3-vector columns.
Gan_Matrix33_f gan_mat33f_set_rows_s (const Gan_Vector3_f *p, const Gan_Vector3_f *q, const Gan_Vector3_f *r)
 Build 3x3 matrix from 3-vector rows.
Gan_SquMatrix33_f gan_symmat33f_set_parts_s (Gan_SquMatrix22_f *B, const Gan_Vector2_f *p, float s)
 Build a 3x3 symmetric matrix from parts.
Gan_SquMatrix33_f gan_ltmat33f_set_parts_s (const Gan_SquMatrix22_f *B, const Gan_Vector2_f *p, float s)
 Build a 3x3 lower triangular matrix from parts.
Gan_Matrix33_fgan_mat33f_set_parts_q (Gan_Matrix33_f *A, const Gan_Matrix22_f *B, const Gan_Vector2_f *p, const Gan_Vector2_f *q, float s)
 Macro: Build a 3x3 matrix from parts.
Gan_Matrix33_fgan_mat33f_set_cols_q (Gan_Matrix33_f *A, const Gan_Vector3_f *p, const Gan_Vector3_f *q, const Gan_Vector3_f *r)
 Macro: Build 3x3 matrix from 3-vector columns.
Gan_Matrix33_fgan_mat33f_set_rows_q (Gan_Matrix33_f *A, const Gan_Vector3_f *p, const Gan_Vector3_f *q, const Gan_Vector3_f *r)
 Macro: Build 3x3 matrix from 3-vector rows.
Gan_SquMatrix33_fgan_symmat33f_set_parts_q (Gan_SquMatrix33_f *A, const Gan_SquMatrix22_f *B, const Gan_Vector2_f *p, float s)
 Macro: Build a 3x3 symmetric matrix from parts.
Gan_SquMatrix33_fgan_ltmat33f_set_parts_q (Gan_SquMatrix33_f *A, const Gan_SquMatrix22_f *B, const Gan_Vector2_f *p, float s)
 Macro: Build a 3x3 lower triangular matrix from parts.
Gan_Matrix34 gan_mat34_set_parts_s (const Gan_Matrix33 *B, const Gan_Vector3 *p)
 Build 3x4 matrix from 3x3 matrix and column 3-vector.
Gan_Matrix34 gan_mat34_set_cols_s (const Gan_Vector3 *p, const Gan_Vector3 *q, const Gan_Vector3 *r, const Gan_Vector3 *s)
 Build 3x4 matrix from 3-vector columns.
Gan_Matrix34 gan_mat34_set_rows_s (const Gan_Vector4 *p, const Gan_Vector4 *q, const Gan_Vector4 *r)
 Build 3x4 matrix from 4-vector rows.
Gan_Matrix34gan_mat34_set_parts_q (Gan_Matrix34 *A, const Gan_Matrix33 *B, const Gan_Vector3 *p)
 Macro: Build 3x4 matrix from 3x3 matrix and column 3-vector.
Gan_Matrix34gan_mat34_set_cols_q (Gan_Matrix34 *A, const Gan_Vector3 *p, const Gan_Vector3 *q, const Gan_Vector3 *r, const Gan_Vector3 *s)
 Macro: Build 3x4 matrix from 3-vector columns.
Gan_Matrix34gan_mat34_set_rows_q (Gan_Matrix34 *A, const Gan_Vector4 *p, const Gan_Vector4 *q, const Gan_Vector4 *r)
 Macro: Build 3x4 matrix from 4-vector rows.
Gan_Matrix34_f gan_mat34f_set_parts_s (const Gan_Matrix33_f *B, const Gan_Vector3_f *p)
 Build 3x4 matrix from 3x3 matrix and column 3-vector.
Gan_Matrix34_f gan_mat34f_set_cols_s (const Gan_Vector3_f *p, const Gan_Vector3_f *q, const Gan_Vector3_f *r, const Gan_Vector3_f *s)
 Build 3x4 matrix from 3-vector columns.
Gan_Matrix34_f gan_mat34f_set_rows_s (const Gan_Vector4_f *p, const Gan_Vector4_f *q, const Gan_Vector4_f *r)
 Build 3x4 matrix from 4-vector rows.
Gan_Matrix34_fgan_mat34f_set_parts_q (Gan_Matrix34_f *A, const Gan_Matrix33_f *B, const Gan_Vector3_f *p)
 Macro: Build 3x4 matrix from 3x3 matrix and column 3-vector.
Gan_Matrix34_fgan_mat34f_set_cols_q (Gan_Matrix34_f *A, const Gan_Vector3_f *p, const Gan_Vector3_f *q, const Gan_Vector3_f *r, const Gan_Vector3_f *s)
 Macro: Build 3x4 matrix from 3-vector columns.
Gan_Matrix34_fgan_mat34f_set_rows_q (Gan_Matrix34_f *A, const Gan_Vector4_f *p, const Gan_Vector4_f *q, const Gan_Vector4_f *r)
 Macro: Build 3x4 matrix from 4-vector rows.
Gan_Matrix44 gan_mat44_set_parts_s (Gan_Matrix33 *B, const Gan_Vector3 *p, const Gan_Vector3 *q, double s)
 Build a 4x4 matrix from parts.
Gan_Matrix44 gan_mat44_set_blocks_s (const Gan_Matrix22 *A, const Gan_Matrix22 *B, const Gan_Matrix22 *C, const Gan_Matrix22 *D)
 Build a 4x4 matrix from 2x2 blocks.
Gan_SquMatrix44 gan_symmat44_set_parts_s (const Gan_SquMatrix33 *B, const Gan_Vector3 *p, double s)
 Build a 4x4 symmetric matrix from parts.
Gan_SquMatrix44 gan_symmat44_set_blocks_s (const Gan_SquMatrix22 *B, const Gan_Matrix22 *C, const Gan_SquMatrix22 *D)
 Build a 4x4 symmetric matrix from 2x2 blocks.
Gan_SquMatrix44 gan_ltmat44_set_parts_s (const Gan_SquMatrix33 *B, const Gan_Vector3 *p, double s)
 Build a 4x4 lower triangular matrix from parts.
Gan_Matrix44gan_mat44_set_parts_q (Gan_Matrix44 *A, const Gan_Matrix33 *B, const Gan_Vector3 *p, const Gan_Vector3 *q, double s)
 Macro: Build a 4x4 matrix from parts.
Gan_Matrix44gan_mat44_set_blocks_q (Gan_Matrix44 *M, const Gan_Matrix22 *A, const Gan_Matrix22 *B, const Gan_Matrix22 *C, const Gan_Matrix22 *D)
 Macro: Build a 4x4 matrix from 2x2 blocks.
Gan_SquMatrix44gan_symmat44_set_parts_q (Gan_SquMatrix44 *A, const Gan_SquMatrix33 *B, const Gan_Vector3 *p, double s)
 Macro: Build a 4x4 symmetric matrix from parts.
Gan_SquMatrix44gan_symmat44_set_blocks_q (Gan_SquMatrix44 *A, const Gan_SquMatrix22 *B, const Gan_Matrix22 *C, const Gan_SquMatrix22 *D)
 Macro: Build a 4x4 symmetric matrix from 2x2 blocks.
Gan_SquMatrix44gan_ltmat44_set_parts_q (Gan_SquMatrix44 *A, const Gan_SquMatrix33 *B, const Gan_Vector3 *p, double s)
 Macro: Build a 4x4 lower triangular matrix from parts.
Gan_Matrix44_f gan_mat44f_set_parts_s (Gan_Matrix33_f *B, const Gan_Vector3_f *p, const Gan_Vector3_f *q, float s)
 Build a 4x4 matrix from parts.
Gan_Matrix44_f gan_mat44f_set_blocks_s (const Gan_Matrix22_f *A, const Gan_Matrix22_f *B, const Gan_Matrix22_f *C, const Gan_Matrix22_f *D)
 Build a 4x4 matrix from 2x2 blocks.
Gan_SquMatrix44_f gan_symmat44f_set_parts_s (const Gan_SquMatrix33_f *B, const Gan_Vector3_f *p, float s)
 Build a 4x4 symmetric matrix from parts.
Gan_SquMatrix44_f gan_symmat44f_set_blocks_s (const Gan_SquMatrix22_f *B, const Gan_Matrix22_f *C, const Gan_SquMatrix22_f *D)
 Build a 4x4 symmetric matrix from 2x2 blocks.
Gan_SquMatrix44_f gan_ltmat44f_set_parts_s (const Gan_SquMatrix33_f *B, const Gan_Vector3_f *p, float s)
 Build a 4x4 lower triangular matrix from parts.
Gan_Matrix44_fgan_mat44f_set_parts_q (Gan_Matrix44_f *A, const Gan_Matrix33_f *B, const Gan_Vector3_f *p, const Gan_Vector3_f *q, float s)
 Macro: Build a 4x4 matrix from parts.
Gan_Matrix44_fgan_mat44f_set_blocks_q (Gan_Matrix44_f *M, const Gan_Matrix22_f *A, const Gan_Matrix22_f *B, const Gan_Matrix22_f *C, const Gan_Matrix22_f *D)
 Macro: Build a 4x4 matrix from 2x2 blocks.
Gan_SquMatrix44_fgan_symmat44f_set_parts_q (Gan_SquMatrix44_f *A, const Gan_SquMatrix33_f *B, const Gan_Vector3_f *p, float s)
 Macro: Build a 4x4 symmetric matrix from parts.
Gan_SquMatrix44_fgan_symmat44f_set_blocks_q (Gan_SquMatrix44_f *A, const Gan_SquMatrix22_f *B, const Gan_Matrix22_f *C, const Gan_SquMatrix22_f *D)
 Macro: Build a 4x4 symmetric matrix from 2x2 blocks.
Gan_SquMatrix44_fgan_ltmat44f_set_parts_q (Gan_SquMatrix44_f *A, const Gan_SquMatrix33_f *B, const Gan_Vector3_f *p, float s)
 Macro: Build a 4x4 lower triangular matrix from parts.

Function Documentation

Gan_SquMatrix33* gan_ltmat33_set_parts_q Gan_SquMatrix33 A,
const Gan_SquMatrix22 B,
const Gan_Vector2 p,
double  s
 

Macro: Build a 3x3 lower triangular matrix from parts.

Build 3x3 lower triangular matrix from 2x2 lower triangular matrix B, row 2-vector p, and scalar s, which are respectively inserted in the top-left, bottom-left and bottom-right parts of the 3x3 matrix. The arrangement of the matrix is

\[ \left(\begin{array}{cc} B & 0 \\ p^{\top} & s \end{array}\right) \]

Returns:
Pointer to filled matrix A.

Gan_SquMatrix33 gan_ltmat33_set_parts_s const Gan_SquMatrix22 B,
const Gan_Vector2 p,
double  s
 

Build a 3x3 lower triangular matrix from parts.

Build 3x3 lower triangular matrix from 2x2 lower triangular matrix B, row 2-vector p, and scalar s, which are respectively inserted in the top-left, bottom-left and bottom-right parts of the 3x3 matrix. The arrangement of the matrix is

\[ \left(\begin{array}{cc} B & 0 \\ p^{\top} & s \end{array}\right) \]

If p is passed as NULL, the corresponding part of the result is filled with zeros.

Gan_SquMatrix33_f* gan_ltmat33f_set_parts_q Gan_SquMatrix33_f A,
const Gan_SquMatrix22_f B,
const Gan_Vector2_f p,
float  s
 

Macro: Build a 3x3 lower triangular matrix from parts.

Build 3x3 lower triangular matrix from 2x2 lower triangular matrix B, row 2-vector p, and scalar s, which are respectively inserted in the top-left, bottom-left and bottom-right parts of the 3x3 matrix. The arrangement of the matrix is

\[ \left(\begin{array}{cc} B & 0 \\ p^{\top} & s \end{array}\right) \]

Returns:
Pointer to filled matrix A.

Gan_SquMatrix33_f gan_ltmat33f_set_parts_s const Gan_SquMatrix22_f B,
const Gan_Vector2_f p,
float  s
 

Build a 3x3 lower triangular matrix from parts.

Build 3x3 lower triangular matrix from 2x2 lower triangular matrix B, row 2-vector p, and scalar s, which are respectively inserted in the top-left, bottom-left and bottom-right parts of the 3x3 matrix. The arrangement of the matrix is

\[ \left(\begin{array}{cc} B & 0 \\ p^{\top} & s \end{array}\right) \]

If p is passed as NULL, the corresponding part of the result is filled with zeros.

Gan_SquMatrix44* gan_ltmat44_set_parts_q Gan_SquMatrix44 A,
const Gan_SquMatrix33 B,
const Gan_Vector3 p,
double  s
 

Macro: Build a 4x4 lower triangular matrix from parts.

Build 4x4 lower triangular matrix from 3x3 lower triangular matrix B, row 3-vector p, and scalar s, which are respectively inserted in the top-left, bottom-left and bottom-right parts of the 4x4 matrix. The arrangement of the matrix is

\[ \left(\begin{array}{cc} B & 0 \\ p^{\top} & s \end{array}\right) \]

Returns:
Pointer to filled matrix A.

Gan_SquMatrix44 gan_ltmat44_set_parts_s const Gan_SquMatrix33 B,
const Gan_Vector3 p,
double  s
 

Build a 4x4 lower triangular matrix from parts.

Build 4x4 lower triangular matrix from 3x3 lower triangular matrix B, row 3-vector p, and scalar s, which are respectively inserted in the top-left, bottom-left and bottom-right parts of the 4x4 matrix. The arrangement of the matrix is

\[ \left(\begin{array}{cc} B & 0 \\ p^{\top} & s \end{array}\right) \]

If p is passed as NULL, the corresponding part of the result is filled with zeros.

Gan_SquMatrix44_f* gan_ltmat44f_set_parts_q Gan_SquMatrix44_f A,
const Gan_SquMatrix33_f B,
const Gan_Vector3_f p,
float  s
 

Macro: Build a 4x4 lower triangular matrix from parts.

Build 4x4 lower triangular matrix from 3x3 lower triangular matrix B, row 3-vector p, and scalar s, which are respectively inserted in the top-left, bottom-left and bottom-right parts of the 4x4 matrix. The arrangement of the matrix is

\[ \left(\begin{array}{cc} B & 0 \\ p^{\top} & s \end{array}\right) \]

Returns:
Pointer to filled matrix A.

Gan_SquMatrix44_f gan_ltmat44f_set_parts_s const Gan_SquMatrix33_f B,
const Gan_Vector3_f p,
float  s
 

Build a 4x4 lower triangular matrix from parts.

Build 4x4 lower triangular matrix from 3x3 lower triangular matrix B, row 3-vector p, and scalar s, which are respectively inserted in the top-left, bottom-left and bottom-right parts of the 4x4 matrix. The arrangement of the matrix is

\[ \left(\begin{array}{cc} B & 0 \\ p^{\top} & s \end{array}\right) \]

If p is passed as NULL, the corresponding part of the result is filled with zeros.

Gan_Matrix23* gan_mat23_set_parts_q Gan_Matrix23 A,
const Gan_Matrix22 B,
const Gan_Vector2 p
 

Macro: Build 2x3 matrix from 2x2 matrix and column 2-vector.

Build 2x3 matrix A from 2x2 matrix B and column 2-vector p, which are respectively inserted in the left-hand and right-hand parts of the 2x3 matrix. The arrangement is thus

\[ A = \left(\begin{array}{cc} B & p \end{array}\right) \]

Returns:
Pointer to result 2x3 matrix A.

Gan_Matrix23 gan_mat23_set_parts_s const Gan_Matrix22 B,
const Gan_Vector2 p
 

Build 2x3 matrix from 2x2 matrix and column 2-vector.

Build 2x3 matrix from 2x2 matrix B and column 2-vector p, which are respectively inserted in the left-hand and right-hand parts of the 2x3 matrix. The arrangement is thus

\[ \left(\begin{array}{cc} B & p \end{array}\right) \]

Returns:
Result as a new 2x3 matrix.

Gan_Matrix23_f* gan_mat23f_set_parts_q Gan_Matrix23_f A,
const Gan_Matrix22_f B,
const Gan_Vector2_f p
 

Macro: Build 2x3 matrix from 2x2 matrix and column 2-vector.

Build 2x3 matrix A from 2x2 matrix B and column 2-vector p, which are respectively inserted in the left-hand and right-hand parts of the 2x3 matrix. The arrangement is thus

\[ A = \left(\begin{array}{cc} B & p \end{array}\right) \]

Returns:
Pointer to result 2x3 matrix A.

Gan_Matrix23_f gan_mat23f_set_parts_s const Gan_Matrix22_f B,
const Gan_Vector2_f p
 

Build 2x3 matrix from 2x2 matrix and column 2-vector.

Build 2x3 matrix from 2x2 matrix B and column 2-vector p, which are respectively inserted in the left-hand and right-hand parts of the 2x3 matrix. The arrangement is thus

\[ \left(\begin{array}{cc} B & p \end{array}\right) \]

Returns:
Result as a new 2x3 matrix.

Gan_Matrix33* gan_mat33_set_cols_q Gan_Matrix33 A,
const Gan_Vector3 p,
const Gan_Vector3 q,
const Gan_Vector3 r
 

Macro: Build 3x3 matrix from 3-vector columns.

Build 3x3 matrix A from 3-vector columns p, q and r. The arrangement can be written

\[ A = \left(\begin{array}{ccc} p & q & r \end{array}\right) \]

Returns:
Pointer to filled matrix A.

Gan_Matrix33 gan_mat33_set_cols_s const Gan_Vector3 p,
const Gan_Vector3 q,
const Gan_Vector3 r
 

Build 3x3 matrix from 3-vector columns.

Build 3x3 matrix from 3-vector columns p, q and r. The arrangement can be written

\[ \left(\begin{array}{ccc} p & q & r \end{array}\right) \]

Returns:
Filled matrix.

Gan_Matrix33* gan_mat33_set_parts_q Gan_Matrix33 A,
const Gan_Matrix22 B,
const Gan_Vector2 p,
const Gan_Vector2 q,
double  s
 

Macro: Build a 3x3 matrix from parts.

Build 3x3 matrix from 2x2 matrix B, column 2-vector p, row 2-vector q and scalar s, which are respectively inserted in the top-left, top-right, bottom-left and bottom-right parts of A. The arrangement of the matrix is

\[ \left(\begin{array}{cc} B & p \\ q^{\top} & s \end{array}\right) \]

Returns:
Pointer to filled matrix A.

Gan_Matrix33 gan_mat33_set_parts_s const Gan_Matrix22 B,
const Gan_Vector2 p,
const Gan_Vector2 q,
double  s
 

Build a 3x3 matrix from parts.

Build 3x3 matrix from 2x2 matrix B, column 2-vector p, row 2-vector q and scalar s, which are respectively inserted in the top-left, top-right, bottom-left and bottom-right parts of A. The arrangement of the matrix is

\[ \left(\begin{array}{cc} B & p \\ q^{\top} & s \end{array}\right) \]

If p and/or q are passed as NULL, the corresponding parts of the result are filled with zeros.

Returns:
Pointer to filled matrix A.

Gan_Matrix33* gan_mat33_set_rows_q Gan_Matrix33 A,
const Gan_Vector3 p,
const Gan_Vector3 q,
const Gan_Vector3 r
 

Macro: Build 3x3 matrix from 3-vector rows.

Build 3x3 matrix A from 3-vector rows p, q and r. The arrangement can be written

\[ A = \left(\begin{array}{c} p^{\top} \\ q^{\top} \\ r^{\top} \end{array}\right) \]

Returns:
Pointer to filled matrix A.

Gan_Matrix33 gan_mat33_set_rows_s const Gan_Vector3 p,
const Gan_Vector3 q,
const Gan_Vector3 r
 

Build 3x3 matrix from 3-vector rows.

Build 3x3 matrix from 3-vector rows p, q and r. The arrangement can be written

\[ \left(\begin{array}{c} p^{\top} \\ q^{\top} \\ r^{\top} \end{array}\right) \]

Returns:
Filled matrix.

Gan_Matrix33_f* gan_mat33f_set_cols_q Gan_Matrix33_f A,
const Gan_Vector3_f p,
const Gan_Vector3_f q,
const Gan_Vector3_f r
 

Macro: Build 3x3 matrix from 3-vector columns.

Build 3x3 matrix A from 3-vector columns p, q and r. The arrangement can be written

\[ A = \left(\begin{array}{ccc} p & q & r \end{array}\right) \]

Returns:
Pointer to filled matrix A.

Gan_Matrix33_f gan_mat33f_set_cols_s const Gan_Vector3_f p,
const Gan_Vector3_f q,
const Gan_Vector3_f r
 

Build 3x3 matrix from 3-vector columns.

Build 3x3 matrix from 3-vector columns p, q and r. The arrangement can be written

\[ \left(\begin{array}{ccc} p & q & r \end{array}\right) \]

Returns:
Filled matrix.

Gan_Matrix33_f* gan_mat33f_set_parts_q Gan_Matrix33_f A,
const Gan_Matrix22_f B,
const Gan_Vector2_f p,
const Gan_Vector2_f q,
float  s
 

Macro: Build a 3x3 matrix from parts.

Build 3x3 matrix from 2x2 matrix B, column 2-vector p, row 2-vector q and scalar s, which are respectively inserted in the top-left, top-right, bottom-left and bottom-right parts of A. The arrangement of the matrix is

\[ \left(\begin{array}{cc} B & p \\ q^{\top} & s \end{array}\right) \]

Returns:
Pointer to filled matrix A.

Gan_Matrix33_f gan_mat33f_set_parts_s Gan_Matrix22_f B,
const Gan_Vector2_f p,
const Gan_Vector2_f q,
float  s
 

Build a 3x3 matrix from parts.

Build 3x3 matrix from 2x2 matrix B, column 2-vector p, row 2-vector q and scalar s, which are respectively inserted in the top-left, top-right, bottom-left and bottom-right parts of A. The arrangement of the matrix is

\[ \left(\begin{array}{cc} B & p \\ q^{\top} & s \end{array}\right) \]

If p and/or q are passed as NULL, the corresponding parts of the result are filled with zeros.

Returns:
Pointer to filled matrix A.

Gan_Matrix33_f* gan_mat33f_set_rows_q Gan_Matrix33_f A,
const Gan_Vector3_f p,
const Gan_Vector3_f q,
const Gan_Vector3_f r
 

Macro: Build 3x3 matrix from 3-vector rows.

Build 3x3 matrix A from 3-vector rows p, q and r. The arrangement can be written

\[ A = \left(\begin{array}{c} p^{\top} \\ q^{\top} \\ r^{\top} \end{array}\right) \]

Returns:
Pointer to filled matrix A.

Gan_Matrix33_f gan_mat33f_set_rows_s const Gan_Vector3_f p,
const Gan_Vector3_f q,
const Gan_Vector3_f r
 

Build 3x3 matrix from 3-vector rows.

Build 3x3 matrix from 3-vector rows p, q and r. The arrangement can be written

\[ \left(\begin{array}{c} p^{\top} \\ q^{\top} \\ r^{\top} \end{array}\right) \]

Returns:
Filled matrix.

Gan_Matrix34* gan_mat34_set_cols_q Gan_Matrix34 A,
const Gan_Vector3 p,
const Gan_Vector3 q,
const Gan_Vector3 r,
const Gan_Vector3 s
 

Macro: Build 3x4 matrix from 3-vector columns.

Build 3x4 matrix A from 3-vector columns p, q, r and s. The arrangement can be written

\[ A = \left(\begin{array}{cccc} p & q & r & s \end{array}\right) \]

Returns:
Pointer to filled matrix A.

Gan_Matrix34 gan_mat34_set_cols_s const Gan_Vector3 p,
const Gan_Vector3 q,
const Gan_Vector3 r,
const Gan_Vector3 s
 

Build 3x4 matrix from 3-vector columns.

Build 3x4 matrix from 3-vector columns p, q, r and s. The arrangement can be written

\[ \left(\begin{array}{cccc} p & q & r & s \end{array}\right) \]

Returns:
Filled matrix.

Gan_Matrix34* gan_mat34_set_parts_q Gan_Matrix34 A,
const Gan_Matrix33 B,
const Gan_Vector3 p
 

Macro: Build 3x4 matrix from 3x3 matrix and column 3-vector.

Build 3x4 matrix A from 3x3 matrix B and column 3-vector p, which are respectively inserted in the left-hand and right-hand parts of the 3x4 matrix. The arrangement is thus

\[ A = \left(\begin{array}{cc} B & p \end{array}\right) \]

Returns:
Pointer to result 3x4 matrix A.

Gan_Matrix34 gan_mat34_set_parts_s const Gan_Matrix33 B,
const Gan_Vector3 p
 

Build 3x4 matrix from 3x3 matrix and column 3-vector.

Build 3x4 matrix from 3x3 matrix B and column 3-vector p, which are respectively inserted in the left-hand and right-hand parts of the 3x4 matrix. The arrangement is thus

\[ \left(\begin{array}{cc} B & p \end{array}\right) \]

Returns:
Result as a new 3x4 matrix.

Gan_Matrix34* gan_mat34_set_rows_q Gan_Matrix34 A,
const Gan_Vector4 p,
const Gan_Vector4 q,
const Gan_Vector4 r
 

Macro: Build 3x4 matrix from 4-vector rows.

Build 3x4 matrix A from 4-vector rows p, q and r. The arrangement can be written

\[ A = \left(\begin{array}{c} p^{\top} \\ q^{\top} \\ r^{\top} \end{array}\right) \]

Returns:
Pointer to filled matrix A.

Gan_Matrix34 gan_mat34_set_rows_s const Gan_Vector4 p,
const Gan_Vector4 q,
const Gan_Vector4 r
 

Build 3x4 matrix from 4-vector rows.

Build 3x4 matrix from 4-vector rows p, q and r. The arrangement can be written

\[ \left(\begin{array}{c} p^{\top} \\ q^{\top} \\ r^{\top} \end{array}\right) \]

Returns:
Filled matrix.

Gan_Matrix34_f* gan_mat34f_set_cols_q Gan_Matrix34_f A,
const Gan_Vector3_f p,
const Gan_Vector3_f q,
const Gan_Vector3_f r,
const Gan_Vector3_f s
 

Macro: Build 3x4 matrix from 3-vector columns.

Build 3x4 matrix A from 3-vector columns p, q, r and s. The arrangement can be written

\[ A = \left(\begin{array}{cccc} p & q & r & s \end{array}\right) \]

Returns:
Pointer to filled matrix A.

Gan_Matrix34_f gan_mat34f_set_cols_s const Gan_Vector3_f p,
const Gan_Vector3_f q,
const Gan_Vector3_f r,
const Gan_Vector3_f s
 

Build 3x4 matrix from 3-vector columns.

Build 3x4 matrix from 3-vector columns p, q, r and s. The arrangement can be written

\[ \left(\begin{array}{cccc} p & q & r & s \end{array}\right) \]

Returns:
Filled matrix.

Gan_Matrix34_f* gan_mat34f_set_parts_q Gan_Matrix34_f A,
const Gan_Matrix33_f B,
const Gan_Vector3_f p
 

Macro: Build 3x4 matrix from 3x3 matrix and column 3-vector.

Build 3x4 matrix A from 3x3 matrix B and column 3-vector p, which are respectively inserted in the left-hand and right-hand parts of the 3x4 matrix. The arrangement is thus

\[ A = \left(\begin{array}{cc} B & p \end{array}\right) \]

Returns:
Pointer to result 3x4 matrix A.

Gan_Matrix34_f gan_mat34f_set_parts_s const Gan_Matrix33_f B,
const Gan_Vector3_f p
 

Build 3x4 matrix from 3x3 matrix and column 3-vector.

Build 3x4 matrix from 3x3 matrix B and column 3-vector p, which are respectively inserted in the left-hand and right-hand parts of the 3x4 matrix. The arrangement is thus

\[ \left(\begin{array}{cc} B & p \end{array}\right) \]

Returns:
Result as a new 3x4 matrix.

Gan_Matrix34_f* gan_mat34f_set_rows_q Gan_Matrix34_f A,
const Gan_Vector4_f p,
const Gan_Vector4_f q,
const Gan_Vector4_f r
 

Macro: Build 3x4 matrix from 4-vector rows.

Build 3x4 matrix A from 4-vector rows p, q and r. The arrangement can be written

\[ A = \left(\begin{array}{c} p^{\top} \\ q^{\top} \\ r^{\top} \end{array}\right) \]

Returns:
Pointer to filled matrix A.

Gan_Matrix34_f gan_mat34f_set_rows_s const Gan_Vector4_f p,
const Gan_Vector4_f q,
const Gan_Vector4_f r
 

Build 3x4 matrix from 4-vector rows.

Build 3x4 matrix from 4-vector rows p, q and r. The arrangement can be written

\[ \left(\begin{array}{c} p^{\top} \\ q^{\top} \\ r^{\top} \end{array}\right) \]

Returns:
Filled matrix.

Gan_Matrix44* gan_mat44_set_blocks_q Gan_Matrix44 M,
const Gan_Matrix22 A,
const Gan_Matrix22 B,
const Gan_Matrix22 C,
const Gan_Matrix22 D
 

Macro: Build a 4x4 matrix from 2x2 blocks.

Build 4x4 matrix M from 2x2 matrix blocks A, B, C and D, which are respectively inserted in the top-left, top-right, bottom-left and bottom-right parts of the 4x4 matrix. The arrangement is

\[ M = \left(\begin{array}{cc} A & B \\ C & D \end{array}\right) \]

Returns:
Pointer to filled matrix M.

Gan_Matrix44 gan_mat44_set_blocks_s const Gan_Matrix22 A,
const Gan_Matrix22 B,
const Gan_Matrix22 C,
const Gan_Matrix22 D
 

Build a 4x4 matrix from 2x2 blocks.

Build 4x4 matrix from 2x2 matrix blocks A, B, C and D, which are respectively inserted in the top-left, top-right, bottom-left and bottom-right parts of the 4x4 matrix. The arrangement is

\[ \left(\begin{array}{cc} A & B \\ C & D \end{array}\right) \]

If any of A, B, C or D are passed as NULL, the corresponding parts of the result are filled with zeros.

Returns:
Filled matrix.

Gan_Matrix44* gan_mat44_set_parts_q Gan_Matrix44 A,
const Gan_Matrix33 B,
const Gan_Vector3 p,
const Gan_Vector3 q,
double  s
 

Macro: Build a 4x4 matrix from parts.

Build 4x4 matrix from 3x3 matrix B, column 3-vector p, row 3-vector q and scalar s, which are respectively inserted in the top-left, top-right, bottom-left and bottom-right parts of A. The arrangement of the matrix is

\[ A = \left(\begin{array}{cc} B & p \\ q^{\top} & s \end{array}\right) \]

Returns:
Pointer to filled matrix A.

Gan_Matrix44 gan_mat44_set_parts_s Gan_Matrix33 B,
const Gan_Vector3 p,
const Gan_Vector3 q,
double  s
 

Build a 4x4 matrix from parts.

Build 4x4 matrix from 3x3 matrix B, column 3-vector p, row 3-vector q and scalar s, which are respectively inserted in the top-left, top-right, bottom-left and bottom-right parts of A. The arrangement of the matrix is

\[ \left(\begin{array}{cc} B & p \\ q^{\top} & s \end{array}\right) \]

If p and/or q are passed as NULL, the corresponding parts of the result are filled with zeros.

Returns:
Filled matrix.

Gan_Matrix44_f* gan_mat44f_set_blocks_q Gan_Matrix44_f M,
const Gan_Matrix22_f A,
const Gan_Matrix22_f B,
const Gan_Matrix22_f C,
const Gan_Matrix22_f D
 

Macro: Build a 4x4 matrix from 2x2 blocks.

Build 4x4 matrix M from 2x2 matrix blocks A, B, C and D, which are respectively inserted in the top-left, top-right, bottom-left and bottom-right parts of the 4x4 matrix. The arrangement is

\[ M = \left(\begin{array}{cc} A & B \\ C & D \end{array}\right) \]

Returns:
Pointer to filled matrix M.

Gan_Matrix44_f gan_mat44f_set_blocks_s const Gan_Matrix22_f A,
const Gan_Matrix22_f B,
const Gan_Matrix22_f C,
const Gan_Matrix22_f D
 

Build a 4x4 matrix from 2x2 blocks.

Build 4x4 matrix from 2x2 matrix blocks A, B, C and D, which are respectively inserted in the top-left, top-right, bottom-left and bottom-right parts of the 4x4 matrix. The arrangement is

\[ \left(\begin{array}{cc} A & B \\ C & D \end{array}\right) \]

If any of A, B, C or D are passed as NULL, the corresponding parts of the result are filled with zeros.

Returns:
Filled matrix.

Gan_Matrix44_f* gan_mat44f_set_parts_q Gan_Matrix44_f A,
const Gan_Matrix33_f B,
const Gan_Vector3_f p,
const Gan_Vector3_f q,
float  s
 

Macro: Build a 4x4 matrix from parts.

Build 4x4 matrix from 3x3 matrix B, column 3-vector p, row 3-vector q and scalar s, which are respectively inserted in the top-left, top-right, bottom-left and bottom-right parts of A. The arrangement of the matrix is

\[ \left(\begin{array}{cc} B & p \\ q^{\top} & s \end{array}\right) \]

Returns:
Pointer to filled matrix A.

Gan_Matrix44_f gan_mat44f_set_parts_s Gan_Matrix33_f B,
const Gan_Vector3_f p,
const Gan_Vector3_f q,
float  s
 

Build a 4x4 matrix from parts.

Build 4x4 matrix from 3x3 matrix B, column 3-vector p, row 3-vector q and scalar s, which are respectively inserted in the top-left, top-right, bottom-left and bottom-right parts of A. The arrangement of the matrix is

\[ \left(\begin{array}{cc} B & p \\ q^{\top} & s \end{array}\right) \]

If p and/or q are passed as NULL, the corresponding parts of the result are filled with zeros.

Returns:
Filled matrix.

Gan_SquMatrix33* gan_symmat33_set_parts_q Gan_SquMatrix33 A,
const Gan_SquMatrix22 B,
const Gan_Vector2 p,
double  s
 

Macro: Build a 3x3 symmetric matrix from parts.

Build 3x3 symmetric matrix A from 2x2 symmetric matrix B, 2-vector p, and scalar s, which are respectively inserted in the top-left, bottom-left/top-right and bottom-right parts of the 3x3 matrix. The arrangement of the matrix is

\[ A = \left(\begin{array}{cc} B & p \\ p^{\top} & s \end{array}\right) \]

Returns:
Pointer to filled matrix A.

Gan_SquMatrix33 gan_symmat33_set_parts_s Gan_SquMatrix22 B,
const Gan_Vector2 p,
double  s
 

Build a 3x3 symmetric matrix from parts.

Build 3x3 symmetric matrix from 2x2 symmetric matrix B, 2-vector p, and scalar s, which are respectively inserted in the top-left, bottom-left/top-right and bottom-right parts of the 3x3 matrix. The arrangement of the matrix is

\[ \left(\begin{array}{cc} B & p \\ p^{\top} & s \end{array}\right) \]

If p is passed as NULL, the corresponding part of the result is filled with zeros.

Returns:
Filled matrix.

Gan_SquMatrix33_f* gan_symmat33f_set_parts_q Gan_SquMatrix33_f A,
const Gan_SquMatrix22_f B,
const Gan_Vector2_f p,
float  s
 

Macro: Build a 3x3 symmetric matrix from parts.

Build 3x3 symmetric matrix A from 2x2 symmetric matrix B, 2-vector p, and scalar s, which are respectively inserted in the top-left, bottom-left/top-right and bottom-right parts of the 3x3 matrix. The arrangement of the matrix is

\[ A = \left(\begin{array}{cc} B & p \\ p^{\top} & s \end{array}\right) \]

Returns:
Pointer to filled matrix A.

Gan_SquMatrix33_f gan_symmat33f_set_parts_s Gan_SquMatrix22_f B,
const Gan_Vector2_f p,
float  s
 

Build a 3x3 symmetric matrix from parts.

Build 3x3 symmetric matrix from 2x2 symmetric matrix B, 2-vector p, and scalar s, which are respectively inserted in the top-left, bottom-left/top-right and bottom-right parts of the 3x3 matrix. The arrangement of the matrix is

\[ \left(\begin{array}{cc} B & p \\ p^{\top} & s \end{array}\right) \]

If p is passed as NULL, the corresponding part of the result is filled with zeros.

Returns:
Filled matrix.

Gan_SquMatrix44* gan_symmat44_set_blocks_q Gan_SquMatrix44 A,
const Gan_SquMatrix22 B,
const Gan_Matrix22 C,
const Gan_SquMatrix22 D
 

Macro: Build a 4x4 symmetric matrix from 2x2 blocks.

Build 4x4 symmetric matrix A from 2x2 symmetric matrix B, generic 2x2 matrix C and 2x2 symmetric matrix D, which are respectively inserted in the top-left, top-right (or transposed bottom-left) and bottom-right parts of A. The arrangement is

\[ A = \left(\begin{array}{cc} B & C \\ C^{\top} & D \end{array}\right) \]

Returns:
Pointer to filled matrix A.

Gan_SquMatrix44 gan_symmat44_set_blocks_s const Gan_SquMatrix22 B,
const Gan_Matrix22 C,
const Gan_SquMatrix22 D
 

Build a 4x4 symmetric matrix from 2x2 blocks.

Build 4x4 symmetric matrix from 2x2 symmetric matrix B, generic 2x2 matrix C and 2x2 symmetric matrix D, which are respectively inserted in the top-left, top-right (or transposed bottom-left) and bottom-right parts of the result 4x4 symmetric matrix. The arrangement is

\[ \left(\begin{array}{cc} B & C \\ C^{\top} & D \end{array}\right) \]

If any of B, C or D are passed as NULL, the corresponding parts of the result are filled with zeros.

Returns:
Filled 4x4 symmetric matrix.

Gan_SquMatrix44* gan_symmat44_set_parts_q Gan_SquMatrix44 A,
const Gan_SquMatrix33 B,
const Gan_Vector3 p,
double  s
 

Macro: Build a 4x4 symmetric matrix from parts.

Build 4x4 symmetric matrix A from 3x3 symmetric matrix B, 3-vector p, and scalar s, which are respectively inserted in the top-left, bottom-left/top-right and bottom-right parts of the 4x4 matrix. The arrangement of the matrix is

\[ A = \left(\begin{array}{cc} B & p \\ p^{\top} & s \end{array}\right) \]

Returns:
Pointer to filled matrix A.

Gan_SquMatrix44 gan_symmat44_set_parts_s const Gan_SquMatrix33 B,
const Gan_Vector3 p,
double  s
 

Build a 4x4 symmetric matrix from parts.

Build 4x4 symmetric matrix from 3x3 symmetric matrix B, 3-vector p, and scalar s, which are respectively inserted in the top-left, bottom-left/top-right and bottom-right parts of the 4x4 matrix. The arrangement of the matrix is

\[ \left(\begin{array}{cc} B & p \\ p^{\top} & s \end{array}\right) \]

If p is passed as NULL, the corresponding part of the result is filled with zeros.

Returns:
Filled matrix.

Gan_SquMatrix44_f* gan_symmat44f_set_blocks_q Gan_SquMatrix44_f A,
const Gan_SquMatrix22_f B,
const Gan_Matrix22_f C,
const Gan_SquMatrix22_f D
 

Macro: Build a 4x4 symmetric matrix from 2x2 blocks.

Build 4x4 symmetric matrix A from 2x2 symmetric matrix B, generic 2x2 matrix C and 2x2 symmetric matrix D, which are respectively inserted in the top-left, top-right (or transposed bottom-left) and bottom-right parts of A. The arrangement is

\[ A = \left(\begin{array}{cc} B & C \\ C^{\top} & D \end{array}\right) \]

Returns:
Pointer to filled matrix A.

Gan_SquMatrix44_f gan_symmat44f_set_blocks_s const Gan_SquMatrix22_f B,
const Gan_Matrix22_f C,
const Gan_SquMatrix22_f D
 

Build a 4x4 symmetric matrix from 2x2 blocks.

Build 4x4 symmetric matrix from 2x2 symmetric matrix B, generic 2x2 matrix C and 2x2 symmetric matrix D, which are respectively inserted in the top-left, top-right (or transposed bottom-left) and bottom-right parts of the result 4x4 symmetric matrix. The arrangement is

\[ \left(\begin{array}{cc} B & C \\ C^{\top} & D \end{array}\right) \]

If any of B, C or D are passed as NULL, the corresponding parts of the result are filled with zeros.

Returns:
Filled 4x4 symmetric matrix.

Gan_SquMatrix44_f* gan_symmat44f_set_parts_q Gan_SquMatrix44_f A,
const Gan_SquMatrix33_f B,
const Gan_Vector3_f p,
float  s
 

Macro: Build a 4x4 symmetric matrix from parts.

Build 4x4 symmetric matrix A from 3x3 symmetric matrix B, 3-vector p, and scalar s, which are respectively inserted in the top-left, bottom-left/top-right and bottom-right parts of the 4x4 matrix. The arrangement of the matrix is

\[ A = \left(\begin{array}{cc} B & p \\ p^{\top} & s \end{array}\right) \]

Returns:
Pointer to filled matrix A.

Gan_SquMatrix44_f gan_symmat44f_set_parts_s const Gan_SquMatrix33_f B,
const Gan_Vector3_f p,
float  s
 

Build a 4x4 symmetric matrix from parts.

Build 4x4 symmetric matrix from 3x3 symmetric matrix B, 3-vector p, and scalar s, which are respectively inserted in the top-left, bottom-left/top-right and bottom-right parts of the 4x4 matrix. The arrangement of the matrix is

\[ \left(\begin{array}{cc} B & p \\ p^{\top} & s \end{array}\right) \]

If p is passed as NULL, the corresponding part of the result is filled with zeros.

Returns:
Filled matrix.


Generated on Fri Mar 17 12:44:58 2006 by  doxygen 1.3.9.1