Main Page   Modules   Compound List   File List   Compound Members   File Members  

Singular Value Decomposition of a Fixed Size Matrix
[Fixed Size Matrices]


Defines

#define gel(M, i, j)   gan_mat_get_el(M,i,j)
#define sel(M, i, j, v)   gan_mat_set_el(M,i,j,v)
#define sgel(M, i, j)   gan_squmat_get_el(M,i,j)
#define ssel(M, i, j, v)   gan_squmat_set_el(M,i,j,v)
#define WORKSPACE_SIZE   0

Functions

Gan_Bool gan_mat33_svd (Gan_Matrix33 *A, Gan_Matrix33 *U, Gan_Vector3 *S, Gan_Matrix33 *VT)
 Singular value decomposition of 3x3 matrix.

Gan_Bool gan_mat33T_svd (Gan_Matrix33 *A, Gan_Matrix33 *U, Gan_Vector3 *S, Gan_Matrix33 *VT)
 Singular value decomposition of the transpose of a 3x3 matrix.

Gan_Bool gan_mat33f_svd (Gan_Matrix33_f *A, Gan_Matrix33_f *U, Gan_Vector3_f *S, Gan_Matrix33_f *VT)
 Singular value decomposition of 3x3 matrix.

Gan_Bool gan_mat33Tf_svd (Gan_Matrix33_f *A, Gan_Matrix33_f *U, Gan_Vector3_f *S, Gan_Matrix33_f *VT)
 Singular value decomposition of the transpose of a 3x3 matrix.

Gan_Bool gan_mat44_svd (Gan_Matrix44 *A, Gan_Matrix44 *U, Gan_Vector4 *S, Gan_Matrix44 *VT)
 Singular value decomposition of 4x4 matrix.

Gan_Bool gan_mat44T_svd (Gan_Matrix44 *A, Gan_Matrix44 *U, Gan_Vector4 *S, Gan_Matrix44 *VT)
 Singular value decomposition of the transpose of a 4x4 matrix.

Gan_Bool gan_mat44f_svd (Gan_Matrix44_f *A, Gan_Matrix44_f *U, Gan_Vector4_f *S, Gan_Matrix44_f *VT)
 Singular value decomposition of 4x4 matrix.

Gan_Bool gan_mat44Tf_svd (Gan_Matrix44_f *A, Gan_Matrix44_f *U, Gan_Vector4_f *S, Gan_Matrix44_f *VT)
 Singular value decomposition of the transpose of a 4x4 matrix.


Function Documentation

Gan_Bool gan_mat33_svd Gan_Matrix33   A,
Gan_Matrix33   U,
Gan_Vector3   S,
Gan_Matrix33   VT
 

Singular value decomposition of 3x3 matrix.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Computes the SVD of a 3x3 input matrix A as

where U are the left singular vectors, S contain the singular values and VT are the (transposed) right singular vectors.

NOTE: the contents of A are NOT destroyed.

The singular values S are provided in decending order.

This function calls the general SVD routine gan_mat_svd().

Gan_Bool gan_mat33f_svd Gan_Matrix33_f   A,
Gan_Matrix33_f   U,
Gan_Vector3_f   S,
Gan_Matrix33_f   VT
 

Singular value decomposition of 3x3 matrix.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Computes the SVD of a 3x3 input matrix A as

where U are the left singular vectors, S contain the singular values and VT are the (transposed) right singular vectors.

NOTE: the contents of A are NOT destroyed.

The singular values S are provided in decending order.

This function calls the general SVD routine gan_matf_svd().

Gan_Bool gan_mat33T_svd Gan_Matrix33   A,
Gan_Matrix33   U,
Gan_Vector3   S,
Gan_Matrix33   VT
 

Singular value decomposition of the transpose of a 3x3 matrix.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Computes the SVD of the transpose of a 3x3 input matrix A as

where U are the left singular vectors, S contain the singular values and VT are the (transposed) right singular vectors.

NOTE: the contents of A are NOT destroyed.

The singular values S are provided in decending order.

This function calls the general SVD routine gan_mat_svd().

Gan_Bool gan_mat33Tf_svd Gan_Matrix33_f   A,
Gan_Matrix33_f   U,
Gan_Vector3_f   S,
Gan_Matrix33_f   VT
 

Singular value decomposition of the transpose of a 3x3 matrix.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Computes the SVD of the transpose of a 3x3 input matrix A as

where U are the left singular vectors, S contain the singular values and VT are the (transposed) right singular vectors.

NOTE: the contents of A are NOT destroyed.

The singular values S are provided in decending order.

This function calls the general SVD routine gan_matf_svd().

Gan_Bool gan_mat44_svd Gan_Matrix44   A,
Gan_Matrix44   U,
Gan_Vector4   S,
Gan_Matrix44   VT
 

Singular value decomposition of 4x4 matrix.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Computes the SVD of a 4x4 input matrix A as

where U are the left singular vectors, S contain the singular values and VT are the (transposed) right singular vectors.

NOTE: the contents of A are NOT destroyed.

The singular values S are provided in decending order.

This function calls the general SVD routine gan_mat_svd().

Gan_Bool gan_mat44f_svd Gan_Matrix44_f   A,
Gan_Matrix44_f   U,
Gan_Vector4_f   S,
Gan_Matrix44_f   VT
 

Singular value decomposition of 4x4 matrix.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Computes the SVD of a 4x4 input matrix A as

where U are the left singular vectors, S contain the singular values and VT are the (transposed) right singular vectors.

NOTE: the contents of A are NOT destroyed.

The singular values S are provided in decending order.

This function calls the general SVD routine gan_matf_svd().

Gan_Bool gan_mat44T_svd Gan_Matrix44   A,
Gan_Matrix44   U,
Gan_Vector4   S,
Gan_Matrix44   VT
 

Singular value decomposition of the transpose of a 4x4 matrix.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Computes the SVD of the transpose of a 4x4 input matrix A as

where U are the left singular vectors, S contain the singular values and VT are the (transposed) right singular vectors.

NOTE: the contents of A are NOT destroyed.

The singular values S are provided in decending order.

This function calls the general SVD routine gan_mat_svd().

Gan_Bool gan_mat44Tf_svd Gan_Matrix44_f   A,
Gan_Matrix44_f   U,
Gan_Vector4_f   S,
Gan_Matrix44_f   VT
 

Singular value decomposition of the transpose of a 4x4 matrix.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Computes the SVD of the transpose of a 4x4 input matrix A as

where U are the left singular vectors, S contain the singular values and VT are the (transposed) right singular vectors.

NOTE: the contents of A are NOT destroyed.

The singular values S are provided in decending order.

This function calls the general SVD routine gan_matf_svd().


Generated on Mon Oct 13 16:14:57 2003 by doxygen1.3-rc1