|
Beatmup
|
Operation 3D input/output size. More...
#include <storage.h>
Public Types | |
| enum class | Padding { SAME , VALID } |
| Zero padding specification. More... | |
Public Member Functions | |
| Size () | |
| Size (const Size &size, int depth) | |
| Size (int width, int height, int depth) | |
| bool | operator== (const Size &size) const |
| bool | operator!= (const Size &size) const |
| int & | operator[] (int di) |
| int | operator[] (int di) const |
| int | getWidth () const |
| int | getHeight () const |
| int | getDepth () const |
| int | volume () const |
| bool | zero () const |
| Size | transform (Size kernel, Size stride, Padding padding, int depth=0) const |
| Computes operation output size in function of operation kernel, padding, stride and depth, assuming that the current Size is the input size. More... | |
| Size | getOrigin (Size kernel, Size stride, Padding padding) const |
| Computes operation origin in function of operation kernel, padding and stride, assuming that the current Size instance is the input size. More... | |
| Size | operator+ (const Size &size) const |
| Size | operator- (const Size &size) const |
| Size | operator* (const Size &size) const |
| Size | operator/ (const Size &size) const |
| Size | operator+ (int scalar) const |
| Size | operator- (int scalar) const |
| Size | operator* (int scalar) const |
| Size | operator/ (int scalar) const |
Static Public Attributes | |
| static const Size | EMPTY |
| static const Size | ONES |
Private Attributes | |
| int | dim [3] |
Operation 3D input/output size.
Dimensions are X (width), Y (height), Z (depth).
|
strong |
|
inline |
| Size::Size | ( | int | width, |
| int | height, | ||
| int | depth | ||
| ) |
Definition at line 51 of file storage.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Computes operation output size in function of operation kernel, padding, stride and depth, assuming that the current Size is the input size.
| [in] | kernel | The operation kernel size |
| [in] | stride | The stride |
| [in] | padding | The padding |
| [in] | depth | The output depth. If zero, the input depth is taken. |
Definition at line 58 of file storage.cpp.
Computes operation origin in function of operation kernel, padding and stride, assuming that the current Size instance is the input size.
| [in] | kernel | The operation kernel size |
| [in] | stride | The stride |
| [in] | padding | The padding |
Definition at line 72 of file storage.cpp.
|
inline |
|
inline |
|
inline |
|
inline |