GNU Octave  4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
kron.cc File Reference
#include "dMatrix.h"
#include "fMatrix.h"
#include "CMatrix.h"
#include "fCMatrix.h"
#include "dSparse.h"
#include "CSparse.h"
#include "dDiagMatrix.h"
#include "fDiagMatrix.h"
#include "CDiagMatrix.h"
#include "fCDiagMatrix.h"
#include "PermMatrix.h"
#include "mx-inlines.cc"
#include "quit.h"
#include "defun.h"
#include "error.h"
#include "ovl.h"
Include dependency graph for kron.cc:

Go to the source code of this file.

Functions

octave_value dispatch_kron (const octave_value &a, const octave_value &b)
 
template<typename MTA , typename MTB >
octave_value do_kron (const octave_value &a, const octave_value &b)
 
OCTAVE_EXPORT octave_value_list Fkron (const octave_value_list &args, int) ar
 
 for (octave_idx_type i=2;i< nargin;i++) retval
 
this is well defined deftypefn * if (nargin< 2) print_usage()
 
template<typename R , typename T >
static MArray< T > kron (const MArray< R > &a, const MArray< T > &b)
 
template<typename R , typename T >
static MArray< T > kron (const MDiagArray2< R > &a, const MArray< T > &b)
 
template<typename T >
static MSparse< T > kron (const MSparse< T > &A, const MSparse< T > &B)
 
static PermMatrix kron (const PermMatrix &a, const PermMatrix &b)
 

Variables

octave_value a = args(0)
 
 ar {An} the Kronecker product is computed as xample kron (kron (ar{A1}, ar{A2}), ots{}, ar{An}) nd example oindent Since the Kronecker product is associative
 
octave_value b = args(1)
 
 ots
 
octave_value retval = dispatch_kron (a, b)
 

Function Documentation

octave_value dispatch_kron ( const octave_value a,
const octave_value b 
)
template<typename MTA , typename MTB >
octave_value do_kron ( const octave_value a,
const octave_value b 
)

Definition at line 155 of file kron.cc.

References a, b, kron(), and octave_value().

OCTAVE_EXPORT octave_value_list Fkron ( const octave_value_list args,
int   
)

Definition at line 267 of file kron.cc.

Referenced by install_kron_fcns().

for ( )
this is well defined deftypefn* if ( )
template<typename R , typename T >
static MArray<T> kron ( const MArray< R > &  a,
const MArray< T > &  b 
)
static
template<typename R , typename T >
static MArray<T> kron ( const MDiagArray2< R > &  a,
const MArray< T > &  b 
)
static
template<typename T >
static MSparse<T> kron ( const MSparse< T > &  A,
const MSparse< T > &  B 
)
static
static PermMatrix kron ( const PermMatrix a,
const PermMatrix b 
)
static

Definition at line 135 of file kron.cc.

References PermMatrix::col_perm_vec(), PermMatrix::rows(), and Array< T >::xelem().

Variable Documentation

Definition at line 276 of file kron.cc.

Referenced by dispatch_kron(), do_kron(), and kron().

ar {An} the Kronecker product is computed as xample kron (kron (ar{A1}, ar{A2}), ots{}, ar{An}) nd example oindent Since the Kronecker product is associative

Definition at line 267 of file kron.cc.

Definition at line 277 of file kron.cc.

Referenced by dispatch_kron(), and do_kron().

ots

Definition at line 267 of file kron.cc.

return retval = dispatch_kron (a, b)

Definition at line 274 of file kron.cc.

Referenced by dispatch_kron().