[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


From: Søren Hauberg
Subject: is_real_matrix()
Date: Sat, 01 Oct 2005 16:15:16 +0200

In C++ (using 2.9.3), I've been using the 'is_real_matrix' function, but
don't get the results I expect. This code:

if (args.length() != 1 || !args(0).is_real_matrix()) {
    error("Input argument must be real matrix\n");
    return ret;
Matrix Dkm1 = args(0).matrix_value();

doesn't return an error if args(0) is a string. It does however give me
this error:

error: invalid conversion from string to real matrix

So how do I check if an input argument is a real matrix?


Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]