SAGA API
v9.6
|
#include "mat_tools.h"
Go to the source code of this file.
Functions | |
bool | SG_Matrix_Triangular_Decomposition (CSG_Matrix &A, CSG_Vector &d, CSG_Vector &e) |
bool | SG_Matrix_Tridiagonal_QL (CSG_Matrix &Q, CSG_Vector &d, CSG_Vector &e) |
CSG_Vector | operator* (double Scalar, const CSG_Vector &Vector) |
bool | SG_VectorR2_Rotate (double &x, double &y, double Angle) |
bool | SG_VectorR2_Rotate (double Vector[2], double Angle) |
bool | SG_VectorR2_Rotate (CSG_Vector &Vector, double Angle) |
bool | SG_VectorR3_Rotate (double Vector[3], size_t Axis, double Angle) |
bool | SG_VectorR3_Rotate (CSG_Vector &Vector, size_t Axis, double Angle) |
CSG_Matrix | operator* (double Scalar, const CSG_Matrix &Matrix) |
CSG_Matrix | SG_Matrix_Get_Rotation (double R, bool bDegree) |
CSG_Matrix | SG_Matrix_Get_Rotation (double Rx, double Ry, double Rz, bool bDegree) |
bool | SG_Matrix_Solve (CSG_Matrix &Matrix, CSG_Vector &Vector, bool bSilent) |
bool | SG_Matrix_Eigen_Reduction (const CSG_Matrix &Matrix, CSG_Matrix &Eigen_Vectors, CSG_Vector &Eigen_Values, bool bSilent) |
bool | SG_Matrix_LU_Decomposition (int n, int *Permutation, double **Matrix, bool bSilent, int *nRowChanges) |
bool | SG_Matrix_LU_Solve (int n, const int *Permutation, const double **Matrix, double *Vector, bool bSilent) |
CSG_Matrix operator* | ( | double | Scalar, |
const CSG_Matrix & | Matrix | ||
) |
Definition at line 1699 of file mat_matrix.cpp.
CSG_Vector operator* | ( | double | Scalar, |
const CSG_Vector & | Vector | ||
) |
Definition at line 579 of file mat_matrix.cpp.
bool SG_Matrix_Eigen_Reduction | ( | const CSG_Matrix & | Matrix, |
CSG_Matrix & | Eigen_Vectors, | ||
CSG_Vector & | Eigen_Values, | ||
bool | bSilent | ||
) |
Definition at line 1933 of file mat_matrix.cpp.
References SG_Matrix_Triangular_Decomposition(), and SG_Matrix_Tridiagonal_QL().
CSG_Matrix SG_Matrix_Get_Rotation | ( | double | R, |
bool | bDegree | ||
) |
Returns a rotation matrix applicable to 2d vectors for given rotation angle (R).
Definition at line 1866 of file mat_matrix.cpp.
References M_DEG_TO_RAD.
CSG_Matrix SG_Matrix_Get_Rotation | ( | double | Rx, |
double | Ry, | ||
double | Rz, | ||
bool | bDegree | ||
) |
Returns a rotation matrix applicable to 3d vectors for rotations about the x-, y-, and z-axis (Rx, Ry, Rz).
Definition at line 1885 of file mat_matrix.cpp.
References M_DEG_TO_RAD.
bool SG_Matrix_LU_Decomposition | ( | int | n, |
int * | Permutation, | ||
double ** | Matrix, | ||
bool | bSilent, | ||
int * | nRowChanges | ||
) |
Definition at line 1948 of file mat_matrix.cpp.
References M_FLT_EPSILON, SG_UI_Process_Get_Okay(), and SG_UI_Process_Set_Progress().
Referenced by CSG_Matrix::Get_Determinant(), CSG_Matrix::Set_Inverse(), and SG_Matrix_Solve().
bool SG_Matrix_LU_Solve | ( | int | n, |
const int * | Permutation, | ||
const double ** | Matrix, | ||
double * | Vector, | ||
bool | bSilent | ||
) |
Definition at line 2053 of file mat_matrix.cpp.
References SG_UI_Process_Set_Progress().
Referenced by CSG_Matrix::Set_Inverse(), and SG_Matrix_Solve().
bool SG_Matrix_Solve | ( | CSG_Matrix & | Matrix, |
CSG_Vector & | Vector, | ||
bool | bSilent | ||
) |
Definition at line 1910 of file mat_matrix.cpp.
References CSG_Array::Get_Array(), CSG_Vector::Get_Data(), CSG_Matrix::Get_Data(), CSG_Vector::Get_N(), CSG_Matrix::Get_NX(), CSG_Matrix::Get_NY(), SG_Matrix_LU_Decomposition(), and SG_Matrix_LU_Solve().
Referenced by CSG_Thin_Plate_Spline::Create().
bool SG_Matrix_Triangular_Decomposition | ( | CSG_Matrix & | A, |
CSG_Vector & | d, | ||
CSG_Vector & | e | ||
) |
Definition at line 2097 of file mat_matrix.cpp.
References A, and CSG_Vector::Create().
Referenced by SG_Matrix_Eigen_Reduction().
bool SG_Matrix_Tridiagonal_QL | ( | CSG_Matrix & | Q, |
CSG_Vector & | d, | ||
CSG_Vector & | e | ||
) |
Definition at line 2227 of file mat_matrix.cpp.
References CSG_Vector::Get_N(), CSG_Matrix::Get_NX(), CSG_Matrix::Get_NY(), and M_SET_SIGN.
Referenced by SG_Matrix_Eigen_Reduction().
bool SG_VectorR2_Rotate | ( | CSG_Vector & | Vector, |
double | Angle | ||
) |
Definition at line 770 of file mat_matrix.cpp.
References CSG_Vector::Get_Size(), and SG_VectorR2_Rotate().
bool SG_VectorR2_Rotate | ( | double & | x, |
double & | y, | ||
double | Angle | ||
) |
Definition at line 750 of file mat_matrix.cpp.
Referenced by SG_VectorR2_Rotate().
bool SG_VectorR2_Rotate | ( | double | Vector[2], |
double | Angle | ||
) |
Definition at line 764 of file mat_matrix.cpp.
References SG_VectorR2_Rotate().
bool SG_VectorR3_Rotate | ( | CSG_Vector & | Vector, |
size_t | Axis, | ||
double | Angle | ||
) |
Definition at line 810 of file mat_matrix.cpp.
References CSG_Vector::Get_Data(), CSG_Vector::Get_Size(), and SG_VectorR3_Rotate().
bool SG_VectorR3_Rotate | ( | double | Vector[3], |
size_t | Axis, | ||
double | Angle | ||
) |
Definition at line 776 of file mat_matrix.cpp.
Referenced by SG_VectorR3_Rotate().