plugin/matio: Added size()

git-svn-id: svn://ultimatepp.org/upp/trunk@15610 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
koldo 2020-12-19 14:08:54 +00:00
parent cfd6f443d8
commit 2a47fc56e4
2 changed files with 8 additions and 5 deletions

View file

@ -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++) {

View file

@ -1,5 +1,7 @@
description "MATLAB MAT file I/O library\3770,128,128";
options(BUILDER_OPTION) NOWARNINGS;
uses
Core;