SimiLie
Loading...
Searching...
No Matches
sil::misc::math Namespace Reference

Typedefs

template<class Scalar , class MemorySpace >
using unmanaged_matrix_view_t
 
template<class Scalar , class MemorySpace >
using unmanaged_vector_view_t
 

Functions

template<class Scalar , class MemorySpace >
KOKKOS_FUNCTION unmanaged_matrix_view_t< Scalar, MemorySpace > matrix_view (Scalar *data, std::size_t rows, std::size_t cols)
 
template<class Scalar , class MemorySpace >
KOKKOS_FUNCTION unmanaged_vector_view_t< Scalar, MemorySpace > vector_view (Scalar *data, std::size_t n)
 
template<class MatrixView >
KOKKOS_FUNCTION void fill_identity (MatrixView matrix)
 
template<class MatrixView1 , class MatrixView2 >
KOKKOS_FUNCTION void copy_matrix (MatrixView1 dst, MatrixView2 src)
 
template<class MatrixView , class RowIds , class ColIds , class SubmatrixView >
KOKKOS_FUNCTION void extract_submatrix (SubmatrixView submatrix, MatrixView matrix, RowIds const &row_ids, ColIds const &col_ids)
 
template<class MatrixView >
KOKKOS_FUNCTION MatrixView::non_const_value_type determinant (MatrixView matrix)
 
template<class InverseView , class MatrixView , class WorkspaceView >
KOKKOS_FUNCTION bool invert (InverseView inverse, MatrixView matrix, WorkspaceView workspace)
 
template<std::size_t N, class MatrixView , class RowIds , class ColIds >
KOKKOS_FUNCTION double submatrix_determinant (MatrixView matrix, RowIds const &row_ids, ColIds const &col_ids, std::array< double, N *N > &submatrix_alloc)
 

Typedef Documentation

◆ unmanaged_matrix_view_t

template<class Scalar , class MemorySpace >
using sil::misc::math::unmanaged_matrix_view_t
Initial value:
Kokkos::
View<Scalar**, Kokkos::LayoutRight, MemorySpace, Kokkos::MemoryTraits<Kokkos::Unmanaged>>

Definition at line 14 of file small_matrix.hpp.

◆ unmanaged_vector_view_t

template<class Scalar , class MemorySpace >
using sil::misc::math::unmanaged_vector_view_t
Initial value:
Kokkos::
View<Scalar*, Kokkos::LayoutRight, MemorySpace, Kokkos::MemoryTraits<Kokkos::Unmanaged>>

Definition at line 18 of file small_matrix.hpp.

Function Documentation

◆ matrix_view()

template<class Scalar , class MemorySpace >
KOKKOS_FUNCTION unmanaged_matrix_view_t< Scalar, MemorySpace > sil::misc::math::matrix_view ( Scalar * data,
std::size_t rows,
std::size_t cols )

Definition at line 22 of file small_matrix.hpp.

◆ vector_view()

template<class Scalar , class MemorySpace >
KOKKOS_FUNCTION unmanaged_vector_view_t< Scalar, MemorySpace > sil::misc::math::vector_view ( Scalar * data,
std::size_t n )

Definition at line 31 of file small_matrix.hpp.

◆ fill_identity()

template<class MatrixView >
KOKKOS_FUNCTION void sil::misc::math::fill_identity ( MatrixView matrix)

Definition at line 39 of file small_matrix.hpp.

◆ copy_matrix()

template<class MatrixView1 , class MatrixView2 >
KOKKOS_FUNCTION void sil::misc::math::copy_matrix ( MatrixView1 dst,
MatrixView2 src )

Definition at line 49 of file small_matrix.hpp.

◆ extract_submatrix()

template<class MatrixView , class RowIds , class ColIds , class SubmatrixView >
KOKKOS_FUNCTION void sil::misc::math::extract_submatrix ( SubmatrixView submatrix,
MatrixView matrix,
RowIds const & row_ids,
ColIds const & col_ids )

Definition at line 60 of file small_matrix.hpp.

◆ determinant()

template<class MatrixView >
KOKKOS_FUNCTION MatrixView::non_const_value_type sil::misc::math::determinant ( MatrixView matrix)

Definition at line 75 of file small_matrix.hpp.

◆ invert()

template<class InverseView , class MatrixView , class WorkspaceView >
KOKKOS_FUNCTION bool sil::misc::math::invert ( InverseView inverse,
MatrixView matrix,
WorkspaceView workspace )

Definition at line 120 of file small_matrix.hpp.

◆ submatrix_determinant()

template<std::size_t N, class MatrixView , class RowIds , class ColIds >
KOKKOS_FUNCTION double sil::misc::math::submatrix_determinant ( MatrixView matrix,
RowIds const & row_ids,
ColIds const & col_ids,
std::array< double, N *N > & submatrix_alloc )

Definition at line 183 of file small_matrix.hpp.