Dimensionless.DimBasis
— Type DimBasis(basis_vectors) -> DimBasis
Create a dimensional basis for a number of basis_vectors
(quantities, units or dimensions) that can be named or unnamed.
Dimensionless.change_basis
— Method change_basis(var, basis, new_basis)
Transform the specified quantity or unit var
from a current basis
to a new_basis
.
Dimensionless.dim_matrix
— Method dim_matrix(basis_dims, all_values)
Return the dimensional matrix for a set of basis dimensions basis_dims
and all_values
, a set of quantities, units or dimensions.
Dimensionless.dimensionful
— Method dimensionful(value, unit, basis)
Restore the unit
s of a dimensionless value
using a dimensional basis
.
Dimensionless.dimensionless
— Method dimensionless(quantity, basis)
Make a quantity
dimensionless using a dimensional basis
.
Dimensionless.number_of_dimensionless
— Method number_of_dimensionless(all_vars)
Return the number of dimensionless numbers that can be constructed for a problem characterized by the variables all_vars
.
Dimensionless.number_of_dimensions
— Method number_of_dimensions(all_vars)
Return the number of unique dimensions for the given variables `all_vars.
Dimensionless.print_dimensionless
— Methodprint_dimensionless([io], named_dim_vector, basis)
Print the dimensionless number that can be constructed using named_dim_vector
in the specified dimensional basis
.
Dimensionless.check_basis
— Method check_basis(dim_mat)
Use a dimensional matrix to check if a collection of dimensional vectors is a valid basis. Throw errors if there are to few basis vectors or if the matrix does not have full rank.
Dimensionless.current_to_new_fac
— Method current_to_new_fac(dims, basis, new_basis)
Return the factor that is needed to transform specified dimensions dims
from a current basis
to a new_basis
.
Dimensionless.exps_perm
— Methodexps_perm(powers)
Return the permutation of exponents so that large positive values are showed first followed by large negative values.
Dimensionless.showrep
— Methodshowrep(io, identifier, exponent)
Print the identifier
followed by the corresponding exponent
to the specified stream io
.
Dimensionless.unique_dims
— Method unique_dims(all_values)
Return a vector of unique dimensions for all_values
, a set of quantities, units or dimensions.