about summary refs log tree commit diff
path: root/sourcecodes/bnt-master/KPMtools/is_stochastic.m
blob: 4169f2cd9ee04bef037336d3a1d889959d4289a7 (plain)
1
2
3
4
5
function p = is_stochastic(T)
% IS_STOCHASTIC Is the argument a stochastic matrix, i.e., the sum over the last dimension is 1.
% p = is_stochastic(T)

p = approxeq(T, mk_stochastic(T));