GNU Octave  3.8.0
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
Macros | Functions
op-dms-template.cc File Reference
#include "ops.h"
#include "gripes.h"
#include "xpow.h"
#include "ov-complex.h"
#include "ov-cx-diag.h"
#include <SINCLUDE>
#include <MINCLUDE>
Include dependency graph for op-dms-template.cc:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define INST_NAME   CONCAT3(install_, SHORT_NAME, _ops)
#define MATRIX_VALUE   CONCAT2(MATRIXV, _value)
#define MATRIXV   MATRIX
#define OCTAVE_MATRIX   CONCAT2(octave_, MATRIX)
#define OCTAVE_SCALAR   CONCAT2(octave_, SCALAR)
#define SCALAR_VALUE   CONCAT2(SCALARV, _value)
#define SCALARV   SCALAR
#define SHORT_NAME   CONCAT3(MSHORT, _, SSHORT)

Functions

template<class T >
static T gripe_if_zero (T x)
void install_MSHORT_SSHORT_ops (void)
static octave_value oct_binop_dmsdiv (const octave_base_value &a1, const octave_base_value &a2)
static octave_value oct_binop_dmsmul (const octave_base_value &a1, const octave_base_value &a2)
static octave_value oct_binop_dmspow (const octave_base_value &a1, const octave_base_value &a2)
static octave_value oct_binop_sdmldiv (const octave_base_value &a1, const octave_base_value &a2)
static octave_value oct_binop_sdmmul (const octave_base_value &a1, const octave_base_value &a2)

Macro Definition Documentation

#define INST_NAME   CONCAT3(install_, SHORT_NAME, _ops)

Definition at line 82 of file op-dms-template.cc.

#define MATRIX_VALUE   CONCAT2(MATRIXV, _value)

Definition at line 48 of file op-dms-template.cc.

#define MATRIXV   MATRIX

Definition at line 40 of file op-dms-template.cc.

#define OCTAVE_MATRIX   CONCAT2(octave_, MATRIX)
#define OCTAVE_SCALAR   CONCAT2(octave_, SCALAR)
#define SCALAR_VALUE   CONCAT2(SCALARV, _value)

Definition at line 49 of file op-dms-template.cc.

#define SCALARV   SCALAR

Definition at line 36 of file op-dms-template.cc.

#define SHORT_NAME   CONCAT3(MSHORT, _, SSHORT)

Definition at line 81 of file op-dms-template.cc.

Function Documentation

template<class T >
static T gripe_if_zero ( x)
static

Definition at line 53 of file op-dms-template.cc.

References gripe_divide_by_zero(), and x.

Referenced by oct_binop_dmsdiv(), and oct_binop_sdmldiv().

void install_MSHORT_SSHORT_ops ( void  )
static octave_value oct_binop_dmsdiv ( const octave_base_value a1,
const octave_base_value a2 
)
static

Definition at line 60 of file op-dms-template.cc.

References CAST_BINOP_ARGS, gripe_if_zero(), OCTAVE_MATRIX, OCTAVE_SCALAR, v1, and v2.

static octave_value oct_binop_dmsmul ( const octave_base_value a1,
const octave_base_value a2 
)
static

Definition at line 44 of file op-dms-template.cc.

static octave_value oct_binop_dmspow ( const octave_base_value a1,
const octave_base_value a2 
)
static

Definition at line 74 of file op-dms-template.cc.

References CAST_BINOP_ARGS, OCTAVE_MATRIX, OCTAVE_SCALAR, v1, v2, and xpow().

static octave_value oct_binop_sdmldiv ( const octave_base_value a1,
const octave_base_value a2 
)
static

Definition at line 67 of file op-dms-template.cc.

References CAST_BINOP_ARGS, gripe_if_zero(), OCTAVE_MATRIX, OCTAVE_SCALAR, v1, and v2.

static octave_value oct_binop_sdmmul ( const octave_base_value a1,
const octave_base_value a2 
)
static

Definition at line 43 of file op-dms-template.cc.