41 :
Array<T> (
a.as_column ()), d1 (r), d2 (
c)
44 if (rcmin !=
a.numel ())
57 else if (
k > 0 &&
k <
cols ())
59 else if (
k < 0 && -
k <
rows ())
105 (*current_liboctave_error_handler) (
"can't resize to negative dimensions");
114 template <
typename T>
126 template <
typename T>
132 if (r < 0 || r >=
dim1 ())
135 if (c < 0 || c >=
dim2 ())
void resize(octave_idx_type n, octave_idx_type m, const T &rfv)
T checkelem(octave_idx_type r, octave_idx_type c) const
OCTAVE_EXPORT octave_value_list or N dimensional array whose elements are all equal to the IEEE symbol zero divided by zero($0/0$)
void err_index_out_of_range(int nd, int dim, octave_idx_type idx, octave_idx_type ext)
DiagArray2< T > transpose(void) const
T & elem(octave_idx_type n)
nd example oindent opens the file binary numeric values will be read assuming they are stored in IEEE format with the least significant bit and then converted to the native representation Opening a file that is already open simply opens it again and returns a separate file id It is not an error to open a file several though writing to the same file through several different file ids may produce unexpected results The possible values of text mode reading and writing automatically converts linefeeds to the appropriate line end character for the you may append a you must also open the file in binary mode The parameter conversions are currently only supported for and permissions will be set to and then everything is written in a single operation This is very efficient and improves performance c
T elem(octave_idx_type r, octave_idx_type c) const
F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE * d
DiagArray2< T > hermitian(T(*fcn)(const T &)=nullptr) const
bool check_idx(octave_idx_type r, octave_idx_type c) const
calling an anonymous function involves an overhead quite comparable to the overhead of an m file function Passing a handle to a built in function is because the interpreter is not involved in the internal loop For a
void resize(const dim_vector &dv, const T &rfv)
Resizing (with fill).
the exceeded dimensions are set to if fewer subscripts than dimensions are the exceeding dimensions are merged into the final requested dimension For consider the following dims
With real return the complex result
octave_idx_type cols(void) const
N Dimensional Array with copy-on-write semantics.
octave_idx_type dim1(void) const
Array< T > extract_diag(octave_idx_type k=0) const
Array< T > array_value(void) const
Vector representing the dimensions (size) of an Array.
octave_idx_type dim2(void) const
octave_idx_type rows(void) const
charNDArray min(char d, const charNDArray &m)