【发布时间】:2015-06-02 16:44:19
【问题描述】:
假设我有一些gsl_matrix * A。我想编写一个检索例如的函数此矩阵中的行数,除了对象 A 本身之外,无法访问任何其他内容。
例子:
int num_rows(gsl_matrix * A){
//some operation(s) on A that find the number of rows in the matrix
//store that number in an int r
return r;
}
我可以写什么来为我做这件事?
【问题讨论】:
标签: c++ matrix linear-algebra gsl