Routines for vector and matrix manipulation are contained in fbmath.h and some of them are explosed to the Open Reality C++ SDK (but are not exposed to Python).