MiniTensor Version of the Day
Loading...
Searching...
No Matches
Sacado::Matrix< T, M, N > Class Template Reference

#include <MiniTensor_Matrix.h>

Inheritance diagram for Sacado::Matrix< T, M, N >:
minitensor::TensorBase< T, matrix_store< T, DYNAMIC, DYNAMIC > >

Public Types

using Store = matrix_store<T, M, N>
Public Types inherited from minitensor::TensorBase< T, matrix_store< T, DYNAMIC, DYNAMIC > >
using value_type
using storage_type

Public Member Functions

KOKKOS_INLINE_FUNCTION Matrix ()
KOKKOS_INLINE_FUNCTION Matrix (Index const rows, Index const cols)
KOKKOS_INLINE_FUNCTION Matrix (Filler const value)
KOKKOS_INLINE_FUNCTION Matrix (Index const rows, Index cols, Filler const value)
template<class ArrayT>
KOKKOS_INLINE_FUNCTION Matrix (Source const source, ArrayT &data, Index index1)
template<class ArrayT>
KOKKOS_INLINE_FUNCTION Matrix (Source const source, ArrayT &data, Index index1, Index index2)
template<class ArrayT>
KOKKOS_INLINE_FUNCTION Matrix (Source const source, ArrayT &data, Index index1, Index index2, Index index3)
template<class ArrayT>
KOKKOS_INLINE_FUNCTION Matrix (Source const source, ArrayT &data, Index index1, Index index2, Index index3, Index index4)
template<class ArrayT>
KOKKOS_INLINE_FUNCTION Matrix (Source const source, ArrayT &data, Index index1, Index index2, Index index3, Index index4, Index index5)
template<class ArrayT>
KOKKOS_INLINE_FUNCTION Matrix (Source const source, ArrayT &data, Index index1, Index index2, Index index3, Index index4, Index index5, Index index6)
template<class ArrayT>
KOKKOS_INLINE_FUNCTION Matrix (Source const source, Index const rows, Index const cols, ArrayT &data, Index index1)
template<class ArrayT>
KOKKOS_INLINE_FUNCTION Matrix (Source const source, Index const rows, Index const cols, ArrayT &data, Index index1, Index index2)
template<class ArrayT>
KOKKOS_INLINE_FUNCTION Matrix (Source const source, Index const rows, Index const cols, ArrayT &data, Index index1, Index index2, Index index3)
template<class ArrayT>
KOKKOS_INLINE_FUNCTION Matrix (Source const source, Index const rows, Index const cols, ArrayT &data, Index index1, Index index2, Index index3, Index index4)
template<class ArrayT>
KOKKOS_INLINE_FUNCTION Matrix (Source const source, Index const rows, Index const cols, ArrayT &data, Index index1, Index index2, Index index3, Index index4, Index index5)
template<class ArrayT>
KOKKOS_INLINE_FUNCTION Matrix (Source const source, Index const rows, Index const cols, ArrayT &data, Index index1, Index index2, Index index3, Index index4, Index index5, Index index6)
KOKKOS_INLINE_FUNCTION Matrix (T const *data_ptr)
KOKKOS_INLINE_FUNCTION Matrix (Index const rows, Index cols, T const *data_ptr)
KOKKOS_INLINE_FUNCTION Matrix (Matrix< T, M, N > const &A)
virtual KOKKOS_INLINE_FUNCTION ~Matrix ()
KOKKOS_INLINE_FUNCTION T const & operator() (Index const i, Index const j) const
KOKKOS_INLINE_FUNCTION T & operator() (Index const i, Index const j)
std::pair< Index, Index > get_dimensions () const
KOKKOS_INLINE_FUNCTION Index get_num_rows () const
KOKKOS_INLINE_FUNCTION Index get_num_cols () const
KOKKOS_INLINE_FUNCTION void set_dimensions (Index const rows, Index const cols)
Public Member Functions inherited from minitensor::TensorBase< T, matrix_store< T, DYNAMIC, DYNAMIC > >
KOKKOS_INLINE_FUNCTION TensorBase ()
KOKKOS_INLINE_FUNCTION TensorBase< T, matrix_store< T, DYNAMIC, DYNAMIC > > & operator= (TensorBase< T, matrix_store< T, DYNAMIC, DYNAMIC > > const &X)
KOKKOS_INLINE_FUNCTION T const & operator[] (Index const i) const
KOKKOS_INLINE_FUNCTION Index get_number_components () const
KOKKOS_INLINE_FUNCTION void fill (Filler const value)
KOKKOS_INLINE_FUNCTION TensorBase< T, matrix_store< T, DYNAMIC, DYNAMIC > > & operator+= (TensorBase< S, SS > const &X)
KOKKOS_INLINE_FUNCTION TensorBase< T, matrix_store< T, DYNAMIC, DYNAMIC > > & operator-= (TensorBase< S, SS > const &X)
KOKKOS_INLINE_FUNCTION TensorBase< T, matrix_store< T, DYNAMIC, DYNAMIC > > & operator*= (S const &X)
KOKKOS_INLINE_FUNCTION TensorBase< T, matrix_store< T, DYNAMIC, DYNAMIC > > & operator/= (S const &X)
KOKKOS_INLINE_FUNCTION void clear ()

Static Public Member Functions

static KOKKOS_INLINE_FUNCTION constexpr Index get_order ()

Static Public Attributes

static constexpr Index ORDER = 1
static constexpr bool IS_DYNAMIC = (M == DYNAMIC || N == DYNAMIC)

Private Attributes

Index rows_ {M}
Index cols_ {N}

Additional Inherited Members

Protected Member Functions inherited from minitensor::TensorBase< T, matrix_store< T, DYNAMIC, DYNAMIC > >
KOKKOS_INLINE_FUNCTION void set_number_components (Index const number_components)
KOKKOS_INLINE_FUNCTION Index get_dimension (Index const order) const
KOKKOS_INLINE_FUNCTION void set_dimension (Index const dimension, Index const order)
Protected Attributes inherited from minitensor::TensorBase< T, matrix_store< T, DYNAMIC, DYNAMIC > >
matrix_store< T, DYNAMIC, DYNAMIC > components_
Index dimension_

Detailed Description

template<typename T, Index M = DYNAMIC, Index N = DYNAMIC>
class Sacado::Matrix< T, M, N >

General rectangular matrix.

Definition at line 37 of file MiniTensor_Matrix.h.


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