Add new comment

have you checked that your

have you checked that your inverted matrix multiplied to original srgb-to-something matrix produces 'identity matrix' (1s on diagonal and zeroes on all other elements)

-- Alex Tutubalin @LibRaw LLC