-
Notifications
You must be signed in to change notification settings - Fork 0
/
matricesquare.h
40 lines (34 loc) · 890 Bytes
/
matricesquare.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef __MATRICESQUARE_H__
#define __MATRICESQUARE_H__
#include <matrice.h>
#include <arithmetic.h>
/**
* @brief Return the Matrice Identity of order.
*
* @param order int - the order of the Identity Matrice.
* @return Matrice - the Idendity Matrice.
*/
Matrice eye(int order);
/**
* @brief Invert a Matrice object
*
* @param m Matrice object to invert
* @return Matrice - the inverted matrice
*/
Matrice invertMatrice(Matrice m);
/**
* @brief Calculate efficiently the power of a Matrice object
*
* @param m Matrice - The Matrice to power
* @param n int - The exponent
* @return Matrice - The result of m^n
*/
Matrice powerMatrice(Matrice m, int n);
/**
* @brief Calculate the trace of a Matrice object
*
* @param m Matrice - the Matrice object to calculate the trace
* @return Complex - the trace of the matrice
*/
Complexe traceMatrice(Matrice m);
#endif