A method for video decoding comprising: decoding (S1610) prediction information for a current block in a current picture that is a part of a coded video sequence, the prediction information indicating a first intra prediction mode and a first secondary transform index for the current block; determining (S1620) a secondary transform core based on the first intra prediction mode and the first secondary transform index; generating (S1630) a primary transform coefficient block based on the secondary transform core and a first transform coefficient block of the current block, the first transform coefficient block being de-quantized from the prediction information, and a size of the first transform coefficient block being less than a size of the secondary transform core; determining whether to transpose the primary transform coefficient block based on a type of one-dimensional cross-component linear model associated with the first intra prediction mode, wherein the type of one-dimensional cross-component linear model is a first type of one-dimensional cross-component linear model CCLM_TOP using only top reference samples for deriving cross-component linear model parameters or a second type of one-dimensional cross-component linear model CCLM_LEFT using only left reference samples for deriving cross-component linear model parameters, wherein when the first type is selected a decision whether to transpose is different than when the second type is selected; and transposing the primary transform coefficient block based on a determination that the primary transform coefficient block is to be transposed; and reconstructing (S1640) the current block based on the primary transform coefficient block. decoding (S1610) prediction information for a current block in a current picture that is a part of a coded video sequence, the prediction information indicating a first intra prediction mode and a first secondary transform index for the current block; determining (S1620) a secondary transform core based on the first intra prediction mode and the first secondary transform index; generating (S1630) a primary transform coefficient block based on the secondary transform core and a first transform coefficient block of the current block, the first transform coefficient block being de-quantized from the prediction information, and a size of the first transform coefficient block being less than a size of the secondary transform core; determining whether to transpose the primary transform coefficient block based on a type of one-dimensional cross-component linear model associated with the first intra prediction mode, wherein the type of one-dimensional cross-component linear model is a first type of one-dimensional cross-component linear model CCLM_TOP using only top reference samples for deriving cross-component linear model parameters or a second type of one-dimensional cross-component linear model CCLM_LEFT using only left reference samples for deriving cross-component linear model parameters, wherein when the first type is selected a decision whether to transpose is different than when the second type is selected; and transposing the primary transform coefficient block based on a determination that the primary transform coefficient block is to be transposed; and reconstructing (S1640) the current block based on the primary transform coefficient block. <EOS>