From d07d87964f13d3c1e6ad8c2f6d7db21101f1ef34 Mon Sep 17 00:00:00 2001 From: Charles Date: Mon, 11 May 2020 13:29:51 +0200 Subject: libftm matrix, dynamic vector instead of fixed size --- vendor/libftm/src/mat/ftm_matat.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 vendor/libftm/src/mat/ftm_matat.c (limited to 'vendor/libftm/src/mat/ftm_matat.c') 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 +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* 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]); +} -- cgit