Mercurial > octave-nkf
comparison src/OPERATORS/op-m-sm.cc @ 5760:8d7162924bd3
[project @ 2006-04-14 04:01:37 by jwe]
author | jwe |
---|---|
date | Fri, 14 Apr 2006 04:01:40 +0000 |
parents | 2042301733ce |
children | 6b9cec830d72 |
comparison
equal
deleted
inserted
replaced
5759:ce79d238f142 | 5760:8d7162924bd3 |
---|---|
45 | 45 |
46 DEFBINOP_OP (mul, matrix, sparse_matrix, *) | 46 DEFBINOP_OP (mul, matrix, sparse_matrix, *) |
47 | 47 |
48 DEFBINOP (div, matrix, sparse_matrix) | 48 DEFBINOP (div, matrix, sparse_matrix) |
49 { | 49 { |
50 CAST_BINOP_ARGS (const octave_matrix&, octave_sparse_matrix&); | 50 CAST_BINOP_ARGS (const octave_matrix&, const octave_sparse_matrix&); |
51 SparseType typ = v2.sparse_type (); | 51 SparseType typ = v2.sparse_type (); |
52 | 52 |
53 Matrix ret = xdiv (v1.matrix_value (), v2.sparse_matrix_value (), typ); | 53 Matrix ret = xdiv (v1.matrix_value (), v2.sparse_matrix_value (), typ); |
54 | 54 |
55 v2.sparse_type (typ); | 55 v2.sparse_type (typ); |