[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
zeros, ones, eye with integer type args...
From: |
John W. Eaton |
Subject: |
zeros, ones, eye with integer type args... |
Date: |
Tue, 31 Aug 2004 13:29:22 -0400 |
On 30-Aug-2004, David Bateman <address@hidden> wrote:
| Here is a patch to allow ones, zeros and eye to return integer types
| without first creating the floating point matrix. That is
|
| ones (2,"int8")
|
| for example. Also "repmat" was broken with integer types due to its
| use of kron, which doesn't handle integer types. This patch removes
| this limitation.
I applied this patch, then made some additional changes to use the
oct_data_conv::data_type enum in liboctave/data-conv.h and some type
traits so we can use templates instead of macros.
| But doesn't fix kron to allow integer types. The
| function "kron" probably should also be adapted.
OK.
Thanks,
jwe