comparison doc/interpreter/external.txi @ 20222:998881b6cdef stable

external.txi: Fix example case for dim_vector (bug #45100).
author Piotr Held <pjheld@gmail.com>
date Wed, 13 May 2015 13:15:31 -0600
parents bf6a909d3d11
children b70cc4bd8109
comparison
equal deleted inserted replaced
20221:ac3746f39fab 20222:998881b6cdef
281 Define the dimensions of the matrix or array with a dim_vector which has 281 Define the dimensions of the matrix or array with a dim_vector which has
282 the same characteristics as the vector returned from @code{size}. For example: 282 the same characteristics as the vector returned from @code{size}. For example:
283 283
284 @example 284 @example
285 @group 285 @group
286 dim_vector dv (2); 286 dim_vector dv (2, 3); // 2 rows, 3 columns
287 dv(0) = 2; dv(1) = 3; // 2 rows, 3 columns
288 Matrix a (dv); 287 Matrix a (dv);
289 @end group 288 @end group
290 @end example 289 @end example
291 290
292 This can be used on all matrix and array types. 291 This can be used on all matrix and array types.