GNU Octave  4.0.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
double arg(double x)
Definition: lo-mappers.h:37
static Array< T > do_trilu(const Array< T > &a, octave_idx_type k, bool lower, bool pack)
Definition: tril.cc:176

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 176 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 183 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 85 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 400 of file tril.cc.

References do_trilu().

OCTAVE_EXPORT octave_value_list Ftriu ( const octave_value_list args,
int   
)

Definition at line 412 of file tril.cc.

References do_trilu().