mirror of
https://github.com/boostorg/ublas.git
synced 2026-02-23 16:12:09 +00:00
Sizing constructor required for Vector/Matrix Concept
svn path=/trunk/boost/boost/numeric/ublas/; revision=25309
This commit is contained in:
@@ -2926,7 +2926,7 @@ namespace boost { namespace numeric { namespace ublas {
|
||||
matrix_expression<self_type> (),
|
||||
size1_ (0), size2_ (0), value_ () {}
|
||||
BOOST_UBLAS_INLINE
|
||||
scalar_matrix (size_type size1, size_type size2, const value_type &value):
|
||||
scalar_matrix (size_type size1, size_type size2, const value_type &value = value_type(1)):
|
||||
matrix_expression<self_type> (),
|
||||
size1_ (size1), size2_ (size2), value_ (value) {}
|
||||
BOOST_UBLAS_INLINE
|
||||
|
||||
@@ -594,7 +594,7 @@ namespace boost { namespace numeric { namespace ublas {
|
||||
vector_expression<self_type> (),
|
||||
size_ (0), index_ (0) {}
|
||||
BOOST_UBLAS_INLINE
|
||||
unit_vector (size_type size, size_type index):
|
||||
explicit unit_vector (size_type size, size_type index = 0):
|
||||
vector_expression<self_type> (),
|
||||
size_ (size), index_ (index) {}
|
||||
BOOST_UBLAS_INLINE
|
||||
@@ -1062,7 +1062,7 @@ namespace boost { namespace numeric { namespace ublas {
|
||||
vector_expression<self_type> (),
|
||||
size_ (0), value_ () {}
|
||||
BOOST_UBLAS_INLINE
|
||||
scalar_vector (size_type size, const value_type &value):
|
||||
explicit scalar_vector (size_type size, const value_type &value = value_type(1)):
|
||||
vector_expression<self_type> (),
|
||||
size_ (size), value_ (value) {}
|
||||
BOOST_UBLAS_INLINE
|
||||
|
||||
Reference in New Issue
Block a user