Tinker9 70bd052 (Thu Nov 9 12:11:35 2023 -0800)
Loading...
Searching...
No Matches
trimatexp.h
1#pragma once
2
3namespace tinker {
10template <class T>
11void matmul3(T R[3][3], T A[3][3], T B[3][3]);
12
18template <class T>
19void matmul3(T R[3][3], T A[3][3]);
20
29template <class T>
30void trimatExp(T ans[3][3], T m[3][3], T t);
31
40template <class T>
41void trimatExpm1c(T ans[3][3], T m[3][3], T t);
42
51template <class T>
52void trimatTExpm1c(T ans[3][3], T m[3][3], T t)
53{
54 trimatExpm1c(ans, m, t);
55 for (int i = 0; i < 3; ++i)
56 for (int j = 0; j < 3; ++j)
57 ans[i][j] *= t;
58}
59}
void trimatExp(T ans[3][3], T m[3][3], T t)
. Matrix m is 3 by 3 upper triangular. Matrices are stored in the row-major order (C-style).
void trimatTExpm1c(T ans[3][3], T m[3][3], T t)
. Matrix m is 3 by 3 upper triangular. Matrices are stored in the row-major order (C-style).
Definition: trimatexp.h:52
void matmul3(T R[3][3], T A[3][3], T B[3][3])
Matrix multiplication of two 3 by 3 matrices. . Matrices are stored in the row-major order (C-style).
void trimatExpm1c(T ans[3][3], T m[3][3], T t)
. Matrix m is 3 by 3 upper triangular. Matrices are stored in the row-major order (C-style).
Definition: testrt.h:9