Stéphane Adjemian (Charybdis)
91a69e7905
Merged @dynDates/minus and @dynDate/minus. Removed dynDate/minus.
...
This commit changes the behaviour of @dynDates/minus that was
previously returning the relative complement of B in A. I will
implement a setdiff function for dynDates objects later...
2013-10-12 13:15:15 +02:00
Stéphane Adjemian (Charybdis)
cce8b1adc6
Fixed bug (returned argument not assigned).
2013-10-12 13:07:41 +02:00
Stéphane Adjemian (Charybdis)
5c8d335b0e
Added @dynDates/mtimes method, overload the * operator. Acts like the repmat matlab's function for matrices.
2013-10-12 13:01:26 +02:00
Stéphane Adjemian (Charybdis)
8eded4251a
Added @dynDates/isequal function. Returns 1 if dynDates A and B (the inputs) are equal, 0 otherwise.
2013-10-12 12:33:07 +02:00
Stéphane Adjemian (Charybdis)
6ebc967197
Changed the behaviour of @dynDates/eq overloaded method. The size of the returned argument must be consistent with the size of the inputs. If the inputs have more than one element, then the boolean output must also have more than one element.
2013-10-12 12:32:08 +02:00
Stéphane Adjemian (Charybdis)
87c8083b16
Fixed bug (return wrong type when one of the argument is an integer).
2013-10-12 11:42:13 +02:00
Stéphane Adjemian (Charybdis)
f9315f1409
Added missing commented string (first line) for triggering the unitary tests.
2013-10-11 23:36:29 +02:00
Stéphane Adjemian (Charybdis)
ffe6b792da
Rewrote header of dynDates/plus.
2013-10-11 18:47:20 +02:00
Stéphane Adjemian (Charybdis)
d17ed416dc
Merged @dynDate/plus and @dynDates/plus methods (overload the plus operator). Removed @dynDate/plus.
2013-10-11 18:41:26 +02:00
Stéphane Adjemian (Charybdis)
d6ddc61281
Added @dynDates/length to overload length function for dynDates objects.
2013-10-11 18:39:56 +02:00
Stéphane Adjemian (Charybdis)
fe28887409
Added new (low level) routine to add periods to a date or vector of dates (using the internal representation of dates).
2013-10-11 17:49:42 +02:00
Stéphane Adjemian (Charybdis)
45ec7c6953
Added unitary tests in @dynDates/uplus and @dynDates/uminus methods.
2013-10-11 14:15:56 +02:00
Stéphane Adjemian (Charybdis)
31af73f4e3
Added @dynDates/uminus method to overload the unary minus operator. Removed @dynDate/minus method.
2013-10-11 14:08:12 +02:00
Stéphane Adjemian (Charybdis)
d8e03ff805
Added @dynDates/uplus to overload unary addition. Removed @dynDate/uplus.
2013-10-11 13:59:19 +02:00
Stéphane Adjemian (Charybdis)
6280f35842
Added @dynDates/ge method to overload >= operator. Removed @dynDate/ge method.
2013-10-11 13:42:16 +02:00
Stéphane Adjemian (Charybdis)
1543a380c6
Expanded unitary test in compare_vectors routine to cover more cases.
2013-10-11 13:39:16 +02:00
Stéphane Adjemian (Charybdis)
af4005f836
Fixed bugs.
2013-10-11 13:38:19 +02:00
Stéphane Adjemian (Charybdis)
6fff2fe75b
Changed logic in the routine performing lexicographic comparison of vectors.
2013-10-11 12:09:31 +02:00
Stéphane Adjemian (Charybdis)
be32e645af
Fixed typo.
2013-10-11 10:58:35 +02:00
Stéphane Adjemian (Charybdis)
f431e6ac90
Added @dynDates/le method to overload the <= operator. Removed the @dynDate/le method.
2013-10-11 10:56:32 +02:00
Stéphane Adjemian (Charybdis)
563ffdcd15
Deactivated unitary tests #2 and #3 in @dynDates/subsref, changed unitary test #1 (do not use colon operator to instantiate a dynDates object) and added a new unitary test (to test the selection of one element in a dynDates object).
2013-10-11 10:20:08 +02:00
Stéphane Adjemian (Charybdis)
049ba8d527
Changed @dynDates/subsref so that the selection of a single element in a dynDates object returns a dynDates object with one element (not a dynDate object).
2013-10-11 10:17:48 +02:00
Stéphane Adjemian (Charybdis)
153fe1ca82
Changed unitary test for @dynDates/eq (do not use the colon operator to instantiate the dynDates object). Added unitary test for the case where dynDates objects have only one element.
2013-10-11 09:59:02 +02:00
Stéphane Adjemian (Charybdis)
4118165b88
Removed @dynDate/isempty.
2013-10-11 09:51:26 +02:00
Stéphane Adjemian (Charybdis)
b98c390ed8
Only test the value of ndat member in @dynDates/isempty function.
2013-10-11 09:48:55 +02:00
Stéphane Adjemian (Charybdis)
18a19f3200
Added @dynDates/gt method to overload the > operator. Deleted @dynDate/gt method.
2013-10-11 09:44:42 +02:00
Stéphane Adjemian (Charybdis)
a2534c5bbc
Added unitary test.
2013-10-11 09:37:20 +02:00
Stéphane Adjemian (Charybdis)
b957545c73
Removed @dynDate/lt method.
2013-10-11 09:37:05 +02:00
Stéphane Adjemian (Charybdis)
c3e06c70bc
Added dynDates::lt method. Overloads < opterator.
2013-10-10 18:28:26 +02:00
Stéphane Adjemian (Charybdis)
c37c34a102
Fixed typo.
2013-10-10 18:27:31 +02:00
Stéphane Adjemian (Charybdis)
a22852afad
Added routine to compare vectors of common length by lexicographical order.
2013-10-10 16:56:42 +02:00
Stéphane Adjemian (Charybdis)
55cf9ebde1
Replaced texinfo header by a plain text header.
2013-10-10 16:01:37 +02:00
Stéphane Adjemian (Charybdis)
21fa2b949d
Rewrote @dynDates::eq method so that it handles correctly objects with only one element.
2013-10-10 15:52:50 +02:00
Stéphane Adjemian (Charybdis)
74d7bcbc71
Changed dynDates constructor.
2013-10-10 15:13:50 +02:00
Stéphane Adjemian (Charybdis)
294356db22
Fixed unitary test #3 in dynDates constructor.
2013-10-10 15:13:12 +02:00
Stéphane Adjemian (Charybdis)
e9bb2ba77f
Deactivated unitary test #4 in dynDates constructor.
2013-10-10 14:58:15 +02:00
Stéphane Adjemian (Charybdis)
22144ef359
Added a routine for converting a string into a date structure.
...
A date structure has two fields:
o freq, an integer scalar (=1, 4, 12, 52) specifying the frequency.
o time, a 1*2 matrix of integers, time(1) is the year and time(2) the subperiod number.
2013-10-10 14:33:31 +02:00
Stéphane Adjemian (Charybdis)
adcc218a0d
Added new routine to test if a string can be interpreted as a date.
2013-10-10 14:30:38 +02:00
Stéphane Adjemian (Charybdis)
5a1b5aaf73
Fixed bug (month number 10 was missing).
2013-10-10 14:05:12 +02:00
Stéphane Adjemian (Charybdis)
f4e32dbd6f
Efficiency improvements. Rewrote some routines using regular expressions.
2013-10-10 12:52:27 +02:00
Stéphane Adjemian (Charybdis)
399b6d2615
Specialized maxit in bytecode mex (dynamic simulation vs steady state).
2013-10-09 16:55:46 +02:00
Stéphane Adjemian (Charybdis)
5a98be702c
Decreased the value of maxit in simul (bytecode & ireland.mod).
2013-10-09 16:53:31 +02:00
Stéphane Adjemian (Charybdis)
e28eaa1c18
Use dynare interface (maxit option).
2013-10-09 16:26:55 +02:00
Stéphane Adjemian (Charybdis)
d8052342f3
Fixed bug introduced in cc0d9b42f0
(bytecode.cc).
...
Problem when reading nested structures.
2013-10-09 16:26:29 +02:00
Stéphane Adjemian (Charybdis)
f3334357a5
Merge branch 'master' into maxit
2013-10-09 15:43:43 +02:00
Stéphane Adjemian (Charybdis)
6d71f76762
Renamed options_.solve_maxit as options_.simul.maxit
2013-10-09 15:38:35 +02:00
Stéphane Adjemian (Charybdis)
969fe3c209
Renamed options_.solve_maxit as options_.steady.maxit.
2013-10-09 15:38:07 +02:00
Stéphane Adjemian (Charybdis)
bde961feca
Renamed options_.solve_maxit as options_.dp.maxit.
2013-10-09 15:37:21 +02:00
Stéphane Adjemian (Charybdis)
99b6326540
Same as 38712d987c
.
2013-10-09 15:31:48 +02:00
Stéphane Adjemian (Charybdis)
38712d987c
Renamed options_.solve_maxit as options_.simul.maxit in det_cond_forecast.
...
Probably needs another option name...
2013-10-09 15:21:32 +02:00