OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
matrix_t< Rows, Cols > Struct Template Reference

#include <Matrix.h>

Collaboration diagram for matrix_t< Rows, Cols >:
Collaboration graph

Public Member Functions

KOKKOS_INLINE_FUNCTION matrix_t ()
 
KOKKOS_INLINE_FUNCTION matrix_t (double init_value)
 
KOKKOS_INLINE_FUNCTION matrix_t (const matrix_t &right)
 
KOKKOS_INLINE_FUNCTION matrix_toperator= (const matrix_t &right)
 
KOKKOS_INLINE_FUNCTION double & operator() (int r, int c)
 
KOKKOS_INLINE_FUNCTION double operator() (int r, int c) const
 
KOKKOS_INLINE_FUNCTION int size1 () const
 
KOKKOS_INLINE_FUNCTION int size2 () const
 

Public Attributes

double m [Rows][Cols]
 

Detailed Description

template<int Rows, int Cols>
struct matrix_t< Rows, Cols >

Definition at line 29 of file Matrix.h.

Constructor & Destructor Documentation

◆ matrix_t() [1/3]

template<int Rows, int Cols>
KOKKOS_INLINE_FUNCTION matrix_t< Rows, Cols >::matrix_t ( )
inline

Definition at line 34 of file Matrix.h.

References matrix_t< Rows, Cols >::m.

◆ matrix_t() [2/3]

template<int Rows, int Cols>
KOKKOS_INLINE_FUNCTION matrix_t< Rows, Cols >::matrix_t ( double  init_value)
inline

Definition at line 50 of file Matrix.h.

References matrix_t< Rows, Cols >::m.

◆ matrix_t() [3/3]

template<int Rows, int Cols>
KOKKOS_INLINE_FUNCTION matrix_t< Rows, Cols >::matrix_t ( const matrix_t< Rows, Cols > &  right)
inline

Definition at line 60 of file Matrix.h.

References matrix_t< Rows, Cols >::m.

Member Function Documentation

◆ operator()() [1/2]

template<int Rows, int Cols>
KOKKOS_INLINE_FUNCTION double & matrix_t< Rows, Cols >::operator() ( int  r,
int  c 
)
inline

Definition at line 83 of file Matrix.h.

References matrix_t< Rows, Cols >::m.

◆ operator()() [2/2]

template<int Rows, int Cols>
KOKKOS_INLINE_FUNCTION double matrix_t< Rows, Cols >::operator() ( int  r,
int  c 
) const
inline

Definition at line 86 of file Matrix.h.

References matrix_t< Rows, Cols >::m.

◆ operator=()

template<int Rows, int Cols>
KOKKOS_INLINE_FUNCTION matrix_t & matrix_t< Rows, Cols >::operator= ( const matrix_t< Rows, Cols > &  right)
inline

Definition at line 70 of file Matrix.h.

References matrix_t< Rows, Cols >::m.

◆ size1()

template<int Rows, int Cols>
KOKKOS_INLINE_FUNCTION int matrix_t< Rows, Cols >::size1 ( ) const
inline

Definition at line 89 of file Matrix.h.

◆ size2()

template<int Rows, int Cols>
KOKKOS_INLINE_FUNCTION int matrix_t< Rows, Cols >::size2 ( ) const
inline

Definition at line 92 of file Matrix.h.

Member Data Documentation

◆ m


The documentation for this struct was generated from the following file: