libflame  12600
Functions
FLA_Form_perm_matrix_check.c File Reference

(r12600)

Functions

FLA_Error FLA_Form_perm_matrix_check (FLA_Obj p, FLA_Obj A)

Function Documentation

References FLA_Check_floating_object(), FLA_Check_if_vector(), FLA_Check_int_object(), FLA_Check_matrix_vector_dims(), FLA_Check_nonconstant_object(), and FLA_Check_square().

Referenced by FLA_Form_perm_matrix().

{
  FLA_Error e_val;

  e_val = FLA_Check_int_object( p );
  FLA_Check_error_code( e_val );

  e_val = FLA_Check_nonconstant_object( p );
  FLA_Check_error_code( e_val );

  e_val = FLA_Check_floating_object( A );
  FLA_Check_error_code( e_val );

  e_val = FLA_Check_nonconstant_object( A );
  FLA_Check_error_code( e_val );

  e_val = FLA_Check_if_vector( p );
  FLA_Check_error_code( e_val );

  e_val = FLA_Check_square( A );
  FLA_Check_error_code( e_val );

  FLA_Check_matrix_vector_dims( FLA_NO_TRANSPOSE, A, p, p );
  FLA_Check_error_code( e_val );

  return FLA_SUCCESS;
}