Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
+
Variables
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
x
y
+
Typedefs
a
d
i
p
q
r
s
t
Enumerations
+
Enumerator
a
b
c
d
e
f
g
h
i
l
n
o
p
r
s
t
u
v
w
x
z
+
Classes
Class List
Class Hierarchy
+
Class Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerations
+
Enumerator
_
a
b
c
d
e
f
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
+
Related Functions
a
c
d
e
f
g
h
i
l
m
o
p
q
r
s
t
x
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
w
x
z
+
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
p
q
r
s
t
u
v
x
z
+
Typedefs
a
b
c
d
e
f
g
i
l
m
n
r
s
t
u
+
Enumerations
a
b
c
d
e
g
h
i
l
m
n
o
p
q
r
s
t
u
v
+
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
+
Macros
_
a
b
c
d
e
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
external_packages
csparse
cs_entry.c
Go to the documentation of this file.
1
#include "
cs.h
"
2
/* add an entry to a triplet matrix; return 1 if ok, 0 otherwise */
3
int
cs_entry
(
cs
*
T
,
int
i,
int
j,
double
x)
4
{
5
if
(!
CS_TRIPLET
(T) || i < 0 || j < 0)
return
(0) ;
/* check inputs */
6
if
(T->
nz
>= T->
nzmax
&& !
cs_sprealloc
(T,2*(T->
nzmax
)))
return
(0) ;
7
if
(T->
x
) T->
x
[T->
nz
] = x ;
8
T->
i
[T->
nz
] = i ;
9
T->
p
[T->
nz
++] = j ;
10
T->
m
=
CS_MAX
(T->
m
, i+1) ;
11
T->
n
=
CS_MAX
(T->
n
, j+1) ;
12
return
(1) ;
13
}
T
USING_NAMESPACE_ACADO typedef TaylorVariable< Interval > T
Definition:
ode_taylor_expansion.cpp:43
cs_sparse::n
int n
Definition:
cs.h:20
cs_entry
int cs_entry(cs *T, int i, int j, double x)
Definition:
cs_entry.c:3
cs_sparse::nzmax
int nzmax
Definition:
cs.h:18
CS_MAX
#define CS_MAX(a, b)
Definition:
cs.h:134
cs_sprealloc
int cs_sprealloc(cs *A, int nzmax)
Definition:
cs_util.c:18
cs_sparse::nz
int nz
Definition:
cs.h:24
cs.h
cs_sparse::p
int * p
Definition:
cs.h:21
cs_sparse
Definition:
cs.h:16
cs_sparse::i
int * i
Definition:
cs.h:22
CS_TRIPLET
#define CS_TRIPLET(A)
Definition:
cs.h:141
cs_sparse::x
double * x
Definition:
cs.h:23
cs_sparse::m
int m
Definition:
cs.h:19
acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Mon Feb 28 2022 21:31:52