Boxed

    [Programming] Primitive Data Type : C, C++, NumPy, Torch

    Primitive Data Type이(Unboxed type)란? C, C++, NumPy, Torch, TensorFlow 등에서 numeric data type들은 보통 unboxed type이라고도 불리는 primitive data type들이다. unboxed type에서는 할당된 메모리 bit들이 해당 numeric data type의 특정 값을 표현하는데 다 사용되고 해당 type이 고유의 meta data나 method등을 가지고 있지 않음을 의미한다. C프로그래밍을 배운 이들에게 이는 매우 당연하게 받아들여지는 개념이다. 이와 달리 boxed type이란, unboxed type처럼 값을 저장하는 메모리 bit들 외에도, 1) 가지고 있는 값에 대한 meta data 및 2) 값과 meta..