【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.2.3.7.1 matrix::GetSourceDim
Contents
Description
It returns the dimensions of the source Matrix used by the constructor matrix(MatrixObject &mo, BOOL bWriteback = FALSE) if bWriteback is TRUE. See that constructor and the accompanying example for more details.
Syntax
bool GetSourceDim( int & nRows, int & nCols )
Parameters
- nRows
- [input] it receives the number of rows of the source.
- nCols
- [input] it receives the number of columns of the source.
Return
TRUE if bWriteback was TRUE when calling the constructor, otherwise FALSE.
Examples
EX1
// Have a matrix with the name "MBook1" in the project, with some values. void matrix_GetSourceDim_ex1() { MatrixObject mo("MBook1", 0); matrix m(mo, TRUE); int nRows, nCols; if (m.GetSourceDim(nRows, nCols)) printf("rows = %d\tcols=%d\n", nRows, nCols); }
Remark
See Also
Header to Include
origin.h