GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
mx-m-cm.cc
Go to the documentation of this file.
1 // DO NOT EDIT -- generated by mk-ops.awk
2 #if defined (HAVE_CONFIG_H)
3 # include "config.h"
4 #endif
5 #include "Array-util.h"
6 #include "mx-m-cm.h"
7 #include "mx-op-defs.h"
8 #include "boolMatrix.h"
9 #include "boolNDArray.h"
10 #include "CMatrix.h"
11 #include "dMatrix.h"
12 
14 operator + (const Matrix& m1, const ComplexMatrix& m2)
15 {
16  return do_mm_binary_op<ComplexMatrix::element_type, Matrix::element_type, ComplexMatrix::element_type> (m1, m2, mx_inline_add, mx_inline_add, mx_inline_add, "operator +");
17 }
18 
20 operator - (const Matrix& m1, const ComplexMatrix& m2)
21 {
22  return do_mm_binary_op<ComplexMatrix::element_type, Matrix::element_type, ComplexMatrix::element_type> (m1, m2, mx_inline_sub, mx_inline_sub, mx_inline_sub, "operator -");
23 }
24 
26 product (const Matrix& m1, const ComplexMatrix& m2)
27 {
28  return do_mm_binary_op<ComplexMatrix::element_type, Matrix::element_type, ComplexMatrix::element_type> (m1, m2, mx_inline_mul, mx_inline_mul, mx_inline_mul, "product");
29 }
30 
32 quotient (const Matrix& m1, const ComplexMatrix& m2)
33 {
34  return do_mm_binary_op<ComplexMatrix::element_type, Matrix::element_type, ComplexMatrix::element_type> (m1, m2, mx_inline_div, mx_inline_div, mx_inline_div, "quotient");
35 }
Definition: dMatrix.h:42
void mx_inline_sub(std::size_t n, R *r, const X *x, const Y *y)
Definition: mx-inlines.cc:109
void mx_inline_div(std::size_t n, R *r, const X *x, const Y *y)
Definition: mx-inlines.cc:111
void mx_inline_add(std::size_t n, R *r, const X *x, const Y *y)
Definition: mx-inlines.cc:108
void mx_inline_mul(std::size_t n, R *r, const X *x, const Y *y)
Definition: mx-inlines.cc:110
ComplexMatrix operator-(const Matrix &m1, const ComplexMatrix &m2)
Definition: mx-m-cm.cc:20
ComplexMatrix operator+(const Matrix &m1, const ComplexMatrix &m2)
Definition: mx-m-cm.cc:14
ComplexMatrix product(const Matrix &m1, const ComplexMatrix &m2)
Definition: mx-m-cm.cc:26
ComplexMatrix quotient(const Matrix &m1, const ComplexMatrix &m2)
Definition: mx-m-cm.cc:32
#define MM_BOOL_OPS(M1, M2)
Definition: mx-op-defs.h:213
#define MM_CMP_OPS(M1, M2)
Definition: mx-op-defs.h:196