Mercurial > octave
diff src/OPERATORS/op-sm-sm.cc @ 8150:283989f2da9b
make null assignment matlab compatible
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Fri, 26 Sep 2008 11:52:01 -0400 |
parents | 9c7073003700 |
children | eb63fbe60fab |
line wrap: on
line diff
--- a/src/OPERATORS/op-sm-sm.cc Thu Sep 25 13:44:51 2008 -0400 +++ b/src/OPERATORS/op-sm-sm.cc Fri Sep 26 11:52:01 2008 -0400 @@ -30,6 +30,7 @@ #include "ov.h" #include "ov-typeinfo.h" #include "ov-re-mat.h" +#include "ov-null-mat.h" #include "ops.h" #include "sparse-xpow.h" @@ -148,6 +149,8 @@ DEFASSIGNOP_FN (assign, sparse_matrix, sparse_matrix, assign) +DEFNULLASSIGNOP_FN (null_assign, sparse_matrix, delete_elements) + void install_sm_sm_ops (void) { @@ -186,6 +189,10 @@ INSTALL_ASSIGNOP (op_asn_eq, octave_sparse_matrix, octave_sparse_matrix, assign); + + INSTALL_ASSIGNOP (op_asn_eq, octave_sparse_matrix, octave_null_matrix, null_assign); + INSTALL_ASSIGNOP (op_asn_eq, octave_sparse_matrix, octave_null_str, null_assign); + INSTALL_ASSIGNOP (op_asn_eq, octave_sparse_matrix, octave_null_sq_str, null_assign); } /*