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
tril.cc File Reference
#include <algorithm>
#include "Array.h"
#include "Sparse.h"
#include "mx-base.h"
#include "ov.h"
#include "Cell.h"
#include "defun.h"
#include "error.h"
#include "oct-obj.h"
Include dependency graph for tril.cc:

Go to the source code of this file.

Macros

#define ARRAYCASE(TYP)

Functions

template<class T >
static Array< T > do_tril (const Array< T > &a, octave_idx_type k, bool pack)
template<class T >
static Sparse< T > do_tril (const Sparse< T > &a, octave_idx_type k, bool pack)
template<class T >
static Array< T > do_trilu (const Array< T > &a, octave_idx_type k, bool lower, bool pack)
template<class T >
static Sparse< T > do_trilu (const Sparse< T > &a, octave_idx_type k, bool lower, bool pack)
static octave_value do_trilu (const std::string &name, const octave_value_list &args)
template<class T >
static Array< T > do_triu (const Array< T > &a, octave_idx_type k, bool pack)
template<class T >
static Sparse< T > do_triu (const Sparse< T > &a, octave_idx_type k, bool pack)
OCTAVE_EXPORT octave_value_list Ftril (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Ftriu (const octave_value_list &args, int)

Macro Definition Documentation

#define ARRAYCASE (   TYP)
Value:
case btyp_ ## TYP: \
retval = do_trilu (arg.TYP ## _array_value (), k, lower, pack); \
break

Referenced by do_trilu().

Function Documentation

template<class T >
static Array<T> do_tril ( const Array< T > &  a,
octave_idx_type  k,
bool  pack 
)
static

Definition at line 43 of file tril.cc.

References Array< T >::columns(), Array< T >::dims(), Array< T >::fortran_vec(), max(), min(), and Array< T >::rows().

Referenced by do_trilu().

template<class T >
static Sparse<T> do_tril ( const Sparse< T > &  a,
octave_idx_type  k,
bool  pack 
)
static
template<class T >
static Array<T> do_trilu ( const Array< T > &  a,
octave_idx_type  k,
bool  lower,
bool  pack 
)
static

Definition at line 174 of file tril.cc.

References do_tril(), and do_triu().

Referenced by do_trilu(), Ftril(), and Ftriu().

template<class T >
static Sparse<T> do_trilu ( const Sparse< T > &  a,
octave_idx_type  k,
bool  lower,
bool  pack 
)
static

Definition at line 181 of file tril.cc.

References do_tril(), and do_triu().

static octave_value do_trilu ( const std::string &  name,
const octave_value_list args 
)
static
template<class T >
static Array<T> do_triu ( const Array< T > &  a,
octave_idx_type  k,
bool  pack 
)
static

Definition at line 84 of file tril.cc.

References Array< T >::columns(), Array< T >::dims(), Array< T >::fortran_vec(), max(), min(), and Array< T >::rows().

Referenced by do_trilu().

template<class T >
static Sparse<T> do_triu ( const Sparse< T > &  a,
octave_idx_type  k,
bool  pack 
)
static
OCTAVE_EXPORT octave_value_list Ftril ( const octave_value_list args,
int   
)

Definition at line 396 of file tril.cc.

References do_trilu().

OCTAVE_EXPORT octave_value_list Ftriu ( const octave_value_list args,
int   
)

Definition at line 407 of file tril.cc.

References do_trilu().