Wildmeshing Toolkit
Loading...
Searching...
No Matches
array_to_map.hpp
Go to the documentation of this file.
1
#pragma once
2
3
namespace
wmtk::utils
{
4
5
template
<
typename
T,
int
R,
int
C>
6
auto
array_to_map
(
const
T (&a)[R][C])
7
{
8
return
typename
Eigen::Matrix<T, R, C>::ConstMapType(a);
9
}
10
template
<
typename
T,
int
R,
int
C>
11
auto
array_to_map
(T (&a)[R][C])
12
{
13
return
typename
Eigen::Matrix<T, R, C>::MapType(a);
14
}
15
template
<
typename
T,
int
R>
16
auto
array_to_map
(
const
T (&a)[R])
17
{
18
return
typename
Eigen::Matrix<T, R, 1>::ConstMapType(a);
19
}
20
template
<
typename
T,
int
R>
21
auto
array_to_map
(T (&a)[R])
22
{
23
return
typename
Eigen::Matrix<T, R, 1>::MapType(a);
24
}
25
}
// namespace wmtk::utils
wmtk::utils
Definition
array_to_map.hpp:3
wmtk::utils::array_to_map
auto array_to_map(const T(&a)[R][C])
Definition
array_to_map.hpp:6
src
wmtk
utils
array_to_map.hpp
Generated by
1.9.8