Xmipp  v3.23.11-Nereus
Public Member Functions | List of all members
alglib::real_2d_array Class Reference

#include <ap.h>

Inheritance diagram for alglib::real_2d_array:
Inheritance graph
[legend]
Collaboration diagram for alglib::real_2d_array:
Collaboration graph
[legend]

Public Member Functions

 real_2d_array ()
 
 real_2d_array (const real_2d_array &rhs)
 
 real_2d_array (alglib_impl::ae_matrix *p)
 
 real_2d_array (const char *s)
 
virtual ~real_2d_array ()
 
const double & operator() (ae_int_t i, ae_int_t j) const
 
double & operator() (ae_int_t i, ae_int_t j)
 
const double * operator[] (ae_int_t i) const
 
double * operator[] (ae_int_t i)
 
void setcontent (ae_int_t irows, ae_int_t icols, const double *pContent)
 
std::string tostring (int dps) const
 
- Public Member Functions inherited from alglib::ae_matrix_wrapper
 ae_matrix_wrapper ()
 
virtual ~ae_matrix_wrapper ()
 
const ae_matrix_wrapperoperator= (const ae_matrix_wrapper &rhs)
 
void setlength (ae_int_t rows, ae_int_t cols)
 
ae_int_t rows () const
 
ae_int_t cols () const
 
bool isempty () const
 
ae_int_t getstride () const
 
void attach_to (alglib_impl::ae_matrix *ptr)
 
void allocate_own (ae_int_t rows, ae_int_t cols, alglib_impl::ae_datatype datatype)
 
const alglib_impl::ae_matrixc_ptr () const
 
alglib_impl::ae_matrixc_ptr ()
 

Additional Inherited Members

- Protected Member Functions inherited from alglib::ae_matrix_wrapper
void create (const ae_matrix_wrapper &rhs)
 
void create (const char *s, alglib_impl::ae_datatype datatype)
 
void assign (const ae_matrix_wrapper &rhs)
 
- Protected Attributes inherited from alglib::ae_matrix_wrapper
alglib_impl::ae_matrixp_mat
 
alglib_impl::ae_matrix mat
 

Detailed Description

Definition at line 1296 of file ap.h.

Constructor & Destructor Documentation

◆ real_2d_array() [1/4]

alglib::real_2d_array::real_2d_array ( )

Definition at line 6615 of file ap.cpp.

6616 {
6618 }
void allocate_own(ae_int_t rows, ae_int_t cols, alglib_impl::ae_datatype datatype)
Definition: ap.cpp:6454

◆ real_2d_array() [2/4]

alglib::real_2d_array::real_2d_array ( const real_2d_array rhs)

Definition at line 6620 of file ap.cpp.

6621 {
6622  create(rhs);
6623 }
void create(const ae_matrix_wrapper &rhs)
Definition: ap.cpp:6320

◆ real_2d_array() [3/4]

alglib::real_2d_array::real_2d_array ( alglib_impl::ae_matrix p)

Definition at line 6625 of file ap.cpp.

6626 {
6627  p_mat = NULL;
6628  attach_to(p);
6629 }
alglib_impl::ae_matrix * p_mat
Definition: ap.h:1252
void attach_to(alglib_impl::ae_matrix *ptr)
Definition: ap.cpp:6445

◆ real_2d_array() [4/4]

alglib::real_2d_array::real_2d_array ( const char *  s)

Definition at line 6631 of file ap.cpp.

6632 {
6634 }
void create(const ae_matrix_wrapper &rhs)
Definition: ap.cpp:6320

◆ ~real_2d_array()

alglib::real_2d_array::~real_2d_array ( )
virtual

Definition at line 6636 of file ap.cpp.

6637 {
6638 }

Member Function Documentation

◆ operator()() [1/2]

const double & alglib::real_2d_array::operator() ( ae_int_t  i,
ae_int_t  j 
) const

Definition at line 6640 of file ap.cpp.

6641 {
6642  return p_mat->ptr.pp_double[i][j];
6643 }
union alglib_impl::ae_matrix::@12 ptr
alglib_impl::ae_matrix * p_mat
Definition: ap.h:1252
#define i
#define j
double ** pp_double
Definition: ap.h:455

◆ operator()() [2/2]

double & alglib::real_2d_array::operator() ( ae_int_t  i,
ae_int_t  j 
)

Definition at line 6645 of file ap.cpp.

6646 {
6647  return p_mat->ptr.pp_double[i][j];
6648 }
union alglib_impl::ae_matrix::@12 ptr
alglib_impl::ae_matrix * p_mat
Definition: ap.h:1252
#define i
#define j
double ** pp_double
Definition: ap.h:455

◆ operator[]() [1/2]

const double * alglib::real_2d_array::operator[] ( ae_int_t  i) const

Definition at line 6650 of file ap.cpp.

6651 {
6652  return p_mat->ptr.pp_double[i];
6653 }
union alglib_impl::ae_matrix::@12 ptr
alglib_impl::ae_matrix * p_mat
Definition: ap.h:1252
#define i
double ** pp_double
Definition: ap.h:455

◆ operator[]() [2/2]

double * alglib::real_2d_array::operator[] ( ae_int_t  i)

Definition at line 6655 of file ap.cpp.

6656 {
6657  return p_mat->ptr.pp_double[i];
6658 }
union alglib_impl::ae_matrix::@12 ptr
alglib_impl::ae_matrix * p_mat
Definition: ap.h:1252
#define i
double ** pp_double
Definition: ap.h:455

◆ setcontent()

void alglib::real_2d_array::setcontent ( ae_int_t  irows,
ae_int_t  icols,
const double *  pContent 
)

Definition at line 6660 of file ap.cpp.

6661 {
6662  ae_int_t i, j;
6663  setlength(irows, icols);
6664  for(i=0; i<irows; i++)
6665  for(j=0; j<icols; j++)
6666  p_mat->ptr.pp_double[i][j] = pContent[i*icols+j];
6667 }
union alglib_impl::ae_matrix::@12 ptr
alglib_impl::ae_matrix * p_mat
Definition: ap.h:1252
#define i
#define j
double ** pp_double
Definition: ap.h:455
alglib_impl::ae_int_t ae_int_t
Definition: ap.h:889
void setlength(ae_int_t rows, ae_int_t cols)
Definition: ap.cpp:6409

◆ tostring()

std::string alglib::real_2d_array::tostring ( int  dps) const

Definition at line 6669 of file ap.cpp.

6670 {
6671  std::string result;
6672  ae_int_t i;
6673  if( isempty() )
6674  return "[[]]";
6675  result = "[";
6676  for(i=0; i<rows(); i++)
6677  {
6678  if( i!=0 )
6679  result += ",";
6680  result += arraytostring(&operator()(i,0), cols(), dps);
6681  }
6682  result += "]";
6683  return result;
6684 }
#define i
std::string arraytostring(const bool *ptr, ae_int_t n)
Definition: ap.cpp:7132
ae_int_t rows() const
Definition: ap.cpp:6419
bool isempty() const
Definition: ap.cpp:6433
alglib_impl::ae_int_t ae_int_t
Definition: ap.h:889
ae_int_t cols() const
Definition: ap.cpp:6426

The documentation for this class was generated from the following files: