1 /* ///////////////////////////////////////////////////////////////////////
2 * File: sparse_matrix.h
7 * Brief: sparse_matrix class
10 * Copyright (c) 2008-2020, Waruqi All rights reserved.
11 * //////////////////////////////////////////////////////////////////// */
13 #ifndef EXTL_CONTAINER_SPARSE_MATRIX_H
14 #define EXTL_CONTAINER_SPARSE_MATRIX_H
16 /*!\file sparse_matrix.h
17 * \brief sparse_matrix class
20 /* ///////////////////////////////////////////////////////////////////////
24 #include "sparse_matrix_base.h"
26 /* ///////////////////////////////////////////////////////////////////////
32 /*!\brief: sparse_matrix class
34 * \param Val The element type
36 * \ingroup extl_group_container
38 template<typename_param_k Val
>
40 : public sparse_matrix_base
< sparse_matrix
<Val
>
45 typedef sparse_matrix_base
< sparse_matrix
<Val
>
52 typedef sparse_matrix class_type
;
53 typedef typename_type_k
base_type::buffer_type buffer_type
;
54 typedef typename_type_k
base_type::allocator_type allocator_type
;
55 typedef typename_type_k
base_type::value_type value_type
;
56 typedef typename_type_k
base_type::pointer pointer
;
57 typedef typename_type_k
base_type::const_pointer const_pointer
;
58 typedef typename_type_k
base_type::reference reference
;
59 typedef typename_type_k
base_type::const_reference const_reference
;
60 typedef typename_type_k
base_type::size_type size_type
;
61 typedef typename_type_k
base_type::bool_type bool_type
;
62 typedef typename_type_k
base_type::difference_type difference_type
;
63 typedef typename_type_k
base_type::int_type int_type
;
64 typedef typename_type_k
base_type::index_type index_type
;
67 /// \name Constructors
74 sparse_matrix(class_type
const& rhs
)
78 sparse_matrix(index_type d0
, index_type d1
)
87 class_type
& operator=(class_type
const& rhs
) { return base_type::operator=(rhs
); }
92 /* ///////////////////////////////////////////////////////////////////////
97 /* //////////////////////////////////////////////////////////////////// */
98 #endif /* EXTL_CONTAINER_SPARSE_MATRIX_H */
99 /* //////////////////////////////////////////////////////////////////// */