mirror of
https://github.com/Relintai/pmlpp.git
synced 2024-11-08 13:12:09 +01:00
Force inline some getters.
This commit is contained in:
parent
2e6094cf03
commit
5d3e013cf1
@ -18,11 +18,11 @@ class MLPPMatrix : public Reference {
|
||||
GDCLASS(MLPPMatrix, Reference);
|
||||
|
||||
public:
|
||||
real_t *ptrw() {
|
||||
_FORCE_INLINE_ real_t *ptrw() {
|
||||
return _data;
|
||||
}
|
||||
|
||||
const real_t *ptr() const {
|
||||
_FORCE_INLINE_ const real_t *ptr() const {
|
||||
return _data;
|
||||
}
|
||||
|
||||
|
@ -21,11 +21,11 @@ class MLPPTensor3 : public Reference {
|
||||
GDCLASS(MLPPTensor3, Reference);
|
||||
|
||||
public:
|
||||
real_t *ptrw() {
|
||||
_FORCE_INLINE_ real_t *ptrw() {
|
||||
return _data;
|
||||
}
|
||||
|
||||
const real_t *ptr() const {
|
||||
_FORCE_INLINE_ const real_t *ptr() const {
|
||||
return _data;
|
||||
}
|
||||
|
||||
|
@ -21,11 +21,11 @@ class MLPPVector : public Reference {
|
||||
GDCLASS(MLPPVector, Reference);
|
||||
|
||||
public:
|
||||
real_t *ptrw() {
|
||||
_FORCE_INLINE_ real_t *ptrw() {
|
||||
return _data;
|
||||
}
|
||||
|
||||
const real_t *ptr() const {
|
||||
_FORCE_INLINE_ const real_t *ptr() const {
|
||||
return _data;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user