23 #if ! defined (octave_fNDArray_h)
24 #define octave_fNDArray_h 1
26 #include "octave-config.h"
47 :
MArray<float> (dv, val) { }
72 bool any_element_is_negative (
bool =
false)
const;
73 bool any_element_is_positive (
bool =
false)
const;
75 bool any_element_is_inf_or_nan (
void)
const;
77 bool all_elements_are_zero (
void)
const;
78 bool all_elements_are_int_or_inf_or_nan (
void)
const;
79 bool all_integers (
float& max_val,
float& min_val)
const;
80 bool all_integers (
void)
const;
81 bool too_large_for_float (
void)
const;
91 NDArray dprod (
int dim = -1)
const;
142 int start_dimension = 0);
149 friend OCTAVE_API std::ostream&
operator << (std::ostream& os,
188 FloatNDArray, OCTAVE_API)
190 FloatComplexNDArray, OCTAVE_API)
octave_idx_type compute_index(octave_idx_type n, const dim_vector &dims)
bool any_element_not_one_or_zero(void) const
const octave_base_value const Array< octave_idx_type > & ra_idx
OCTAVE_API FloatNDArray imag(const FloatComplexNDArray &a)
std::istream & operator>>(std::istream &is, SparseBoolMatrix &a)
MArray squeeze(void) const
#define BSXFUN_STDREL_DECLS(ARRAY, API)
identity matrix If supplied two scalar respectively For allows like xample val
#define NDND_CMP_OP_DECLS(ND1, ND2, API)
OCTAVE_API FloatNDArray max(float d, const FloatNDArray &m)
FloatNDArray & changesign(void)
#define SND_BOOL_OP_DECLS(S, ND, API)
FloatNDArray(const dim_vector &dv)
intNDArray & insert(const intNDArray< T > &a, octave_idx_type r, octave_idx_type c)
ComplexNDArray concat(NDArray &ra, ComplexNDArray &rb, const Array< octave_idx_type > &ra_idx)
#define NDND_BOOL_OP_DECLS(ND1, ND2, API)
intNDArray cumsum(int dim) const
FloatNDArray(const intNDArray< U > &a)
#define MARRAY_FORWARD_DEFS(B, R, T)
#define NDS_BOOL_OP_DECLS(ND, S, API)
OCTAVE_API FloatNDArray real(const FloatComplexNDArray &a)
intNDArray sum(int dim) const
#define NDS_CMP_OP_DECLS(ND, S, API)
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
intNDArray cummin(int dim=-1) const
FloatComplexNDArray diag(octave_idx_type k=0) const
#define SND_CMP_OP_DECLS(S, ND, API)
OCTAVE_API FloatNDArray min(float d, const FloatNDArray &m)
intNDArray diff(octave_idx_type order=1, int dim=-1) const
void increment_index(Array< octave_idx_type > &ra_idx, const dim_vector &dimensions, int start_dimension)
nd deftypefn *octave_map m
NDArray dsum(int dim) const
octave_int< T > pow(const octave_int< T > &a, const octave_int< T > &b)
FloatNDArray squeeze(void) const
FloatNDArray(const dim_vector &dv, float val)
the sparsity preserving column transformation such that that defines the pivoting threshold can be given in which case it defines the c
intNDArray cummax(int dim=-1) const
N Dimensional Array with copy-on-write semantics.
intNDArray & operator=(const intNDArray< T > &a)
bool any_element_is_nan(void) const
OCTAVE_EXPORT octave_value_list return the value of the option it must match the dimension of the state and the relative tolerance must also be a vector of the same length tem it must match the dimension of the state and the absolute tolerance must also be a vector of the same length The local error test applied at each integration step is xample roup abs(local error in x(i))<
boolNDArray all(int dim=-1) const
template OCTAVE_API std::ostream & operator<<(std::ostream &, const Array< bool > &)
FloatNDArray(const Array< U > &a)
#define BSXFUN_OP2_DECL(OP, ARRAY, ARRAY1, ARRAY2, API)
FloatNDArray(const FloatNDArray &a)
#define BSXFUN_STDOP_DECLS(ARRAY, API)
octave_value operator!(const octave_value &a)
intNDArray prod(int dim) const
write the output to stdout if nargout is
#define MINMAX_DECLS(T, S, API)
Vector representing the dimensions (size) of an Array.
the second is matched to the second specifier and placed in the second column and so forth If there are more words than specifiers then the process is repeated until all words have been processed or the limit imposed by any(non-whitespace) text in the format that is not one of these specifiers is considered a literal.If there is a literal between two format specifiers then that same literal must appear in the input stream between the matching words.The following specifiers are valid
MArray< T > & operator=(const MArray< T > &a)
#define BSXFUN_OP_DECL(OP, ARRAY, API)
Array< T > index(const idx_vector &i) const
Indexing without resizing.
FloatNDArray(const MArray< U > &a)