libflame revision_anchor
FLA_Form_perm_matrix.c File Reference

(r)

Functions

FLA_Error FLA_Form_perm_matrix (FLA_Obj p, FLA_Obj A)
 

Function Documentation

◆ FLA_Form_perm_matrix()

FLA_Error FLA_Form_perm_matrix ( FLA_Obj p,
FLA_Obj A )
14{
15 if ( FLA_Check_error_level() >= FLA_MIN_ERROR_CHECKING )
17
18 // We assume that A is correctly sized, m x m, where m is the row
19 // dimension of the matrix given to FLA_LU_piv() or similar function.
21
22 // We assume that p contains pivots in native FLAME format. That is,
23 // we assume the pivot type is FLA_NATIVE_PIVOTS. This is not a huge
24 // assumption since the user has to go out of his way to shift the
25 // pivots into LAPACK-indexed pivots.
26 FLA_Apply_pivots( FLA_LEFT, FLA_NO_TRANSPOSE, p, A );
27
28 return FLA_SUCCESS;
29}
FLA_Error FLA_Form_perm_matrix_check(FLA_Obj p, FLA_Obj A)
Definition FLA_Form_perm_matrix_check.c:13
FLA_Error FLA_Apply_pivots(FLA_Side side, FLA_Trans trans, FLA_Obj p, FLA_Obj A)
Definition FLA_Apply_pivots.c:15
unsigned int FLA_Check_error_level(void)
Definition FLA_Check.c:18
FLA_Error FLA_Set_to_identity(FLA_Obj A)
Definition FLA_Set_to_identity.c:13

References FLA_Apply_pivots(), FLA_Check_error_level(), FLA_Form_perm_matrix_check(), and FLA_Set_to_identity().