-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmath_adv.h
More file actions
30 lines (24 loc) · 1.07 KB
/
Copy pathmath_adv.h
File metadata and controls
30 lines (24 loc) · 1.07 KB
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
//============================================================================
// Mini Spin-X Library
//
// Copyright (c) 2024, Jarkko Lempiainen
// All rights reserved.
//============================================================================
#ifndef PFC_CORE_MATH_ADV_H
#define PFC_CORE_MATH_ADV_H
//----------------------------------------------------------------------------
//============================================================================
// interface
//============================================================================
// external
#include "math.h"
namespace pfc
{
// new
template<typename T> vec3<T> eigenvalues_sym(const mat33<T>&); // return eigenvalues of a symmetric 3x3 matrix
template<typename T> vec3<T> eigenvector_pow(const mat33<T>&); // return maximum eigenvector for 3x3 matrix using power method
//----------------------------------------------------------------------------
//============================================================================
#include "math_adv.inl"
} // namespace pfc
#endif