GNU Octave
4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
sparse-xpow.h
Go to the documentation of this file.
1
/*
2
3
Copyright (C) 2004-2018 David Bateman
4
Copyright (C) 1998-2004 Andy Adler
5
6
This file is part of Octave.
7
8
Octave is free software: you can redistribute it and/or modify it
9
under the terms of the GNU General Public License as published by
10
the Free Software Foundation, either version 3 of the License, or
11
(at your option) any later version.
12
13
Octave is distributed in the hope that it will be useful, but
14
WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
GNU General Public License for more details.
17
18
You should have received a copy of the GNU General Public License
19
along with Octave; see the file COPYING. If not, see
20
<https://www.gnu.org/licenses/>.
21
22
*/
23
24
#if ! defined (octave_sparse_xpow_h)
25
#define octave_sparse_xpow_h 1
26
27
#include "octave-config.h"
28
29
#include "
oct-cmplx.h
"
30
31
class
SparseMatrix
;
32
class
SparseComplexMatrix
;
33
class
octave_value
;
34
35
extern
octave_value
xpow
(
const
SparseMatrix
&
a
,
double
b
);
36
extern
octave_value
xpow
(
const
SparseComplexMatrix
&
a
,
double
b
);
37
38
extern
octave_value
elem_xpow
(
double
a
,
const
SparseMatrix
&
b
);
39
extern
octave_value
elem_xpow
(
double
a
,
const
SparseComplexMatrix
&
b
);
40
41
extern
octave_value
elem_xpow
(
const
SparseMatrix
&
a
,
double
b
);
42
extern
octave_value
elem_xpow
(
const
SparseMatrix
&
a
,
const
SparseMatrix
&
b
);
43
extern
octave_value
elem_xpow
(
const
SparseMatrix
&
a
,
const
Complex
&
b
);
44
extern
octave_value
elem_xpow
(
const
SparseMatrix
&
a
,
45
const
SparseComplexMatrix
&
b
);
46
47
extern
octave_value
elem_xpow
(
const
Complex
&
a
,
const
SparseMatrix
&
b
);
48
extern
octave_value
elem_xpow
(
const
Complex
&
a
,
49
const
SparseComplexMatrix
&
b
);
50
51
extern
octave_value
elem_xpow
(
const
SparseComplexMatrix
&
a
,
double
b
);
52
extern
octave_value
elem_xpow
(
const
SparseComplexMatrix
&
a
,
53
const
SparseMatrix
&
b
);
54
extern
octave_value
elem_xpow
(
const
SparseComplexMatrix
&
a
,
55
const
Complex
&
b
);
56
extern
octave_value
elem_xpow
(
const
SparseComplexMatrix
&
a
,
57
const
SparseComplexMatrix
&
b
);
58
59
#endif
oct-cmplx.h
octave_value
Definition:
ov.h:75
SparseComplexMatrix
Definition:
CSparse.h:47
elem_xpow
octave_value elem_xpow(double a, const SparseMatrix &b)
Definition:
sparse-xpow.cc:247
a
calling an anonymous function involves an overhead quite comparable to the overhead of an m file function Passing a handle to a built in function is because the interpreter is not involved in the internal loop For a
Definition:
cellfun.cc:400
SparseMatrix
Definition:
dSparse.h:44
xpow
octave_value xpow(const SparseMatrix &a, double b)
Definition:
sparse-xpow.cc:58
b
b
Definition:
cellfun.cc:400
Complex
std::complex< double > Complex
Definition:
oct-cmplx.h:31
libinterp
corefcn
sparse-xpow.h
Generated on Sat Sep 1 2018 14:01:40 for GNU Octave by
1.8.14