SAGA API  v9.6
mat_matrix.cpp File Reference
#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)
 

Function Documentation

◆ operator*() [1/2]

CSG_Matrix operator* ( double  Scalar,
const CSG_Matrix Matrix 
)

Definition at line 1699 of file mat_matrix.cpp.

◆ operator*() [2/2]

CSG_Vector operator* ( double  Scalar,
const CSG_Vector Vector 
)

Definition at line 579 of file mat_matrix.cpp.

◆ SG_Matrix_Eigen_Reduction()

bool SG_Matrix_Eigen_Reduction ( const CSG_Matrix Matrix,
CSG_Matrix Eigen_Vectors,
CSG_Vector Eigen_Values,
bool  bSilent 
)

◆ SG_Matrix_Get_Rotation() [1/2]

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.

◆ SG_Matrix_Get_Rotation() [2/2]

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.

◆ SG_Matrix_LU_Decomposition()

bool SG_Matrix_LU_Decomposition ( int  n,
int *  Permutation,
double **  Matrix,
bool  bSilent,
int *  nRowChanges 
)

◆ SG_Matrix_LU_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().

◆ SG_Matrix_Solve()

◆ SG_Matrix_Triangular_Decomposition()

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().

◆ SG_Matrix_Tridiagonal_QL()

bool SG_Matrix_Tridiagonal_QL ( CSG_Matrix Q,
CSG_Vector d,
CSG_Vector e 
)

◆ SG_VectorR2_Rotate() [1/3]

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().

◆ SG_VectorR2_Rotate() [2/3]

bool SG_VectorR2_Rotate ( double &  x,
double &  y,
double  Angle 
)

Definition at line 750 of file mat_matrix.cpp.

Referenced by SG_VectorR2_Rotate().

◆ SG_VectorR2_Rotate() [3/3]

bool SG_VectorR2_Rotate ( double  Vector[2],
double  Angle 
)

Definition at line 764 of file mat_matrix.cpp.

References SG_VectorR2_Rotate().

◆ SG_VectorR3_Rotate() [1/2]

bool SG_VectorR3_Rotate ( CSG_Vector Vector,
size_t  Axis,
double  Angle 
)

◆ SG_VectorR3_Rotate() [2/2]

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().