Mercurial > hg > octave-lyh
comparison src/ov-scalar.h @ 4505:e944fbe3fff2
[project @ 2003-09-09 19:14:06 by jwe]
author | jwe |
---|---|
date | Tue, 09 Sep 2003 19:14:06 +0000 |
parents | d7d9ca19960a |
children | 65f47f8a92a2 |
comparison
equal
deleted
inserted
replaced
4504:f6a61399bc5c | 4505:e944fbe3fff2 |
---|---|
87 double scalar_value (bool = false) const { return scalar; } | 87 double scalar_value (bool = false) const { return scalar; } |
88 | 88 |
89 Matrix matrix_value (bool = false) const | 89 Matrix matrix_value (bool = false) const |
90 { return Matrix (1, 1, scalar); } | 90 { return Matrix (1, 1, scalar); } |
91 | 91 |
92 ArrayN<double> double_nd_array_value (bool = false) const | |
93 { return ArrayN<double> (Array<int> (1, 1), scalar); } | |
94 | |
92 Complex complex_value (bool = false) const { return scalar; } | 95 Complex complex_value (bool = false) const { return scalar; } |
93 | 96 |
94 ComplexMatrix complex_matrix_value (bool = false) const | 97 ComplexMatrix complex_matrix_value (bool = false) const |
95 { return ComplexMatrix (1, 1, Complex (scalar)); } | 98 { return ComplexMatrix (1, 1, Complex (scalar)); } |
96 | 99 |