Mercurial > octave
comparison libinterp/corefcn/kron.cc @ 33250:40fde86be9b0
replace calls to error_* with corresponding panic_* functions in libinterp
Affected files: __isprimelarge__.cc, cellfun.cc, daspk.cc, dasrt.cc,
dassl.cc, data.cc, graphics.cc, kron.cc, mex.cc, oct-map.cc,
oct-stream.cc, pr-output.cc, schur.cc, variables.cc, and ops.h.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 25 Mar 2024 00:42:04 -0400 |
parents | f53ac65ffba6 |
children | c714266d9f0d |
comparison
equal
deleted
inserted
replaced
33249:06a308cae32c | 33250:40fde86be9b0 |
---|---|
53 | 53 |
54 template <typename R, typename T> | 54 template <typename R, typename T> |
55 static MArray<T> | 55 static MArray<T> |
56 kron (const MArray<R>& a, const MArray<T>& b) | 56 kron (const MArray<R>& a, const MArray<T>& b) |
57 { | 57 { |
58 error_unless (a.ndims () == 2); | 58 panic_unless (a.ndims () == 2); |
59 error_unless (b.ndims () == 2); | 59 panic_unless (b.ndims () == 2); |
60 | 60 |
61 octave_idx_type nra = a.rows (); | 61 octave_idx_type nra = a.rows (); |
62 octave_idx_type nrb = b.rows (); | 62 octave_idx_type nrb = b.rows (); |
63 octave_idx_type nca = a.cols (); | 63 octave_idx_type nca = a.cols (); |
64 octave_idx_type ncb = b.cols (); | 64 octave_idx_type ncb = b.cols (); |
84 | 84 |
85 template <typename R, typename T> | 85 template <typename R, typename T> |
86 static MArray<T> | 86 static MArray<T> |
87 kron (const MDiagArray2<R>& a, const MArray<T>& b) | 87 kron (const MDiagArray2<R>& a, const MArray<T>& b) |
88 { | 88 { |
89 error_unless (b.ndims () == 2); | 89 panic_unless (b.ndims () == 2); |
90 | 90 |
91 octave_idx_type nra = a.rows (); | 91 octave_idx_type nra = a.rows (); |
92 octave_idx_type nrb = b.rows (); | 92 octave_idx_type nrb = b.rows (); |
93 octave_idx_type dla = a.diag_length (); | 93 octave_idx_type dla = a.diag_length (); |
94 octave_idx_type nca = a.cols (); | 94 octave_idx_type nca = a.cols (); |