# QVM: Quaternions, Vectors, Matrices

### mat_traits<M>::scalar_type

    typedef /*user-defined*/ scalar_type;

This is the member type that user-defined (partial) specializations of the mat_traits template define the scalar type of a matrix type. Valid scalar types are value types that satisfy the scalar requirements.

See also: deduce_mat2 | deduce_quat2 | deduce_vec2 | determinant | inverse(mat) | mat_traits | mat_traits<M>::read_element | mat_traits<M>::read_element_idx | mat_traits<M>::write_element | mat_traits<M>::write_element_idx | mat_traits_defaults | rotate(mat,vec,scalar) | rotate_x(mat,scalar) | rotate_y(mat,scalar) | rotate_z(mat,scalar) | scalar | scalar_cast(mat) | set_identity(mat) | set_rotx(mat,scalar) | set_roty(mat,scalar) | set_rotz(mat,scalar) | set_zero(mat) | zero_mat