libflame  12600
Functions
FLA_Obj_create_buffer_check.c File Reference

(r12600)

Functions

FLA_Error FLA_Obj_create_buffer_check (dim_t rs, dim_t cs, FLA_Obj *obj)

Function Documentation

References FLA_Check_matrix_strides(), FLA_Check_null_pointer(), FLA_Obj_length(), and FLA_Obj_width().

Referenced by FLA_Obj_create_buffer().

{
  FLA_Error e_val;

  e_val = FLA_Check_null_pointer( obj );
  FLA_Check_error_code( e_val );

  e_val = FLA_Check_matrix_strides( FLA_Obj_length( *obj ), FLA_Obj_width( *obj ), rs, cs );
  FLA_Check_error_code( e_val );

  return FLA_SUCCESS;
}