#include <iostream>
#include <math.h>
#include <memory.h>
#include "mathdefs.h"
Go to the source code of this file.
Namespaces | |
namespace | gtm |
Functions | |
template<class T > | |
void | gtm::VectorPrint (std::ostream &o, T *v, uint n, bool col) |
Functions for vectors. | |
template<class T > | |
T * | gtm::VectorAllocateMemory (uint n) |
template<class T > | |
void | gtm::VectorFreeMemory (T *v) |
template<class T > | |
void | gtm::VectorAssignMemory (T *v, T *v_o, uint n) |
template<class T > | |
T * | gtm::VectorCopyMemory (T *v, uint n) |
template<class T > | |
void | gtm::VectorAssignScalar (T *v, T s, uint n) |
template<class T > | |
void | gtm::VectorMatrixCast (T **ma, T *v, uint n, uint m, bool col) |
template<class T > | |
void | gtm::VectorAdd (T *v, T *v_l, T *v_r, uint n) |
template<class T > | |
void | gtm::VectorSubtract (T *v, T *v_l, T *v_r, uint n) |
template<class T > | |
void | gtm::VectorCrossProduct (T *v, T *v_l, T *v_r) |
template<class T > | |
T | gtm::VectorDotProduct (T *v_l, T *v_r, uint n) |
template<class T > | |
void | gtm::VectorScalarProduct (T *v, T *v_l, T s, uint n) |
template<class T > | |
T | gtm::VectorNorm (T *v, uint n) |
template<class T > | |
void | gtm::VectorNormalize (T *v, T *v_o, uint n) |
template<class T > | |
void | gtm::MatrixPrint (std::ostream &o, T **ma, uint n, uint m) |
Functions for matrices. | |
template<class T > | |
T ** | gtm::MatrixAllocateMemory (uint n, uint m) |
template<class T > | |
void | gtm::MatrixAssignMemory (T **ma, T **ma_o, uint n, uint m) |
template<class T > | |
T ** | gtm::MatrixCopyMemory (T **ma, uint n, uint m) |
template<class T > | |
void | gtm::MatrixAssignScalar (T **ma, T s, uint n, uint m) |
template<class T > | |
void | gtm::MatrixVectorCast (T *v, T **ma, uint n, uint m, bool col) |
template<class T > | |
void | gtm::MatrixFreeMemory (T **ma, uint n) |
template<class T > | |
void | gtm::MatrixAdd (T **ma, T **ma_l, T **ma_r, uint n, uint m) |
template<class T > | |
void | gtm::MatrixSubtract (T **ma, T **ma_l, T **ma_r, uint n, uint m) |
template<class T > | |
void | gtm::MatrixProduct (T **ma, T **ma_l, T **ma_r, uint n, uint m, uint nr) |
template<class T > | |
void | gtm::MatrixScalarProduct (T **ma, T **ma_l, T s, uint n, uint m) |
template<class T > | |
void | gtm::MatrixCofactor (T **ma, T **ma_o, uint i, uint j, uint n, uint m) |
template<class T > | |
T | gtm::MatrixDeterminant (T **ma, uint n) |
template<class T > | |
void | gtm::MatrixInverseAdjoint (T **ma, T **ma_o, uint n) |
template<class T > | |
void | gtm::MatrixInverseGauss (T **ma, T **ma_o, uint n) |
template<class T > | |
void | gtm::MatrixTranspose (T **ma, T **ma_o, uint n, uint m) |
template<class T > | |
void | gtm::MatrixLoadIdentity (T **ma, uint n) |