Registered Member
|
Hi,
I was wondering if there is a way to initialize a const Matrix, something like the following:
Thanks for your help. |
Registered Member
|
There is, through the comma initializer.
HTH, Hauke |
Registered Member
|
Does this approach incur a runtime cost or will this initialization be done statically?
|
Moderator
|
that depends on the complexity of the initialization and on the ability of the compiler to optimize the underlying code. In my experience, the compiler always did a pretty good job to eliminate all runtime code.
|
Registered users: Baidu [Spider], Bing [Bot], Google [Bot], Yahoo [Bot]