11 #ifndef __EX_Matrix_h__
12 #define __EX_Matrix_h__
33 int getRows()
const {
return myRowCount; }
34 int getCols()
const {
return myColCount; }
45 int castFrom(
const char *str);
49 int castToFloat(
fpreal &rval)
const;
50 char *castToString()
const;
57 void identity(
int size);
60 int scan(
const char *str);
63 void grow(
int rows,
int cols)
65 if (rows != myRowCount) setRows(rows);
66 if (cols != myColCount) setCols(cols);
68 void setRows(
int rows);
69 void setCols(
int cols);
72 int myRowCount, myColCount;
fpreal operator()(int r, int c) const
OIIO_UTIL_API bool copy(string_view from, string_view to, std::string &err)
__hostdev__ void setValue(uint32_t offset, bool v)
fpreal fastGet(int r, int c) const
__hostdev__ float getValue(uint32_t i) const
ImageBuf OIIO_API sub(Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
void grow(int rows, int cols)
LeafData & operator=(const LeafData &)=delete
ImageBuf OIIO_API add(Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)