Assigning values and obtaining information from ARRAYS
Posted: Wed Feb 10, 2016 10:41 am
Dear all,
In my code I calculate at every time the realized volatility matrix of a set of financial prices which is output to a SYMMETRIC[REAL] object called VCVMAT.
I have also declared two different objects, a SYMMETRIC[SERIES] and a VECTOR[SYMMETRIC[REAL]] called MVOLATS and SIGMAS respectively
COMPUTE NVAR = 4
DECLARE SYMMETRIC[SERIES] MVOLATS(NVAR,NVAR)
DECLARE VECTOR[SYMMETRIC[REAL]] SIGMAS
Through a loop I can assign and recover single scalars and SYMMETRIC matrices from MVOLATS.
I believe it is more efficient to use the VECTOR[SYMMETRIC[REAL]] object, but have not found the way to assign or recover each SYMMETRIC matrix component or any single scalar from and to the VECTOR[SYMMETRIC[REAL]] object.
Could you please point me out on how to declare, assign and recover single scalars and msymmetric matrices to and from a VECTOR[SYMMETRIC[REAL]] object?
I appreciate very much your help.
Regards,
JMJulio.
In my code I calculate at every time the realized volatility matrix of a set of financial prices which is output to a SYMMETRIC[REAL] object called VCVMAT.
I have also declared two different objects, a SYMMETRIC[SERIES] and a VECTOR[SYMMETRIC[REAL]] called MVOLATS and SIGMAS respectively
COMPUTE NVAR = 4
DECLARE SYMMETRIC[SERIES] MVOLATS(NVAR,NVAR)
DECLARE VECTOR[SYMMETRIC[REAL]] SIGMAS
Through a loop I can assign and recover single scalars and SYMMETRIC matrices from MVOLATS.
I believe it is more efficient to use the VECTOR[SYMMETRIC[REAL]] object, but have not found the way to assign or recover each SYMMETRIC matrix component or any single scalar from and to the VECTOR[SYMMETRIC[REAL]] object.
Could you please point me out on how to declare, assign and recover single scalars and msymmetric matrices to and from a VECTOR[SYMMETRIC[REAL]] object?
I appreciate very much your help.
Regards,
JMJulio.