A C library of basic matrix operations.
Defining basic: Calculations are performed in the most trivial methods, nothing about acceleration is considered.
And only double type is supported for contents of matrices.
Usage and samples of each function are written in source files and header files.
Name of each function starts with a prefix cml_ using camel naming system.
-
basic.candbasic.hdefines function for minimal usage. Functions are defined without validation for input values. Incorrect values such as NULL or out-of-range index may cause unexpected behaviours. -
CMatLib.candCMatLib.hdefines functions for common usage. Functions are actually those inbasic.cwrapped with input value validation logics. If incorrect values are passed to functions, an error message will pop up with debug messages.
For convenience, users can build the CMatLib.c or basic.c into a static library files using command:
# library for CMatLib.c
make libcml which generates file lib/libcml.a
# library for basic.c
# target in lib/libcml-basic.a
make libcml-basic generates file lib/libcml-basic.a.
After the above operations, users can use this library simply through #include "basic.h" or #include "CMatLib.h" in
the source code and compile that with FLAGS including -Llib -lcml-basic or -Llib -lcml.
Do whatever you want to, tired of writing docs.