GNU Octave 11.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 
Loading...
Searching...
No Matches
oct-convn.cc File Reference
#include <algorithm>
#include "Array-oct.h"
#include "CColVector.h"
#include "CMatrix.h"
#include "CNDArray.h"
#include "CRowVector.h"
#include "MArray.h"
#include "blas-proto.h"
#include "dColVector.h"
#include "dMatrix.h"
#include "dNDArray.h"
#include "dRowVector.h"
#include "f77-fcn.h"
#include "fCColVector.h"
#include "fCMatrix.h"
#include "fCNDArray.h"
#include "fCRowVector.h"
#include "fColVector.h"
#include "fMatrix.h"
#include "fNDArray.h"
#include "fRowVector.h"
#include "oct-convn.h"

Go to the source code of this file.

Macros

#define CONV_DEFS(TPREF, RPREF)
 

Functions

ComplexMatrix convn (const ComplexMatrix &a, const ColumnVector &c, const RowVector &r, convn_type ct)
 
ComplexMatrix convn (const ComplexMatrix &a, const ComplexColumnVector &c, const ComplexRowVector &r, convn_type ct)
 
ComplexMatrix convn (const ComplexMatrix &a, const ComplexMatrix &b, convn_type ct)
 
ComplexMatrix convn (const ComplexMatrix &a, const Matrix &b, convn_type ct)
 
ComplexNDArray convn (const ComplexNDArray &a, const ComplexNDArray &b, convn_type ct)
 
ComplexNDArray convn (const ComplexNDArray &a, const NDArray &b, convn_type ct)
 
FloatComplexMatrix convn (const FloatComplexMatrix &a, const FloatColumnVector &c, const FloatRowVector &r, convn_type ct)
 
FloatComplexMatrix convn (const FloatComplexMatrix &a, const FloatComplexColumnVector &c, const FloatComplexRowVector &r, convn_type ct)
 
FloatComplexMatrix convn (const FloatComplexMatrix &a, const FloatComplexMatrix &b, convn_type ct)
 
FloatComplexMatrix convn (const FloatComplexMatrix &a, const FloatMatrix &b, convn_type ct)
 
FloatComplexNDArray convn (const FloatComplexNDArray &a, const FloatComplexNDArray &b, convn_type ct)
 
FloatComplexNDArray convn (const FloatComplexNDArray &a, const FloatNDArray &b, convn_type ct)
 
FloatMatrix convn (const FloatMatrix &a, const FloatColumnVector &c, const FloatRowVector &r, convn_type ct)
 
FloatMatrix convn (const FloatMatrix &a, const FloatMatrix &b, convn_type ct)
 
FloatNDArray convn (const FloatNDArray &a, const FloatNDArray &b, convn_type ct)
 
Matrix convn (const Matrix &a, const ColumnVector &c, const RowVector &r, convn_type ct)
 
Matrix convn (const Matrix &a, const Matrix &b, convn_type ct)
 
NDArray convn (const NDArray &a, const NDArray &b, convn_type ct)
 
template<typename T , typename R >
void convolve_nd (const T *a, const dim_vector &ad, const dim_vector &acd, const R *b, const dim_vector &bd, const dim_vector &bcd, T *c, const dim_vector &ccd, int nd, bool inner)
 

Macro Definition Documentation

◆ CONV_DEFS

