autoGSVD TablesOfReal_to_GSVD (TableOfReal me, TableOfReal thee) { try { if (my numberOfColumns != thy numberOfColumns) { Melder_throw (U"Both tables must have the same number of columns."); } autoGSVD him = GSVD_create_d (my data, my numberOfRows, my numberOfColumns, thy data, thy numberOfRows); return him; } catch (MelderError) { Melder_throw (U"GSVD not constructed from TablesOfReal."); } }
GSVD TablesOfReal_to_GSVD (I, thou) { iam (TableOfReal); thouart (TableOfReal); try { if (my numberOfColumns != thy numberOfColumns) { Melder_throw ("Both tables must have the same number of columns."); } autoGSVD him = GSVD_create_d (my data, my numberOfRows, my numberOfColumns, thy data, thy numberOfRows); return him.transfer(); } catch (MelderError) { Melder_throw ("GSVD not constructed from TablesOfReal."); } }