GNU Octave
4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#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"
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) and setting all other elements to zero.The second argument is optional |
Variables | |
OCTAVE_EXPORT octave_value_list and specifies how many diagonals above or below the main diagonal should also be set to zero The default value of | ar {k} is zero |
above for positive the extracted elements are not inserted into a | matrix |
OCTAVE_EXPORT octave_value_list and specifies how many diagonals above or below the main diagonal should also be set to zero The default value of so that | ode {triu} and ode{tril} normally include the main diagonal as part of the result. If the value of ar{k} is nonzero integer |
#define ARRAYCASE | ( | TYP | ) |
Referenced by do_trilu().
|
static |
Definition at line 43 of file tril.cc.
References Array< T >::columns(), Array< T >::dims(), Array< T >::fortran_vec(), k, max(), min(), Array< T >::rows(), and zero.
Referenced by do_trilu().
|
static |
Definition at line 131 of file tril.cc.
References a, Sparse< T >::cidx(), Sparse< T >::cols(), Sparse< T >::data(), error(), k, m, Sparse< T >::maybe_compress(), and Sparse< T >::ridx().
|
static |
Definition at line 171 of file tril.cc.
References do_tril(), and do_triu().
Referenced by do_trilu().
|
static |
|
static |
Definition at line 184 of file tril.cc.
References arg, octave_value::array_value(), ARRAYCASE, octave_value::bool_array_value(), btyp_bool, btyp_complex, btyp_double, octave_value::builtin_type(), octave_value::class_name(), octave_value::complex_array_value(), dims, octave_value::dims(), octave_value::do_index_op(), do_trilu(), error(), int16, int32, int64, octave_value::is_empty(), octave_value::is_sparse_type(), k, octave_value_list::length(), nargin, dim_vector::ndims(), print_usage(), octave_value_list::resize(), retval, octave_value::sparse_bool_matrix_value(), octave_value::sparse_complex_matrix_value(), octave_value::sparse_matrix_value(), tmp, uint16, and uint32.
|
static |
Definition at line 85 of file tril.cc.
References Array< T >::columns(), Array< T >::dims(), Array< T >::fortran_vec(), k, max(), min(), Array< T >::rows(), and zero.
Referenced by do_trilu().
|
static |
Definition at line 151 of file tril.cc.
References a, Sparse< T >::cidx(), Sparse< T >::cols(), Sparse< T >::data(), error(), k, m, Sparse< T >::maybe_compress(), and Sparse< T >::ridx().
OCTAVE_EXPORT octave_value_list Ftril | ( | const octave_value_list & | args, |
int | |||
) |
Referenced by install_tril_fcns().