mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
plugin/matio: Added size()
git-svn-id: svn://ultimatepp.org/upp/trunk@15610 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
cfd6f443d8
commit
2a47fc56e4
2 changed files with 8 additions and 5 deletions
|
|
@ -59,12 +59,13 @@ public:
|
|||
const T &operator()(int r) const {return data[r];}
|
||||
const T &operator()(int r, int c) const {return data[c*rows + r];}
|
||||
|
||||
operator T*() { return data; }
|
||||
operator const T*() const { return data; }
|
||||
operator T*() {return data;}
|
||||
operator const T*() const {return data;}
|
||||
|
||||
int GetCount() {return rows*cols;}
|
||||
int GetRows() {return rows;}
|
||||
int GetCols() {return cols;}
|
||||
int GetCount() const {return rows*cols;}
|
||||
int size() const {return GetCount();}
|
||||
int GetRows() const {return rows;}
|
||||
int GetCols() const {return cols;}
|
||||
|
||||
void Print() {
|
||||
for(int r = 0; r < GetRows(); r++) {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
description "MATLAB MAT file I/O library\3770,128,128";
|
||||
|
||||
options(BUILDER_OPTION) NOWARNINGS;
|
||||
|
||||
uses
|
||||
Core;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue