5 #pragma GCC optimize("O3") 11 template <
typename T, u
int8_t N>
14 for (uint8_t i = 0; i <
N; i++) {
15 for (uint8_t j = 0; j <
N; j++) {
16 v[i][j] = A[i] * B[j];
22 template <
typename T, u
int8_t N>
25 for (uint8_t i = 0; i <
N; i++) {
26 for (uint8_t j = 0; j <
N; j++) {
34 template <
typename T, u
int8_t N>
37 for (uint8_t i = 0; i <
N; i++) {
38 for (uint8_t j = 0; j <
N; j++) {
46 template <
typename T, u
int8_t N>
49 for (uint8_t i = 0; i <
N; i++) {
50 for (uint8_t j = 0; j < (i - 1); j++) {
51 v[i][j] = (
v[i][j] +
v[j][i]) * 0.5;
void mult(const VectorN< T, N > &A, const VectorN< T, N > &B)
void force_symmetry(void)
MatrixN< T, N > & operator+=(const MatrixN< T, N > &B)
MatrixN< T, N > & operator-=(const MatrixN< T, N > &B)