List of all members | Public Member Functions
casadi::SubMatrix< M, I, J > Class Template Reference

#include <submatrix.hpp>

Detailed Description

template<typename M, typename I, typename J>
class casadi::SubMatrix< M, I, J >

SubMatrix class for Matrix SubMatrix is the return type for operator() of the Matrix class, it allows access to the value as well as changing the parent object

Author
Joel Andersson
Date
2011-2014

Definition at line 38 of file submatrix.hpp.

Inheritance diagram for casadi::SubMatrix< M, I, J >:
Inheritance graph
[legend]

Public Member Functions

 SubMatrix (M &mat, const I &i, const J &j)
 Constructor. More...
 
 SubMatrix (const SubMatrix< M, I, J > &y)=default
 Default copy constructor. More...
 
const M & operator= (const SubMatrix< M, I, J > &y)
 
const M & operator= (const M &y)
 
operator+= (const M &y)
 
operator-= (const M &y)
 
operator*= (const M &y)
 
operator/= (const M &y)
 

Constructor & Destructor Documentation

◆ SubMatrix() [1/2]

template<typename M , typename I , typename J >
casadi::SubMatrix< M, I, J >::SubMatrix ( M &  mat,
const I &  i,
const J &  j 
)
inline

Definition at line 48 of file submatrix.hpp.

◆ SubMatrix() [2/2]

template<typename M , typename I , typename J >
casadi::SubMatrix< M, I, J >::SubMatrix ( const SubMatrix< M, I, J > &  y)
default

Member Function Documentation

◆ operator*=()

template<typename M , typename I , typename J >
M casadi::SubMatrix< M, I, J >::operator*= ( const M &  y)
inline

Methods that modify a part of the parent object (A(i, j) = ?, A(i, j) += ?, etc.)

Definition at line 79 of file submatrix.hpp.

◆ operator+=()

template<typename M , typename I , typename J >
M casadi::SubMatrix< M, I, J >::operator+= ( const M &  y)
inline

Methods that modify a part of the parent object (A(i, j) = ?, A(i, j) += ?, etc.)

Definition at line 67 of file submatrix.hpp.

◆ operator-=()

template<typename M , typename I , typename J >
M casadi::SubMatrix< M, I, J >::operator-= ( const M &  y)
inline

Methods that modify a part of the parent object (A(i, j) = ?, A(i, j) += ?, etc.)

Definition at line 73 of file submatrix.hpp.

◆ operator/=()

template<typename M , typename I , typename J >
M casadi::SubMatrix< M, I, J >::operator/= ( const M &  y)
inline

Methods that modify a part of the parent object (A(i, j) = ?, A(i, j) += ?, etc.)

Definition at line 85 of file submatrix.hpp.

◆ operator=() [1/2]

template<typename M , typename I , typename J >
const M& casadi::SubMatrix< M, I, J >::operator= ( const M &  y)
inline

Methods that modify a part of the parent object (A(i, j) = ?, A(i, j) += ?, etc.)

Definition at line 62 of file submatrix.hpp.

◆ operator=() [2/2]

template<typename M , typename I , typename J >
const M& casadi::SubMatrix< M, I, J >::operator= ( const SubMatrix< M, I, J > &  y)
inline

Methods that modify a part of the parent object (A(i, j) = ?, A(i, j) += ?, etc.)

Definition at line 57 of file submatrix.hpp.


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