change data type for vectorized tril to reduce memory burden