I have a function that processes two types: NVector and NMatrix ; the first is from the last. This function is mainly a specialized copy constructor. I want it to return an object of the same type as the one it was called on, so NVector returns NVector , not NMatrix .
static VALUE nm_init_modifiedcopy(VALUE self) {
How to get object class property to go to Data_Wrap_Struct ?
source share