we need to manually specialize those anyway seeing as you can't have variable Ts on implicit operato
we need to manually specialize those anyway seeing as you can't have variable Ts on implicit operators
CreateChecked is your best friendfloat.CreateChecked existed in my older generic math implementationsConvert.ChangeType or whatever the similar function is calledCreateChecked is much better, i use it when providing cast operators between system.numerics and my generic typesCreateChecked simply because it reduces the risk of undefined behaviourVectorX<int> with an X value of 30000 into a VectorX<byte> it will error, just like how that would normally happenT.Zero and T.One exists
break instead :)


CreateCheckedCreateCheckedCreateCheckedfloat.CreateCheckedConvert.ChangeTypeVectorX<int>VectorX<byte>T.ZeroT.Onebreak