trues

trues(dims)

Create a BitArray with all values set to true

Examples

julia> foo = trues(2,2)
2x2 BitArray{2}:
 true   true
 true   true
julia> convert(Int8, foo[1][1])
1

See Also

all, all!, angle, any, any!, falses, ifelse, is, isinf, isinteger, isnan, isperm, ispow2, isreal, trues,

User Contributed Notes

Add a Note

The format of note supported is markdown, use triple backtick to start and end a code block.

*Required Field
Details

Checking you are not a robot: