Ipopt  3.11.9
Public Member Functions | Static Public Member Functions | Protected Attributes | Friends | List of all members
SparseMatrix Class Reference

#include <sparsematrix.hpp>

Public Member Functions

 SparseMatrix (const mxArray *ptr)
 
 ~SparseMatrix ()
 
int numelems () const
 
int numelems (int c) const
 
void getColsAndRows (int *cols, int *rows) const
 
bool copyto (SparseMatrix &dest) const
 
void copyto (double *dest) const
 

Static Public Member Functions

static int getSizeOfSparseMatrix (const mxArray *ptr)
 
static bool isLowerTri (const mxArray *ptr)
 
static bool inIncOrder (const mxArray *ptr)
 

Protected Attributes

int h
 
int w
 
int nnz
 
mwIndex * jc
 
mwIndex * ir
 
double * x
 

Friends

int height (const SparseMatrix &A)
 
int width (const SparseMatrix &A)
 

Detailed Description

Definition at line 34 of file sparsematrix.hpp.

Constructor & Destructor Documentation

◆ SparseMatrix()

SparseMatrix::SparseMatrix ( const mxArray *  ptr)
explicit

◆ ~SparseMatrix()

SparseMatrix::~SparseMatrix ( )

Member Function Documentation

◆ numelems() [1/2]

int SparseMatrix::numelems ( ) const
inline

Definition at line 58 of file sparsematrix.hpp.

◆ numelems() [2/2]

int SparseMatrix::numelems ( int  c) const

◆ getColsAndRows()

void SparseMatrix::getColsAndRows ( int *  cols,
int *  rows 
) const

◆ copyto() [1/2]

bool SparseMatrix::copyto ( SparseMatrix dest) const

◆ copyto() [2/2]

void SparseMatrix::copyto ( double *  dest) const

◆ getSizeOfSparseMatrix()

static int SparseMatrix::getSizeOfSparseMatrix ( const mxArray *  ptr)
static

◆ isLowerTri()

static bool SparseMatrix::isLowerTri ( const mxArray *  ptr)
static

◆ inIncOrder()

static bool SparseMatrix::inIncOrder ( const mxArray *  ptr)
static

Friends And Related Function Documentation

◆ height

int height ( const SparseMatrix A)
friend

Definition at line 52 of file sparsematrix.hpp.

◆ width

int width ( const SparseMatrix A)
friend

Definition at line 53 of file sparsematrix.hpp.

Member Data Documentation

◆ h

int SparseMatrix::h
protected

Definition at line 92 of file sparsematrix.hpp.

◆ w

int SparseMatrix::w
protected

Definition at line 93 of file sparsematrix.hpp.

◆ nnz

int SparseMatrix::nnz
protected

Definition at line 94 of file sparsematrix.hpp.

◆ jc

mwIndex* SparseMatrix::jc
protected

Definition at line 95 of file sparsematrix.hpp.

◆ ir

mwIndex* SparseMatrix::ir
protected

Definition at line 96 of file sparsematrix.hpp.

◆ x

double* SparseMatrix::x
protected

Definition at line 97 of file sparsematrix.hpp.


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