Matrix techniques in colorimetry