Skip to content

USAGE INSTRUCTIONS

Usage Instructions

This document provides usage instructions for the math module in Python. It includes examples and explanations of various functions and methods available in the module.

Import TinyMath as a Whole

Info

Suitable for C projects or projects with a simple structure in C++.

#include "tiny_math.h"

Import TinyMath by Module

Info

Suitable for projects that require precise control over module imports or complex C++ projects.

#include "tiny_vec.h" // Import vector module
#include "tiny_mat.h" // Import matrix module
#include "tiny_matrix.hpp" // Import advanced matrix module

Note

  • tiny_vec.h and tiny_mat.h are header files for the C language version, suitable for C programming.

  • tiny_matrix.hpp is a header file for the C++ language version, suitable for C++ programming.

In simple terms, C language projects can only use tiny_vec.h and tiny_mat.h, while C++ projects can use tiny_vec.h, tiny_mat.h, and tiny_matrix.hpp.

Tip

For specific usage methods, please refer to the test code.