GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
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 "ovl.h"
Include dependency graph for tril.cc:

Go to the source code of this file.

Macros

#define ARRAYCASE(TYP)
 

Functions

template<typename T >
static Array< T > do_tril (const Array< T > &a, octave_idx_type k, bool pack)
 
template<typename T >
static Sparse< T > do_tril (const Sparse< T > &a, octave_idx_type k, bool pack)
 
template<typename T >
static Array< T > do_trilu (const Array< T > &a, octave_idx_type k, bool lower, bool pack)
 
template<typename 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<typename T >
static Array< T > do_triu (const Array< T > &a, octave_idx_type k, bool pack)
 
template<typename 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

◆ ARRAYCASE

#define ARRAYCASE (   TYP)
Value:
case btyp_ ## TYP: \
retval = do_trilu (arg.TYP ## _array_value (), k, lower, pack); \
break
static Array< T > do_trilu(const Array< T > &a, octave_idx_type k, bool lower, bool pack)
Definition: tril.cc:173

Function Documentation

◆ do_tril() [1/2]

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

Definition at line 45 of file tril.cc.

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

Referenced by do_trilu().

◆ do_tril() [2/2]

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

Definition at line 133 of file tril.cc.

References error(), and m.

◆ do_trilu() [1/3]

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

Definition at line 173 of file tril.cc.

References do_tril(), and do_triu().

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

◆ do_trilu() [2/3]

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

Definition at line 180 of file tril.cc.

References do_tril(), and do_triu().

◆ do_trilu() [3/3]

◆ do_triu() [1/2]

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

Definition at line 87 of file tril.cc.

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

Referenced by do_trilu().

◆ do_triu() [2/2]

template<typename T >
static Sparse<T> do_triu ( const Sparse< T > &  a,
octave_idx_type  k,
bool  pack 
)
static

Definition at line 153 of file tril.cc.

References error(), and m.

◆ Ftril()

OCTAVE_EXPORT octave_value_list Ftril ( const octave_value_list args,
int   
)

Definition at line 376 of file tril.cc.

References do_trilu().

Referenced by F__ichol0__(), F__icholt__(), F__ilu0__(), F__iluc__(), and F__ilutp__().

◆ Ftriu()

OCTAVE_EXPORT octave_value_list Ftriu ( const octave_value_list args,
int   
)

Definition at line 425 of file tril.cc.

References do_trilu().

Referenced by F__ilu0__(), F__iluc__(), and F__ilutp__().