julia lang - How to use type using parametric typing -


i trying use type using parametric typing error. julia version 0.6.

code:

type basicrbc{t <: real}     a::t     b::t     vce::matrix{t}     matrix1::matrix{t}     c::t     output::t     cons::t     vg::vector{t}  end 

error:

invalid redefinition of constant basicrbc 

a,b,c,output , cons float64

matrix1 matrix

vg array

vce [ 0.9 0.8 0.1]


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -