Function for Triangular Matrix multiplication

Is there any function in TensorFlow for multiplication of Triangular matrix? Since triangular matrix has many zero’s in it so in order to increase its efficiency, Is there any function that ignores the part which has zero’s and computes for the rest of the matrix ?

Hi @Varad_Joshi

Welcome to the TensorFlow Forum!

There is no specific function for Triangular matrix multiplication in TensorFlow. However, you can try using tf.sparse.SparseTensor to create matrix with zeros and later multiply those matrices using tf.sparse.sparse_dense_matmul API.

Please refer to the attached links for more understanding in this. Thank you.