#define CONV_DEFS (   TPREF,
  RPREF 
)
Value:
TPREF ## NDArray \
convn (const TPREF ## NDArray& a, const RPREF ## NDArray& b, \
convn_type ct) \
{ \
return convolve (a, b, ct); \
} \
TPREF ## Matrix \
convn (const TPREF ## Matrix& a, const RPREF ## Matrix& b, \
convn_type ct) \
{ \
return convolve (a, b, ct); \
} \
TPREF ## Matrix \
convn (const TPREF ## Matrix& a, const RPREF ## ColumnVector& c, \
const RPREF ## RowVector& r, convn_type ct) \
{ \
return convolve (a, c * r, ct); \
}
convn_type
Definition oct-convn.h:52

Definition at line 264 of file oct-convn.cc.

Function Documentation

◆ convn() [1/18]

ComplexMatrix convn ( const ComplexMatrix a,
const ColumnVector c,
const RowVector r,
convn_type  ct 
)

Definition at line 285 of file oct-convn.cc.

◆ convn() [2/18]

ComplexMatrix convn ( const ComplexMatrix a,
const ComplexColumnVector c,
const ComplexRowVector r,
convn_type  ct 
)

Definition at line 286 of file oct-convn.cc.

◆ convn() [3/18]

ComplexMatrix convn ( const ComplexMatrix a,
const ComplexMatrix b,
convn_type  ct 
)

Definition at line 286 of file oct-convn.cc.

◆ convn() [4/18]

ComplexMatrix convn ( const ComplexMatrix a,
const Matrix b,
convn_type  ct 
)

Definition at line 285 of file oct-convn.cc.

◆ convn() [5/18]

ComplexNDArray convn ( const ComplexNDArray a,
const ComplexNDArray b,
convn_type  ct 
)

Definition at line 286 of file oct-convn.cc.

◆ convn() [6/18]

ComplexNDArray convn ( const ComplexNDArray a,
const NDArray b,
convn_type  ct 
)

Definition at line 285 of file oct-convn.cc.

◆ convn() [7/18]

FloatComplexMatrix convn ( const FloatComplexMatrix a,
const FloatColumnVector c,
const FloatRowVector r,
convn_type  ct 
)

Definition at line 288 of file oct-convn.cc.

◆ convn() [8/18]

FloatComplexMatrix convn ( const FloatComplexMatrix a,
const FloatComplexColumnVector c,
const FloatComplexRowVector r,
convn_type  ct 
)

Definition at line 289 of file oct-convn.cc.

◆ convn() [9/18]

FloatComplexMatrix convn ( const FloatComplexMatrix a,
const FloatComplexMatrix b,
convn_type  ct 
)

Definition at line 289 of file oct-convn.cc.

◆ convn() [10/18]

FloatComplexMatrix convn ( const FloatComplexMatrix a,
const FloatMatrix b,
convn_type  ct 
)

Definition at line 288 of file oct-convn.cc.

◆ convn() [11/18]

FloatComplexNDArray convn ( const FloatComplexNDArray a,
const FloatComplexNDArray b,
convn_type  ct 
)

Definition at line 289 of file oct-convn.cc.

◆ convn() [12/18]

FloatComplexNDArray convn ( const FloatComplexNDArray a,
const FloatNDArray b,
convn_type  ct 
)

Definition at line 288 of file oct-convn.cc.

◆ convn() [13/18]

FloatMatrix convn ( const FloatMatrix a,
const FloatColumnVector c,
const FloatRowVector r,
convn_type  ct 
)

Definition at line 287 of file oct-convn.cc.

◆ convn() [14/18]

FloatMatrix convn ( const FloatMatrix a,
const FloatMatrix b,
convn_type  ct 
)

Definition at line 287 of file oct-convn.cc.

◆ convn() [15/18]

FloatNDArray convn ( const FloatNDArray a,
const FloatNDArray b,
convn_type  ct 
)

Definition at line 287 of file oct-convn.cc.

◆ convn() [16/18]

Matrix convn ( const Matrix a,
const ColumnVector c,
const RowVector r,
convn_type  ct 
)

Definition at line 284 of file oct-convn.cc.

◆ convn() [17/18]

Matrix convn ( const Matrix a,
const Matrix b,
convn_type  ct 
)

Definition at line 284 of file oct-convn.cc.

◆ convn() [18/18]

NDArray convn ( const NDArray a,
const NDArray b,
convn_type  ct 
)

Definition at line 284 of file oct-convn.cc.

Referenced by Fconv2(), and Fconvn().

◆ convolve_nd()

template<typename T , typename R >
void convolve_nd ( const T *  a,
const dim_vector ad,
const dim_vector acd,
const R *  b,
const dim_vector bd,
const dim_vector bcd,
T *  c,
const dim_vector ccd,
int  nd,
bool  inner 
)

Definition at line 135 of file oct-convn.cc.