Skip to content

Instantly share code, notes, and snippets.

#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <stdbool.h>
typedef int8_t i8;
typedef int16_t i16;
typedef int32_t i32;
typedef int64_t i64;
typedef uint8_t u8;
@Magicalbat
Magicalbat / main.c
Created August 28, 2024 21:22
Reverse Mode Automatic Differentiation Example
/*
To run, copy main.c into a directory, and copy
mg_arena.h from https://github.com/Magicalbat/mg-libraries
into the same directory.
This is more for me to look back at. I would
not use this as reference material as a lot of
the code is pretty sloppy.