libflame revision_anchor
Functions
FLA_Apply_QUD_UT_create_workspace.c File Reference

(r)

Functions

FLA_Error FLA_Apply_QUD_UT_create_workspace (FLA_Obj T, FLA_Obj R, FLA_Obj *W)

Function Documentation

FLA_Error FLA_Apply_QUD_UT_create_workspace ( FLA_Obj  T,
FLA_Obj  R,
FLA_Obj W 
)

References FLA_Obj_create(), FLA_Obj_datatype(), FLA_Obj_length(), and FLA_Obj_width().

Referenced by FLA_UDdate_UT_update_rhs().

{
    FLA_Datatype datatype;
    dim_t        m_W, n_W;

    datatype = FLA_Obj_datatype( T );
    m_W      = FLA_Obj_length( T );
    n_W      = FLA_Obj_width( R );

    FLA_Obj_create( datatype, m_W, n_W, 0, 0, W );

    return FLA_SUCCESS;
}