diff --git a/mlpp/lin_alg/mlpp_matrix.h b/mlpp/lin_alg/mlpp_matrix.h index 7992b46..1c92ac6 100644 --- a/mlpp/lin_alg/mlpp_matrix.h +++ b/mlpp/lin_alg/mlpp_matrix.h @@ -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; } diff --git a/mlpp/lin_alg/mlpp_tensor3.h b/mlpp/lin_alg/mlpp_tensor3.h index ae95f80..b42c530 100644 --- a/mlpp/lin_alg/mlpp_tensor3.h +++ b/mlpp/lin_alg/mlpp_tensor3.h @@ -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; } diff --git a/mlpp/lin_alg/mlpp_vector.h b/mlpp/lin_alg/mlpp_vector.h index 741c3ec..1adb5e9 100644 --- a/mlpp/lin_alg/mlpp_vector.h +++ b/mlpp/lin_alg/mlpp_vector.h @@ -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; }