diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-05-11 13:29:51 +0200 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-05-11 13:29:51 +0200 |
| commit | d07d87964f13d3c1e6ad8c2f6d7db21101f1ef34 (patch) | |
| tree | 52dd2e82580eb3c70201991b53a2a2b4c434908b /vendor/libftm/src/mat/ftm_matat.c | |
| parent | 0700a8f567ab733a57fe688e45e5092d3fa1c1a0 (diff) | |
| download | scop-d07d87964f13d3c1e6ad8c2f6d7db21101f1ef34.tar.gz scop-d07d87964f13d3c1e6ad8c2f6d7db21101f1ef34.tar.bz2 scop-d07d87964f13d3c1e6ad8c2f6d7db21101f1ef34.zip | |
libftm matrix, dynamic vector instead of fixed size
Diffstat (limited to 'vendor/libftm/src/mat/ftm_matat.c')
| -rw-r--r-- | vendor/libftm/src/mat/ftm_matat.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/vendor/libftm/src/mat/ftm_matat.c b/vendor/libftm/src/mat/ftm_matat.c new file mode 100644 index 0000000..0c77ced --- /dev/null +++ b/vendor/libftm/src/mat/ftm_matat.c @@ -0,0 +1,18 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ftm_matat.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/05/11 13:11:34 by charles #+# #+# */ +/* Updated: 2020/05/11 13:27:17 by charles ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#include "libftm_mat.h" + +float ftm_matat(t_ftmmat *mat, size_t y, size_t x) +{ + return (mat->m[y * mat->shape.x + x]); +} |
